Friday, June 25, 2010

Upgrade your RC Transmitter with a DIY Tilt Motion Control Module

June 24, 2010

If you are into Radio Control Models or robotics chances are that you have an old RC transmitter laying around. This article describes how to create a motion control module for your RC transmitter, that will allow you to control your model or robot by simply tilting the transmitter case. That's right not sticks!

Demo

Testing one axis:

Schematic


How it Works

The RC transmitter uses a potentiometer for each axis, it acts as a voltage divider sending a voltage of 0..5V (the middle position corresponds to 2.5V) to the analog input that is converted into a pule of  1..2ms that is sent over RF.
This module converts (amplifies and shifts) the accelerometer analog output , usually  1.65 +/- 0.4V to the same range of the potentiometer and sends it to the transmitter instead.
An op-amp in an inverting amplifier configuration is used. Vref is set manually by tuning the output to be 2.5V (or the PWM pulse to be 1.5 ms). However it is possible to calculate the theoretical value as follows:
Note that according to the rules of  a feedback op-amp the voltage on it's inverting/non-inverting terminals tends to equalize so   V(+) = V(-) and in our case  = Vref.
Since no significant current enters the op-amp , the currents going through R1 and R2 are equal:
( V(-) - Vin ) / R1 = ( Vout - V(-) ) / R2  
(Vref - Vin) / R1 = (Vout - Vref) / R2
solving for Vout gives us
Vout = Vref -  R2/R1 (Vin - Vref)    =   Vref( 1 + R2/R1)  - R2/R1 * Vin
now let's do some notations
G = - R2/R1
Vout = Vref( 1 - G)  -  G * Vin
According to our schematic  G =  R2 / R1 =  - 5.12 , this will convert the accelerometer swing of 0.4 V to a swing of   0.4 V * 5.12  ~  2V .
We want  to make   Vin = 1.65  correspond to a  Vout = 2.5 so we  have the equation
2.5 =  Vref (1 + 5.12)  - 5.12 * 1.65
from here we find
Vref =  (2.5 + 5.12 * 1.65 ) /  (1 + 5.12) = 1.78888 V
Well, this is the theoretical value , in practice we adjust the trimmer R3 until the output is 2.5 while the accelerometer is in laying in horizontal position (has an output of 1.65V).

How to Build

To build use a small proto-board following schematic. Part numbers are mentioned on schematic. Hook-up with the transmitter is described in images below and on the schematic. For accelerometer use Acc_Gyro or similar module, or build your own accelerometer break-out board.



The module is mounted in a free space under antenna using double-sided foam tape - best way to mount an accelerometer to avoid vibration. Note that we get +5V power for the module from the potentiometer contacts. You can test  with a led that the power contacts can deliver at least 20mV, the module uses far less <5mA.


Here is a close-up of the module, as you can see I did  my own accelerometer break-out board, but you can buy a pre-assembled one , there are many choices. You will need an analog accelerometer for this project.

Enjoy your new RC Tilt Transmitter. For any comments/questions use the comment form below.

//starlino//

Thursday, June 24, 2010

Triboluminescence - Batteries, Glow Paint and Fire

Circuit Skills: Perfboard Prototyping, sponsored by Jameco Electronics


[Note: Jameco is currently offering all the parts I used in this video as a perfboard prototyping kit -- just add wire & solder. ]



When you think "DIY electronics," one of the first images that likely comes to mind is of parts and wire soldered to a standard piece of perforated circuit board -- and that makes sense. Perfboard is widely used because it's so versatile. Essentially, it's just a grid of potential solder-point connections. You can trim it down to just the size you need, or leave extra space for future enhancements, or revisions, if need be.
Subscribe to the MAKE Podcast in iTunes, download the m4v video directly, or watch it on YouTube.
In this latest installment of the Circuit Skills video series, I demo my own approach to perfboarding by building a rather unusual guitar effect -- the PWM, a design I found in Tim Escobedo's excellent Circuit Snippets collection.


(For those interested, I also drew up a more traditional version of the schematic - available here.)
In order to get this thing making sound ASAP, I omitted the stompbox switch and its somewhat complex wiring. However, the optional LFO add-on seemed a bit too good to pass up, so I did incorporate that into my build.
I knew from previous projects that the 40106 Schmitt Trigger IC could make some cool experimental synth sounds. It turns out that the chip also works as a surprisingly sweet distortion pedal, if you're into that tough & spazzy fuzz-bot kind of sound (which I am). If you need a boost getting started with your layout, here's a basic diagram of all the on-board connections I made (just much neater than how I actually made 'em)
If you build a PWM, have fun! And do share build pics and impressions in the comments below.
More: