BLYNK + CRODUINO NOVA: THE MOTOR SPEED CONTROL (PART 3/3)
In the third example, we will change the DC motor speed via application. How to start creating a new project can also be seen in the first example (link). Let’s start with the application.
To the newly opened project, add the “Step V” widget which will enable changing the PWM signal on Croduino Nova’s pin, and thus controlling the motor rotation speed. Connect the Step to pin 14 as shown in the picture.
Croduino Nova can not control the motor directly, because the maximum pins can provide is 3.3V of voltage and 6mA of current, so in this case we will use one NPN transistor and some other components. Connect one connector of the motor to an external source (e.g. something of 9V), and the other to the collector of the transistor. We will control Croduino using current base, so add one more resistor of higher values (in the example, 10kOhm). Transistor emitter is simply connected to the ground. Also, do not forget to connect Croduino’s ground to external source’s ground, in order to align voltages. And finally, it is necessary to add another component, which is the diode. The diode here serves as a protection for the transistor, because the motor can produce short high-voltage impulses due to its inductance.
#define BLYNK_PRINT Serial
Blynk.begin(auth, ssid, pass);
Alright, we have become acquainted with the application and the way it functions, but you must be wondering what now and what else can be done this way. Like everything else in electronics, the sky is the limit. We will list some interesting projects and useful links:
1. RGB LED lamp
2. Motion detector (with notice)
3. Servo motor control
4. A bunch of other projects
5. A few more projects
Happy blynking! 🙂