WIFI Perimeter Sender(English): Unterschied zwischen den Versionen
(→PROGRAMMING ESP32) |
|||
Zeile 35: | Zeile 35: | ||
=== Option 1 === | === Option 1 === | ||
It's the same that standard sender Only one perimeter wire is used. | It's the same that standard sender Only one perimeter wire is used. | ||
+ | |||
+ | [[Datei:Sender ESP32 Ina3221 wiring.jpg|400px]] | ||
=== Option 2 === | === Option 2 === | ||
2 area perimeter wire are possible. | 2 area perimeter wire are possible. | ||
+ | |||
+ | |||
+ | [[Datei:Sender 2 loops ESP32 Ina3221 wiring.jpg|400px]] | ||
+ | |||
+ | |||
+ | === Option 3 === | ||
+ | 1 area perimeter wire and 1 DC motor for a door. Be careful that the code is not actually write for this feature. | ||
+ | |||
+ | |||
+ | [[Datei:Sender with door ESP32 Ina3221 wiring.jpg|400px]] | ||
+ | |||
==PROGRAMMING ESP32== | ==PROGRAMMING ESP32== |
Version vom 14. März 2021, 11:14 Uhr
WIFI Perimeter sender.
Inhaltsverzeichnis
WIFI PERIMETER SENDER
Hardware
You need :
1 ESP32 DEV KIT V1 (or later but with same pin diagram).
1 INA3221 3-Channel DC Current Sensor :
1 I2C Small OLED Display
1 DC/DC Converter
1 L298N motor Driver.
WIRING
Now you need to connect everything together.
Option 1
It's the same that standard sender Only one perimeter wire is used.
Option 2
2 area perimeter wire are possible.
Option 3
1 area perimeter wire and 1 DC motor for a door. Be careful that the code is not actually write for this feature.
PROGRAMMING ESP32
Use code locate into github: https://github.com/Boilevin/AzuritBer/tree/master/Sender%20WIFI
Select for example sender_ESP32_INA3221_2loops (it's the 2 loops version)
Now check the 40 firsts line of code and adjust according your need.
You need to use Arduino IDE to upload code into ESP32, It's easy and exactly same process that for Arduino DUE or Mega ,but need to select the correct board.
Add the ESP32 board to your arduino IDE: for more info see : https://github.com/espressif/arduino-esp32/blob/master/docs/arduino-ide/boards_manager.md
Open your Arduino Ide 1.8 or later
Select ESP32 DEV Module and correct COM port
To upload code do not forget : At the end of compilation when you see "connecting ....." --> push the BOOT button locate on ESP32 DEV KIT for 5 sec to start uploading