Mar A7-A10
Mar A7-A10
Tasks:
A) Write a program to transfer message from mobile and display it on the serial monitor using
Bluetooth. E. g. When I send RED from mobile Red LED connected to ARDUINO should
glow , for Green …. Green should glow and so on . Also when BEEP sent should make buzzer
beep , and send STOP buzzer should stop.
B) Write a program to Transfer message from mobile using Bluetooth
to Arduino and display it on the LCD
Theory:
A Bluetooth technology is a high-speed low powered wireless technology link that is designed
to connect phones or other portable equipment together. It is a specification (IEEE 802.15.1)
for the use of low power radio communications to link phones, computers and other network
devices over short distance without wires. Wireless signals transmitted with Bluetooth cover
short distances, typically up to 30 feet (10 meters).
It is achieved by embedded low-cost transceivers into the devices. It supports on the frequency
band of 2.45GHz and can support up to 721KBps along with three voice channels. This
frequency band has been set aside by international agreement for the use of industrial, scientific
and medical devices (ISM).
Working with the help of HC 05 android app:
Download the Application
Pair your device with HC 05/06 Bluetooth module
Turn ON HC 05/06 Bluetooth module
Scan for available device
Pair to HC 05/06 by entering default password 1234 OR 0000
Open the Application.
Press paired devices
Select your Bluetooth module from the List (HC 05)
The Bluetooth module at other end receives the data and send to Arduino through the
TX pin of Bluetooth module (RX pin of Arduino). The Code fed to Arduino checks the
received data and compares. If received data is 1 the LED turns on turns OFF when
received data is 0.
Operating components and materials required with specifications:
Interfacing Circuit diagram: (Draw Connections between Arduino Uno and the Sensors
as well as other components )
Algorithm: Write (Type) detailed steps of algorithm for each Tasks given i.e., for each of the
Aim A) and B).
Result:(Put screenshot of serial monitor for each Tasks given i.e., for each of the Aim A) and
B).
Conclusion: Bluetooth is widely used in remote controls, headphones, to transfer files from
one device to another, devices such as keyboard, printer and mouse, etc.
Experiment No. 7
Theory: Thermistors are variable resistors that change their resistance with temperature. They
are classified by the way their resistance responds to temperature changes. In Negative
Temperature Coefficient (NTC) thermistors, resistance decreases with an increase in
temperature. In Positive Temperature Coefficient (PTC) thermistors, resistance increases with
an increase in temperature. NTC thermistors are the most common, NTC thermistors are made
from a semiconducting material (such as a metal oxide or ceramic) that’s been heated and
compressed to form a temperature sensitive conducting material.
The conducting material contains charge carriers that allow current to flow through it. High
temperatures cause the semiconducting material to release more charge carriers. In NTC
thermistors made from ferric oxide, electrons are the charge carriers. In nickel oxide NTC
thermistors, the charge carriers are electron holes.
Thermistor Symbol
The Arduino will measure the voltage at a point between the thermistor and a known resistor.
This is known as a voltage divider. The equation for a voltage divider is:
Vout=Vin xR2/R1+R2
In terms of the voltage divider in a thermistor circuit, the variables in the equation above are:
Interfacing Circuit diagram: (Draw Connections between Arduino Uno and the Sensors
as well as other components ) ALSO DRAW NTC GRAPH
Algorithm: Write (Type) detailed steps of algorithm for each Tasks given i.e., for each of the
Aim A) and B).
Result:(Put screenshot of serial monitor for each problem statement given i.e., for each of the
Aim A) and B).
Components: Arduino UNO Development Board, USB Cable, Breadboard, LED, Resistor (1
k ohm, 10Kohm), Connecting Wires, Push Button (Micro Switch), DC Motor etc.
Theory:
The pushbutton is a component that connects two points in a circuit when you press it. We
connect three wires to the Arduino board. The first goes from one leg of the pushbutton
through a pull-up or pull-down resistor (here 10 KOhms) to the 5-volt supply. The second
goes from the corresponding leg of the pushbutton to ground. The third connects to a digital
I/o pin (here pin 7) which reads the button's state. When the pushbutton is open (unpressed)
there is no connection between the two legs of the pushbutton, so the pin is connected to 5
volts (through the pull-up resistor) and we read a HIGH. When the button is closed
(pressed), it makes a connection between its two legs, connecting the pin to ground, so that
we read a LOW. (The pin is still connected to 5 volts, but the resistor in-between those
means that the pin is "closer" to ground.)
Interfacing Circuit diagram: (Draw Connections between Arduino Uno and the Sensors
as well as d c Motor )
Algorithm: Write detailed steps of algorithm for each Tasks given i.e., for each of the Aim A),
&B)
Result: Put screenshot of serial monitor for each Tasks given i.e., for each of the Aim A),& B)
Theory:
A servo motor is an electric device used for precise control of angular rotation. It is used in
applications that demand precise control over motion, like in case of control of a robotic arm,
The rotation angle of the servo motor is controlled by applying a PWM signal to it. By varying
the width of the PWM signal, we can change the rotation angle and direction of the motor.
Servo motors have three wires: power, ground, and signal. The power wire is typically red, and
should be connected to the 5V pin on the Arduino board. The ground wire is typically black or
brown and should be connected to a ground pin on the board. The signal pin is typically yellow
or orange and should be connected to PWM pin on the board. In these examples, it is pin
number 9.
Functions Used
1. Servo my servo
2. myservo.attach(pin)
3. myservo.write(angle)
This function writes a value to the servo, thus controlling the position of the shaft.
Angle can take values between 0 to 180.
Interfacing Circuit diagram: (Draw Connections between Arduino Uno and the Sensors
as well as other components )
Algorithm: Write (Type) detailed steps of algorithm for each Tasks given i.e., for each of the
Aim A), &B).
A) Program to control the Servo Motor Rotation by one Degree
STEP 1- Start
STEP 2- include servo.h library
STEP 3- define angle
STEP 4- create a new object myservo from the library
STEP 5- in void setup, declare myservo.attach(9)
STEP 6- in void loop, use for loops to rotate the motor
STEP 7- Stop
Result: Put screenshot of serial monitor for each Tasks given i.e., for each of the Aim A), &B).