Monday

Rover 5 tracked robot chassis




Rover 5 is a new breed of tracked robot chassis designed specifically robotic usage and carried PCB circuit. The chassis can be upgraded into two or four motors and encoders making it ideal for mecanum wheels. There are two brushed DC motors with 210mA free run and 2.4A of stall current at 7.2V. The body was created by durable plastic and it can move for 1km/hour. 

As u can see, picture above show the internal body of robot chassis which contain 2 motors in left and right side. Each motor connected with 2 wires (red and black) for supply and also ground. These wire will connected to TIP120 on the circuit and interface with ATmega328.

The instructions provides by an ATmega328  are HIGH or LOW. High means 5 volts and Low is 0 volts. The operations of TIP120 is like a switching mode that control the input for the motors. 










Referring to the table above, a gas sensor will operate when the analog output for the sensor is more than 2.1 volts,meanwhile obstacle sensor will detect the object in front of the robot when analog output is more than 1.6 volts.

Once the gas sensor detecting a liquefied petroleum gas or obstacle sensor detecting a barrier, the motor an buzzer will automatically switch off.

There will be 3 line sensor operating the system especially the motors. When line sensor 1 detecting a black line, both motor of the robot will be on. On the other hands, if line sensor 0 or line sensor 2 will control either motor 1 or motor 2 to move.

Saturday


Voltage regulator (IC 7805)

IC 7805 is a voltage regulator integrated circuit. It is a member of 78xx series of fixed linear voltage regulator ICs. The voltage source in a circuit may have fluctuations and would not give the fixed voltage output. The voltage regulator IC maintains the output voltage at a constant value. The xx in 78xx indicates the fixed output voltage it is designed to provide. 7805 provides +5 volts regulated power supply. Capacitors of suitable values can be connected at input and output pins depending upon the respective voltage levels.

The regulator functions by using a diode to clamp the output voltage at 5 VDC regardless of the input voltage. Excess voltage is converted to heat and dissipated through the body of the regulator. If a DC supply of greater than 12 volts is used, excessive heat will be generated and the board may be damage. If a DC supply is less than 5 volts is used, insufficient voltage will be present at the regulators output.


For this project, input for all sensor should be equal to 5 volts. As mentioned before, all the sensors produce an analog output  within range 0- 5 volts. Therefore, this IC7805 are used to operate the system. 












Distance sensor

An infrared proximity sensor shines a beam of IR light from an LED, and measures the intensity of light that is bounced pack using a phototransistor. If you stare at the sensor, you can see one of the LED’s  glowing slightly red as some of the IR falls into the visible-light spectrum. A new approach was developed that not only gives object detection at a longer range than previous method but also offers range information for certain type of sensors. These new rangers all use triangulation and a small linear charge coupled device (CCD) array to compute the distance and/or presence of objects in the field of view.  The basic idea is this: a pulse of IR light is emitted by the emitter.  This light travels out in the field of view and either hits an object or just keeps on going.  In the case of no object, the light is never reflected and the reading shows no object.  If the light reflects off an object, it returns to the detector and creates a triangle between the point of reflection, the emitter, and the detector. 


The angles in this triangle vary based on the distance to the object.  The receiver portion of these new detectors is actually a precision lens that transmits the reflected light onto various portions of the enclosed linear CCD array based on the angle of the triangle described above. The CCD array can then determine what angle the reflected light came back at and therefore, it can calculate the distance to the object.

When the distance is far or increases the output voltage is decreasing gradually. But when the IR sensor is near to the obstacle the output voltage will increase. The value of output voltage is useful as a reference for the microcontroller (ATmega328). For a gas leakage detector system, if the output voltage is higher than a set point level, the DC motors will be turn off. But if the output voltage is lower than the set point the DC motors will be operated. The set point can be created in the program. This means that to one value of the output corresponds two values of distance. This problem can be avoided by noticing that the object is not too close to the sensor.





Wednesday


Gas sensor (MQ5 sensor)


MQ5 sensor is used in gas leakage detecting equipments in the industries and house. It has high sensitivity to liquefied petroleum gas (LPG) and small sensitivity to alcohol and smoke. The characteristics of this sensor are fast response, stable, long life and have simple drive circuit.

When a dangerous levels of gas vapors are detected. A detectors measure a gas concentration and the sensor responds to a calibration gas, which serves as the reference point or scale. Usually the reference point or scale is in voltage (V). The calibration of MQ5 is important in order to compare the sensitivity of MQ5 when detecting oxygen gas or liquefied petroleum gas (LPG). For an example, if the MQ5 sensor detects oxygen gas it might produce a low value of output voltage but when it detects other gases especially LPG gas it will produce a high value of output voltage. The output voltage value is between ranges 0 until 5 volts.



Based on the picture above, MQ5 have 6 pins (2 A, 2 B and 2 H). Pins for A should be attach together and then connect with the pin H for become an input connection. On the other hands, pins B will be the output connection, meanwhile the other H pin become grounded. Before the sensor connects to theATmega328 pins, it should face some calibration with lighter gas using a multi-meter to identify differences of voltage output value in normal condition (normal atmosphere) and worst condition (when detecting any presence of liquefied petroleum gas). During normal condition, the voltage output is less than 1.5 volts. When the MQ5 detected the gas produce by the lighter, the voltage output is 2 volts and above. This output values are important because it will be useful data during program writing.

Figure below shows the connection wires of gas sensor (MQ5) at the analog pins of ATmega328.




Light sensor (LDR sensor)


A light sensor generates an output signal indicating the intensity of light by measuring the radiant energy that exists in a very narrow range of frequencies basically called "light", and which ranges in frequency from "Infrared" to "Visible" up to "Ultraviolet" light spectrum. The light sensor is a passive devices that convert this "light energy" whether visible or in the infrared parts of the spectrum into an electrical signal output. Light sensors are more commonly known as "Photoelectric Devices" or "Photo Sensors" because the convert light energy (photons) into electricity (electrons).

Light dependent resistors (LDR) are very useful especially in light or dark sensor circuit. Normally the resistance of an LDR is high, sometimes as high 1000kΩ, but when they are illuminated with light resistance drops dramatically. There are just two ways of constructing the voltage divider, with the LDR at the top, or with the LDR at the bottom:


In LDR sensor operation, means light must shine into the light dependent resistance for the circuit to be activated. When the light level is low the resistance of the LDR is high. This prevents current from flowing to the base of the transistors. Consequently the lamp does not light. However, when light shines onto the LDR its resistance falls and current flows into the base of the first transistor and then the second transistor and automatically turning the lamp on. The preset resistor can be turned up or down to increase or decrease resistance, in this way it can make the circuit more or less sensitive. During troubleshooting the LDR sensor, i have tabulated all the data of an output voltage value with different resistance value produce by the LDR sensor.





Based on the figure below, the input of the LDR is only 5 volts and the value for the resistor is 10kΩ. Generally, this sensor was constructed based on voltage divider rules and the voltage output is depending on the change in resistance value of the LDR sensor. The input for IC741 has two input pins from one pin from the voltage output and another one is from the ground. Once the voltage enters the IC741, the IC741 will amplify the voltage by multiplying it gain (dB). Output for IC741 will inject to the relay and automatically switch on the lamp.



Figure above shows the circuit of light sensor (LDR circuit)

Tuesday


IR sensor (Line sensor)

Nowadays, in electronic market provides variety of IR sensor. Infrared (IR) sensors have become indispensable tools for several industries. However, not all frequencies of light within the infrared spectrum behave the same. There are a number of methods which can be used to build a line following robot. In general there are three different types of line followers which are single light, two lights, and three lights sensor model. On the other hands, besides using a complete sensor which it can easily find in the market, an infrared LED transmitter and receiver can be used to detect the line.

The reason of selecting this type of IR sensor is because it has good range which is fulfil the requirement for robots. It is very low cost and can be constructed on general purpose PCB. Besides that, it is very small in size which is best for robots. For obtain a good result, the number of transmitter and receiver can be increase. Thus, it has good immunity to ambient light and waves are invisible to eyes.
IR LED is used as a source of infrared rays. It comes in two packages 3mm and 5mm. 3 mm is better as it is require less space. IR sensor is nothing but a diode which is sensitive for infrared radiation. This infrared transmitter and receiver were known as IR Tx-Rx pair.


Pictures below shows the results after done with designing the PCB line, etching, components placement and soldering procedures.







Referring to the picture below, the input for the line sensor circuit is 5volts max. There are 3 pin for voltage output which are Vout 1(V1), Vout 2 (V2) and Vout 3 (V3). These output voltage pins are important to the system because every each of output pin will produce a different output voltage value which is directly connecting to the IC.







When IR sensor detects line, the voltage output is high but when it did not detect any line the output voltage is low. During troubleshooting the circuit, the result when detecting line is 1.59 volts and 0.14 volts is when it not detecting any line. On the other hands, each of voltage output pins control left and right motors.