NodeMCU based robot control using phone and web responsive website which also has modes likes Line following and Obstacle avoiding
Here, Node-MCU acts as Access point so, connect to its Wi-Fi network and type http://192.168.4.1 you will reach the robot control page
Note : if you want to make any changes in web page then get preview in index.html then copy whole code and paste it into the NodeMCTBot.ino file ad upload the code
!!! Make sure that you disconnect the GPIO 3 and GPIO 1 before uploading the code, Because both are RX and TX pins for serial communication
Node-MCU Pin No | Peripheral Pin No |
---|---|
D1 | Motor Driver Left Forward Pin (IN1) |
D2 | Motor Driver Left Backward Pin (IN2) |
D3 | Motor Driver Right Forward Pin (IN3) |
D4 | Motor Driver Right Backward Pin (IN4) |
GPIO 3 | Motor Driver PWM Pin |
D7 | Ultrasonic Trigger Pin |
D6 | Ultrasonic Echo Pin |
D8 | Servo Pin |
GPIO 1 | Left IR Proximity Sensor Input |
GPIO 9 | Centre IR Proximity Sensor Input |
GPIO 10 | Right IR Proximity Sensor Input |