control on speed of fan and light up some different colors according to speed.
By mobile application.
Arduino ID
Arduino Bluetooth control (GUI)
Breadboard
resistors (220 Ohm)
RGB LED (common cathode)
jumpers (female-male and male-male)
DC motor
Bluetooth module
motor driver
Arduino
connect enable from motor driver to pin 10 and the other input 1,2 to pins 8,9 .
connection RGB LED
Bluetooth module connection.
to show data from mobile app.
select HC-05 to connect mobile with Arduino.
using this buttons
when press on button 1 , appear in serial number 1, and so on to all buttons.
testing motor.
connection on breadboard
declare all pins.
make condition to light RGB LED and turn on motor according to incoming data from Bluetooth.
the last condition makes all pin off (low).
the code was uploaded and nothing happened, make a debugging with the code.
discover I forget put values of data in the single quotation.
when powering the motor driver with 9v, it is not working at small speeds.
So, replacing to 12v.