-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBionicArmBlynk.ino
49 lines (38 loc) · 1 KB
/
BionicArmBlynk.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* Author: Raghav Singh
BIONIC ARM V2.0.0
In this project the Bionic Arm was implemented using ESP8266 microcontroller and Blynk App.
*/
#define BLYNK_PRINT Serial
#include<ESP8266WiFi.h>
#include<BlynkSimpleEsp8266.h>
#include<Servo.h>
Servo servo ;
Servo servo2 ;
int servopin1 = 16 ;
int servopin2 = 5 ;
char auth[] = "a15216c55a7b43689e19a18a3b8ed433" ; //"57e62fc3d7c2485f82fb1b5418b959e9"; // //"f9b348d884f1454f86681eeab8bdbaad";
char ssid[]="JioFi_100D24B"; //Service set identifier
char password[] = "6mxmksisbj";
void setup()
{
// Debug console
Serial.begin(9600);
Blynk.begin(auth , ssid ,password);
servo.attach(servopin1); // Node MCU D8
servo2.attach(servopin2);
}
void loop()
{
Blynk.run();
// You can inject your own code or combine it with other sketches.
// Check other examples on how to communicate with Blynk. Remember
// to avoid delay() function!
}
BLYNK_WRITE(V0)
{
servo.write(param.asInt());
}
BLYNK_WRITE(V1)
{
servo2.write(param.asInt());
}