Let's Make Robots!

How to make light up antenna for your robot

touch sensor with colour changing LED

These whisker/antenna sensors work like normal touch sensors but change colour when they touch something.
The first video is my original prototype using a single coloured LED. It is the same circuit shown here.

 

 

 

 

 

 

 

 

 

 

 

The second video is my final prototype with the bi-colour LED. It is just as easy to make and looks better.

 

 

 

 

 

 

 

 

 

 

The third video shows the centipede in action with the three antenna. Input from the rear antenna just stops it from reversing too much in a tight corner with the present code.

New_antenna_closeup__small_.jpg

 Click on the photos for a closer look :-)

Tail_sensor_2__small_.jpg

The photo below shows how I have bent the wires back and into the board again for greater strength.

Tail_sensor_1__small_.jpg

Antenna_Schematic_1.jpg

This is a simple digital input sensor that can be used on any robot. It can run on 3.3V although the 220 ohm resistor will need to be reduced to 75 ohms.

The digital output has a 1K resistor in series to protect the digital pin of the processor in case it is accidently set to output.

When the antenna is not touched the output is held low by the 4K7 resistor.

The red LED does not light up as both connections go to ground by resistors. The green LED is always powered as it has positive connected directly to it's anode and the cathode goes to ground through the 220 ohm current limiting resistor. My antenna use a bi-colour LED with a common cathode but a seperate red and green LED can be used.

When the antenna hits an object and bends enough to touch the ring around it the output is now connected to the positive as is the anode of the red LED.

Those who are new to electronics might think that both LEDs would light up as the both have their anodes connected directly to positive and their cathodes are connected to ground by a common current limiting resistor.

This is not so. LEDs require a minimum voltage across them befor they conduct called a forward voltage drop. The red LED typically has a voltage drop of 2.1V. The green typically has a higher voltage drop of about 2.4V. Because they are wired in parallel they can only have one voltage across them so once the voltage reaches 2.1V, the red LED comes on and prevents the green LED from turning on.

Other colours can be used as long as the LED with the highest voltage drop is the one wired directly to the positive otherwise the colour won't change when the antenna is touched. 

While I have used a simple loop of wire to make my switch any switch will do. The advantage of the wire loop is that it works in any direction.

The disadvantage is that is the antenna hit something hard enough then the wire loop may get bent out of position causing the output to stay high. A lot depends on the length and springyness (is that a word?) of your antenna wire. 

Straightened paper clips is a popular source of wire. My loops are just the offcuts of my component leads.

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

The spring I used for the tail was from a toy dinosaur. Fine steel cable ran through it to operate the neck. I have put that on the prototype which goes back to China on Monday just to give them ideas.I hope they will make a small kit from the antenna.

For most robot builders, the humble paper clip is probably the best. They come in different sizes and thicknesses. I found that I had enough resistance in the spring connections for both red and green LEDs to come on so I am thinking of going to a craft shop that sells fine brass wire and see if I can make a better spring out of that. Brass is easy to solder to and has a lower electrical resistance.The antenna on the front are just tinned copper wire but they are too soft and get bent out of shape to easy.

 

Try guitar strings instead of brass wire.
I will have to find a music shop and check em out. Thanks for the reminder :-)

Another lovely walkthrough - and it even make sense to me.
Simple, well designed, diagrams, explanations - what more could anyone ask for?

Thanks for posting this, and I thank Rik for pestering you to post it :)

Of course I am now going to pester Rik for another edition of the PULSE. What say you Rik? It's about time for another edition :D

 

I took knowingly.
We want a PULSE, we want a PULSE :D
TWSS
i wish there was a "rolling eyes while grinning emoticon"