Esp32: Difference between revisions
No edit summary |
No edit summary |
||
Line 32: | Line 32: | ||
https://www.smart-prototyping.com/blog/How%20to%20Install-ESP32-Core-Arduino-IDE | https://www.smart-prototyping.com/blog/How%20to%20Install-ESP32-Core-Arduino-IDE | ||
===c3 02 === | |||
[[image:esp32-c3-devkitc-02-v1-pinout.png]] | [[image:esp32-c3-devkitc-02-v1-pinout.png]] | ||
[[image:esp32-c3_devkitM-1_pinlayout.png | [[image:esp32-c3_devkitM-1_pinlayout.png]] | ||
===esp32 c3 devkitm-1 ( mini)=== | |||
[[image:esp32-c3-devkitm-1-v1-pinout.png]] | [[image:esp32-c3-devkitm-1-v1-pinout.png|800px]] | ||
<a href="/index.php/File:Esp32-c3_devkitM-1_pinlayout.png" class="image"><img alt="Esp32-c3 devkitM-1 pinlayout.png" src="/images/e/e0/Esp32-c3_devkitM-1_pinlayout.png" decoding="async" width="400" height="300"></a> | <a href="/index.php/File:Esp32-c3_devkitM-1_pinlayout.png" class="image"><img alt="Esp32-c3 devkitM-1 pinlayout.png" src="/images/e/e0/Esp32-c3_devkitM-1_pinlayout.png" decoding="async" width="400" height="300"></a> |
Revision as of 21:56, 4 September 2023
esp32-c3-devkitC-02
I got some esp32-c3-devkitC-02
from the hardware schematic i seethe RGB LED is SK68XXMINI-HS
I used adafruit neopixel library to drive this RGB LED. it's one wire or i2c or something. Pin 8
talk to it via I2C
damn trying to get the boot flashed.
this is what I'm going on now:
https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html
board manager extras:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json
old config:
https://dl.espressif.com/dl/package_esp32_index.json, http://arduino.esp8266.com/stable/package_esp8266com_index.json
This page has some particulars:
https://www.smart-prototyping.com/blog/How%20to%20Install-ESP32-Core-Arduino-IDE
c3 02
esp32 c3 devkitm-1 ( mini)
<a href="/index.php/File:Esp32-c3_devkitM-1_pinlayout.png" class="image"><img alt="Esp32-c3 devkitM-1 pinlayout.png" src="/images/e/e0/Esp32-c3_devkitM-1_pinlayout.png" decoding="async" width="400" height="300"></a>
so which pins are for I2C SDA/SCL ?
Lots of conflicting docs.
I forced the issue like this:
void setup() { Wire.setPins(sda_pin, scl_pin); Wire.begin(); ... }
want to make the on board neopixel work? use the neopixel library and set pin to 8.
Here is a web server that exposes BME 280 sensors in a prometheus friendly way:
- uses neopixel to communicate wifi communication status
- uses serial for diag debug output.
ESP32-C3 Mini Development Board
sparkfun board
aka WRL-18036
basedon ESP32-C3-MINI-1 chip
https://www.sparkfun.com/products/18036
gotchas:
set I2C wires to pin 0 and pin1 , means pin 9 and 10 on the board
#define I2C_SDA 0 #define I2C_SCL 1 ... void setup() { Wire.setPins(I2C_SDA, I2C_SCL); Wire.begin(); ... }
Scripts
- /esp32_i2c_scanner - it's possible to talk i2c over several pairs. In fact it's not clear if the default works. https://docs.espressif.com/projects/arduino-esp32/en/latest/tutorials/io_mux.html#usage-examples