This is an old revision of the document!
We will be using the ESP32-C6 Sparrow board as the main development board for the lab assignments.
Also, for the most of the labs, we will be using the Visual Studio Code and Platformio environment, which you can download from here
After downloading and installing the PlatformIO extension, create a new project using any ESP32-C6 board. After project creation, you will need to edit the platformio.ini file and replace it with the following:
< ; PlatformIO Project Configuration File ; ; Build options: build flags, source filter ; Upload options: custom upload port, speed and extra flags ; Library options: dependencies, extra library storages ; Advanced options: extra scripting ; ; Please visit documentation for the other options and examples ; https://docs.platformio.org/page/projectconf.html [env:esp32-c6-sparrow] platform = https://github.com/FarhadGUL06/platform-espressif32.git board = esp32-c6-sparrow framework = arduino ; Serial monitor options monitor_speed = 115200 lib_deps = adafruit/Adafruit NeoPixel@^1.11.0 adafruit/Adafruit GFX Library@^1.11.9 adafruit/Adafruit SSD1306@^2.5.10 dantudose/LTR308 library@^1.0 https://github.com/sparkfun/SparkFun_MAX1704x_Fuel_Gauge_Arduino_Library stm32duino/STM32duino LSM6DSL@^2.0.0 /code> Open the "Blink" example in the Arduino IDE {{:iothings:laboratoare:lab1-blink.jpg?600|}} Define LED_BUILTIN to correspond to one of the on-board LEDs. For the <color green>GREEN boards </color> (rev. 1) the LED has the following pinout * Red - GPIO25, Green - GPIO26, Blue - GPIO27 And for the <color blue>BLUE boards </color> (rev. 2), the LED has the following pinout: * Red - GPIO14, Green - GPIO13, Blue - GPIO15 <code> #define LED_BUILTIN ...
Load the “WiFiScan” example from Arduino IDE.
Open the Serial Monitor to view the result of the scan
Load the “SimpleBleDevice” example. Install on your phone an app that scans nearby Bluetooth devices, such as this BLE Scanner. Check if your device is in the list.