This is an old revision of the document!


Lab 1: Getting Started

Necessary gear

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

ESP32-C6 Sparrow specs

This is the pinout diagram of the development board:

First Steps

1. Configuring PlatformIO

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

Open the “Blink” example in the Arduino IDE

Define LED_BUILTIN to correspond to one of the on-board LEDs.

For the GREEN boards (rev. 1) the LED has the following pinout

  • Red - GPIO25, Green - GPIO26, Blue - GPIO27

And for the BLUE boards (rev. 2), the LED has the following pinout:

  • Red - GPIO14, Green - GPIO13, Blue - GPIO15
#define LED_BUILTIN ...

2. Scan and display local WiFi networks

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.

Resources

iothings/laboratoare/2025/lab1.1758797492.txt.gz · Last modified: 2025/09/25 13:51 by dan.tudose
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0