Posts

Showing posts with the label YD-ESP32-C6

Rust on ESP (esp-rs), toggle GPIO to control LED on ESP32-C6.

Image
With Embedded Rust for ESP32 installed on Linux Mint 21.3 over VirtualBox/Windows 11 , this video show steps to run esp-rs on YD-ESP32-C6-N16 , toggle GPIO to control LED. Connect a LED and resistor (for current limit) between 3V3 and GPIO15 of ESP32-C6 board YD-ESP32-C6-N16 |      | |      | +-------| GPIO15      | | |      | | |                        | | |                     3.3V|---+ | +-------------------+ | |           | | | | | +-------|<|-----|/\/\/\|--------+ LED Resistor (current limit) Generate project: Generate a project based on esp-template(no_std): cargo generate esp-rs/esp-template - Project Name : rs-c6-blink - Target MCU : esp32c6 - false ...

Create Hello World in VSCode/ESP-IDF Extension manually, run on ESP32-C6 to send text to Serial.

Image
With ESP-IDF Extension installed on VSCode , this video show how to create Hello World in VSCode/ESP-IDF Extension manually, run on  YD-ESP32-C6-N16 to send text to Serial. Create new ESP-IDF project: > View > Command Palette > ESP-IDF: New Project Setup new project hello-C6, choose ESP-IDF Board: ESP32-C6 chip (via ESP USB Bridge) Edit and rename main.c to main.cpp : #include <iostream> extern "C" void app_main(void) { for (int i=0; i<=20; i++){ std::cout << "Hello World! "; std::cout << i; std::cout << "\n"; } } Build, Flash and Run: > View > Command Palette > ESP-IDF: Build, Flash and start a monitor on your device

Flash CircuitPython 9 (Alpha 5) on ESP32-C6, and control on-board RGB LED (NeoPixel).

Image
Flash CircuitPython 9.0.0-alpha.5 on YD-ESP32-C6-N16 , and control on-board RGB LED (NeoPixel). Run on Windows 11. esptool is needed to flash firmware on ESP-C6, read  Install esptool on Windows 11 . Steps to flash CircuitPython firmware on ESP32-C6: Visit https://circuitpython.org/downloads , search boards of ESP32-C6. There are no 16MB Flash version, so I try "ESP32-C6-DevKitC-1-N8". Download .bin of CircuitPython 9.0.0-alpha.5 now. Connect to USB connector marked "COM". Erase Flash with command: esptool --chip esp32c6 --port <COM> erase_flash Write Binary Data to Flash with command: esptool --chip esp32c6 --port <COM> write_flash 0x0 <.bin> Reconect USB to connector marked "USB". Open Thonny Python IDE. In Thonny: > Run > Configure interpreter... Select interpreter of "CircuitPython (generic)" and Port, then OK. Prepare lib for neopixel: Visit https://circuitpython.org/libr...

my dev. board - YD-ESP32-C6-N16

Image
 YD-ESP32-C6-N16 by VCC-GND Studio - ESP32-C6-WROOM-1 with 16M Flash CircuitPython related: ~  Flash CircuitPython 9 (Alpha 5) on ESP32-C6, and control on-board RGB LED (NeoPixel) . ESP-IDF related: ~  Install Visual Studio Code on Linux Mint 21.2 (over VirtualBox/Windows 11) . ~  Install Espressif IDF Extension in VS Code to program ESP32-C3 Run on Linux Mint 21.2 . ~  Create Hello World in VSCode/ESP-IDF Extension manually, run on ESP32-C6 to send text to Serial . ~  Install PlatformIO on Visual Studio Code to program ESP32-C6 in ESP-IDF . esp-rs: ~  Install Embedded Rust for ESP32 on Linux Mint 21.3 over VirtualBox/Windows 11 (tested with ESP32-C3-DevKitM-1) ~  Rust on ESP (esp-rs), toggle GPIO to control LED on ESP32-C6 .