2018年4月17日 星期二

NodeMcu + HCSR04 Ultrasonic Raging Sensor

In this illustration we will going to wire the ESP8266 12E nodeMCU with Ultrasonic Raging Sensor HCSR04. As you can see the illustration below the sensor trigger pin is connected to D1 which is pin 5 in Arduino Board, and the ECHO is connected to D2 which is pin 4 in Arduino Board. However in the sketch code we are going to use the Arduino IDE to program the NodeMCU ESP8266 12E Development board if you to have a interpreter in your Arduino IDE please refer to this link.
Hardware Required
  • NodeMCU ESP8266 12E Development Board
  • HCSR04 Ultrasonic Raging Sensor
  • Jumper Wires & DuPont Wires
  • Solderless Breadboard
Wiring Diagram
Ultrasonic-HCSR04-NodeMCU-Schematics-Diagram
Test Code

Facebooktwittergoogle_plusredditpinterestmail

沒有留言:

張貼留言

Messaging API作為替代方案

  LINE超好用功能要沒了!LINE Notify明年3月底終止服務,有什麼替代方案? LINE Notify將於2025年3月31日結束服務,官方建議改用Messaging API作為替代方案。 //CHANNEL_ACCESS_TOKEN = 'Messaging ...