You are on page 1of 32

https://www.arduinolibraries.

info/libraries
Attention: references website to study the
https://www.arduino.cc/en/uploads/Main/ArduinoNanoManual23.pdf
input/output and analog/digital signal
Attention: references website to study the
https://randomnerdtutorials.com/esp8266-pinout-reference-gpios/
input/output and analog/digital signal
Arduino Nano

Arduino Uno

ESP32

ESP8266
ESP32
https://dl.espressif.com/dl/package_esp32_index.json

ESP8266
http://arduino.esp8266.com/stable/package_esp8266com_index
.json

STM32 :

https://github.com/stm32duino/BoardManagerFiles/raw/master
/STM32/package_stm_index.json
Attention: references website to study the
https://randomnerdtutorials.com/esp8266-pinout-reference-gpios/
input/output and analog/digital signal
https://randomnerdtutorials.com/esp32-pinout-reference-gpios/
Attention: references website to study the https://randomnerdtutorials.com/getting-started-with-esp32/
input/output and analog/digital signal http://www.helton.de/post/development-boards-pinout/
What is GPIO?

GPIO stands for General Purpose Input/Output. It’s a standard interface used to
connect microcontrollers to other electronic devices. For example, it can be used
with sensors, diodes, displays, and System-on-Chip modules. Estimote Location
Beacons (Hardware Revision F2.3 and later) are equipped with GPIO. It allows for
providing external power supply, remote control of connected devices,
broadcasting more contextual data, or defining contents for custom Bluetooth
data packets.

Support for GPIO is available in the latest versions of Estimate app and SDK.
GPIO can be used in three modes:
• Input
• Output
• UART interface
GPIO INPUT
This is the default mode, in which the beacon receives input from the connected
device via GPIO. You can imagine a button broadcasting its status (on/off) through
the beacon. In this configuration, the beacon will broadcast received data in
the Estimote Telemetry packet. This means information about binary states of two
GPIO pins. In other words, the beacon will be advertising two 0/1 values.
If you want to learn how to enable Estimote Telemetry, read: What is a beacon
protocol? Can beacons broadcast multiple packets simultaneously?

GPIO OUTPUT
In the output mode, beacon delivers data to the connected device via GPIO. You could for
example switch a LED lamp on or off with the beacon controlled from a mobile app.
In this configuration, the beacon will deliver data from two pins about their binary states to
the connected device.

UART
If you configure GPIO as an UART interface, you’ll be able to define custom advertising
packets for an Estimote Beacon. This feature will soon be enabled in the SDK.
https://www.instructables.com/id/IOT-Made-Simple-Playing-With-the-ESP32-on-Arduino-/
https://circuitdigest.com/microcontroller-projects/arduino-light-sensor-using-ldr

https://www.instructables.com/id/NodeMCU-ProjectButton-Control-LED/

https://www.instructables.com/id/Interfacing-Servo-Motor-With-ESP32/
https://randomnerdtutorials.com/esp32-adc-analog-read-arduino-ide/

https://randomnerdtutorials.com/esp32-pinout-reference-gpios/

https://www.instructables.com/id/IOT-Made-Simple-Playing-With-the-ESP32-on-Arduino-/

https://circuits4you.com/2018/12/31/esp32-wroom32-devkit-analog-read-example/

http://www.thesmarthomehookup.com/nodemcu-esp32-and-esp8266-pin-modes-
analog-and-digital-inputs-and-outputs/

http://www.martyncurrey.com/switching-things-on-and-off-with-an-arduino/

http://www.toptechboy.com/arduino-lessons/

https://randomnerdtutorials.com/esp32-ds18b20-temperature-arduino-ide/
After upload done, you will see the program running
results:
LED light ON when the LDR status value <=500 & at
Serial Monitor will display: LDR is DARK, LED is ON
LED light OFF when the LDR status value >500 & at
Serial Monitor will display: LED is OFF
After upload done, you will see the program running results:
when the button switch is pressed, LED light ON; when the switch is
released, the LED light OFF.
After the program is compiled and uploaded, you can achieve:
click the button to turn ON the LED, and then press this button,
the LED will be turned OFF with Debounce code.
3 4 5 6 7 8
10 11
1 2 9
https://www.arduinolibraries.info/libraries/liquid-crystal-i2-c
D22: I2C_SCL

D21: I2C_SDA

You might also like