Ok so the unit is working great. There's just one small thing. When I was testing different sketches out, I noticed that when the code said "HIGH" it would make the relay pin "LOW" and vice versa. I tried a few different sketches and uploaded and re-uploaded and it just kept on doing this. To add More confusion, I tried the classic "Blink" sketch and connected the relay to pin13, but when I did, the LED would light up at the appropriate time, but then when it went low, the output would go high and therefore activate the relay. Like, totally out of phase with the LED. So instead of breaking my brain over a problem that might just be explained by this Nano's country of origin (China) I just went back to the original pin I was using and the original sketch and just swapped LOW and HIGH. Seems to be working great. I'm still confused, though.
Top Comments