vamsi1994 0 Posted February 22, 2015 Share Posted February 22, 2015 HI Everyone, I am doing a project with MSP430G2553 and HC SR04(ultrasonic sensor). I am a beginner so can you please provide me with a energia code for displaying a message.Thank you in advance. Quote Link to post Share on other sites
icserny 9 Posted February 22, 2015 Share Posted February 22, 2015 You can adopt an Arduino project. For example this: http://arduinobasics.blogspot.hu/2012/11/arduinobasics-hc-sr04-ultrasonic-sensor.html Notes: 1. The HC-SR04 module requres +5V supply. 2. A voltage divider or a current limiter resistor may be required to receive the ECHO signal since the MSP430G2553 does not tolerate the 5V signal. Quote Link to post Share on other sites
vamsi1994 0 Posted February 22, 2015 Author Share Posted February 22, 2015 I am doing a project in texas instruments,so the MSP430 launchpad is must.Is there any other alternative.?? Quote Link to post Share on other sites
Rei Vilo 695 Posted February 22, 2015 Share Posted February 22, 2015 At what voltage does the HC SR04 operate? The MSP430G2553 works at 3.3V. Quote Link to post Share on other sites
eurol 0 Posted March 6, 2015 Share Posted March 6, 2015 HC-SR04 I have can work with launchpad (3.6V). I can give you a code for IAR. Quote Link to post Share on other sites
kodi 16 Posted March 24, 2015 Share Posted March 24, 2015 I am doing a project in texas instruments,so the MSP430 launchpad is must.Is there any other alternative.?? I did this some time ago, but AFAIR it was done like this - power up the HC-SR04 by 5V from the launchpad. It can be triggered directly by MSP430, however to not damage the MCU the receiving pin of the MCU has to be connected to 2/3 voltage divider, Works like a charm. As last resort you can power the sensor by the 3.3V bus, but the range will be limited to about half a meter (5V powered sensor was giving me exact readings up to 4 meters). 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.