The RPM can also be read on the serial monitor of Arduino. As the encoder disc rotates between the optical encoder groove, the RPM of the motor can be read on the smartphone. Open the Arduino Bluetooth Controller app from an Android phone and select Terminal Mode. Pair the Bluetooth between the smartphone and HC-06. Place the disc encoder between the groove of the opto-sensor, as shown in the prototype above. Mount the disc encoder wheel on the shaft of the DC motor. 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.Īfter uploading the code to Arduino board (Board1), connect HC-06 Bluetooth to CON4 and sensor digital output to CON3. Here, Serial.begin(9600) function initialises the serial port with a baud rate of 9600. Select the correct board from Tools → Board menu in Arduino IDE and burn the program (sketch) through the standard USB port in your computer. The ATmega328/ATmega328P is programmed using the Arduino IDE software. The source code is written in Arduino programming language. Pin TX of the Arduino is used for this purpose. Since there are twenty holes in the coded disc, the speed (in RPM) =((pulse×6)/20).Īfter determining the motor speed, the Arduino sends this data to the smartphone (to display) via the Bluetooth module. Using an interrupt based approach, we can detect the pulse produced by the sensing module (in every ten seconds), which depends on the speed of the motor. 3, the output of the speed sensing module is connected to digital pin 2 (D2) of the Arduino. 3: Circuit diagram for speed monitoring on smartphoneĪs shown in Fig. The circuit diagram for the monitoring of the motor speed on smartphone using Arduino Uno is shown in Fig. The internal circuit diagram of the opto-coupler type speed sensor module (FC-03) is shown in Fig. 2: Internal circuit diagram of Opto-coupler type speed sensor module (FC-03) Arduino Bluetooth Controller by Giumig Apps was used during testing. This software is based on the Android platform and helps in communication of the smartphone with the HC-06 Bluetooth module. You can also use HC-05 Bluetooth module in place of HC-06.Īrduino Bluetooth controller. The popular HC-06 Bluetooth module used for this project sends the data from Arduino Uno to the Android based smartphone. A coded disc encoder with twenty holes is used in this project.īluetooth module. It has some holes which help the opto-coupler type of speed sensor to generate the square wave as mentioned above. Opto-coupler module FC-03 was used during testing.Ĭoded disc encoder. This type of sensor generates square wave of a certain frequency which depends on the speed of motor. In this project, an opto-coupler based speed sensor module is used. The microcontroller has 32kB ISP flash memory, 2kB RAM, and 1kB EEPROM. Arduino Uno is an AVR ATmega328P microcontroller based development board with six analogue input pins and fourteen digital I/O pins.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |