Add the following snippet to your HTML:<iframe frameborder='0' height='385' scrolling='no' src='https://www.hackster.io/56517/inolab-dual-motor-d55192/embed' width='350'></iframe>
This project was made by Innovation Lab at Bongilcheon High School.
Read up about this project on
Two motors are used simultaneously via the control unit.
int AIA = 5; int AIB = 6; int BIA = 9; int BIB = 10; void setup() { pinMode(AIA, OUTPUT); pinMode(AIB, OUTPUT); Serial.begin(9600); } void loop() { analogWrite(AIA, 200); analogWrite(AIB, 0); analogWrite(BIB, 200); analogWrite(BIA, 0); }
Please log in or sign up to comment.
Comments
Please log in or sign up to comment.