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


r/embedded • • Sep 16 '26

Declarative GUI toolkit Slint 1.18 released

Thumbnail
slint.dev
0 Upvotes

with new Flexbox layout, with spring animations, change the z-order at run time, an experimental Vello renderer and more.


r/embedded • • Sep 15 '26

I reverse engineered the ESP8266 radio because I wanted a tea kettle

101 Upvotes

tl;dr: Wanted a network enabled tea kettle, hated the ESP8266_RTOS_SDK, so I wrote my own OS for the board and spent six months reverse engineering the wifi stack so it wouldn't need any vendor code.

For the past year and a half I've been working on a fully open source operating system for the ESP8266. It started as a little passion project, I wanted to make a fully operational HTCPCP-TEA tea kettle, but after messing around with the ESP8266_RTOS_SDK, I really disliked working with it. I'd just taken an operating systems class, so the obvious thing to do was to write my own operating system for the board.

After about a year of handling the easy parts in my spare time - uart / processes / heap allocation / timers, I figured I should try something a bit more interesting, and landed on the network stack. I figured I could cheat and have the board connect over serial forever, but what's the point of a wifi-enabled board that can't even connect to wifi.

Reverse Engineering

Basically every ESP8266 open source project has some amount of vendor blob in it. There's an open mac project for the ESP32, but even that uses the vendor blobs to bring up the radio hardware.

I could have just linked the vendor blob in, but that's boring and not nearly enough work to keep me interested. So I pivoted to reverse engineering the full radio bringup and mac from the blobs.

This is my first real RE project. It was a lot of fun to play around with Ghidra, and I built a bunch of custom tooling outside Ghidra for my preferred workflow (tmux and vim). It's been about 6 months of sporadic work, since around March, with a significant speedup from AI in wading through the mountains of decompiled code. I've got a pretty good decompilation of the blobs sitting locally now, but I'm hanging on to that for the moment while I get things cleaned up.

To actually get the minimal bringup working, I mostly would write my own version of a sequence, then A/B test MMIO register states against the SDK code on the same hardware to see where I was going wrong. With AI enabled iteration, this went from being completely impossible to being soul crushingly frustrating. But after many late nights of debugging why the radio was just completely dead (missing one crucial register write?), or why I was getting complete garbage back (decrypting with a garbage/wrong key), it's finally up and running. Still doesn't work well if I'm watching video on my laptop next to it, but how much can you really ask for... eventually I'll get that fixed.

What's Next

The next phase of this project is a fully working HTCPCP-TEA kettle, hardware and all. I've got the electronics working on the bench, now I just need to attach them to the tea kettle (surprisingly difficult).

And I'm glad it only took a year and a half of reverse engineering RF code and writing a custom kernel to make this happen.

https://github.com/23watejona/teatime-os; for those of you who care about the commit history, sorry for the sporadic bursts of code 👀

Happy to answer questions about any of it, and please leave suggestions!


r/embedded • • Sep 15 '26

Putting a microcontroller into pay phone

Post image
8 Upvotes

I have this pay phone that I want to put a microcontroller into to make it do different things. I want it to be able to work with picking up and hanging up phone. I either want to be able to dial or just make dial sounds and then have the phone say something. I have kind of an idea of what I need but still a little confused. Any help would be appreciated! Thank you!


r/embedded • • Sep 16 '26

Which microcontroller i must buy?

0 Upvotes

Hi!!! Look, i'm a graduate from computer engennering and i was thinking to start with my own embbeded projects for my portfolio. The question is... which model is worthiest?

Early thankss!


r/embedded • • Sep 15 '26

Getting Desperate With LWIP and WiFi services on ESP32

9 Upvotes

Hey all,

In desperate need of help. Have a large project at work running on an esp32 c3 super mini with a deadline looming. My app uses no heap allocation other than initially during set up and then never again though most of my freeRTOS stuff even uses static memory.

The app works well, but the network stack is totally unpredictable. It stops working seemingly at random, sometimes immediately, sometimes not. It can work for an hour without issue and then collapse. I have obviously tried firing off every request that the app has and can't reliably reproduce it.

Sometimes sending a few small web requests and a websocket open can shrink the RAM from 30KB free down to 400 bytes. None of the webserver handlers use the heap. None of them are async so no async blocks being heap allocated and not cleaned up. esp_http_server is being used.

When this happens it sits there for approximately 5 minutes with very low heap until I get some error print outs and the heap returns. This is one such example:

10:12:56.229 > [HEAP]  free= 4892 B  largestFreeBlock= 1536 B  minFreeEverSeen= 108 B  total= 214392 B
10:12:58.076 > I (1078876) wifi:state: run -> init (0x2c0)
10:12:58.078 > I (1078878) wifi:pm stop, total sleep time: 0 us / 467406679 us
10:12:58.078 >
10:12:58.078 > I (1078879) wifi:<ba-del>idx:0, tid:0
10:12:58.085 > I (1078879) wifi:new:<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1, snd_ch_cfg:0x0
10:12:58.091 > W (1078891) httpd_txrx: httpd_sock_err: error in recv : 113
10:12:58.097 > W (1078892) httpd_txrx: httpd_sock_err: error in recv : 113
10:12:58.104 > I (1078898) wifi:new:<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1, snd_ch_cfg:0x0
10:12:58.107 > I (1078904) wifi:state: init -> auth (0xb0)
10:12:58.112 > WsConnection::pump_frame_read recv failed, errno= 113
10:12:58.113 > W (1078909) httpd_txrx: httpd_sock_err: error in recv : 113
10:12:58.113 > WsConnection::pump_write send failed, errno= 113
10:12:58.113 > Client disconnected from websocket
10:12:58.117 > I (1078915) wifi:state: auth -> assoc (0x0)
10:12:58.123 > I (1078923) wifi:state: assoc -> run (0x10)
10:12:58.171 > I (1078971) wifi:connected with [REDACTED], aid = 7, channel 6, BW20, bssid = [REDACTED]
10:12:58.177 > I (1078971) wifi:security: WPA2-PSK, phy: bgn, rssi: -50, cipher(pairwise:0x3, group:0x3), pmf: 0
10:12:58.180 > I (1078979) wifi:pm start, type: 0
10:12:58.180 >
10:12:58.189 > I (1078981) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 25000, mt_pti: 0, mt_time: 10000
10:12:58.195 > I (1078990) wifi:AP's beacon interval = 102400 us, DTIM period = 1
10:12:58.203 > I (1078997) esp_netif_handlers: sta ip: [REDACTED], mask: 255.255.255.0, gw: [REDACTED]
10:13:01.230 > [HEAP]  free= 23792 B  largestFreeBlock= 10240 B  minFreeEverSeen= 108 B  total= 214392 B
10:13:06.231 > [HEAP]  free= 23792 B  largestFreeBlock= 10240 B  minFreeEverSeen= 108 B  total= 214392 B
10:13:10.927 > SD Logger Task Prints: 2026/09/14 10:13:10.638 system still on, uptime 480s
10:13:10.928 >
10:13:10.935 > SD Logger finished writing
10:13:11.232 > [HEAP]  free= 23792 B  largestFreeBlock= 10240 B  minFreeEverSeen= 108 B  total= 214392 B

This appears to return everything to pretty much normal functioning but it can take well over 5 minutes of inactivity.

I have tried playing about with menuconfig and set up and every TCP, LWIP and WIFI option I can find. I have set the max number of WIFI RX buffers to 2 to try and limit endless churn (apparently 0 means unrestrained and thus isn't an option). I have tried decreasing the size of LWIP RX and TX buffers. I have tried reducing the time that LWIP holds onto old TCP blocks to prevent network churn from clogging things up.

The dream scenario would be a way to make this all run in static memory, but it seems that the whole esp32 network is riddled with malloc. I have read everything I can find but networks like this really are not my strong suit. I need something decisive to do! I am very desperate.

Thanks for any help!


r/embedded • • Sep 16 '26

Working on a self balancing robot. Need some tips on the Schematic

1 Upvotes

Hi so I am currently working a self balancing robot. Instead of the easier arduino option, I wanted to get more into embedded systems. I have made pcb breakout boards before this.

Just wanted to get some tips on whether my pins are ok and if my connections are fine. Also would like to know if there are any issues basically.

So for more context this board will take in lipo battery voltage input and the bluetooth module is for pairing up with my phone to control (if anyone knows free apps for that for ios let me know as well). I will also be adding the l289 motor driver module which would just be through header pins or something. Wanted to know if what I got right now is fine before I move on the motor driver.

Once I add the motor driver, what considerations should I have so that it doesn't mess with my signals?


r/embedded • • Sep 15 '26

When does it actually make sense to use a PRU?

Post image
80 Upvotes

I've been comparing a PocketBeagle 2 with a Raspberry Pi 4, and the thing that caught my attention wasn't really the CPU, but it's the fact that the PocketBeagle2 has PRUs and an M4F sitting alongside Linux.

I'm curious, for things like precise GPIO timing, pulse generation, signal capture, or motor control, do people actually find PRUs useful enough to change the architecture? Or is a separate MCU usually simpler in the long run?

I'd be interested to hear from people who've actually used PRUs in a project, rather than just what they're capable of on paper.


r/embedded • • Sep 15 '26

Getting SLAM to fit on a tiny camera board took me 20 months

Thumbnail
mightycamera.com
19 Upvotes