Thank you! for sharing the schematics and code : )
@Kimihoayto_lovesanime5 ай бұрын
hello where do you make the schematic?
@nextLevelVibesss4 ай бұрын
why does my servo keep spinning around and doesnt stop on the angle i want it to stop
@harinichandru8574Ай бұрын
Sir what is battery name
@anaclaro6359 ай бұрын
Me parece un proyecto maravilloso. Si compartieras el código sería sublime.
@lxgdesign9 ай бұрын
Ohh, i used the same code with the path-finding robot, just change alittle bit
@anaclaro6359 ай бұрын
Lo buscaré porque voy a intentar hacer tú proyecto este fin de semana ❤
@lxgdesign9 ай бұрын
//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
@lxgdesign9 ай бұрын
I updated my code and schematic, check the description box
@anaclaro6359 ай бұрын
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
@ezekielmanahan24414 ай бұрын
why the code says "Compilation error: NewPing.h: No such file or directory"