Mastermime
Posts: 3
Joined: Sun Oct 14, 2012 7:51 pm

Using the Raspberry Pi as a Controller System

Sun Oct 14, 2012 7:54 pm

Hello everyone,

I am designing a controller system for my search and rescue robot. I'll start off by stating the requirements:

- Robot controlled by Logitech joystickhttp://www.logitech.com/en-us/gaming/jo ... eme-3d-pro
- Servo control for panning camera
- Directional control (forward, backward, turn left, turn right)
- Turn LEDs On/Off
- Turn motors off (relay on robot connected to 5v signal to keep activated, when there is no signal, the motors shut off)

- Live video display on LCD (from Video Receiver)

- Output of sensor results from robot ie temperature sensors, battery level (voltage divider connected ADC on Axon II)

- Xbee data transceiver (simple serial)


Would it be possible to use a Raspberry Pi to process the joystick commands and send them through the Xbee and output the sensor results on the LCD?

Thanks


ghans
Posts: 7877
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Using the Raspberry Pi as a Controller System

Thu Oct 18, 2012 7:59 pm

Possible , but how much electronics and programming experience do you have ?
This will need loads of both. And perhaps add a Arduino/microcontroller .

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

Mastermime
Posts: 3
Joined: Sun Oct 14, 2012 7:51 pm

Re: Using the Raspberry Pi as a Controller System

Fri Oct 19, 2012 2:43 am

I am experienced with electronics, but I am not experienced with programming. Would it just be easier to use a different board other than the Raspberry Pi?

ghans
Posts: 7877
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Using the Raspberry Pi as a Controller System

Fri Oct 19, 2012 10:40 am

Perhaps a Arduino would be enough ?
Better ask in their own forums. Both Pi and Arduino are simple to program ,
i do not think that there are boards for your purpose which would be simpler.


ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

eyebee
Posts: 35
Joined: Tue Sep 25, 2012 7:05 pm
Location: Los Angeles, CA

Re: Using the Raspberry Pi as a Controller System

Sun Oct 21, 2012 4:56 am

You should be able to do all that with the Pi. I am not sure about your particular model of joystick but its easy enough to test.

If you are running wheezy you can install the jstest utility:
sudo apt-get install joystick

and then run jstest:
jstest /dev/input/js0

I just dug out a 10 year old Logitech wireless joystick (Freedom 2.4) and it worked just fine (once I cleaned off the corroded battery contacts, lol)

Lots of people are experimenting with Pis and Xbees. If you google around you should be able to find lots of info.
http://lookmanowire.blogspot.de/2012/07 ... -xbee.html
http://www.bootc.net/archives/2012/07/2 ... xbee-pcbs/
http://www.cooking-hacks.com/index.php/ ... ry-pi-xbee

As a programming beginner, you might find it much easier to program in Python on the Pi than to deal with C on the Arduino.

ToddFerrante
Posts: 19
Joined: Sun Sep 30, 2012 8:00 pm

Re: Using the Raspberry Pi as a Controller System

Mon Oct 22, 2012 1:08 pm

I'm working on developing a similar system. You can see my current status in this thread: http://www.raspberrypi.org/phpBB3/viewt ... 37&t=19939

My goal is to minimize non-Pi hardware if at all possible. So far, I haven't needed to use any more boards (like the Arduino, Gertboard, or adafruit PWM board) by sticking to PWM control of RC style reversible brushed motor drivers. If I do add any more hardware, it will be the least expensive stuff that will do the job. I particularly like the adafruit board because it is low cost, runs lots of PWM outputs, and frees up lots of the Pi GPIO pins for other IO tasks.

Todd F.

Return to “Automation, sensing and robotics”