LEDS

hello all

i'm making a robot, can you tell me how can i connect LEDs for signal purpose. like i will be conecting two servo on the front wheel and one on which IR sensor will be mounted. i want all the four thing 3 servo 1 ir sensor to be connected to LED which can give me signal.

 

thanks

Let me see if I understand

Let me see if I understand you.

You want an IR sensor. Got it.

You want two servos to drive the wheels. Got it.

You want another servo to turn the IR sensor. Got it.

You want one LED that signals what? When there is some activity from the servos or IR sensor?

You can just connect the LED to its own digital output, through an appropriate resistor (I’ve responded to one of your posts on how to select the value). Then in software, you can turn the LED on or off by setting the output high or low.

If you have multiple LEDs, you could signal different states. With two LEDs, you could have both on means forward. Left one means turning left. Right one means turning right. Flash on and off means back up. Alternately flashing left-right means the IR servo is turning.

There are also multi-color LEDS, so you could get pretty creative in how you signal what is going on in your robot.

Another nice way to signal what is going on in your robot is to add a speaker. I added a little piezo speaker to mine, and I find it is helpful for troubleshooting and also just adds a lot of personality. Search the site for adding sound or speakers and you should find some good info.

thanks

thanks.

i always want to ask quetion so that i can be clarify quickly. basically i am a 13 year old boy. and i am very much interesed in making robot. i love engineering. and somehow i will show you my robot in next 2 month as i am reearching about it right now.