555 timer LED flasher
The most famous chip in electronics, blinking an LED about once a second.
Shop by category
Shop all componentsMost motor drivers are made of half bridges: two N-channel MOSFETs, one switching the output to the supply and one to ground. Turning on the top MOSFET needs a gate voltage above the supply, which a gate driver such as the IR2104 makes with a bootstrap diode and capacitor. The IR2104 also adds dead time so both MOSFETs are never on together. This project builds one half bridge on a breadboard and drives a 12 V gear motor with PWM from a Nano, speed set by a knob.
Check for shorts before every power-up; a shoot-through can burn the MOSFETs.
Tick anything you already have and the total updates.
Follow the colours: red is power, dark grey is ground, blue is a signal.
12 V adapter for the bridge and IR2104; Nano from USB, grounds joined.
half_bridge.inoVerify & upload in Electrolarkconst int IN = 9, SD = 8;
void setup() {
pinMode(SD, OUTPUT);
digitalWrite(SD, LOW); // bridge off
// Timer1 to ~3.9 kHz PWM on pin 9 (prescaler 8, phase-correct 8-bit)
TCCR1B = (TCCR1B & 0b11111000) | 0x02;
delay(500);
digitalWrite(SD, HIGH); // enable
}
void loop() {
int duty = map(analogRead(A0), 0, 1023, 0, 242); // stay below 100% so the bootstrap can refill
analogWrite(IN, duty);
delay(10);
}
The bootstrap capacitor or diode is wired wrongly; check VB and VS.
Gate drive is weak or PWM too slow; check the gate resistors and wiring.
Motor noise; add a capacitor across the motor and keep grounds short.
The bootstrap capacitor recharges only when the low MOSFET is on, so leave a little off time.
Build a second half bridge; two together make a full H bridge.
No, they need about 10 V on the gate, which the IR2104 provides.
11 parts: IR2104 Half-Bridge Gate Driver IC, 2 × IRF540N N-Channel Power MOSFET, 1N5819 Schottky Diode (Pack of 5), 2 × Electrolytic Capacitor by Value, Resistor Assortment Kit (30 Values), Generic Nano CH340 Development Board (Soldered), Rotary Potentiometer Module 10k (3-Pin), 200RPM 12V Low Noise Dc Motor With Metal Gears - Grade A, DC Power Adapter (5.5x2.1mm), Solderless Breadboard, plus 1 more. Tools: Digital Multimeter. On this page you can tick the parts you already have and add only the rest to your cart.
It is a advanced project and takes about 3 hours. The build on this page has 7 steps.
No. This page has the complete, tested code (half_bridge.ino).
About ₹919 for the parts at the prices on this page, plus tools if you do not have them. Quantity price breaks lower the cost when you build several.
What a half bridge is; How bootstrap gate drive works; Why dead time matters.
Check for shorts before every power-up; a shoot-through can burn the MOSFETs.
The most famous chip in electronics, blinking an LED about once a second.
Press once and the light stays on for about 11 seconds, then goes off by itself.
A running light like the one on Knight Rider, made from two classic chips.
Touch two wires with a fingertip and an LED lights: skin current switches a transistor pair.
Lessons are free to read. Maker (₹499/month) and Pro add quizzes, worked problems and certificates, paid with your Geekobot account. See plans
Learning project. Check every circuit and the datasheet of each part before you power it up.