Florence 0 Posted November 22, 2014 Share Posted November 22, 2014 Hey guys! So I have 2 msp430g2553 launchpads and I am trying to build a IR line of sight communication system. Basically I have a IR led and IR photo transistor on both the launchpads including a visible led. So what i want to do is: Press the push button on one launchpad The IR signal from that launchpad goes to launchpad2 The visible led on launchpad2 lights up And vice versa So far I have created a program on Energia that turns the led on after pressing and releasing the push button. Then turns it off after pressing and releasing it again. But now I am stuck. I don't know how to use the analogRead() function in order to sense when the photodiode is illuminated and through that turning on the visible led on the protoboard. Quote Link to post Share on other sites
StefanWxx 2 Posted November 25, 2014 Share Posted November 25, 2014 Hi, I would do it other than with analogread(),...simply work with the IRSend and IRrecv Examples. Take a tsop31238 to receive. 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.