Last active
November 2, 2018 23:58
-
-
Save giljr/734d7ec1b56bb4b6cb4384437b9d2a8d to your computer and use it in GitHub Desktop.
L298N — Dual Full-Bridge Driver https://medium.com/jungletronics/l298n-dual-full-bridge-driver-337321f593ee
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Project name: L298N - Dual Full-Bridge Driver | |
Darlington Transistor Arrays Based - 3A@50v peak | |
Flavour I - 1 Motor @5v | |
*/ | |
#define IN1 6 | |
#define IN2 7 | |
void setup() { | |
pinMode(IN1, OUTPUT); | |
pinMode(IN2, OUTPUT); | |
// Set initial direction | |
digitalWrite(IN1, LOW); | |
digitalWrite(IN2, HIGH); | |
} | |
void loop() { | |
// nothing here:) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment