BLYNK + DASDUINO CONNECT: THE MOTOR SPEED CONTROL (PART 3/3)

BLYNK + CRODUINO NOVA: THE MOTOR SPEED CONTROL (PART 3/3)-Uncategorized @hr

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.

Blynk tutorial series consist of 3 parts;
1st part: Introduction, LED
2nd part: Temperature and humidity reading
3rd part: Controlling the motor

APPLICATION

To the newly opened project, add the “Step V” widget which will enable changing the PWM signal on Dasduino Connect’s pin, and thus controlling the motor rotation speed. Connect the Step to pin 14 as shown in the picture.

 

CONNECTING

Dasduino Connect 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 Dasduino 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 Dasduino’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.

PROGRAM

#define BLYNK_PRINT Serial
#include "ESP8266WiFi.h"
#include "BlynkSimpleEsp8266.h"
char auth[] = "AuthToken";
char ssid[] = "NazivWiFiMreže";
char pass[] = "LozinkaWiFiMreže";
void setup(){
  Serial.begin(9600);
  Blynk.begin(auth, ssid, pass);
}
void loop(){
  Blynk.run();
}

WHAT NOW?

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! 🙂