Saturday, 21 May 2016

Python communicating with MSP430G2


                            Python communicating with MSP430G2

I have done an interfacing with Python with MSP430G2.
 Why python and MSP430G2?
I think MSP430G2 is one of the  best development board by TI (Texas Instruments) with ultra low power microcontroller which is have 5 low powered mode by which battery life can be extended, which is also having 16 bit RISC CPU .So it is more preferable that other MCU’s where you need less battery consumption and maximum code efficiency.
Python is easy language to start with and it can be used for many application  its supports many domains like internet protocols, web developments, Scientific and Numeric Comuting,Desktop GUI,Software development etc.,
In this project I will try to operate the MSP430G2 with programming language called python.i will operate the on board led using python, for this u need MSP430G2 along with python software and pyserial library
I wrote a small code in python to send a character and I wrote another for MSP430 to collect the character that trying to send from the python through serial communications and the result is this!



After this I improve my coding and try to blink on board two led’s that is green and red with some time delay by sending two different characters .one for on the led other for off the led and the result is this !




                                          



Hurray it’s working …!

You’re always welcome to give me your valuable suggestion through comments, if you need more information regarding this please leave a comment so that I can answer you.


No comments:

Post a Comment