Wednesday, March 16, 2016

Accelerometer Based Hand Gesture Controlled Robot using 8051



Robots are playing an important role in automation across all the sectors like construction, military, medical, manufacturing, etc. After making some basic robots like line follower robot, computer controlled robot, etc, we have developed this accelerometer based gesture controlled robot by using arduino uno. In this project we have used hand motion to drive the robot. For this purpose we have used accelerometer which works on acceleration.

Required Components

1.     8051 Microcontroller
2.     DC Motors
3.     Accelerometer
4.     HT12D
5.     HT12E
6.     RF Pair
7.     Motor Driver L293D
8.     9 Volt Battery
9.     Battery Connector
10. USB cable
11. Robot Chasis

A gesture controlled robot is controlled by using hand in place of any other method like buttons or joystick. Here one only needs to move hand to control the robot. A transmitting device is used in your hand which contains RF Transmitter and accelero-meter. This will transmit command to robot so that it can do the required task like moving forward, reverse, turning left, turning right and stop. All these tasks will be performed by using hand gesture.

Here the most important component is accelerometer. Accelerometer is a 3 axis acceleration measurement device with +-3g range. This device is made by using polysilicon surface sensor and signal conditioning circuit to measure acceleration. The output of this device is Analog in nature and proportional to the acceleration. This device measures the static acceleration of gravity when we tilt it. And gives an result in form of motion or vibration.

According to the datasheet of adxl335 polysilicon surface-micromachined structure placed on top of silicon wafer. Polysilicon springs suspend the structure over the surface of the wafer and provide a resistance against acceleration forces. Deflection of the structure is measured using a differential capacitor which incorporate independent fixed plates and plates attached to the moving mass. The fixed plates are driven by 180° out-of-phase square waves. Acceleration deflects the moving mass and unbalances the differential capacitor resulting in a sensor output whose amplitude is proportional to acceleration. Phase-sensitive demodulation techniques are then used to determine the magnitude and direction of the acceleration.

Pin Description of accelerometer
1.     Vcc        5 volt supply should connect at this pin.
2.     X-OUT  This pin gives an Analog output in x direction
3.     Y-OUT  This pin give an Analog Output in y direction
4.     Z-OUT   This pin gives an Analog Output in z direction
5.     GND      Ground
6.     ST          This pin used for set sensitivity of sensor

Circuit Diagram and Explanation

Gesture Controlled Robot is divided into two sections:
1.     Transmitter part
2.     Receiver part

In transmitter part an accelerometer and a RF transmitter unit is used. As we have already discussed that accelerometer gives an analog output so here we need to convert this analog data in to digital. For this purpose we have used 4 channel comparator circuit in place of any ADC. By setting reference voltage we gets a digital signal and then apply this signal to HT12E encoder to encode data or converting it into serial form and then send this data by using RF transmitter into the environment.

At the receiver end we have used RF receiver to receive data and then applied to HT12D decoder. This decoder IC converts received serial data to parallel and then read by using 8051. According to received data we drive robot by using two DC motor in forward, reverse, left, right and stop direction.

Working

Gesture controlled robot moves according to hand movement as we place transmitter in our hand. When we tilt hand in front side, robot start to moving forward and continues moving forward until next command is given.
When we tilt hand in backward side, robot change its state and start moving in backwards direction until other command is given.
When we tilt it in left side Robot get turn left till next command.
When we tilt hand in right side robot turned to right.
And for stopping robot we keeps hand in stable.


Circuit Diagram for Receiver Section


Circuit for this hand gesture controlled robot is quite simple. As shown in above schematic diagrams, a RF pair is used for communication and connected with microcontroller . Motor driver is connected to microcontroller to run the robot. Motor driver’s input pin 2, 7, 10 and 15 is connected to microcontroller digital pin number 6, 5, 4 and 3 respectively. Here we have used two DC motors to drive robot in which one motor is connected at output pin of motor driver 3 and 6 and another motor is connected at 11 and 14. A 9 volt Battery is also used to power the motor driver for driving motors.


GSM based Fire Detection System


The fig shows block diagram of SMS based fire detection system.
It consists of following blocks.
Power Supply:
Power supply is used to provide voltage to the Microcontroller, LCD, sensors, ADC, buzzer etc.

Sensors:
Sensor are basically use to convert physical quantity (eg. Temp, smoke etc) in electrical form (voltage, current etc.)
there are different sensors available for various physical quantity.

For FIRE detection we use Smoke sensor MQ2, Temp. Sensor LM35 & fire sensor.
If smoke is detected, then smoke sensor (MQ2: smoke to analog voltage) give signal to the ADC. The temp sensor LM35 (temp to analog voltage) sense the temp if it exceeds the max temp level then it sends the signal to the ADC. If fire is detected, then fire sensor gives signal to the microcontroller.


ADC:
ADC is used to convert analog signal into digital form. In our project we use ADC0808. ADC receive signal from temp sensor & smoke sensor & convert it into digital form & this digital signal sends to the microcontroller.

Microcontroller:
Microcontroller is the main control unit of project. Once microcontroller gets signal from sensors (via ADC), if fire is detected then it will immediately turn on the buzzer & send the signal to the GSM modem.

GSM modem:
In project we used GSM modem for message sending.
When microcontroller detects fire then it sends information to the GSM modem, then GSM modem sends this information via SMS. GSM modem is used to send the message to the fire stations well as to the responsible person.

16x2 LCD: 
Display is used to display the system status.
Buzzer:
Buzzer is used for notification regarding fire detection.

If fire is detecting, then microcontroller sends signal to the buzzer.

Tuesday, July 14, 2015

AUTO INTENSITY CONTROL OF STREET LIGHTS

PROJECT DESCRIPTION
White Light Emitting Diodes (LED) replaces HID lamps in street lighting system to include dimming feature. A microcontroller of 8051 family is used to control the intensity by developing pulse width modulated signals that drives a MOSFET to switch the LEDs according to achieve desired operation.
In the present system, mostly the lightning up of highways is done through High Intensity Discharge lamps (HID), whose energy consumption is high. Its intensity cannot be controlled according to the requirement so there is a need to switch on to an alternative method of lightning system i.e., by using LEDs. This system is built to overcome the present day drawbacks of HID lamps. This system demonstrates the usage of the LED’s (light emitting diodes) as the light source and its variable intensity control, according to the requirement. LED’s consume less power and its life time is more, as compared to the conventional HID lamps. The more important and interesting feature is its intensity can be controlled according to the requirement during non-peak hours which is not feasible in HID lamps.
A cluster of LEDs are used to form a street light. The microcontroller contains programmable instructions which controls the intensity of lights based on the PWM (Pulse width modulation) signals generated. The intensity of lights are kept high during the peak hours, as the traffic on the roads tend to decrease slowly in the late nights, the intensity also  decreases progressively till morning. Final it completely shuts down at morning 6, and again resumes at 6pm in the evening. The process is repeated.
This concept in future can be enhanced by integrating it with the solar panel, which converts the solar intensity into corresponding voltage, and this energy is used to feed up the highway lights.

BLOCK DIAGRAM
FIG: AUTO INTENSITY CONTROL OF STREET LIGHTS

HARDWARE REQUIREMENTS
  • Transformer
  • Diodes
  • Capacitors
  • Resistors
  • LEDs
  • 8051 series Microcontroller
  • White LEDs
  • MOSFET
  • Crystal


SOFTWARE  REQUIREMENTS

  • Keil Compiler
  • Language: Embedded C or Assembly

Friday, June 19, 2015

Arduino LilyPad USB

The LilyPad Arduino is a microcontroller board designed for wearables and e-textiles. It can be sewn to fabric and similarly mounted power supplies, sensors and actuators with conductive thread. The board is based on the ATmega32U4. Board comes fully assembled and tested with ATMega168V pre-loaded with bootloader.

MicrocontrollerATmega32u4
Operating Voltage3.3V
Input Voltage (recommended)3.8V
Input Voltage (limit)5V
Digital I/O Pins9
PWM Digital I/O Pins4
Analog Input Pins4
DC Current per I/O Pin40 mA
Flash Memory32 KB (ATmega32u4) of which 4 KB used by bootloader
SRAM2.5 KB (ATmega32u4)
EEPROM1 KB (ATmega32u4)
Clock Speed8 MHz
Radius18 mm

Tuesday, June 16, 2015

RASPBERRY PI 2 MODEL B

The Raspberry Pi 2 Model B is the second generation Raspberry Pi. It replaced the original Raspberry Pi 1 Model B+ in February 2015. Compared to the Raspberry Pi 1 it has:
  • A 900MHz quad-core ARM Cortex-A7 CPU
  • 1GB RAM
Like the (Pi 1) Model B+, it also has:
  • 4 USB ports
  • 40 GPIO pins
  • Full HDMI port
  • Ethernet port
  • Combined 3.5mm audio jack and composite video
  • Camera interface (CSI)
  • Display interface (DSI)
  • Micro SD card slot
  • VideoCore IV 3D graphics core

Sunday, May 24, 2015

Voltage, Current and Resistance

Voltage, Current and Resistance

The relationship between Voltage, Current and Resistance forms the basis of Ohm’s law which in a linear circuit states that if we increase the voltage, the current goes up and if we increase the resistance, the current goes down. Then we can see that current flow around a circuit is directly proportional ( ∝ ) to voltage, ( V↑ causes I↑ ) but inversely proportional ( 1/∝ ) to resistance as, ( R↑ causes I↓ ).
  • Voltage or potential difference is the measure of potential energy between two points in a circuit and is commonly referred to as its “ volt drop ”.
  • When a voltage source is connected to a closed loop circuit the voltage will produce a current flowing around the circuit.
  • In DC voltage sources the symbols +ve (positive) and -ve (negative) are used to denote the polarity of the voltage supply.
  • Voltage is measured in “ Volts ” and has the symbol “ V ” for voltage or “ E ” for energy.
  • Current flow is a combination of electron flow and hole flow through a circuit.
  • Current is the continuous and uniform flow of charge around the circuit and is measured in “ Amperes ” or “ Amps ” and has the symbol “ I ”.
  • Resistance is the opposition to current flowing around a circuit.
  • Low values of resistance implies a conductor and high values of resistance implies an insulator.
  • Resistance is measured in “ Ohms ” and has the Greek symbol “ Î© ” or the letter “ R ”.

Wednesday, February 18, 2015

LDR: Light Dependent Resistor



Light dependent resistor(LDR), also called as Cadmium Sulphide (CdS) cell or photoresistor is a resistor whose value depends upon the incident light intensity. In darkness, the resistanceof LDR becomes high and in light, the resistance gets low.

Dark Sensor Using 555
The following circuit works as a dark sensor. If the light falling on LDR is blocked, it switches on the LED D1. It has been configured in monostable mode of 555 timer which means that the circuit switches on the LED D1 for a specific time. The switching time is determined by the combination of resistance R1 and capacitor C1.
In this circuit, time (T) = 1.1xR1xC1 = 1.1x47x103x100x10-6= 5.17sec.


Touch Sensor using 555
We can make the previous dark sensor circuit work as a touch sensor by making small changes in the schematic. We just need to remove the LDR, put a small wire and connect it to the coupling capacitor. Note that the electrode wire connected to capacitor C2 should be around 2-5cm long. As we touch on the wire, the circuit triggers the LED for a specific time as determined by the resistor R1 and capacitor C1.  You can connect the wire to a small metallic touch plate using an alligator clip.

Wednesday, January 28, 2015

Photo diode

Photo diode is used to capture reflected light of IR LED.
A semiconductor diode that, when exposed to light, generates a potential difference or changes its electrical resistance.

A Photo diode is a reverse biased silicon or germanium pn junction in which reverse current increases when the junction is exposed to light.
When no light is incident on the pn junction of photo diode, the reverse current is extremely small. This is called DARK CURRENT.

When light is incident on the pn junction of the photo diode there is a transfer of energy from the incident light (photons) to the atoms in the junction .this will create more free electrons (and more holes) these additional free electrons will increase the reversecurrent.This electrical energy can be recorded as voltage drop fluctuations by using a series resistor in the outer circuit and taking voltage readings across it.

IR LED

An Infrared light-emitting diode (IR LED) is a type of electronic device that emits infrared light not visible to the naked eye.

The wavelength and colour of the light produced depend on the material used in the diode. Infrared LEDs use material that produces light in the infrared part of the spectrum, that is, just below what the human eye can see. Different infrared LEDs may produce
infrared light of differing wavelengths, just like different LEDs produce light of different colours.
Since the human eye cannot see the infrared radiations, it is not possible for a person to identify whether the IR LED is working or not, unlike a common LED. To overcome this problem, the camera on a cell phone can be used. The camera can show us the IR rays being emanated from the IR LED in a circuit.

Monday, January 5, 2015

Voice Control System for Smart Home using Zigbee Technology

Join us on Facebook
By using Zigbee home automation, we can provide support systems for the elderly and the disabled and who live alone. It recognizes the voice commands and uses low-power RF ZigBee wireless communication modules which are relatively cheap. This system is intended to control all lights and electrical appliances in a home or office using voice commands.

Thursday, January 1, 2015

How to Test LED using Digital Multimeter

Light emitting diode (LED)is a small component used in almost every electronic device. Led has 2 terminals or legs. The bigger leg is the anode or positive terminal and shorter leg is cathode or negative terminal.
But this method of identifying the leads will not always work. Consider the case in which the legs of the LEDs are already cut into same lengthfor using in a circuit. Even in such cases the following method works.
Just take a close look at the geometry of a standard 5mm LED.
The one side is rounded shape and the other side has been made a little straighter (right hand side drawing in the image). The leg in the straight side is always negative and the leg in the rounded side is always positive.

Set the digital multimeter on the continuity mode. If you touch the testing leads to each other the multimeter will give a continuous beep sound. The beep sound means that the multimeter is working perfectly.
In the above multimeter, the knob is turned to the continuity mode which is at 400 ohm section. Testing leads should be plugged into the multimeter as shown in the above image.
probes are connected to the LED terminal according to their polarity. Longer leg is connected to the positive supply and shorter to negative (grounded).

Checking the continuity
Power ON the multimeter
Set the knob on the continuity mode.
LED will glow indicating that it is in working condition
If the LED doesn’t glows then check the connections else the LED is faulty.

HappyNewYeaR

Wishing U all a very happy new year 2015.

Tuesday, December 9, 2014

Battery

https://www.facebook.com/RSElectronicsOfficial

A battery is an electrical device that is employed to convert chemical energy into voltage through electrochemical discharge reactions. These are composed of one or more cells where each cell having an anode (+), the cathode (-) and the solution. The anode and the cathode are preserved to an electric circuit. Batteries are classified into 2 varieties they are primary or disposable batteries and secondary or rechargeable batteries, whereby the primary batteries don’t seem to be reversible whereas the secondary batteries are reversible.

symbols used in #electronics.


ANDROID OPERATED ROBOT

The wireless communication technologies are rapidly spreading many new areas, including the automation and the importance of the use of wireless technologies in the data acquisition, building control, monitoring systems and automation of manufacturing processes will grow. Intelligent mobile robots and cooperative multi robotic systems can be very efficient tools to speed up search and research operations in remote areas. Robots are also useful to do jobs in areas and in situations that are hazardous for human. They can go anywhere that is not reachable by humans and can go into gaps and move through small holes that are impossible for humans and even trained dogs. 
Android platform is a new generation of smart mobile phone platform launched by Google. Android provides the support of Sensors and Bluetooth. The development of this project has the goal of controlling an android robot car. The movement of the robot car has been controlled by the application in mobile with F,B,L,R,S values and these values are send to the development board on robot car using blue-tooth.
Here we are using the Bluetooth technology to interface robotic car to mobile wirelessly.
             BLOCK DIAGRAM

Many of the wireless-controlled robots use RF modules. But this project makes use of Android mobile phone for robotic control. The control commands available are more than RF modules. For this the android mobile user has to install an application on her/his mobile. Then user needs to turn on the Bluetooth in the mobile. The wireless communication techniques used to control the robot is Bluetooth technology. User can use various commands like move forward, reverse, move left, move right using these commands which are sent from the Android mobile. Robot has a Bluetooth receiver unit which receives the commands and gives it to the microcontroller circuit to control the motors. The microcontroller then transmits the signal to the motor driver IC’s to operate the motors.
The controlling device of the whole system is a Microcontroller. Bluetooth module, DC motors are interfaced to the Microcontroller. The data received by the Bluetooth module from Android smart phone is fed as input to the controller. The controller acts accordingly on the DC motors of the Robot. The robot in the project can be made to move in all the four directions using the Android phone. The direction of the robot is indicated using LED indicators of the Robot system.
This project mainly consists of following blocks:
  • Android mobile
  • Bluetooth receiver unit
  • Microcontroller
  • DC motors
  • Power supply unit

ANDROID MOBILE
Android is a software stack for mobile devices that includes an operating system,
Middle ware and key applications. Android boasts a healthy array of connectivity options,
Including Wi-Fi, Bluetooth, and wireless data over a cellular connection (for example, GPRS, EDGE (Enhanced Data rates for GSM Evolution), and 3G). Android provides access to a wide range of useful libraries and tools that can be used to build rich applications. In addition, Android includes a full set of tools that have been built from the ground up alongside the platform providing developers with high productivity and deep insight into their applications.
The movement of the robot car is been controlled by the application in mobile with Forward, Backward, Left, Right, Stop values and these values are send to the development board on robot car using blue-tooth.
BLUETOOTH MODULE
Bluetooth is an open standard specification for a radio frequency (RF)-based, short-range connectivity technology that promises to change the face of computing and wireless communication. It is designed to be an inexpensive, wireless networking system for all classes of portable devices, such as laptops, PDAs (personal digital assistants), and mobile phones. It also will enable wireless connections for desktop computers, making connections between monitors, printers, keyboards, and the CPU cable-free.
MICROCONTROLLER
This is the CPU (central processing unit) of our project. We are going to use a microcontroller of 8051 family. The features is given below:
·         Compatible with MCS-51® Products
·         8K Bytes of In-System Programmable (ISP) Flash Memory
·         4.0V to 5.5V Operating Range
·         Fully Static Operation: 0 Hz to 33 MHz
·         Three-level Program Memory Lock
·         256 x 8-bit Internal RAM
·         32 Programmable I/O Lines
·         Three 16-bit Timer/Counters
·         Eight Interrupt Sources
·         Full Duplex UART Serial Channel
·         Low-power Idle and Power-down Modes
·         Interrupt Recovery from Power-down Mode
·         Watchdog Timer
·         Dual Data Pointer
·         Power-off Flag
HARDWARE REQUIREMENTS
The hardware requirements of the project will be
·         Power Supply
·         Push Buttons
·         Transformer
·         Diodes
·         Voltage Regulator
·         Crystal
·          LEDS
·         Capacitors
·         Resistors
·         8051 series Microcontroller
·         Bluetooth module
·         Motor driver
·         DC motors
SOFTWARE REQUIREMENTS
The software requirements of the project will be
§  Keil compiler
§  Languages: Embedded C or Assembly
§  DUMPING SOFT WARE: Using Micro controller flash Software we are dumping our HEX Code into Micro Controller 
§  Proteus for hardware simulation
ADVANTAGES
  • Small size robot
  • Obstacles are easily avoided
  • User friendly.
  • Cost effective.
  • Easy to build.
  • APPLICATION
    • The robot is small in size so can be used for spying.
    • This robot can be used in the borders for disposing hidden land mines.
    • The robot can be used for reconnaissance or surveillance.