Below is a diagram of how this works. I used a 2N4401 NPN transistor that “turns on” when the gate goes high or positive. This essentially allows it to switch the negative or ground leg of the circuit. I did this because the Arduino can’t turn a digital IO line to ground- just 0v or 5v. Continue reading “Using a Transistor to Control an LED or anything”
The PowerSwitch Tail II is a great and VERY simple way to have the Arduino control AC powered devices. I’ve used these in my LCC project. The Arduino can control these directly from a digital IO port, BUT you’re better off using a transistor to drive them, just in case…
You can get them at SparkFun.
Below the break is revision 4. Read the comments in the code. I’ll post a formal description of the software’s behavior soon.
Nice little gallery of pictures as things have come along:
The background for the project is simple, the mission- not necessarily so.
New Baby Bearded Dragon. Gotta have heat and light, on a schedule and deal with over/under heating conditions. I could fork over $60+ for a ready to go solution or I could make my own.
Guess which I went for? Arduino to the rescue!
Keep watching for pics, code and schematics as I build it. Basic requirements are here.