How to Drive a Relay or Motor from Arduino with a Transistor
Wire a relay, DC motor or 12 V LED strip to an Arduino or ESP32 pin with a PN2222A or a MOSFET: base resistor math, flyback diode, pin limits and heat.
Wire a relay, DC motor or 12 V LED strip to an Arduino or ESP32 pin with a PN2222A or a MOSFET: base resistor math, flyback diode, pin limits and heat.
A 10000 mAh power bank delivers about 6000 mAh at 5 V, roughly 1.4 charges of a 5000 mAh phone. The maths of 3.7 V, 5 V and conversion loss.
A quarter-wave LoRa whip is about 82 mm for 868 MHz and 78 mm for 915 MHz; a dipole is twice that. Where the numbers come from, which channels they cover, and why the full quarter wavelength is too long.
A 10 mil trace on 1 oz outer copper carries about 0.89 A for a 10 °C rise and 1.2 A for 20 °C, by IPC-2221. A table for 4 to 50 mil, inner layers, 2 oz copper and the voltage drop.
PWM switches a pin fully on and off. Why an LED looks dimmer, why a motor slows, why 50% duty looks 76% bright, and what frequency to use, with numbers.
Series cells add voltage, parallel cells add capacity and current. Worked examples for a 3S2P 18650 pack, a 13S4P 21700 e-bike pack and a 4S LiFePO4 12 V battery, from the cell datasheets.