Learn by doing

Sensor Box裏有什麽?
- ESP32功能比Arduino 更强大
- 可用Arduino IDE編寫程式
- 具有WIFI+藍牙功能
- GPIO 脚位較多
請預先安裝Arduino IDE及載入ESP32
載入ESP32教學

ESP32 Pinout Guide

The ESP32 has more GPIOs with more functionalities compared to the ESP826.
With the ESP32 you can decide which pins are UART, I2C, or SPI – you just need to set that on the code. This is possible due to the ESP32 chip’s multiplexing feature that allows to assign multiple functions to the same pin. If you don’t set them on the code, the pins will be used as default – as shown in the figure below (the pin location can change depending on the manufacturer).

ESP32 Troubleshoot —— Failed to Connect to ESP32...
A fatal error occurred: “Failed to connect to ESP32: Timed out… Connecting…”
ESP32 Upload Technique
-
After you see the “Connecting….” message in your Arduino IDE, release the finger from the “BOOT” button:

-
After that, you should see the “Done uploading” message.
.png)
人體紅外綫感應器
當您接近自動打開/關閉門的地方,燈泡自動打開/關閉或自動扶梯自動啟動時,您是否曾問過一個問題:“如何做到這一點?”


Connecting PIR Sensor to Arduino UNO

ESP32 with PIR Motion Sensor using Interrupts and Timers

PIR Motion Sensor with Servo Motor
氣體感測器
傳感器提供的模擬輸出電壓與煙氣濃度成正比。 氣體濃度越大,輸出電壓越高; 而較低的氣體濃度會導致低輸出電壓。 以下動畫說明了氣體濃度和輸出電壓之間的關係。


溫度感測器
在DHT11的內部,有一個濕度感應組件和一個熱敏電阻。
內部dht11傳感器正面
濕度感測部件具有兩個電極,兩個電極之間夾有水分保持基片。
隨著水蒸氣被基板吸收,離子由基板釋放,這又增加了電極之間的電導率。

About Cooling Fan and DHT Sensor

ESP32 with DHT11/DHT22 Temperature and Humidity Sensor using Arduino IDE

光敏電阻
關於光敏電阻
本教程中使用的光傳感器是光敏電阻,也稱為光敏電阻或光電管。
它不僅用於檢測光,還用於測量環境光的亮度/照度級別。
光敏電阻的表面暴露的光線越多,其電阻就越小。 因此,通過測量光敏電阻的電阻,我們可以知道環境光有多亮。

ESP32 ADC – Read Analog Values with Arduino IDE

Arduino - Light Sensor Triggers LED

Arduino - Light Sensor Triggers Relay

伺服馬達
伺服電機如何工作?
您可以通過向信號線發送一系列脈衝來控制伺服電機。 傳統的模擬伺服電機期望大約每20毫秒接收一次脈衝(即信號應為50Hz)。

ESP32 Servo Motor Web Server with Arduino IDE

Arduino - Motion Sensor - Servo Motor

直流馬達
ESP32 with DC Motor and L298N Motor Driver – Control Speed and Direction

繼電器
繼電器是一種電子控制器件,它具有控制系統和被控制系統,通常應用於自動控制電路中,是用較小的電流去控制較大電流的一種「自動開關」,在電路中起著自動調節、安全保護、轉換電路等作用。當我們開始用 Webduino 控制繼電器,就可以非常簡單的做出利用網頁控制的智慧插座或自動開關。

Relay has two groups of pins: low voltage group and high voltage group.
-
Pins in the low voltage group are connected to Arduino, including three pins:
-
GND pin: needs to be connected to GND (0V)
-
VCC pin: needs to be connected to VCC (5V)
-
IN pin: receives the control signal from Arduino
-
-
Pins in the high voltage group are connected to high voltage a device, including three pins (usually in screw terminal):
-
COM pin: is the common pin. It is used in both normally open mode and normally closed mode
-
NO pin: is normally open pin. It is used in the normally open mode
-
NC pin: is normally closed pin. It is used in the normally closed mode
-

Light Sensor Triggers Relay


ESP32 Relay Module – Control
TinkerCAD —— A Program Generator
從電子綫路的設計到程式的產生,TinkerCAD都可以幫到你。

TinkerCAD 教學
TinkerCAD Teaching Material