Muchísimas gracias, de verdad!! 🤗 Ya tengo listo el cubo de basura aunque creo que lo he hecho demasiado grande y no sé si el servo tendrá la fuerza suficiente para levantar la tapa 🤪 Ahora voy a cargar tu programa y probarlo antes de pegar los componentes en el cubo@@lxgdesign
Fantastic and beautiful thank 😊
Love it!
Thanks :))
Can you give me the code please
What model of arduino uno did you use?
Arduino Uno
A tôi vẫn đỉnh
:v, kỹ sư thất nghiệp, làm mấy thứ tào lao thôi e
Me parece un proyecto maravilloso. Si compartieras el código sería sublime.
Ohh, i used the same code with the path-finding robot, just change alittle bit
Lo buscaré porque voy a intentar hacer tú proyecto este fin de semana ❤
//as you want :))
#include //Servo motor library. This is standard library
#include //Ultrasonic sensor function library. You must install this library
#define trig_pin A1 //analog input 1
#define echo_pin A2 //analog input 2
#define maximum_distance 200
int distance = 100;
NewPing sonar(trig_pin, echo_pin, maximum_distance); //sensor function
Servo servo_motor; //our servo name
void setup(){
servo_motor.attach(10); //our servo pin
servo_motor.write(100);
delay(2000);
distance = readPing();
delay(100);
distance = readPing();
delay(100);
distance = readPing();
delay(100);
distance = readPing();
delay(100);
}
void loop()
{
if (distance
I updated my code and schematic, check the description box
Muchísimas gracias, de verdad!! 🤗 Ya tengo listo el cubo de basura aunque creo que lo he hecho demasiado grande y no sé si el servo tendrá la fuerza suficiente para levantar la tapa 🤪 Ahora voy a cargar tu programa y probarlo antes de pegar los componentes en el cubo@@lxgdesign