RF switches with Netduino - Netduino Plus 2 (and Netduino Plus 1) - Netduino Forums
   
Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

RF switches with Netduino


  • Please log in to reply
2 replies to this topic

#1 Wernfried

Wernfried

    Advanced Member

  • Members
  • PipPipPip
  • 33 posts

Posted 14 January 2015 - 01:36 PM

This is my first contribution to this forum.

 

I managed to control RF switches with the N+2. There have been only samples available for Arduino, that's why I ported them to C#. The main problem was, that the RC switches are expecing pulses with a length of 250µs, which cannot be done with Thread.Sleep in NetMF.

 

Therefore I wrote a loop using the ticks of the prcessor and running in a hih priorized thread. This works well, but blocks the processor. To acheave this, I also found a way using SPI to produce the necessary pulses.

 

Currently I only have tested it with RF switches from InterTechno using the EasyHome codes. Several other codes are only adopted from the Arduino library but not yet tested with real RF switches.

 

The EasyHome codes are allowing not only switching but also dimming. Since I do not have dimmable switches, I didn't implement these codes yet.

 

If someone is interested in this library, please contact me in a private mail. I will give you the sources with the wish of any feedback. Until it s not stable tested I will not publish this library somewhere else.



#2 bulletprooffool

bulletprooffool

    Member

  • Members
  • PipPip
  • 12 posts

Posted 02 February 2015 - 08:26 AM

Morning,

 

I am sure MANY people are interested in how you did this.

A quick tutorial, perhaps posted on Porject showcase is sure to help many people.

 

I would be the first person reading this, as I have a similar project on the go - but am nowhere near getting it up and running yet.



#3 Wernfried

Wernfried

    Advanced Member

  • Members
  • PipPipPip
  • 33 posts

Posted 02 February 2015 - 02:32 PM

As I wrote, I can share my library. But since it is only tested with one type of devices (code is implemented for a bunch) I will not publish the sources. In the past I've got a lot of negative responces in such cases.

 

If someone is interested in the sources, pm me.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.