DC Motor RPM Display On Smartphone Using Arduino
DC Motor RPM Display On Smartphone Using Arduino
Coded disc encoder. It has some holes which help the opto-coupler type of
speed sensor to generate the square wave as mentioned above. A coded
disc encoder with twenty holes is used in this project.
Bluetooth module. The popular HC-06 Bluetooth module used for this
project sends the data from Arduino Uno to the Android based
smartphone. You can also use HC-05 Bluetooth module in place of HC-06.
Fig. 2: Internal circuit diagram of Opto-coupler type speed sensor module (FC-03)
The internal circuit diagram of the opto-coupler type speed sensor module
(FC-03) is shown in Fig. 2. The circuit diagram for the monitoring of the
motor speed on smartphone using Arduino Uno is shown in Fig. 3.
After determining the motor speed, the Arduino sends this data to the
smartphone (to display) via the Bluetooth module. Pin TX of the Arduino is
used for this purpose.
Software
The source code is written in Arduino programming language. The
ATmega328/ATmega328P is programmed using the Arduino IDE software
Select the correct board from Tools → Board menu in Arduino IDE and
burn the program (sketch) through the standard USB port in your
computer. Here, Serial.begin(9600) function initialises the serial port with
a baud rate of 9600. The attachInterrupt(0,counter,FALLING) function calls
the interrupt handler “counter” whenever a signal connected to interrupt
pin 0 of the Arduino makes a high-to-low, that is, falling edge transition.
Pair the Bluetooth between the smartphone and HC-06. Open the Arduino
Bluetooth Controller app from an Android phone and select Terminal
Mode. Now switch on the motor. As the encoder disc rotates between the
optical encoder groove, the RPM of the motor can be read on the
smartphone. The RPM can also be read on the serial monitor of Arduino.