Archive for February, 2007

PWM variable control of lights and motors

Saturday, February 24th, 2007

Pulse Width Modulation (PWM) as it is used in electronics is the greatest thing since sliced bread.

PWMschem 

What it allows us to do is regulate the flow of energy with out wasting so much of it. In the early days if you had a 12 volt battery and you wanted to drive a 6 volt lamp you could use a transistor to regulate the voltage down to 6 volts but half of the energy was wasted as heat in the transistor. PWM uses the adveatage of time. A 6 volt light buld or a motor or many other devices can actually run at 12 volts just not for a long time. So we take advantage of that by pulsing. For instance, having the lamp on for 1/2 of a second and then off for 1/2 of a second would be like delivering 6 volts for one second. Of course you could call that blinking but if you speed that up about 100 times and do it at a frequency of 100 Hertz it’s so fast you can’t see the blink. Whats more the filiment of the light buld doesn’t have time to heat up to the 12 volt level so it dosen’t know the difference eather. It thinks its running at 6 volts. Caution - results may vary depending on the type of lamp your using but negative effects can be reduced by adjusting frequency and duty cycle (on and off time).

What about the transistor? Yes there is still a transistor involved but idealy it is working just like a switch. When it’s off there is no current flow and no power lost. And when it’s on all the current goes through it to the lamp and none is lost in the transistor (switch).

Here are some cleaver links I found that might help.

http://www.cpemma.co.uk/pwm.html

http://www.uoguelph.ca/~antoon/circ/pwm555.html

http://www.acroname.com/robotics/info/concepts/pwm.html

Capacitive Proximity Sensing

Friday, February 23rd, 2007

      Here’s a neat magic trick for a user interface. It’s called capacitive proximity sensing. It can detect the presence of a finger or a hand or a body on the opposite side of a wall. This can be really handy when you want the observer to interact with something but have the interface be completely invisible.

ProximityMagic     

     The technique involves three parts: One, an oscillator circuit that uses a metal plate as the capacitor that effects the frequency. Two, a frequency divider that averages out all the garbage that might be picked up by the metal plate. and Three, a circuit that detects changes in the average frequency.

                                        Schem

 Here’s a rough schematic using a very simple circuit. In the schematic I have it lighting an LED but this could go into the Logochip or another circuit.

I have data sheets for the two Integrated Circuits used in the circuit here:

           the CD40106      and the CD4040