Hackster is hosting Hackster Holidays, Ep. 7: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Friday!Stream Hackster Holidays, Ep. 7 on Friday!
Arnov Sharma
Published © MIT

Mini DIY H-Bridge made from Fets

Made a simple H Bridge setup by using SMD Mosfets, Arduino is used as control unit.

BeginnerFull instructions provided1 hour500
Mini DIY H-Bridge made from Fets

Things used in this project

Story

Read more

Custom parts and enclosures

BASE

ROTATING HEADER

Schematics

sch

Code

Attiny Sketch

C/C++
int in1 = 0;
int in2 = 1;


void setup() {
 
 pinMode(in1, OUTPUT);
 pinMode(in2, OUTPUT);

}

void demoOne() {
 analogWrite(in1, 50);
 digitalWrite(in2, LOW);
 delay(10000);

 digitalWrite(in1, LOW);
 digitalWrite(in2, LOW); 
 delay(2000);
 
 digitalWrite(in1, LOW);
 analogWrite(in2, 50);
 delay(10000);
 
 digitalWrite(in1, LOW);
 digitalWrite(in2, LOW); 
 delay(2000);

}

void loop()
{
  demoOne();
  
 }

Credits

Arnov Sharma
310 projects • 311 followers
Just your average MAKER

Comments