Ask Your Question

getting basic hardware on Raspberry Pi working with ROS

asked 2013-06-18 02:57:52 -0600

Praseen gravatar image

updated 2014-01-28 17:16:56 -0600

ngrennan gravatar image

Hello, I have a ROS Groovy Galapagos bare bones installation from binary on the Raspberry Pi which has a Raspbian wheezy running on it. Please let know how to use it for some simple hardware like a switch and an LED connected to to the RPi. I would like the switch to switch on/off the LED through the ROS installation on the RPi.

Thanks in advance, Praseen

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-08-13 11:12:29 -0600

kalectro gravatar image


I am currently working on the same thing and got at least the GPIOs working. SPI, I2C, RS232 is implemented but not tested yet. What you need is the bosch_drivers package

Up to this point it only supports the Arduino and the Sub20 as hardware interface but I wrote a raspi_interface as well. You can get it from my private repo

As you can see it is still under heavy development but as I said the GPIOs should be working. I make use of the awesome wiringPi library which needs to be installed. Get it from here

Feel free to fork or submit issues if you find any bugs or have any suggestions


edit flag offensive delete link more

answered 2013-06-18 03:12:11 -0600

davinci gravatar image

I think within ROS there are no packages yet. There is a placeholder here: but no content yet.

You could modify a blink a led script like this one here to work with ROS:

edit flag offensive delete link more


Hi davinci, thanks a ton for the answer. I might need some further assistance soon.

Praseen gravatar image Praseen  ( 2013-06-23 19:02:45 -0600 )edit

Hi davinci, The second program link contains a program that could be modified to work with ROS. Do we need to create a ROS node first for that? How could ROS be configured to use the external hardware? Could you please point me to the right place, where it can be done?

Praseen gravatar image Praseen  ( 2013-06-23 19:14:43 -0600 )edit

It should be put into a ros node, see for an example here: For external hardware you can better open a new question (and mark this one as correct).

davinci gravatar image davinci  ( 2013-06-23 22:23:43 -0600 )edit

Hi davinci, Thanks a lot gain for the quick response. I will now create a seperate post for external hardware.

Praseen gravatar image Praseen  ( 2013-06-25 00:46:46 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-06-18 02:57:52 -0600

Seen: 1,408 times

Last updated: Aug 13 '13