I wired a relay to the VCC, GND and the GPIO that's shared with the internal LED. I uploaded the example blink sketch and it worked exactly as expected. Everytime the LED flashed, the relay clicked on.
Yay, right?
That's with it powered by the FTDI via USB.
EVERY other power method I've tried fails.
The specs say the pro mini can take up to 12V on the RAW pin. So I tried a 3S lipo that measured at 11.7. The lights shine BRIGHTLY but don't blink and the relay is simply ON.
Whoa. What happened to voltage regulation? Hmm.
So I try 7.2V... the light blinks, but the relay doesn't click. What??!?! The light ON the relay also shines... but again, no click.
OK, maybe I blew the relay with that 3S somehow... so I connect the FTDI back up and it works perfectly again.
The only non-FTDI setup that I can make work is a 1S (3.7V) directly to VCC.
What am I doing wrong? Why can't I power it with a 3S (as long as the battery isn't charged above 12V)?
srnet:
And with the external supplys on the RAW pin the VCC voltage on the Pro Mini is ?
Shame on me for assuming it'd be 3.3V, cause... you know... regulator. I'll go check.
srnet:
What type of diode do you have across the relay coil ?
The absent type. I haven't really used relays much and didn't realize it was a good idea. I did some quick Googling and I see it is. But it obviously isn't an absolute requirement. I've used this same relay with my rPi in essentially the same way and it works fine. In that case, the output is 5v.
And this is a 5v relay... I didn't know if it would work at 3.3v or not. I was pleasantly surprised that it did - when powered via the FTDI. But it doesn't otherwise. That's where I'm confused.
OK, so with the external supply on RAW, the VCC measures 3.3V... except for the 11.7V input it measures 9V. So obviously it can't handle that.
At 7.2V and 6.6V it comes out 3.3V... and I guess that's not enough to trigger the relay.
So why does the FTDI? Well, with that connected, VCC measures 3.5V. Apparently that IS enough to trigger the relay.
At this point I'm not sure what the best way to proceed is... but I think it will begin with not using this Pro Mini. I've got other tools to work with.
Just about any coil, without a kickback diode, will eventually destroy the circuitry to which it is attached. There may already be a diode on your module.
That's AFAIK a 5volt only relay module.
Can't be used wth 3.3volt processors.
An Uno can power one relay module from it's 5volt pin when the Uno is powered by ~12volt on the DC socket.
Two relay modules (2*~75mA) could already overheat the onboard 5volt regulator.
Leo..