Robin Graham | 18/01/2022 00:26:08 |
1089 forum posts 345 photos | I have had an unusual request from a 'performer' in my town. She wants to adapt a sort of robotic toy horse for a piece of theatre. If interested you can see the toy horse doing its thing here and an example of the proposed theatre here. The toy responds to sensors on various parts of its body. These are simply aluminium foil patches connected by single wires to the control board in the body: I assume that these must be capacitive sensors. For practical purposes it probably doesn't matter too much, as I can just move the sensors to where the client wants in a new framework. But how do they work? Can any of the electronics boffins on here explain? Robin.
Edited By Robin Graham on 18/01/2022 00:51:43 |
Joseph Noci 1 | 18/01/2022 05:29:56 |
1323 forum posts 1431 photos | Robin, Cannot be said definitively as there are dozens of ways of doing that..two most likely options are a 'mains-hum' detector - lots of AC mains 50hz noise about, picked up by our bodies, and when your hand is brought near the foil, a high gain amplifier with possibly a 50hz bandpass filter amplifies this hum, which is then detected ( diode type envelope detector, sort of like am AM radio audio demodulator). 2nd possibility is more complex and a bit more reliable - the wire and foil is part of an RF oscillator such that when you contact or come near the foil, the oscillator is de-tuned and either the change in frequency or amplitude is detected. More reliable since if the performances are given in a rural setting, maybe there is not enough AC hum 'in the air'...This along the line of the Therimin musical instruments. The more modern technologies use many techniques - such as measuring capacitance change as you touch the sensor area - there are IC's that do all that in a small package - often used for touch sensitive keyboards, home appliance panel touch keys, etc. As to moving the sensors and keeping the sensing result, I would suspect you have a good chance of success. Try to make sure there is no metallic object behind the area you you wish to fit the foil - likewise, don't route the wire near metal bits, etc. Should be easy to test. If you want to know more about what you have, try trace a little of the circuit from where the foil wires attach to the board - probably through a capacitor and then to either a transistor amplifier of op-amp amplifier I would think..I suspect this setup will be the mains hum detection type of setup. Joe |
Robin Graham | 19/01/2022 01:10:57 |
1089 forum posts 345 photos | Thanks for your reply Joe. I knew about the RF oscillator thing, but I doubted that this toy was that sophisticated. I didn't know about the AC hum thing though. Before posting I did a bit of research and found a circuit which uses a simple voltage divider and a Schmitt trigger. I wondered if that might be the way it worked - it is here . I also found a recipe for an Arduino based sensor here . Both of these are DC as far as I can see. Can you shed any light on how these work? Best regards, Robin. Edited By Robin Graham on 19/01/2022 01:11:55 |
John Haine | 19/01/2022 06:44:57 |
5563 forum posts 322 photos |
|
Joseph Noci 1 | 19/01/2022 07:31:01 |
1323 forum posts 1431 photos | Robin, the first link ( schmitt trigger) falls in the category of the 'hum detector' except it detects any voltage transient level - most often your body with develop detectable levels of static electricity and that will trigger the schmitt. Removing finger contact will cause the capacitor in that circuit to discharge, removing the voltage on the schmitt input, and the output will then fall back to its inactive state. That circuit will generate a 50Hz pulsing output if you are in proximity of a strong AC field and you touch the pad - that 50Hz signal will appear on the schmitt input an the output will pulse. How that signal is/can be used depends on the electronics in the control board. That arduino implementation is more complex. A digital output pin generates a fixed pulse train. An input pin feeds a timer/counter. If the two pins are connected together, the timer will count a number of processor clocks, which equate to the time interval between the pulses on the output pin. So if you vary the period of the output pin pulses, the counter value will vary as well. Now connect the output pin to the input pin through a large value resistor, and place a capacitor ( the sense pad or foil) on the input pin. Now you have an RC network which delays the arrival of the pulse on the input pin, allowing the counter/timer to clock up a larger value. Add more capacitance ( your finger, a capacitive increase through your body to the air and ground) and the pulse is delayed further, and the count value increases more. That count is read and the finger contact detection computed... The link John Haine attached is in the category of IC sensors I mentioned in my first post - there are many of that type available - However, I guess for your purpose you don't really want to start experimenting with other types as it may have influence on the interface with the controller board. As a test, just connect a wire to one of the pads, and extend the wire say 200mm to another spot on the torso and add another foil pad to the wire end and try it - I am sure it will work. |
John Haine | 19/01/2022 08:38:52 |
5563 forum posts 322 photos | It was just that the link had some explanatory text, and it's quite likely that the unit uses that sort of device. |
Robin Graham | 20/01/2022 00:23:43 |
1089 forum posts 345 photos | Joe - many thanks for taking the time to explain in detail the two circuits I linked to. My knowledge of practical electronics is rudimentary but I have enough general physics to follow your explanations and I think I now understand how they work. Following your suggestion (sort of) I stuck a 250mm length of self-adhesive copper tape (just because I happen to have a roll and it was easy) to one of the sensor pads, and touching the strip anywhere works fine - despite the layer of adhesive. I'm now pretty confident that I can make this work. John - thanks for the link to the Adafruit site. Very interesting, but as as Joe guessed I'm not, at the moment anyway, planning to replace the control board, just redistribute the sensors on a new frame. It's a tempting prospect though! My reason for starting this was just curiosity about how these things work. I'll probably have further questions when I get the animal 'on the slab' to extract the processor. Robin. Edited By Robin Graham on 20/01/2022 00:24:33 |
Please login to post a reply.
Want the latest issue of Model Engineer or Model Engineers' Workshop? Use our magazine locator links to find your nearest stockist!
Sign up to our newsletter and get a free digital issue.
You can unsubscribe at anytime. View our privacy policy at www.mortons.co.uk/privacy
You can contact us by phone, mail or email about the magazines including becoming a contributor, submitting reader's letters or making queries about articles. You can also get in touch about this website, advertising or other general issues.
Click THIS LINK for full contact details.
For subscription issues please see THIS LINK.