<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.kamamilabs.com/index.php?action=history&amp;feed=atom&amp;title=KAmod_ESP32_C3</id>
	<title>KAmod ESP32 C3 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kamamilabs.com/index.php?action=history&amp;feed=atom&amp;title=KAmod_ESP32_C3"/>
	<link rel="alternate" type="text/html" href="https://wiki.kamamilabs.com/index.php?title=KAmod_ESP32_C3&amp;action=history"/>
	<updated>2026-04-05T14:44:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://wiki.kamamilabs.com/index.php?title=KAmod_ESP32_C3&amp;diff=7381&amp;oldid=prev</id>
		<title>Grzegorzbecker: Created page with &quot;__jzpdf__ ==== Description ==== &#039;&#039;&#039;KAmod ESP32-C3 - Development board with ESP32-C3 Mini-1 module&#039;&#039;&#039;&lt;/br&gt; The KAmod ESP32-C3 board features the ESP32-C3 Mini-1 module from Espressif, which contains a 32-bit, single-core SoC microcontroller based on the RISC-V architecture. It includes Wi-Fi and Bluetooth 5 (LE) radio interfaces with Long Range (LR) mode support. &lt;br&gt;&lt;br&gt; The MCU operates at a maximum clock frequency of 160 MHz and is equipped with 400 kB of RAM and 4 MB...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.kamamilabs.com/index.php?title=KAmod_ESP32_C3&amp;diff=7381&amp;oldid=prev"/>
		<updated>2026-04-04T12:43:30Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__jzpdf__ ==== Description ==== &amp;#039;&amp;#039;&amp;#039;KAmod ESP32-C3 - Development board with ESP32-C3 Mini-1 module&amp;#039;&amp;#039;&amp;#039;&amp;lt;/br&amp;gt; The KAmod ESP32-C3 board features the ESP32-C3 Mini-1 module from Espressif, which contains a 32-bit, single-core SoC microcontroller based on the RISC-V architecture. It includes Wi-Fi and Bluetooth 5 (LE) radio interfaces with Long Range (LR) mode support. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt; The MCU operates at a maximum clock frequency of 160 MHz and is equipped with 400 kB of RAM and 4 MB...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__jzpdf__&lt;br /&gt;
==== Description ====&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;KAmod ESP32-C3 - Development board with ESP32-C3 Mini-1 module&amp;#039;&amp;#039;&amp;#039;&amp;lt;/br&amp;gt;&lt;br /&gt;
The KAmod ESP32-C3 board features the ESP32-C3 Mini-1 module from Espressif, which contains a 32-bit, single-core SoC microcontroller based on the RISC-V architecture. It includes Wi-Fi and Bluetooth 5 (LE) radio interfaces with Long Range (LR) mode support. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
The MCU operates at a maximum clock frequency of 160 MHz and is equipped with 400 kB of RAM and 4 MB of Flash memory. It supports low power consumption modes, operates in temperatures from -40 to +85°C, and implements security features such as Secure Boot and Flash encryption with AES-128/256-XTS. These extensive specifications make it ideal for industrial and IoT applications. Additionally, the board includes a high-precision SHTC3 temperature and humidity sensor, an ICM42670 MEMS sensor (3-axis gyroscope and 3-axis accelerometer), a WS2812 RGB LED, and a standard LED connected to one of the microcontroller ports. These components facilitate the rapid building of diverse applications. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
The module is powered by +5V via a USB-C connector or by a Li-Ion battery. The +3.3 V voltage for the microcontroller and peripherals is generated by a SY8088 Buck DC/DC converter (input range 2.5–5 V). If USB-C power is disconnected, power is automatically drawn from the battery (if connected). The power system includes an MCP7381 Li-Ion battery charger powered via USB-C.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
The KAmod ESP32-C3 module is designed for developing and testing applications in the Arduino environment (C/C++) as well as in Rust. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:KAmodESP32_C3_2.jpg|450px]]&lt;br /&gt;
[[File:KAmodESP32-C3_3.jpg|400px]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Key Features and Parameters ====&lt;br /&gt;
&lt;br /&gt;
* ESP32C3 Mini-1 Module (Wi-Fi 802.11 b/g/n, Bluetooth 5 LE)&lt;br /&gt;
* 32-bit RISC-V single-core MCU @ 160 MHz, 400 kB SRAM, 4 MB Flash&lt;br /&gt;
* 15 GPIO lines&lt;br /&gt;
* Communication interfaces: SPI, I2C, I2S, UART, USB&lt;br /&gt;
* 12-bit SAR ADC (up to 6 channels)&lt;br /&gt;
* ICM42670 Accelerometer/Gyroscope&lt;br /&gt;
** 3-axis MEMS gyroscope (X, Y, Z angular rate)&lt;br /&gt;
** 3-axis MEMS accelerometer (X, Y, Z axis)&lt;br /&gt;
** Communication interface: I2C&lt;br /&gt;
* SHTC3 Thermometer/Hygrometer&lt;br /&gt;
** Humidity range: 0…100%RH (+/- 2% accuracy)&lt;br /&gt;
** Temperature range: -40 to +125 °C (+/-0.2°C accuracy from 0°C to +60°C)&lt;br /&gt;
** Communication interface: I2C&lt;br /&gt;
* SY8088 DC/DC Converter&lt;br /&gt;
* MCP73831 Li-Ion Battery Charger&lt;br /&gt;
* Programmable WS2812 RGB LED&lt;br /&gt;
* USB-C Connector&lt;br /&gt;
** +5V Power supply&lt;br /&gt;
** Flash programming interface&lt;br /&gt;
** JTAG interface&lt;br /&gt;
* Reset and Boot buttons&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Standard Equipment ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;  style=&amp;quot;width: 1000px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;text-align: center;&amp;quot;|Code&lt;br /&gt;
! style=&amp;quot;text-align: center;&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|&amp;lt;b&amp;gt;KAmod ESP32-C3&amp;lt;/b&amp;gt;&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;| &lt;br /&gt;
* Assembled and tested module&amp;lt;br&amp;gt;&lt;br /&gt;
* 1 x straight 12-pin goldpin header (2.54 mm pitch)&lt;br /&gt;
* 1 x straight 16-pin goldpin header (2.54 mm pitch)&lt;br /&gt;
|}&lt;br /&gt;
[[File:KAmodESP32-C3_4.jpg|none|700px|thumb|center]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Electrical Schematic ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:KAmodESP32-C3_sch.png|none|1000px|thumb|center]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Pinout Description ====&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:KAmodESP32-C3_io.png|none|800px|thumb|center]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Power Supply ====&lt;br /&gt;
&lt;br /&gt;
The module is powered by VBUS (+5 V) from the USB-C connector. This voltage also charges the 4.2 V Li-Ion battery if connected to the Charger output. The MCP7381 chip manages the charging process using a Constant Current/Constant Voltage (CC/CV) algorithm, with the charging current set to 100 mA and the termination voltage to 4.20 V.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:KAmodESP32-C3 pwr.png|none|600px|thumb|left]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Arduino IDE Configuration and Test Program ====&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
======&amp;lt;span style=&amp;quot;color:#FFFFFF; background:#009999 &amp;quot;&amp;gt;Preliminary Steps&amp;lt;/span&amp;gt;======&lt;br /&gt;
Connect the KAmod ESP-C3 module to a computer with Arduino IDE installed. In the board selection menu, choose &amp;#039;&amp;#039;ESP32C3 Dev Module&amp;#039;&amp;#039; and the corresponding virtual COMx port.&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:KAmodESP32-C3_Arduino_1.png|none|800px|thumb|center]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
For the test procedure, we will use the Serial Monitor to display results. To enable this, you must unlock the &amp;#039;&amp;#039;USB CDC On Boot&amp;#039;&amp;#039; option (disabled by default).&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:KAmodESP32-C3_Arduino_2.png|none|800px|thumb|center]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======&amp;lt;span style=&amp;quot;color:#FFFFFF; background:#009999 &amp;quot;&amp;gt;Preferences Configuration&amp;lt;/span&amp;gt;======&lt;br /&gt;
Open &amp;#039;&amp;#039;File -&amp;gt; Preferences&amp;#039;&amp;#039;. In the &amp;#039;&amp;#039;Additional boards manager URLs&amp;#039;&amp;#039; field, enter: https://dl.espressif.com/dl/package_esp32_index.json&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:KAmodESP32-C3_Arduino_3.png|none|800px|thumb|center]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======&amp;lt;span style=&amp;quot;color:#FFFFFF; background:#009999 &amp;quot;&amp;gt;Selecting the Processor Type&amp;lt;/span&amp;gt;======&lt;br /&gt;
Navigate to &amp;#039;&amp;#039;Tools -&amp;gt; Board -&amp;gt; esp32 -&amp;gt; ESP32C3 Dev Module&amp;#039;&amp;#039;. This step ensures the project compiles for the correct architecture.&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:KAmodESP32-C3_Arduino_4.png|none|800px|thumb|center]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======&amp;lt;span style=&amp;quot;color:#FFFFFF; background:#009999 &amp;quot;&amp;gt;Installing Libraries&amp;lt;/span&amp;gt;======&lt;br /&gt;
The test program requires libraries for the ICM42670P accelerometer, SHTC3 thermometer/hygrometer, and WS2812B RGB LED. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======&amp;lt;span style=&amp;quot;color:#FFFFFF; background:#009999 &amp;quot;&amp;gt;ICM42670P Library&amp;lt;/span&amp;gt;======&lt;br /&gt;
Search for &amp;quot;ICM42670&amp;quot; in the Library Manager, select &amp;#039;&amp;#039;ICM42670P by TDK/Invensense&amp;#039;&amp;#039; and click &amp;#039;&amp;#039;Install&amp;#039;&amp;#039;.&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:KAmodESP32-C3_Arduino_5.png|none|800px|thumb|center]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======&amp;lt;span style=&amp;quot;color:#FFFFFF; background:#009999 &amp;quot;&amp;gt;SHTC3 Library&amp;lt;/span&amp;gt;======&lt;br /&gt;
Search for &amp;#039;&amp;#039;Adafruit SHTC3 Library&amp;#039;&amp;#039;. When prompted, click &amp;#039;&amp;#039;Install All&amp;#039;&amp;#039; to include necessary dependencies.&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:KAmodESP32-C3_Arduino_6.png|none|800px|thumb|center]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======&amp;lt;span style=&amp;quot;color:#FFFFFF; background:#009999 &amp;quot;&amp;gt;WS2812 RGB LED Library&amp;lt;/span&amp;gt;======&lt;br /&gt;
Install the &amp;#039;&amp;#039;Adafruit NeoPixel&amp;#039;&amp;#039; library.&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:KAmodESP32-C3_Arduino_7.png|none|800px|thumb|center]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======&amp;lt;span style=&amp;quot;color:#FFFFFF; background:#009999 &amp;quot;&amp;gt;Handling the ICM42670P Accelerometer&amp;lt;/span&amp;gt;======&lt;br /&gt;
The sensor uses the I2C bus. We initialize the interface using the Wire library:&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: &amp;#039;Courier New&amp;#039;, monospace&amp;quot;&amp;gt;&lt;br /&gt;
#define I2C_SDA 10 // SDA on IO10&amp;lt;br&amp;gt;&lt;br /&gt;
#define I2C_SCL 8  // SCL on IO8&amp;lt;br&amp;gt;&lt;br /&gt;
Wire.begin(I2C_SDA, I2C_SCL);&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======&amp;lt;span style=&amp;quot;color:#FFFFFF; background:#009999 &amp;quot;&amp;gt;Handling the SHTC3 Sensor&amp;lt;/span&amp;gt;======&lt;br /&gt;
Initialized via the standard begin method:&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: &amp;#039;Courier New&amp;#039;, monospace&amp;quot;&amp;gt;&lt;br /&gt;
shtc3.begin();&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;/span&amp;gt;&lt;br /&gt;
Reading data:&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: &amp;#039;Courier New&amp;#039;, monospace&amp;quot;&amp;gt;&lt;br /&gt;
shtc3.getEvent(&amp;amp;humidity, &amp;amp;temp); // read temp and humidity&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;/span&amp;gt;&lt;br /&gt;
Results are stored in `temp.temperature` and `humidity.relative_humidity`.&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:KAmodESP32-C3_Arduino_8.png|none|800px|thumb|center]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======&amp;lt;span style=&amp;quot;color:#FFFFFF; background:#009999 &amp;quot;&amp;gt;Handling the WS2812B RGB LED&amp;lt;/span&amp;gt;======&lt;br /&gt;
Define the number of pixels and the data pin:&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: &amp;#039;Courier New&amp;#039;, monospace&amp;quot;&amp;gt;&lt;br /&gt;
#define PIN_WS2812B 2 // Data pin&amp;lt;br&amp;gt; &lt;br /&gt;
#define NUM_PIXELS 1  // One LED&amp;lt;br&amp;gt; &lt;br /&gt;
Adafruit_NeoPixel WS2812B(NUM_PIXELS, PIN_WS2812B, NEO_GRB + NEO_KHZ800);&amp;lt;br&amp;gt; &lt;br /&gt;
&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======&amp;lt;span style=&amp;quot;color:#FFFFFF; background:#009999 &amp;quot;&amp;gt;Wi-Fi Module Testing&amp;lt;/span&amp;gt;======&lt;br /&gt;
The test scans local networks and displays the SSID, signal strength (RSSI), channel, and encryption type in the console.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-family: &amp;#039;Courier New&amp;#039;, monospace&amp;quot;&amp;gt;&lt;br /&gt;
WiFi.mode(WIFI_STA); // Station mode&amp;lt;br&amp;gt;&lt;br /&gt;
WiFi.disconnect();   // Clear previous connections&amp;lt;br&amp;gt;&lt;br /&gt;
numNetworks = WiFi.scanNetworks();&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:KAmodESP32-C3_Arduino_9.png|none|800px|thumb|center]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======&amp;lt;span style=&amp;quot;color:#FFFFFF; background:#009999 &amp;quot;&amp;gt;Arduino Test Program Code&amp;lt;/span&amp;gt;======&lt;br /&gt;
The full test program blinks the LED, reads IMU and SHTC3 data, scans Wi-Fi, and cycles the RGB LED colors.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;arduino&amp;quot;&amp;gt;&lt;br /&gt;
#include &amp;quot;WiFi.h&amp;quot;&lt;br /&gt;
#include &amp;lt;Wire.h&amp;gt;&lt;br /&gt;
#include &amp;lt;Adafruit_NeoPixel.h&amp;gt;&lt;br /&gt;
#include &amp;quot;Adafruit_SHTC3.h&amp;quot;&lt;br /&gt;
#include &amp;quot;ICM42670P.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#define LED_BUILTIN 7&lt;br /&gt;
#define I2C_SDA 10&lt;br /&gt;
#define I2C_SCL 8&lt;br /&gt;
#define PIN_WS2812B 2&lt;br /&gt;
#define NUM_PIXELS 1&lt;br /&gt;
&lt;br /&gt;
Adafruit_NeoPixel WS2812B(NUM_PIXELS, PIN_WS2812B, NEO_GRB + NEO_KHZ800);&lt;br /&gt;
ICM42670 IMU(Wire,0);&lt;br /&gt;
Adafruit_SHTC3 shtc3 = Adafruit_SHTC3();&lt;br /&gt;
&lt;br /&gt;
void setup() {&lt;br /&gt;
    WS2812B.begin();&lt;br /&gt;
    WS2812B.setBrightness(50);&lt;br /&gt;
    pinMode(LED_BUILTIN, OUTPUT);&lt;br /&gt;
    Serial.begin(115200);&lt;br /&gt;
    delay(2000);&lt;br /&gt;
    while(!Serial);&lt;br /&gt;
    Wire.begin(I2C_SDA, I2C_SCL);&lt;br /&gt;
    IMU.begin();&lt;br /&gt;
    IMU.startAccel(100, 16);&lt;br /&gt;
    IMU.startGyro(100, 2000);&lt;br /&gt;
    shtc3.begin();&lt;br /&gt;
    WiFi.mode(WIFI_STA);&lt;br /&gt;
    WiFi.disconnect();&lt;br /&gt;
    delay(100);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop() {&lt;br /&gt;
    int numNetworks;&lt;br /&gt;
    sensors_event_t humidity, temp;&lt;br /&gt;
    inv_imu_sensor_event_t imu_event;&lt;br /&gt;
    digitalWrite(LED_BUILTIN, HIGH);&lt;br /&gt;
    &lt;br /&gt;
    Serial.println(&amp;quot;\n********************************&amp;quot;);&lt;br /&gt;
    if (IMU.getDataFromRegisters(imu_event) == 0) {&lt;br /&gt;
        Serial.print(&amp;quot;Accel X: &amp;quot;); Serial.println(imu_event.accel[0] / 2048.0);&lt;br /&gt;
        Serial.print(&amp;quot;Gyro X: &amp;quot;); Serial.println(imu_event.gyro[0] / 16.4);&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    shtc3.getEvent(&amp;amp;humidity, &amp;amp;temp);&lt;br /&gt;
    Serial.print(&amp;quot;SHTC3 Temp: &amp;quot;); Serial.println(temp.temperature);&lt;br /&gt;
    &lt;br /&gt;
    numNetworks = WiFi.scanNetworks();&lt;br /&gt;
    Serial.print(numNetworks); Serial.println(&amp;quot; networks found.&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
    digitalWrite(LED_BUILTIN, LOW);&lt;br /&gt;
    WS2812B.setPixelColor(0, WS2812B.Color(255, 0, 0)); WS2812B.show(); delay(500);&lt;br /&gt;
    WS2812B.setPixelColor(0, WS2812B.Color(0, 255, 0)); WS2812B.show(); delay(500);&lt;br /&gt;
    WS2812B.setPixelColor(0, WS2812B.Color(0, 0, 255)); WS2812B.show(); delay(500);&lt;br /&gt;
    WS2812B.clear(); WS2812B.show();&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Rust Programming Setup and Test Programs ====&lt;br /&gt;
This section describes how to configure the environment on Linux Ubuntu (24.04.2 LTS) to develop for ESP32-C3 in Rust.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
======&amp;lt;span style=&amp;quot;color:#FFFFFF; background:#ff9900 &amp;quot;&amp;gt;Step 1: Install Prerequisites&amp;lt;/span&amp;gt;======&lt;br /&gt;
Install essential libraries, Clang compiler, and Python tools:&lt;br /&gt;
[[File:KAmodESP32-C3_Rust_2.png|none|800px|thumb|left]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
======&amp;lt;span style=&amp;quot;color:#FFFFFF; background:#ff9900 &amp;quot;&amp;gt;Step 2: Install Rust and Cargo Tools&amp;lt;/span&amp;gt;======&lt;br /&gt;
[[File:KAmodESP32-C3_Rust_4.png|none|800px|thumb|left]]&lt;br /&gt;
Install Cargo modules for ESP development:&lt;br /&gt;
* `espflash` for flashing memory&lt;br /&gt;
* `ldproxy` for linker arguments&lt;br /&gt;
* `cargo-generate` for project templates&lt;br /&gt;
[[File:KAmodESP32-C3_Rust_6.png|none|800px|thumb|left]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======&amp;lt;span style=&amp;quot;color:#FFFFFF; background:#ff9900 &amp;quot;&amp;gt;Step 3: Creating a Project&amp;lt;/span&amp;gt;======&lt;br /&gt;
Run `cargo generate esp-rs/esp-idf-template cargo`. Select MCU `ESP32C3` and ESP-IDF version `v5.3`.&lt;br /&gt;
[[File:KAmodESP32-C3_Rust_8.png|none|800px|thumb|left]]&lt;br /&gt;
To compile and run: `cargo run`.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======&amp;lt;span style=&amp;quot;color:#FFFFFF; background:#ff9900 &amp;quot;&amp;gt;Rust Example: Blinking LED&amp;lt;/span&amp;gt;======&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;rust&amp;quot;&amp;gt;&lt;br /&gt;
use esp_idf_svc::hal::{delay::FreeRtos, gpio::PinDriver, peripherals::Peripherals};&lt;br /&gt;
&lt;br /&gt;
fn main() {&lt;br /&gt;
    esp_idf_svc::sys::link_patches();&lt;br /&gt;
    let peripherals = Peripherals::take().expect(&amp;quot;Failed to take peripherals&amp;quot;);&lt;br /&gt;
    let mut led = PinDriver::output(peripherals.pins.gpio7).expect(&amp;quot;Failed to create led driver&amp;quot;);&lt;br /&gt;
    loop {&lt;br /&gt;
        led.toggle().expect(&amp;quot;Failed to toggle LED&amp;quot;);&lt;br /&gt;
        FreeRtos::delay_ms(500);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======&amp;lt;span style=&amp;quot;color:#FFFFFF; background:#ff9900 &amp;quot;&amp;gt;Rust Example: SHTC3 and ICM42670 Data&amp;lt;/span&amp;gt;======&lt;br /&gt;
After running `cargo run`, the terminal will display sensor data every second.&lt;br /&gt;
[[File:KAmodESP32-C3_Rust_11.png|850px]]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Dimensions ====&lt;br /&gt;
The KAmod ESP32-C3 board dimensions are 63 x 27 mm. &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
[[File:KAmodESP32-C3_wym.png|none|800px|thumb|center]]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== External Links ====&lt;br /&gt;
*[https://www.espressif.com/en/products/socs/esp32-c3 ESP32-C3 Documentation]&lt;br /&gt;
*[https://sensirion.com/products/catalog/SHTC3 SHTC3 Sensor Datasheet]&lt;br /&gt;
*[https://product.tdk.com/en/search/sensor/mortion-inertial/imu/info?part_no=ICM-42670-P ICM42670 Documentation]&lt;br /&gt;
*[https://rust-lang.org/learn/ Learn Rust]&lt;br /&gt;
*[https://doc.rust-lang.org/cargo/ Cargo Documentation]&lt;/div&gt;</summary>
		<author><name>Grzegorzbecker</name></author>
	</entry>
</feed>