You Can Find Circuit Diagram and Source Code On App
You Can Find Circuit Diagram and Source Code On App
Circuit Diagram:
const int buzPin = D5; // set digital pin D5 as buzzer pin (use active
buzzer)
const int ledPin = D8; // set digital pin D8 as LED pin (use super bright
LED)
const int wifiLedPin = D0; // set digital pin D0 as indication, the LED turn
on if NodeMCU connected to WiFi as STA mode
void setup(){
Serial.begin(115200); // set up Serial library at 115200 bps
Serial.println();
Serial.println("*WiFi Robot Remote Control Mode*");
Serial.println("--------------------------------------");
pinMode(buzPin, OUTPUT); // sets the buzzer pin as an Output
pinMode(ledPin, OUTPUT); // sets the LED pin as an Output
pinMode(wifiLedPin, OUTPUT); // sets the Wifi LED pin as an Output
digitalWrite(buzPin, LOW);
digitalWrite(ledPin, LOW);
digitalWrite(wifiLedPin, HIGH);
// Set all the motor control pins to outputs
pinMode(PWM_A, OUTPUT);
pinMode(PWM_B, OUTPUT);
pinMode(DIR_A, OUTPUT);
pinMode(DIR_B, OUTPUT);
// Turn off motors - Initial state
digitalWrite(DIR_A, LOW);
digitalWrite(DIR_B, LOW);
analogWrite(PWM_A, 0);
analogWrite(PWM_B, 0);
IC REG. 5V AMS1117
R 1K ohm 1/4W
2
C 100uF/16V
Active Buzzer 5V
Download Gerbers
https://play.google.com/store/apps/details?id=com.bluino.esp8266wifirobotcar