Ask Your Question
0

Using Raspberry with ROS and communicate with PIC32

asked 2016-04-04 22:27:45 -0500

Mr_Kadafi gravatar image

Hello, i would like to run ROS in the raspberry pi and communicate with a PIC32 (or some identical microcontroller), this is possible? I know is possible communicate between a arduino and a Raspberry with ROS, through serial communication (using rosserial_arduino package).

But If i just use a Atmel microcontroller present on arduino (with the necessary electronics for working!), without development board. It will work? I need to do a few changes, but is possible? Or not?

Best Regards

P.S. I used the example of Atmel because is the microcontroller present in arduino, but i think if it is possible for the Atmel will also be for the PIC.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2016-04-05 01:56:32 -0500

the rosserial page has examples with different boards

rosserial_arduino - Arduino, especially UNO and Leonardo
rosserial_embeddedlinux - support for Embedded Linux (eg, routers)
rosserial_windows - support for communicating with Windows applications
rosserial_mbed - support for mbed platforms
rosserial_tivac - support for TI's Launchpad boards, TM4C123GXL and TM4C1294XL

developing for other boards is possible, but you would need to implement code to read the protocol on the device yourself.

Arduino code that is compiled for an uno can run on a minimal chip, you do not have to use a board, they even provide instructions https://www.arduino.cc/en/Main/Standa...

edit flag offensive delete link more

Comments

Yes, i know is possible use a ATMEL micro without a arduino board. My question is if it's possible communicate between a RP ,with ROS, and a PIC32 ( http://dangerousprototypes.com/wp-con... ) through a serial communication. As it's done between the RP and Arduino.

Mr_Kadafi gravatar image Mr_Kadafi  ( 2016-04-05 09:56:52 -0500 )edit
0

answered 2016-04-26 11:43:53 -0500

You can use the atmega microconteoller alone (without using any of the Arduino libraries) using this example.

If you want to use a PIC32, which AFAIK doesn't have a ROS library yet, you can use something like the serial package from wjwwood on the host and write your own protocol and serial parser on the PIC32.

Here's a simple example of how to use the serial package to communicate with an arduino, but without using the rosserial_arduino library. It should be easy to replicate this on the PIC32.

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-04-04 22:27:45 -0500

Seen: 342 times

Last updated: Apr 26 '16