a6ex 0 Posted November 26, 2012 Share Posted November 26, 2012 Hi, My kid have a robotic club, and I give him msp430 launchpad with energia. Last month I have raspberry pi and right now I want to give it to my son. So I am thinking, it's will be wonderful if we can run energia on raspberry pi with raspbian or archlinux os. Is there any suggestion for this combine? Rgds Quote Link to post Share on other sites
G0XAR 19 Posted November 26, 2012 Share Posted November 26, 2012 No, but it is worth noting that the Rasberry Pi has Python installed as the "standard" programming language. I would actually quite like to see an MSP 430 Python implementation. Python is a lot easier for kids to learn than Arduino IMHO Quote Link to post Share on other sites
a6ex 0 Posted November 26, 2012 Author Share Posted November 26, 2012 Yes, python is more suit for kid learn programing. But it's look like the only python support for msp430 is mpy project and it's only support windows os. Hope soon Mpy project have a linux platform. Quote Link to post Share on other sites
sirri 28 Posted March 15, 2013 Share Posted March 15, 2013 well.. let me ask this another way: is it possible Raspberry Pi to communicate with MSP430 (via USB) with serial communication protocol ? Consider i wrote a python code working in Raspberry Pi, which allows me to log data, send email etc. controlled by MSP430 ? Thanks, Sirri Quote Link to post Share on other sites
spirilis 1,265 Posted March 15, 2013 Share Posted March 15, 2013 It should be possible IMO to build the Energia (Arduino) framework for the archlinux/ARM environment running on the RPi. You might be able to do it ON the RPi. Look into the details of how you build Energia... although one thing to note is it's Java based, and I don't know if there are workable java VM runtimes for that architecture. Open source java implementations do exist, just no idea how well they work. IIRC the USB ports on the RPi should have no problem communicating with the LaunchPad, although the application UART may need some custom kernel module. Still, should be compilable from source on the RPi. Quote Link to post Share on other sites
BRey 22 Posted March 15, 2013 Share Posted March 15, 2013 I have several PlugComputers that I use to communicate with Launchpads. The PlugComputer is an ARM Linux box similar to the RPi; I run debian and Arch. I use Modbus Serial protocol and have connected using both the USB cable and also hard wired to the serial port pins (the Plug has a 3.3v ttyS0). I have used this Arduino implementation in Energia: https://sites.google.com/site/jpmzometa/arduino-mbrt/arduino-modbus-slave and Python Minimal Modbus on the Plug: http://minimalmodbus.sourceforge.net/ B bluehash 1 Quote Link to post Share on other sites
roadrunner84 466 Posted March 15, 2013 Share Posted March 15, 2013 Why would you connect the launchpad/msp430 via USB serial to the RPi? The GPIO lines of the RPi support TTL level serial. just hook the MSP430 up to those lines directly! If you want to use the USB plug on the launchpad, you'd need to port the drivers from x86 to ARM. sirri 1 Quote Link to post Share on other sites
a6ex 0 Posted March 15, 2013 Author Share Posted March 15, 2013 I think communication between rpi and msp430 can be done with some sort of protocol. You can access the serial port in rpi like in http://www.hobbytronics.co.uk/raspberry-pi-serial-port . You can design some command and data sent from msp430 to rpi. Quote Link to post Share on other sites
roadrunner84 466 Posted March 15, 2013 Share Posted March 15, 2013 For testing purposes I like the ROT13 test; echo the received character back, but rotate it 13 characters in the alphabet (so an A becomes an N, a B becomes an O, etc.) Then send the echoed string again and the original string should be readable again. Quote Link to post Share on other sites
BRey 22 Posted March 15, 2013 Share Posted March 15, 2013 I agree with roadrunner that it is better to use the TTL level connection; the USB interface on the Launchpad is 9600 baud max- Hard wired, 115200 works great. Many of the Arduino sketch "protocols" are just text messages without error checking; Modbus has CRC-16 on every message. I am sure there are other reliable protocols available, but I am familiar with Modbus. Quote Link to post Share on other sites
nickn 5 Posted March 15, 2013 Share Posted March 15, 2013 I think communication between rpi and msp430 can be done with some sort of protocol. You can access the serial port in rpi like in http://www.hobbytronics.co.uk/raspberry-pi-serial-port . You can design some command and data sent from msp430 to rpi. I've tried that, no luck though. Quote Link to post Share on other sites
eelcor 18 Posted March 18, 2013 Share Posted March 18, 2013 Hi everybody, I am also very curious whether someone has ported Energia to the Raspberry Pi. It is no problem to use the flash tools on the Raspberry Pi. I am also thinking of a combination of the Raspberry Pi and the Launchpad as a intelligent extender (in fact the Gertboard for the Raspberry Pi is such an intelligent extender). The serial limitations have been noted, but it would be great to use a combination of USB programming and hardwired serial comms. I am currently investigating the possibility to use Python on the Pi with PySerial/PySMBus with the Launchpad. Combined with the outrageously cheap GPS receiver mentioned in one of the last Hackaday posts it would be a great robotic platform. Kind regards, Eelco Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.