LUATOS ESP32-C3: Difference between revisions

From RevSpace
Jump to navigation Jump to search
No edit summary
Line 22: Line 22:


Broncode: https://github.com/bertrik/MainsFrequency/tree/master/esp32c3phase
Broncode: https://github.com/bertrik/MainsFrequency/tree/master/esp32c3phase
Platformio config:
<pre>
[platformio]
default_envs = default
src_dir = .
[env:default]
framework = arduino
platform = espressif32
board = esp32dev
board_build.mcu = esp32c3
monitor_speed = 115200
lib_deps =
    https://github.com/tzapu/WiFiManager
    knolleary/PubSubClient
</pre>

Revision as of 16:40, 22 March 2024

ESP32-C3 devboardje dat we momenteel in de grabbelvoorraad hebben (22-03-2024, niet persé voor herhaling vatbaar).

Om 2 extra GPIO's te kunnen gebruiken (12 en 13, aan de ledjes) zitten die niet aan het flash, waardoor je dat expliciet moet instellen omdat anders je code niet draait... [[1]]

Platformio

[platformio]
src_dir = src

[env:serial]
framework = arduino
board = esp32-c3-devkitm-1
board_build.flash_mode = dio
platform = espressif32@6.5.0
upload_protocol = esptool
upload_speed = 1500000
targets = compiledb, upload

Projecten

netfrequentie meten

Ik heb dit bordje gebruikt om de netfrequentie te meten, zie project pagina MainsFrequency2.0#Luatos_ESP32C3

Broncode: https://github.com/bertrik/MainsFrequency/tree/master/esp32c3phase

Platformio config:

[platformio]
default_envs = default
src_dir = .

[env:default]
framework = arduino
platform = espressif32
board = esp32dev
board_build.mcu = esp32c3
monitor_speed = 115200
lib_deps =
    https://github.com/tzapu/WiFiManager
    knolleary/PubSubClient