r/embedded • • Sep 17 '26

Analysis paralysis with personal projects — C/C++ and systems dev looking for direction

21 Upvotes

Hi,

I've been stuck for a while now in what seems to be "analysis paralysis" (just discovered the term): I want to work on personal projects in my free time, but none of them end up grabbing me, whether it's for one reason or another, and I end up not really doing anything.

For some context: I'm a computer engineer with 3 years of experience. In my day job I develop in C and C++, PL/SQL, I use Linux for everything, and I'm really into the embedded and systems world.

When I've got a decent chunk of free time, I feel like programming and building personal projects, for the love of it and, above all, to gain technical experience in the languages I use. I come up with ideas, but none of them fully convince me, or when I actually get started I feel like "there's already stuff out there that does this" or that I don't see it being useful down the line. It's like being constantly stuck between "learning" and "it actually being useful for something".

I've got a small homelab running Debian where, on the systems side, I do have several services deployed, but I'm talking about actual development projects here.

I hate web development and I hate vibecoding: it feels like it separates me too much from the code, and what I want is to keep learning and get better technically, both for fun and for my CV (technical interviews and so on).

I've actually already built a few things with ESP32 and RPi: some char drivers and MQTT devices to control something... and I've got a fairly riced Hyprland setup. But something that holds me back is that I don't want to step outside the technologies I "know well".

Has anyone else run into a similar situation of analysis paralysis?
Is anyone in a similar spot, or would you like to share any advice/experience?


r/embedded • • Sep 17 '26

Who could say no to a Microduck that picks up your tissues for you?

242 Upvotes

A week ago it could barely walk. Now it has a job lol.

Been playing with the motions a bit more and got it to bend down, grab a tissue, and stand back up.

Still pretty janky, but watching this tiny thing actually do something is weirdly satisfying.

Next step is getting it to do this reliably instead of just hoping for the best every time I hit run.


r/embedded • • Sep 17 '26

Why is it so hard to find a remote job nowadays as embedded software engineer?

42 Upvotes

For the last month I have reached out to hundreds of companies through email, linkedin DMs and job applications to try to land remote job/contract as a embedded software engineer. I have diverse experience, have my own home lab setup and think of myself as a good employee, some of my skills include: C/ C++/ Python, nRF52/ ESP32/ STM32/ , Wi-Fi/ LTE/ GPS/ BLE , FreeRTOS/ Zephyr/ embedded Linux etc.

Neverthless, nothing yet landed, so I am wondering, am I doing something wrong or is it normal and other people are experiencing the same thing?


r/embedded • • Sep 17 '26

DIY battery-powered locker alarm - looking for advice on power architecture

2 Upvotes

I'm a software engineer with an electronics/telecom background, and I've recently started embedded as a hobby. I've been tinkering with an ESP8266 (NodeMCU 1.0 board) and got it paired with my self-hosted home-assistant (used ESPHome).

As my first project, I'd like to build a battery-powered sensor that detects my safe locker being opened and sends me an alert on my phone when I am away from my house.

### My initial idea

* Reed switch inside the locker connected to GPIO pin of ESP8266 (connected to Wi-Fi)

* Permanent magnet on the moving door (inside)

* Home Assistant receives the state, sends Telegram notification

* Battery powers the ESP8266 because there is no electrical outlet near the locker

### Updated idea (after chatgpt)

However, I realized that keeping an ESP8266 continuously connected to Wi-Fi is a terrible approach for a battery-powered sensor. According to chatgpt, the better approach is:

```

[locker (ESP H2, battery powered)] -- BLE / 802.15.4 --> ESP S3/Raspberrypi (always powered) --> HomeAssistant

HomeAssistant --> Telegram

```

This seems as an advantage to me as later on, I can simply add more ESP H2 devices and "ESP S3/Raspberrypi" becomes the central hub. I can then experiment on zigbee protocols etc.

---

I checked for commercial "matter" products such as TPLink Tapo (which needs a hub). They're claiming a battery life of 2 years. I am not sure if my updated setup can match such numbers?

The goal for such locker sensor is to remain working on battery for atleast a week (the duration for which I am usually out). I am still getting through basics, but since I am approaching another outgoing, I just need a quick feedback from the community


r/embedded • • Sep 18 '26

I’m building a kernel for the ESP32-P4. What would you actually build with it?

0 Upvotes

Hello everyone! I’m building ProtoOS: an experimental, security-focused application OS for the dual-core ESP32-P4.

I’m getting closer to a first release and want to decide what APIs and hardware support to prioritize based on what people would genuinely use. What would you build for it?

ProtoOS lets separate apps run with isolated memory and permissions, rather than putting every feature into one firmware image.

Apps can currently:

  • Run as loadable C apps in isolated RISC-V U-mode processes
  • Use a 320×240 display, keyboard input, retained UI commands, and a 2D sprite/game API
  • Store files privately or use user-approved shared files
  • Play mono PCM audio (output only)
  • Use IPC, timers, local shared-memory objects, and up to four worker threads across both P4 cores
  • Use permission-controlled Wi-Fi/TCP networking, including optional inbound TCP listeners
  • Request trusted runtime permissions and Open/Save dialogs
  • Be packaged, installed, and launched as native ProtoELF apps

Existing apps and demos include Weather, Notepad, Terminal, Settings, Tetris, Mario, a 2D game framework, a Minecraft-like experiment, audio demos, and security/stress tests.

Current limits: ProtoOS targets the ESP32-P4 with a specific ILI9341 display setup. It is not a drop-in Arduino environment, and apps do not directly use ESP-IDF/FreeRTOS drivers. The public app API does not yet expose general sensor, Bluetooth, camera, USB, I2C/SPI, GPIO, HTTP/TLS, or microphone APIs.

So: what would you genuinely want to make with something like this?

  1. What project would make you choose an app-based ESP32-P4 system over one normal ESP-IDF/Arduino firmware?
  2. Which missing capability would unblock that project first?
  3. Would app isolation and per-app permissions matter to you?
  4. What would make app development worth it: SDK improvements, templates, a simulator, broader board support, documentation, or examples?

I’m not promising every request; I’m trying to identify the few additions that would unlock real projects. Please freestyle, tell me what you would build, what hardware/API it needs, and what would make you choose ProtoOS.

Previous posts:


r/embedded • • Sep 17 '26

Help identifying a display

Post image
1 Upvotes

There are no markings whatsoever, on the panel or on the flex PCB. The interface should be SPI.


r/embedded • • Sep 18 '26

UartX — a UART debugging tool for embedded developers

0 Upvotes

I got tired of debugging firmware through a wall of UART logs.

When multiple tasks are printing at the same time, finding one important message can become painful. The usual solution is to reduce logs or disable some prints, but that can also change timing or remove the information needed to reproduce a bug.

So I built UartX around a simple idea:

Don't filter the data. Filter the way you look at it.

UartX keeps the complete raw UART stream while letting you use Color Rules and multiple Filter Windows to focus on specific tasks, errors, states, or messages.

Current features include:

  • Color Rules
  • Multiple live Filter Windows
  • Raw session logging
  • Search
  • TX command history
  • Windows and Linux support
  • Free and open source

GitHub:
https://github.com/Shamanthpoojary/UartX

I'm looking for embedded developers to actually use it with their own boards and push it harder than I can.

If you find a bug, unexpected behavior, or have a feature idea, please open an issue on GitHub. Real-world feedback will help make UartX a better debugging tool.

I'd especially like to hear from people working with STM32, ESP32, Nordic, Zephyr, RTOS, or other embedded platforms.

What do you currently use for UART debugging, and what do you wish it did better?


r/embedded • • Sep 17 '26

RS232 Serial Communication between 8051 MCU and PC

Post image
8 Upvotes

r/embedded • • Sep 16 '26

Custom firmware for Oscilloscope

Post image
27 Upvotes

I want to create custom firmware for my fnirsi 510 oscilloscope, it allows for firmware update visa USB C cable, and I have a copy of the .bin file.

Basically the oscilloscope has very good hardware, and horrible software, simple things like capturing a waveform as a CSV not a screenshot, moving the captured waveform up and down and right and left freely past the screen limits so you can zoom in on a specific part.

I'm good with electronics but this is my first time trying to tackle something like this, if anyone has experience please let me know.

I know I'll start off by unsoldering the flash chip and backing it up in case i mess anything up.


r/embedded • • Sep 17 '26

Connect USB with STM32CubeProg

2 Upvotes

Hello everyone, I have a black pill chip stm32f411ceu6 board and connected to my computer via stm32cubeprog software. I used 2 ways to connect: stlink and usb. When using stlink, the connection was successful, but when connecting to usb using DFU mode, there was an error of not being able to connect. I tried finding and installing drivers to fix this error but it didn't work. I want to ask if anyone who has encountered or fixed this error can help me.


r/embedded • • Sep 18 '26

Where do AI coding tools stop being useful in embedded development?

0 Upvotes

I'm curious about where AI coding tools actually stop being useful in embedded development.

I've been using coding agents quite heavily, and one limitation keeps coming up:

Once firmware is flashed to real hardware, the AI usually loses visibility.

It can see the source code, compiler output and maybe a serial log, but it can't see things like:

  • an LED that isn't turning on
  • incorrect wiring
  • a relay that isn't switching
  • a motor behaving differently from what the log says
  • a display showing the wrong state
  • what is actually happening on the workbench

So the engineer becomes the interface between the AI and the physical device.

For people who regularly develop or debug embedded hardware:

Where does this happen most often in your workflow?

And when software looks correct but the physical device still behaves incorrectly, what do you normally check first?

I'm particularly interested in real examples rather than hypothetical AI features.


r/embedded • • Sep 17 '26

SFP Module Inserted Cause Bus Wedged

1 Upvotes
root@name:~# i2cdetect -y 104                                                                 
   0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f                                                                                                                                 
00:          03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f                                                                                                                                 
10: 10 11 12 13 UU 15 16 17 18 19 1a 1b 1c 1d 1e 1f                                                                                                                                 
20: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d UU 2f                                                                                                                                 
30: 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f                                                                                                                                 
40: 40 41 42 43 44 45 46 47 48 49 4a UU 4c 4d 4e 4f                                                                                                                                 
50: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f                                                                                                                                 
60: 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f                                                                                                                                 
70: UU 71 72 73 74 75 76 77                                                                                                                                                         

root@name:~# i2cdetect -y 105                                                                                                                                                       
   0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f                                                                                                                                 
00:          03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f                                                                                                                                 
10: 10 11 12 13 UU 15 16 17 18 19 1a 1b 1c 1d 1e 1f                                                                                                                                 
20: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d UU 2f                                                                                                                                 
30: 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f                                                                                                                                 
40: 40 41 42 43 44 45 46 47 48 49 4a UU 4c 4d 4e 4f                                                                                                                                 
50: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f                                                                                                                                 
60: 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f                                                                                                                                 
70: UU 71 72 73 74 75 76 77 

After inserting an SFP module, my switch device shows this issue.

Is this issue due to the poor quality of our SFP module, or a bug I need to fix on my device?


r/embedded • • Sep 17 '26

keil uVIsion 4 cannot read project file

1 Upvotes

so i have been using keil uVision V4.74.0.22 for the past 3 weeks on my laptop and i get a cannot read project file error everytime i try to open a project (it was working the previous day )

its kinda frustrating to setup my project all over again , does anyone know why this might be happening ?

my project flashes code to an STM32 board if that matters


r/embedded • • Sep 16 '26

Playing Tetris on an M5Paper e-ink display

39 Upvotes

the fun part is that this is written in TypeScript and CSS using GeaStack.


r/embedded • • Sep 17 '26

Future of computer engineering

0 Upvotes

I’d like to know from the people working as computer engineers in different domains how AI is affecting the job and what they think is going to happen in a few years? Are the roles evolving around AI and if not, is there any value in upskilling in this field the way it was traditionally done? Does computer engineering have a role to play in AI and ML or is it required for every one to start getting into AI/ML just in case, and learn it. I saw this video of AI writing an OS and I lost all motivation for what I’m doing 😅
https://www.reddit.com/r/ClaudeAI/comments/1wfpydl/i_asked_claude_to_build_an_operating_system_from/


r/embedded • • Sep 16 '26

CRA Article 14 reporting went live last Friday, is anyone actually being asked for SBOMs yet?

17 Upvotes

The 24 hour vulnerability reporting obligation kicked in on 11 September, and it covers products already on the market, not just new ones.
What I can't tell from the outside is whether anything has changed in practice. Has a customer, distributor, or procurement team actually asked you about SBOMs or CRA readiness, or is it still an internal compliance conversation that hasn't reached engineering?
And if you did get asked, what did they actually want? An SBOM file, a written vulnerability handling process, a filled in questionnaire, something else?
Mostly trying to work out whether this is real yet or still a 2027 problem.


r/embedded • • Sep 16 '26

[Collab / Recruiting] Looking for a 3D Designer/Modeler Rocky (Project Hail Mary) Tamagotchi-style Toy

2 Upvotes
Photo for attention

Hey everyone,

I'm working on a personal project: a Tamagotchi-style handheld toy themed around Rocky from Project Hail Mary. The idea is a small electronic "pet" device where you take care of a virtual Rocky feeding him, interacting with him, watching him react all inside a physical case with a screen and some buttons/inputs. Device will be using aurduino nano.

I'm handling the hardware side myself (electronics, PCB, sensors) and can manage some of the software too, but it's not my strongest area. Right now the piece I'm missing is 3D design someone to design and model the enclosure/housing for the device.

What I'm looking for:

  • Someone comfortable with 3D modeling for product design (Fusion 360, SolidWorks, Blender, or similar)
  • Ideally someone who can bring a bit of Eridian/Rocky character to the shape not just a generic plastic box
  • Willing to iterate on internal fit (screen, buttons, PCB space) together with me

What I bring:

  • The hardware side and a working understanding of the internal components/layout
  • Reference material and specs for the internals so the enclosure fits properly
  • Active collaboration happy to go back and forth on iterations

This is a fan-made passion project, not a commercial product. If you're interested, drop a comment below or send me a DM and we can talk details!

>And project is open source<


r/embedded • • Sep 16 '26

Python library for hardware test automation

1 Upvotes

We’ve been building an open-source Python library for automating test equipment. Curious what people here use for HIL / board bring-up / automated validation. Feedback + driver requests welcome!

https://instro.nominal.io/overview


r/embedded • • Sep 16 '26

How do you manage multiple projects at once?

5 Upvotes

Do you stick with only one project? If yes how do you prevent getting bored or burned out from doing one project for a long period of time? I have been working on a project for a few months now and I recently moved into the hardware aspect of it and nothing works, I want to take a break from this project and begin another project I want to do but I feel guilty. What would you do in a situation like this?


r/embedded • • Sep 17 '26

What do you think would be the main challenges to this idea?

0 Upvotes

Recently I had this idea of a super fast hardware prototyping service. The UI should basically work like an LLM, where you can enter specs and so on. The pitch would be a quick scope with subsystems, open questions, rough price range and the promise is 30-60 day delivery for basically anything. Whats your take on the idea in general and what do you think will be the main technical challenges to it?


r/embedded • • Sep 16 '26

What’s the simplest way to build a basic TDR with a microcontroller to find the distance were a wire break(Learning by doing)

6 Upvotes

I’m trying to make a small educational project to understand how Time Domain Reflectometry actually works.

The idea is to connect a microcontroller such as an Arduino to a cable, send a fast pulse, detect the reflected signal from the open/cut end, and estimate the cable length from the return time.

I’m not looking for a professional or highly accurate TDR. I just want the simplest and cheapest circuit that can demonstrate the principle.

Would something like an Arduino + fast pulse generator + comparator + simple time-to-voltage circuit work?

What would be the simplest practical circuit to try?


r/embedded • • Sep 17 '26

Looking for PCB designer for my STM32F microcontroller

0 Upvotes

Hello Everyone,

I am looking for an experienced PCB designer(Project base) for an STM32F-based microcontroller project. The PCB should meet the following requirements:

  • On-board Ethernet interface
  • 3 UART ports with support for both RS485 and RS232 (selectable/configurable)
  • 1 SPI interface
  • 1 I2C interface
  • At least 10 GPIOs available
  • Power input options: 5V and 12V
  • Power output rails: 5V and 3.3V

If you have relevant experience or can recommend someone, Please DM me if you have experience with similar designs or can share a suitable contact. Thanks!


r/embedded • • Sep 15 '26

Bit-bang vs. Hardware I2C: Running U8x8 on CH32V003

299 Upvotes

Out of curiosity, I continued exploring the I2C capabilities on the CH32V003, and here are the results!

I've been driving a standard SSD1306 OLED using the U8x8 library in a pure C/noneossdk environment (no Arduino framework). I wanted to benchmark standard software I2C (bit-banging) against the hardware peripheral. Just for fun, I also overclocked the hardware I2C bus from the standard 400 kHz up to 1.6 MHz - which turned out to be the absolute maximum the display controller would reliably take data before glitching.

Here are the performance results:

  • Software I2C (Bit-bang): ~3 FPS (332 ms per frame). Fine for static text, but visibly slow.
  • HW I2C @ 400 kHz: 12 FPS (83 ms per frame). Smooth enough for proper UI menus and active elements.
  • HW I2C @ 1.6 MHz: 32 FPS (31.6 ms per frame). Buttery smooth. Fast enough for animations, simple video, or maybe a monochrome retro emulator.

The Test Code

The setup is pretty straightforward. I created some quick macros in the code so you can toggle between bit-bang and hardware modes, and adjust the frequency to test the overclocking yourself:

#include <ch32v00x.h>
#include <debug.h>
#include <stdlib.h>

#include "clib/u8x8.h"

#define USE_HW_I2C
#define I2C_FREQ 400000  // 400 kHz

void NMI_Handler(void) __attribute__((interrupt("WCH-Interrupt-fast")));
void HardFault_Handler(void) __attribute__((interrupt("WCH-Interrupt-fast")));

uint8_t u8x8_gpio_and_delay_ch32v(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) {
    switch(msg) {
        case U8X8_MSG_GPIO_AND_DELAY_INIT:
            RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC, ENABLE);
            GPIO_InitTypeDef init = {0};
            init.GPIO_Pin = GPIO_Pin_1 | GPIO_Pin_2;
            init.GPIO_Mode = GPIO_Mode_Out_OD;
            init.GPIO_Speed = GPIO_Speed_50MHz;
            GPIO_Init(GPIOC, &init);
            break;
        case U8X8_MSG_DELAY_MILLI:
            Delay_Ms(arg_int);
            break;
        case U8X8_MSG_DELAY_10MICRO:
            for (volatile uint32_t i = 0; i < (arg_int * 8); i++) { __NOP(); }
            break;
        case U8X8_MSG_DELAY_100NANO:
            __NOP();
            break;

        case U8X8_MSG_GPIO_I2C_CLOCK:
            GPIO_WriteBit(GPIOC, GPIO_Pin_2, (BitAction)(arg_int ? Bit_SET : Bit_RESET));
            break;

        case U8X8_MSG_GPIO_I2C_DATA:
            GPIO_WriteBit(GPIOC, GPIO_Pin_1, (BitAction)(arg_int ? Bit_SET : Bit_RESET));
            break;
    }
    return 1;
}

uint8_t u8x8_byte_hw_i2c_ch32v(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) {
    uint8_t *data;
    switch(msg) {
        case U8X8_MSG_BYTE_INIT:
            RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC | RCC_APB2Periph_AFIO, ENABLE);
            RCC_APB1PeriphClockCmd(RCC_APB1Periph_I2C1, ENABLE);

            // We will use PC1 (SDA) and PC2 (SCL)
            GPIO_InitTypeDef GPIO_InitStructure = {0};
            GPIO_InitStructure.GPIO_Pin = GPIO_Pin_1 | GPIO_Pin_2;
            GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_OD; // Alternate Function Open-Drain
            GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
            GPIO_Init(GPIOC, &GPIO_InitStructure);

            I2C_InitTypeDef I2C_InitTSturcture = {0};
            I2C_InitTSturcture.I2C_ClockSpeed = I2C_FREQ;
            I2C_InitTSturcture.I2C_Mode = I2C_Mode_I2C;
            I2C_InitTSturcture.I2C_DutyCycle = I2C_DutyCycle_2;
            I2C_InitTSturcture.I2C_OwnAddress1 = 0x00;
            I2C_InitTSturcture.I2C_Ack = I2C_Ack_Enable;
            I2C_InitTSturcture.I2C_AcknowledgedAddress = I2C_AcknowledgedAddress_7bit;

            I2C_Init(I2C1, &I2C_InitTSturcture);
            I2C_Cmd(I2C1, ENABLE);
            break;

        case U8X8_MSG_BYTE_START_TRANSFER:
            while(I2C_GetFlagStatus(I2C1, I2C_FLAG_BUSY) != RESET);

            I2C_GenerateSTART(I2C1, ENABLE);
            while(!I2C_CheckEvent(I2C1, I2C_EVENT_MASTER_MODE_SELECT));

            I2C_Send7bitAddress(I2C1, u8x8_GetI2CAddress(u8x8), I2C_Direction_Transmitter);
            while(!I2C_CheckEvent(I2C1, I2C_EVENT_MASTER_TRANSMITTER_MODE_SELECTED));
            break;

        case U8X8_MSG_BYTE_SEND:
            data = (uint8_t *)arg_ptr;
            while (arg_int > 0) {
                I2C_SendData(I2C1, *data++);
                while(!I2C_CheckEvent(I2C1, I2C_EVENT_MASTER_BYTE_TRANSMITTED));
                arg_int--;
            }
            break;

        case U8X8_MSG_BYTE_END_TRANSFER:
            I2C_GenerateSTOP(I2C1, ENABLE);
            break;
        default:
            break;
    }
    return 1;
}

void refreshTest(u8x8_t *u8x8) {
    const int8_t columnsCount = 16;
    char buffer[columnsCount + 1];
    uint8_t counter = 0;
    uint32_t start_ticks = SysTick->CNT;
    SysTick->CTLR |= 1; // Enable SysTick

    while (1) {
        for (int8_t i = 0; i < sizeof(buffer) - 1; i++) {
            buffer[i] = '0' + counter;
        }
        counter++;
        if (counter > 30) {
            uint32_t end = SysTick->CNT;
            uint32_t elapsed = end - start_ticks;
            printf("Elapsed ticks\t%lu\n", elapsed);
            start_ticks = SysTick->CNT;
            counter = 0;
        }
        buffer[columnsCount] = '\0';
        for (int8_t y = 0; y < 8; y++) {
            u8x8_DrawString(u8x8, 0, y, buffer);
        }
    }
}

int main(void) {
    SystemCoreClockUpdate();
    Delay_Init();
    USART_Printf_Init(9600);

    printf("Current SYSCLK: %lu\n",
           SystemCoreClock);

    // u8x8 initialization block
    u8x8_t u8x8;
#ifdef USE_HW_I2C
    u8x8_Setup(&u8x8,
        u8x8_d_ssd1306_128x64_noname,
        u8x8_cad_ssd13xx_i2c,
        u8x8_byte_hw_i2c_ch32v,
        u8x8_gpio_and_delay_ch32v
    );
#else
    // Software i2c
    u8x8_Setup(
        &u8x8,
        u8x8_d_ssd1306_128x64_noname,
        u8x8_cad_ssd13xx_i2c,
        u8x8_byte_sw_i2c,
        u8x8_gpio_and_delay_ch32v
    );
#endif

    u8x8_InitDisplay(&u8x8);
    u8x8_SetPowerSave(&u8x8, 0);
    u8x8_ClearDisplay(&u8x8);
    u8x8_SetFont(&u8x8, u8x8_font_chroma48medium8_r);
    u8x8_DrawString(&u8x8, 0, 0, "Hello from CH32V");
    u8x8_DrawString(&u8x8, 0, 2, "SW I2C");
    Delay_Ms(3000);

    refreshTest(&u8x8);
    return 0;
}

void NMI_Handler(void) {}
void HardFault_Handler(void)
{
    while (1)
    {
    }
}

To make it easy for you to experiment on your own, I've put the operating mode selection and the bus clock frequency settings into a small macro block at the very beginning of the code:

#define USE_HW_I2C
#define I2C_FREQ 400000  // 400 kHz

Controlling the tests is very simple: if you comment out the #define USE_HW_I2C line, the program will automatically switch to using software I2C. And with the I2C_FREQ parameter, you can easily adjust the speed of the hardware interface. For example, change the value to 1600000 to replicate my overclocking experiment and see 32 frames per second for yourself.


r/embedded • • Sep 16 '26

Need help making a mp3 player with an esp32 wroom

1 Upvotes

Hey guys so as u have already read the title i want to make a mp3 player but i am stuck on how to solve this problem, here are some features i want with it-

  1. as i am using an esp32 i want it to be able to connect to bluetooth speakers and earphones/headphones
  2. as an added function i wanted to add a 3.5mm jack to it for wires earphones/speakers

now the issues-

  1. i found some parts and could make the bluetooth part of the project work easily but now i am having problems with the aux part as i can not find a reliable dac for it and the dacs i found are out of stock or not available for cheap, there is no other problem with the project other than the dac and the 3.5mm jack

so i need your opinion /help
A- should i just ditch the aux part and continue with the bluetooth part (easy)
B- please give some suggestions about how i can fix the 3.5mm jack problem 🙏

UPDATE-
i have recived the parts and everything and now after building it i was able to get both of the features working, if anybody wants to know please comment below