I have finally gotten back to this project and created a working sketch that communicates with my Vera controller. I have this set up as a 3 button on/off (6 switches on the board) and have that working successfully with Vera. I also have my Vera sending temperature data back to the OLED display. It alternates between the outside temp and room temp for my master bedroom where the switch is located. I have posted the Arduino sketch under source code here.
@toyman said in NModule DC Fan / PWM shield:
Can the FET withstand continious 2A load? I have one meter long 5050 strip
FDD8447L is rated for 15A continuous load. You don't want to try that because it's possible only with a big pad and 2oz copper PCB, but 2A will not be a problem on this board, there's plenty of margin
@kalina, Thanks. So it will not work for my configuration. Wall switch (push button) is already installed. No possibilities to draw more electrical wires.
Moreover, if i put the board near the light, i have just the Neutral and the return wire from the wall switch. No Live wire to power on the mysensors board.
I think in my ase the best way is to manage everything in my garage in the electrical main board where all the wires are mapped. I can get L + N for mysensors power supply. And i can continue to reuse the original wall switch independently of the Mysensors board.
Added sketch, which also supports an additional mini PIR sensor. It's what I needed, you can comment to #define out.
Also changed the regulator to a smaller one, which supplies up to 100 milli Amp, which is plenty enough. That way I can keep the circuit smaller on the PCB. Which allows me to create a smaller housing.
A couple of things, you put the device to sleep so while it's asleep, it won't respond to the commands to change the relays. Since you are combining relays and sensors, you need to keep the unit awake and find a different way to send the sensor data occasionally. For the relay status, read the comments in the sketch. You are saving the relay state and then reading that on startup. You can eliminate all of that code and just set the relay to off in the setup section.