i have build the $50 robot, and I have built the $50 robot with the sharp ir sensor.
i would like to modify the circuit, so that a buzzer or an led is attached to the output, not a servo. I want to build a sort of alarm, where is an object goes within lets say 20 cm of the ir sensor, a buzzer will go off with an led.
how can i do this? If i plug in an led with a 220 ohm resistor into the out part (left side of the $50 circuit) the led goes on, no matter what i put in the code, the led just lights up, the same with the buzzer it just goes off
i tried putting the code
servo_left(35);
servo_right(35);
then
servo_left(0);
servo_right(0);
then
servo_left(80);
servo_right(80);
in all the cases the led just lights up. I was thinking that i would have to use an electronic speed controller to power the led or the buzzer, to turn the PWM signal to a voltage. Is there any ohter way to do this? I do not want to spend $50 on an ESC, if there is an easier way! thx in advance