Jump to content

Recommended Posts

Dear all,

I am working with  HC SR04(ultrasonic sensor).,MSP430G2553 and TLC5940nt. I  want to display a message using TLC5940nt when the HC SR04 detects an object.

P2.1 to VCC

P2.2to GND

P2.4 to trigger

P2.1 to echo


For TLC5940nt,

P1.0 to XLAT

P1.1 to BLANK

P1.3 to DCPRG

P1.4 to GSCLK

P1.5 to SCLK

P1.6 to SOUT

P1.7 to SIN

P2.6  to XERR

P2.7 to VPRG


As I am a beginner please help me out with the connections and also with energia code..Thank you in advance.



Vamsi Krishna.R


Link to post
Share on other sites

For the HC-SR04 with Energia - check out this post - http://forum.43oh.com/topic/2470-hc-sr04-ultrasonic-sensor-w-energia/

As I noted on that thread - the device is 5v - I wouldn't expect it to run correctly on the launchpad's VCC - you may see unexpected results.


Looks like there is a lot of code on the forum for the TLC5940 with standard C, but not Energia.  Searching through some of the threads may help though.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...