Go to advanced search

by dph
Mon Jul 09, 2012 1:44 am
Forum: Other programming languages
Topic: Nodejs RC car
Replies: 5
Views: 7684

Re: Nodejs RC car

I connected the gpio headers directly to the chip on the car, not the remote (the rpi needs to be on the car so I can connect sensors to it later). You can't connect it directly to the motor as many people on this board have said - the pi can't produce a constant current to drive the motors. The nic...
by dph
Thu Jun 21, 2012 11:23 pm
Forum: Other programming languages
Topic: Nodejs RC car
Replies: 5
Views: 7684

Nodejs RC car

Here's a video of an RC car controlled using the raspberry pi's GPIO headers. http://www.youtube.com/watch?v=klQdX8-YVaI Before anyone says anything, I know JavaScript is a terrible language to write autonomous cars in - it's single threaded and has a terrible timer. Your accuracy is limited to ms a...
by dph
Sun Jun 17, 2012 3:04 am
Forum: Other programming languages
Topic: Nodejs GPIO
Replies: 7
Views: 5819

Re: Nodejs GPIO

The Raspberry Pi's CPU is based on ARMv6, so you just need to compile it with the right flags. I followed the same link legrang posted and was able to compile without a problem. A few notes: 1) it took close to an hour to install node, so you shouldn't sit around and wait for it. 2) there's a mistyp...
by dph
Sat Jun 09, 2012 3:02 pm
Forum: Other programming languages
Topic: Nodejs GPIO
Replies: 7
Views: 5819

Nodejs GPIO

Hope this is useful for others out there, I wrote a node package that lets you interact with the GPIO https://github.com/EnotionZ/GpiO (there's also a little video in the README)

It does use the filesystem API, especially the watchFile function so there's no crazy js closures just to access values.
by dph
Fri Jun 08, 2012 6:37 pm
Forum: Other programming languages
Topic: What's the best way of doing stuff with the GPIO in PHP
Replies: 6
Views: 3076

Re: What's the best way of doing stuff with the GPIO in PHP

First off, I'm not sure why running as root is such a big deal, I assume people aren't using these for any kind of production-level purposes. If it's a huge deal, maybe you can set up private groups and allow a particular group to have access to the gpio? http://wiki.debian.org/UserPrivateGroups Als...

Go to advanced search