tp1 Iot
tp1 Iot
tp1 Iot
Travaux Pratiques
Internet of Things
ISETso 2024/2025
Atelier Internet of Things Exploitation de la base de donnée Firebase avec la carte ESP32
1 Objectifs
– Exploitation de la carte de développement IoT ESP32.
– Exploitation de la base de données Firebase.
– Acquisition des données via ESP32.
– Envoie des données via ESP32.
– Processors :
– CPU : Xtensa dual-core (or single-core) 32-bit LX6 microprocessor, operating at 160 or
240 MHz and performing at up to 600 DMIPS
– Ultra low power (ULP) co-processor
– Memory : 320 KiB RAM, 448 KiB ROM
– Wireless connectivity :
– Wi-Fi : 802.11 b/g/n
– Bluetooth : v4.2 BR/EDR and BLE (shares the radio with Wi-Fi)
– Peripheral interfaces :
– 34 × programmable GPIOs
– 12-bit SAR ADC up to 18 channels
– 2 × 8-bit DACs
– 10 × touch sensors (capacitive sensing GPIOs)
– 4 × SPI
– 2 × I2S interfaces
– 2 × I2C interfaces
– 3 × UART
– SD/SDIO/CE-ATA/MMC/eMMC host controller
– SDIO/SPI slave controller
– Ethernet MAC interface with dedicated DMA and IEEE 1588 Precision Time Protocol
support
– CAN bus 2.0
– Infrared remote controller (TX/RX, up to 8 channels)
– Motor PWM
– LED PWM (up to 16 channels)
– Hall effect sensor
– Ultra low power analog pre-amplifier
2.2 Firebase
Firebase propose plusieurs services clés pour la gestion des données, notamment Firebase
Realtime Database et Firebase Cloud Firestore. Ces services permettent de stocker les données
de manière flexible et en temps réel, ce qui signifie que les modifications sont instantanément
propagées à tous les utilisateurs connectés à l’application web. Cela rend l’acquisition de données
en temps réel simple et efficace, offrant une expérience utilisateur fluide et réactive.
3. Get the url link to install ESP32 on arduino ide from this website :
https://www.wordpress.com/page/chellynizarblog.wordpress.com/285
into the “Additional Board Manager URLs” field as shown in the figure below. Then, click
the “OK” button :
4. Search for ESP32 and press install button for the “ESP32 by Espressif Systems“
1. Select your Board in Tools > Board menu (ESP32 DEV MODULE)
2. Select the Port (if you don’t see the COM Port in your Arduino IDE, you need to install
the CP210x USB to UART Bridge VCP Drivers) :
3. Open the following example under File > Examples > WiFi (ESP32) > WiFiScan
4. A new sketch opens in your Arduino IDE :
5. Press the Upload button in the Arduino IDE. Wait a few seconds while the code compiles
and uploads to your board.
6. If everything went as expected, you should see a “Done uploading.” message.