Professional Documents
Culture Documents
The Bluetooth module HC-05 is used to receive & transmit data between Bluetooth
device and MCU. It requires power supply from 3.3V to 5V.
Pairing:
After connect the Bluetooth module, scan for new devices from the Android phone and
you will find the module with the device name “HC-05”, after that, click to connect, if
some message appears asking about “Pairing code” just put
“1234” as default code.
BLUE LED = ACTIVE (Blinking 500ms period inactive connection, change 1seg with
active connection)
Circuit connections are done exactly done in above diagram. Potentiometers are
shown as Potx and servo motors shown as Servox. A simple dc motor is also connected.
All the Potx are connected to the analog port on Arduino. On this port we have ADC
(Analog to Digital Convertor) circuit. All values received from sensors is fed into the ADC
and it help to controller to determine the rise and fall in values of sensors. ADC automatically
converts the max voltage (5v dc) to 1023 and min voltage (0v dc) to 0. So, each sensor has
range from 0 to 1023 which is read by controller. There is flexibility available to make
changes in this range according to the user requirements. These values also can be seen on
serial monitor of Arduino ide when hardware is connected with pc throw usb cable.
On output side of circuit, it connected with servo motors. Servo motors are connected
to the 5v dc and 0v ground. Signal pin or control pin of each servo is connected with PWM
pins of Arduino board. Servo motor is controlled by applying the PWM signal of different
length. Basically, 15ms to 20ms is used to control the angles from 0 to 1800. There are only 6
PWM pins are available on Arduino board. [5]
For controlling the dc motor, it is connected with power supply and a switch is used to
control its action.
Duty Cycle
Duty cycle is calculated as the on-time of the period of time. Using the period calculated
above, duty cycle is calculated as −
D=TonTon+Toff=TonTtotal