Forgot your password?
3828274838, July 18, 2012 in Energia - MSP
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.
How does it communicate with the remote? Infrared?
You know, it might work better if you went the ethernet route. No need to keep a pc on just as a server.
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?
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:
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:
You can post now and register later.
If you have an account, sign in now to post with your account.
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.