Jump to content
Sign in to follow this  
3828274838

12345

Recommended Posts

Very cool! I hadn't thought of doing this with a set of remote-controlled outlets that I picked up in the after christmas sale.

 

Curious, does the remote controlled socket use a relay or some sort of solid-state alternative?

 

I ask because if it uses a TRIAC or solid state relay and it can switch fast enough(probably limited by wireless protocol) you can rapidly switch it for pwm.

Share this post


Link to post
Share on other sites

I would like to use a Launchpad to control 8 relays, could this same code be used by making some more "ledPin"'s, one for every relay. Is the code converted to work on a MSP430, because it looks like it is done for an Arduino? Could someone give me some example how to edit the code so that it can be used for 8 relays?

Share this post


Link to post
Share on other sites

Energia == Arduino for MSP430 so yes, the code will run without modification on a LaunchPad.

Energia can be downloaded here: https://github.com/energia/Energia/downloads

You can use the following code to toggle any pin on the LaunchPad:

 

digitalWrite(, HIGH);
digitalWrite(, HIGH);

 

Replace with the pin name according to the silk screen e.g P1_4, P1_5, P2_1, etc. You can find the pin mapping here:

https://github.com/energia/Energia/wiki/Hardware

 

Robert

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.

Sign in to follow this  

×
×
  • Create New...