Kapasitor Bootsrap
Mosfet dan transistor
Bootstrap
Source Code
//Program to
/* code of bootstrap circuit for driving the high side MOSFET*/
// the setup function runs once when you press reset or power the board void setup() {
// initialize digital pin 2 and 3 as an output.
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
}
// the loop function runs over and over again forever void loop() {
digitalWrite(2, LOW); // turn the first Opt1 optocoupler OFF digitalWrite(3, HIGH); // turn the second Opt2 optocoupler ON delay(1000); // wait for 1 second
digitalWrite(3, LOW); // turn the second optocoupler OFF digitalWrite(2, HIGH); // turn the first optocoupler ON delay(1000); // wait for 1 second
}