Jump to content

Recommended Posts

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.


Share this post


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.

Guest
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...