Introduction: Follow Me Robot Using NodeMCU
It is very Simple Follow Me Robot using NodeMCU. It uses NodeMCU HC SR04 Distance Sensor to sense the nearby object/ human. When it detects the Object/ Human it will start follow.
Step 1: Gather the Parts
1) NodeMCU - Microcontroller
2) HC SR04 - Distance Sensor
3) L298N - Motor Driver
4) 2 X 150 RPM 12V/5V DC Motor with Wheels
5) Hylam Sheet - Mounting All Parts
6) DC-DC StepUp Converter Module
7) Power Bank
8) Caster Wheel
1) Arduino IDE
Step 2: UltraSonic Sensor
The HC-SR04 sensor attach to the Breadboard
The sensor Vcc is connected to the NodeMCU +3.3V/5V
The sensor GND is connected to the NodeMCU GND
The sensor Trigger Pin is connected to the NodeMCU Digital I/O D4
The sensor Echo Pin is connected to the NodeMCU Digital I/O D3
Some Sensor works with 3.3V. If you didn't get any values change the Vcc Pin to 5V.
Download the File.
Upload the Code in NodeMCU.
Open the Serial Monitor after upload finished.
Set Baud Rate to 9600.
Step 3: Connections and Code
Don't remove wires from Sensor. It is same for final connections.
For Power Supply :
I use Li Ion Powerbank. I soldered the wires with Lithium Battery.
Then the Wires from Battery is soldered to Input of DC Converter and it is calibrated to get output voltage of 5V/12V. Then connect the positive terminal to +12V of L298N and negative terminal to Gnd.
Download and Upload the Code to NodeMCU.
Step 4: Finished!!!!
Power the NodeMCU with USB from Powerbank.
Test the Bot. Enjoy!!!