In this case, hand gestures mean tilt of hand in different direction. To detect different hand gestures, we will use the accelerometer ADXL345. The sensor will be attached with a breadboard and it shall detect movements and transfer the signals to the microcontroller. Once the direction is known the DC motors will work accordingly. There will be a chassis where the motors will be placed.
The control hand gestures for the car are forward tilt, backward tilt, left tilt, right tilt and no tilt to drive in forward, backward, left, right direction and to stop it respectively.
- Accelerometer-ADXL345
- RF Transmitter Receiver Pair 433 MHz - RXB6
- HT12D
- HT12E
- 4-Wheel Drive Chassis (comes with 4 DC motor on 4 wheels, each 12volts)
- Motor-Driver-L298
- ATMega-32
- Breadboard
- Jumper-wires
The rf module can be used with a HT12E and HT12D ICs, the connections should be according to the circuits given above,
- 1M in transmitter and 51k in receiver.
- 750k in transmitter and 33k in receiver.
We used 1M in the transmitter and 33k in the receiver.
ADXL345 uses I2C connection. The headers in codes section are used to work with it.
- GND
- VCC
- CS - feed 5v
- SDA - with atmega32's SDA(PC1)
- SCL - with atmega32's SCL(PC0)
When the accelerometer senses tilt in any direction, it gives different values, e.g when in positive x-axis, it gives a value between 0 to 9.8, when in negative x-axis, it gives a value betwen 0 to -9.8.
From the values read from accelerometer, we can easily identify in which side to go. So we send signals through the transmitter. A encoder is used here and we can send 4-bits
The receiver receives and sends the data to decoder, it then is sent to another atmega32 and in1,in2,in3 and in4 are controlled to move the motors.
Here motors of each sides are sorted so that both the wheels of a side moves in the same direction.
Forward - both side moves forward. backward - both side moves backward. right - left side moves forward, motors of right side are kept off. left - right side moves forward, motors of left side are kept off.