Skip to content

WEEK 4. Embedded Programming

GROUPE ASSIGNMENT:

Compare the performance and development workflows for other architectures.

Document your work to the group work page and reflect on your individual page what you learned.

GROUPE LINK

1. xiao pin

2. power supply

The XIAO ESP32C3 is capable of using a 3.7V lithium battery as the power supply input. You can refer to the following diagram for the wiring method

II- XIAO ESP32C3 programming

1. materials

. Arduino IDE

. USB Type-C cable

2. preparation of the arduino IDE

3. library

.esp 32

4. programming

I will turn on the LED for a second and turn off for the same time. this LED is connected to terminal 10 of my XIAO ESP 32 C3

          // define led according to pin diagram
                int led = 10;

                 void setup() {
          // initialize digital pin led as an output
            pinMode(led, OUTPUT);
                       }
                  void loop() {
         digitalWrite(led, HIGH);   // turn the LED on 
         delay(1000);               // wait for a second
         digitalWrite(led, LOW);    // turn the LED off
         delay(1000);               // wait for a second

                            }

As you can see the program is run

5. about the XIAO ESP 32 C3

Capital information

–Seeed Studio XIAO ESP32C3 is an IoT mini development board based on the Espressif ESP32-C3 WiFi/Bluetooth dual-mode chip. ESP32-C3 is a 32-bit RISC-V CPU, which includes an FPU (Floating Point Unit) for 32-bit single-precision arithmetic with powerful computing power.

–It has excellent radio frequency performance, supporting IEEE 802.11 b/g/n WiFi, and Bluetooth 5(LE) protocols.

The usefulness of these input and output pins

11 digital I/O that can be used as PWM pins

     motor speed control, LED brightness variation

4 analog I/O that can be used as ADC pins.

   Sensor connection for my final project. Using a limit sensor

for more information

visite my Electronic production week here


Last update: June 30, 2023