You are on page 1of 23

GESTURE CONTROLL ROBOTIC HAND Power supply

The power supply designed for catering a fixed demand connected in this project. The basic requirement for designing a power supply is as follows, 1. The voltage levels required for operating the devices is +5volt. Here +5 Volts required for operating microcontroller. And as well as required for drivers and amplifiers and IR transmitters and receivers. 2. The current requirement of each device or load must be added to estimate the final capacity of the power supply. The power supply always specified with one or multiple voltage outputs along with a current capacity. As it is estimate the requirement of power is approximately as follows, Out Put Voltage = +5Volt, Capacity = 1000mA The power supply is basically consisting of three sections as follows, 1. 2. 3. Step down section Rectifier Section Regulator section

Design principle: There are two methods for designing power supply, the average value method and peak value method. In case of small power supply peak value method is quit economical, for a particular value of DC output the input AC requirement is appreciably less. In this method the DC output is approximately equal to Vm. A full wave bridge rectifier is designed using two diodes and the output of the rectifier is filtered with a low pass filter. The capacitor value is decided so that it will back up for the voltage and current during the discharging period of the DC output. In this case the output with reference to the center tap of the transformer is taken in to consideration, though the rectifier designed is a full wave bridge rectifier but the voltage across the load is a half wave rectified output. The Regulator section used here is configured with a series regulator LM78XX the XX represents the output voltage and 78 series indicates the positive voltage regulator 79 series indicates the negative regulator for power supply. The positive regulator works satisfactorily between the voltage XX+2 to 40 Volts DC. The output remains constant within this range of voltage. The output remains constant within this range of voltage. Circuit connection: - In this we are using Transformer (12-0-12) v / 1mA, IC 7805, diodes IN 4007, LED & resistors. Here 230V, 50 Hz ac signal is given as input to the primary of the transformer and the secondary of the transformer is given to the bridge rectification diode. The positive output of the bridge rectifier is given as i/p to the IC regulator (7805) through capacitor (1000uf/25v). The o/p of the IC regulator is given to the LED through resistors to act as indicator.

Circuit Explanations: - When ac signal is given to the primary of the transformer, due to the magnetic effect of the coil magnetic flux is induced in the coil (primary) and transfer to the secondary coil of the transformer due to the transformer action. Transformer is an electromechanical static device which transformer electrical energy from one coil to another without changing its frequency. Here the diodes are connected to the two +12volt output of the transformer. The secondary coil of the transformer is given to the diode circuit for rectification purposes. During the +ve cycle of the ac signal the diodes D1 conduct due to the forward bias of the diodes and diodes D2 does not conduct due to the reversed bias of the diodes. Similarly during the ve cycle of the ac signal the diodes D2 conduct due to the forward bias of the diodes and the diodes D1 does not conduct due to reversed bias of the diodes. The output of the bridge rectifier is not a power dc along with rippled ac is also present. To overcome this effect, a low pass filter is connected to the o/p of the diodes (D1 & D2). Which removes the unwanted ac signal and thus a pure dc is obtained. Here we need a fixed voltage, thats for we are using IC regulators (7805).Voltage regulation is a circuit that supplies a constant voltage regardless of changes in load current. This ICs are designed as fixed voltage regulators and with adequate heat sinking can deliver output current in excess of 1A. The o/p the full wave rectifier is given as input to the IC regulator through low pass filter with respect to GND and thus a fixed o/p is obtained. The o/p of the IC regulator (7805) is given to the LED for indication purpose through resistor. Due to the forward bias of the LED, the LED glows ON state, and the o/p are obtained from the pin no-3.

MICROCONTROLLER BLOCK DIAGRAM

PB0-PB7

PD0-PD7

The microcontroller used here is atmega 16 which has inbuilt ADC and counter along with microcontroller. The pin configuration and details are given below.

The ATmega16 is a low-power CMOS 8-bit microcontroller based on the AVR enhanced RISC architecture. By executing powerful instructions in a single clock cycle, the ATmega16 achieves throughputs approaching 1 MIPS per MHz allowing the system designed to optimize power consumption versus processing speed. The AVR core combines a rich instruction set with 32 general purpose working registers. All the 32 registers are directly connected to the Arithmetic Logic Unit (ALU), allowing two independent registers to be accessed in one single instruction executed in one clock cycle. The resulting architecture is more code efficient while achieving throughputs up to ten times faster than conventional CISC microcontrollers. The ATmega16 provides the following features: 16K bytes of InSystem Programmable Flash Program memory with Read-WhileWrite capabilities, 512 bytes EEPROM, 1K byte SRAM, 32 general purpose I/O lines, 32 general purpose working registers, a JTAG interface for Boundary-scan, On-chip Debugging support and programming, three flexible Timer/Counters with compare modes, Internal and External Interrupts, a serial programmable USART, a byte oriented Two-wire Serial Interface, an 8-channel, 10-bit ADC with optional differential input stage with programmable gain (TQFP package only),a programmable Watchdog Timer with Internal Oscillator, an SPI serial port, and six software selectable power saving modes. The Idle mode stops the CPU while allowing the USART, Two-

wire interface, A/D Converter, SRAM, Timer/Counters, SPI port, and interrupt system to continue functioning. The Power-down mode saves the register contents but freezes the Oscillator, disabling all other chip functions until the next External Interrupt or Hardware Reset. In Power-save mode, the Asynchronous Timer continues to run, allowing the user to maintain a timer base while the rest of the device is sleeping. The ADC Noise Reduction mode stops the CPU and all I/O modules except Asynchronous Timer and ADC, to minimize switching noise during ADC conversions. In Standby mode, the crystal/resonator Oscillator is running while the rest of the device is sleeping. This allows very fast start-up combined with low-power consumption. In Extended Standby mode, both the main Oscillator and the Asynchronous Timer continue to run. The device is manufactured using Atmels high density non-volatile memory technology. The On-chip ISP Flash allows the program memory to be reprogrammed in-system through an SPI serial interface, by a conventional non-volatile memory programmer, or by an On-chip Boot program running on the AVR core. The boot program can use any interface to download the application program in the Application Flash memory. Software in the Boot Flash section will continue to run while the Application Flash section is updated, providing true Read-While-Write operation. By combining an 8-bit RISC CPU with In-System Self-Programmable Flash on a monolithic chip, the Atmel ATmega16 is a powerful microcontroller that

provides a highly-flexible and cost-effective solution to many embedded control applications. The ATmega16 AVR is supported with a full suite of program and system development tools including: C compilers, macro assemblers, program debugger/simulators, in-circuit emulators, and evaluation kits. Pin Descriptions

VCC Digital supply voltage. GND Ground. Port A (PA7..PA0) Port A serves as the analog inputs to the A/D Converter. Port A also serves as an 8-bit bi-directional I/O port, if the A/D Converter is not used. Port pins can provide internal pull-up resistors (selected for each bit). The Port A output buffers have symmetrical drive characteristics with both high sink and source capability. When pins PA0 to PA7 are used as inputs and are externally pulled low, they will source current if the internal pull-up resistors are activated. The Port A pins are tri-stated when a reset condition becomes active, even if the clock is not running. Port B (PB7..PB0) Port B is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The Port B output buffers have symmetrical drive characteristics with both high sink and source capability. As inputs, Port B pins that are externally pulled low will source current if the pull-up resistors are activated. The Port B pins are tri-stated when a reset condition becomes active, even if the clock is not running. Port B also serves the functions of various special features of the ATmega16. Port C (PC7...PC0) Port C is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The Port C output buffers have symmetrical drive characteristics with both high sink and source capability. As inputs, Port C pins that are externally pulled low will source current if the pull-up resistors are activated. The Port C pins are tri-stated when a reset

Condition becomes active, even if the clock is not running. If the JTAG interface is enabled, the pull-up resistors on pins PC5 (TDI), PC3 (TMS) and PC2 (TCK) will be activated even if a reset occurs.

Port C also serves the functions of the JTAG interface and other special features of the ATmega16 as listed on page 61. Port D (PD7...PD0) Port D is an 8-bit bi-directional I/O port with internal pull-up resistors (selected for each bit). The Port D output buffers have symmetrical drive characteristics with both high sink and source capability. As inputs, Port D pins that are externally pulled low will source current if the pull-up resistors are activated. The Port D pins are tri-stated when a reset condition becomes active, even if the clock is not running. Port D also serves the functions of various special features of the ATmega16. RESET Reset Input. A low level on this pin for longer than the minimum pulse length will generate a reset, even if the clock is not running. The minimum pulse length is 0.1 vcc. Shorter pulses are not guaranteed to generate a reset.

XTAL1 Input to the inverting Oscillator amplifier and input to the internal clock operating circuit.

XTAL2 Output from the inverting Oscillator amplifier.

AVCC is the supply voltage pin for Port A and the A/D converter. It should be externally connected to VCC, even if the ADC is not used. If the ADC is used, it should be connected to VCC through a low-pass filter. AREF is the analog reference pin for the A/D Converter. ADC 10-bit Resolution 0.5 LSB Integral Non-linearity 2 LSB Absolute Accuracy 13 - 260 s Conversion Time Up to 15 kSPS at Maximum Resolution 8 Multiplexed Single Ended Input Channels 7 Differential Input Channels 2 Differential Input Channels with Optional Gain of 10x and 200x (1) Optional Left adjustment for ADC Result Readout 0 - VCC ADC Input Voltage Range Selectable 2.56V ADC Reference Voltage Free Running or Single Conversion Mode ADC Start Conversion by Auto Triggering on Interrupt Sources Interrupt on ADC Conversion Complete Sleep Mode Noise Canceller

Acceleration Sensor - 3 Axis


3 Axis Acceleration Sensor Board based on ADXL3XX from Analog devices. It is a first generation 3 axis acceleration sensor. User could get acceleration value of X, Y, and Z axis. And it is widely used in shock, slope, and moving detection. Output sensitivity could be select by simply set voltage level on few pins. The output of MMA7260Q is analog mode, so you need a A/D converter to read the acceleration value.
FEATURES

3-axis sensing Small, low profile package 4 mm 4 mm 1.45 mm LFCSP Low power : 350 ?A (typical) SingleSupply operation: 1.8 V to 3.6 V 10,000 g shock survival Excellent temperature stability BW adjustment with a single capacitor per axis RoHS/WEEE lead-free compliant

Specification Input Voltage - 3.3v Output Data - Analog data

Applications

Tilt-sensing applications Mobile devices Gaming systems Disk drive protection Image stabilization Sports and health devices

Motor
In any electric motor, operation is based on simple electromagnetism. A current-carrying conductor generates a magnetic field; when this is then placed in an external magnetic field, it will experience a force proportional to the current in the conductor, and to the strength of the external magnetic field. As you are well aware of from playing with magnets as a kid, opposite (North and South) polarities attract, while like polarities (North and North, South and South) repel. The internal configuration of a DC motor is designed to harness the magnetic interaction between a current-carrying conductor and an external magnetic field to generate rotational motion. Let's start by looking at a simple 2-pole DC electric motor (here red represents a magnet or winding with a "North" polarization, while green represents a magnet or winding with a "South" polarization).

Every DC motor has six basic parts -- axle, rotor (a.k.a., armature), stator, commentator, field magnet(s), and brushes. In most common DC motors (and all that BEAMers will see), the external magnetic field is produced by high-strength permanent magnets1. The stator is the stationary part of the motor -- this includes the motor casing, as well as two or more permanent magnet pole pieces. The rotor (together with the axle and attached commentator) rotates with respect to the stator. The rotor consists of windings (generally on a core), the windings being electrically connected to the commentator. The above diagram shows a common motor layout -with the rotor inside the stator (field) magnets.

The geometry of the brushes, commentator contacts, and rotor windings are such that when power is applied, the polarities of the energized winding and the stator magnet(s) are misaligned, and the rotor will rotate until it is almost aligned with the stator's field magnets. As the rotor reaches alignment, the brushes move to the next commentator contacts, and energize the next winding. Given our example two-pole motor, the rotation reverses the direction of current through the rotor winding, leading to a "flip" of the rotor's magnetic field, driving it to continue rotating. In real life, though, DC motors will always have more than two poles (three is a very common number). In particular, this avoids "dead spots" in the commentator. You can imagine how with our example two-pole motor, if the rotor is exactly at the middle of its rotation (perfectly aligned with the field magnets), it will get "stuck" there. Meanwhile, with a two-pole motor, there is a moment where the commentator shorts out the power supply (i.e., both brushes touch both commentator contacts simultaneously). This would be bad for the power supply, waste energy, and damage motor components as well. Yet another disadvantage of such a simple motor is that it would exhibit a high amount of torque "ripple" (the amount of torque it could produce is cyclic with the position of the rotor).

So since most small DC motors are of a three-pole design, let's tinker with the workings of one via an interactive animation (JavaScript required):

You'll notice a few things from this -- namely, one pole is fully energized at a time (but two others are "partially" energized). As each brush transitions from one commutator contact to the next, one coil's field will rapidly collapse, as the next coil's field will rapidly charge up (this occurs within a few microsecond). We'll see more about the effects of this later, but in the meantime you can see that this is a direct result of the coil windings' series wiring:

There's probably no better way to see how an average DC motor is put together, than by just opening one up. Unfortunately this is tedious work, as well as requiring the destruction of a perfectly good motor. Luckily for you, I've gone ahead and done this in your stead. The guts of a disassembled Mabuchi FF-030-PN motor (the same model that Solarbotics sells) are available for you to see here (on 10 lines / cm graph paper). This is a basic 3-pole DC motor, with 2 brushes and three commentator contacts.

The use of an iron core armature (as in the Mabuchi, above) is quite common, and has a number of advantages2. First off, the iron core provides a strong, rigid support for the windings -- a particularly important consideration for high-torque motors. The core also conducts heat away from the rotor windings, allowing the motor to be driven harder than might otherwise be the case. Iron core construction is also relatively inexpensive compared with other construction types.

But iron core construction also has several disadvantages. The iron armature has a relatively high inertia which limits motor acceleration. This construction also results in high winding inductances which limit brush and commentator life. In small motors, an alternative design is often used which features a 'coreless' armature winding. This design depends upon the coil wire itself for structural integrity. As a result, the armature is hollow, and the permanent magnet can be mounted inside the rotor coil. Coreless DC motors have much lower armature inductance than iron-core motors of comparable size, extending brush and commentator life.

MOTOR DRIVER L293D


The most commonly used H-bridges are L293D and L298. L293 have maximum current rating of 600mA while that of L298 is 2A. L293B and L293D are available in market. If we use L293B we have to put 4 protection diodes while in L293D, diodes are inside the IC. L298 requires external protection diodes.

L293D has two channels. i.e, we can connect two motors to the same bridge. I have driven 4 motors of 250mA using L293D, with 2 motor in each channel.

Ratings of L293D Output Current 1 A per Channel (600 mA for L293D) Peak Output Current 2 A per Channel (1.2 A for L293D) Maximum VC 4.5 to 36V (>VSS)( it should be greater than or equal the supply voltage, vss) input side (input to L293D from parallel port or microcontroller) VIH High-level input voltage (a voltage which L293D takes input as HIGH (1)) VC 7 V (2.3 to VC) VC 7 V (2.3 to 7 V) VIL High-level input voltage (a voltage which L293D takes input as LOW (0)) (-.3 to 1.5V), remember that VIL should not be less than -.3V output side (output of L293D to motor) VOH High-level output voltage (VCC2 1.8, VCC2 1.4) VOL Low-level output voltage (1.2v, 1.8v). If you want to use PWM to control L293D then apply PWM output to the chip inhibit of the IC. Remember all these parameters when we connect L293D in circuits. L293B are available, if you use it use 4 external protection diodes. L293D costs around Rs.90 L293D in circuit so that it won't create any problems.

TROUBLESHOOTING L293D: 1. Insert IC into the breadboard. Make sure that IC is inserted properly into breadboard. You can verify it using continuity test in the multimeter. Test continuity between the pins of the IC and the holes of the breadboard. If you get a beep then you can sure that IC is fitted strongly into breadboard and the portion of breadboard you are using is good.

2. Test the continuity in the 16 pins of the IC and the breadboard holes, to make sure that nothing goes wrong. You should be thorough with the steps you are taking.

3. Apply Vss=5V (Pin 16). The first thing to apply when you connect an IC is applying Vcc and ground. Remember Vss should be in the range of 4.5V to 7V.

4. Now connect ground at Pins 4, 5, 12, 13. Remember if you use multiple supplies, you should short circuit all grounds and this ground is applied to the Pins.

5. Now Vss and Gnd applying is over.

6. Now apply +5V to chip enable pins. Chip enable pins are pin1, 9.

7. Here we are trying to use both channels, atleast test both channels of the IC so that we can test whether IC is good or not.

8. Apply Vc at Pin8. For testing the IC you can apply Vc=Vss=5V. When you connect the motor you should apply Vc>Vss or may it canbe equal also. I have tested it.

9. The following test are done for each channels separatively. In the following explanation I refer '1' as +5V(Vss) and '0' as ground.

10.Apply Input 1 = Input 2 =0( ie,ground ) and connect multimeter to output 1 and ground of the circuit. Now test output1 and output2 voltages. Both should be zero at this condition.

11. Apply Input1=1 and Input2=0 and check voltages at output1 and output2. Remember your multimeter's one lead should be ground. Then you should get one output= VC and other output = 0. Suppose if you got output1=VC and output2=0.

12. Apply Input1=0 and Input2=1 and check voltages at output1 and output2. Then output1=0 and output2=VC. That is this case is should be reverse of the previous case, motor will rotate in opposite direction.

13. Apply Input1=1 and Input2=1 and check voltages at output1 and output2. Then output1=output2=VC. This is the braking case.

14. Test conditions 10-13 for both channels to test the IC are good. You should test it thoroughly so that a repetition is not needed. If your IC is not working, repeat steps 1-13 to make sure IC is bad.

15. The most problems occurring are breadboard problems,IC not Inserted properly, applying Vss and Vc wrongly (this can sometimes cause problems to IC), not disabling chip inhibit, absence of common ground.

16. If you are applying VC=Vss = +5V, then you can use two LED's to see outputs.

17. When chip inhibit is enabled, i.e. chip is not working the outputs will be high impedance, you can test high impedance using an LED. First connect the cathode of LED to ground through a series resistor of 330ohm and test the output. LED will not glow. The apply 5V to the anode of the LED and apply output to the cathode through a series resistor of 330 ohm. Now also LED won't glow. Now you can assure that the output is high impedance.

18. Before connecting motor to the outputs of L293D, first test the motor is working with the desired VC by applying VC and ground directly to the two leads of the motor. Confirm this first, and then connect the motor.

You might also like