Thingiverse
MiniFrogCar
by WillemvD
2
Downloads
4
Likes
0
Makes
https://youtu.be/FjvrO9ZWBQU
This minirobot has two small geared motors and is brought alive by an ATtiny85 and a simple sketch:
int R = 0; //right motor
int L = 1; //leftr motor
void setup()
{ pinMode(R, OUTPUT); pinMode(L, OUTPUT); }
void loop(){
//forward
digitalWrite(R, HIGH); digitalWrite(L, HIGH); delay(1000);
//around left wheel
digitalWrite(R, HIGH); digitalWrite(L, LOW); delay(84);
//forward
digitalWrite(R, HIGH);
digitalWrite(L, HIGH); delay(1000);
// around r
This minirobot has two small geared motors and is brought alive by an ATtiny85 and a simple sketch:
int R = 0; //right motor
int L = 1; //leftr motor
void setup()
{ pinMode(R, OUTPUT); pinMode(L, OUTPUT); }
void loop(){
//forward
digitalWrite(R, HIGH); digitalWrite(L, HIGH); delay(1000);
//around left wheel
digitalWrite(R, HIGH); digitalWrite(L, LOW); delay(84);
//forward
digitalWrite(R, HIGH);
digitalWrite(L, HIGH); delay(1000);
// around r
Sign in to leave a comment
Sign in