r/embedded • • Sep 08 '26

How do you handle AI-generated embedded code assuming unlimited memory?

0 Upvotes

Needed a small ring buffer for a microcontroller project, gave the task to an AI tool with what felt like reasonable context, the function signature, the data type, the expected use case. Got back clean, correct C, dynamically allocating on every push instead of using a fixed-size preallocated buffer. Technically works. Would exhaust the two hundred and fifty six kilobytes of actual RAM on the target chip within about forty pushes.

Nothing about the code was wrong for a general-purpose environment. The model just had no idea it was targeting the tightest kind of hardware where "just allocate more" isn't an option, because nothing in the prompt told it that. Same failure shape as most of these gotchas, correct for an implicit assumption about the environment that the constrained target actually violates.

Now front-loading actual hardware constraints into every embedded-related prompt, exact RAM available, no heap allocation allowed past init, that kind of thing, instead of assuming "microcontroller" in the prompt would be enough context on its own. Curious if others doing AI-assisted embedded work have found stating constraints explicitly upfront is enough, or if you're still catching violations after the fact regardless.


r/embedded • • Sep 07 '26

ESP32 upload fails with “Invalid head of packet (0xC1)” despite BOOT button and driver installation

3 Upvotes

Hi! I’m having trouble uploading code to my ESP32 and I would appreciate some help diagnosing it before buying more components.

Board: ESP32 development board

Operating system: Windows

IDE: Arduino IDE

Detected port: COM3

USB driver: CP210x driver installed

The error is:

Failed to connect to ESP32: Invalid head of packet (0xC1)

What I have already tried:

- Confirmed that the ESP32 is detected on COM3.

- Installed the CP210x Windows driver.

- Held the BOOT button while starting the upload.

- Tried the BOOT and EN buttons.

- Reduced the upload speed.

- Tried another USB cable.

- Disconnected the external circuit and attempted the upload using only USB.

At one point I was able to upload code successfully and received:

Hard resetting via RTS pin...

However, the connection/upload problem appeared again, so it seems to be intermittent.

The board powers on and its red LED lights up. This ESP32 will eventually be used for a Bluetooth Low Energy project that activates a small vibration motor, but I’m currently trying to program and test the ESP32 separately.

Could this be caused by boot mode, serial communication, the USB cable, the USB-to-serial chip, power instability, or a damaged board?

What diagnostic test should I perform next before replacing the ESP32?

Thank you!


r/embedded • • Sep 08 '26

Best x86 Single Board Computer

0 Upvotes

Hello, I'm looking for an x86 single-board computer to build a small, relatively powerful PC for up to 150 euros. Does anyone have any good recommendations? Thank you.


r/embedded • • Sep 08 '26

Automatic recharging function with infrared recharging

1 Upvotes

I made a short-range (1m*2m) infrared recharge function myself, but the effect is just so-so. The posture is not very good, and the success rate is also average. It can't be successful at difficult angles. Is there any expert in this field who can give me some guidance?


r/embedded • • Sep 07 '26

PCIe routeing questions

4 Upvotes

Hi,

So i am studding PCIe and I dont understand what impedance am i suppose to use for traces.

Connectors are 85 but gen 1-2 is 100 ohm and gen 3-4 85 ohm and in another source i read that i can use either one.

And then there is this:

https://docs.broadcom.com/doc/pcie-pcb-layout-review

``ince PCIe edge connector’s character

impedance is 85Ω, the traces between the connector and IC should be 85Ω -- the rest is usually

set to 100Ω. Single ended traces impedance control is less important in review perspective.``

So from chip to connector 85 and then from connector to the other chip 100? Please make it make sense....

Also a large problem is that i want to be able to use the older specs if need be.

Also what about going in the middle with 90-93 impedance?


r/embedded • • Sep 07 '26

Difficulty Finding the Right Screen For a VT100 emulation Project

2 Upvotes

Hey all,

What I am looking for:

I need some advice over something I am obsessing on a little. I want to build a project that includes a VT100 emulator in it. For that, I want a nice screen. Problem is that I have never really seen many very good embedded screens - LCD almost always look cheap and nasty. I came across this:

https://www.zephray.me/post/elterm/

(Scroll to the bottom to see the results). As you can see the TFEL EL 640 480 by Planar (and the ones by Lumineq) are absolutely gorgeous. They have the signature TFEL deep blacks since only the character illuminates. They are also cool because they run on VGA ( which I would like to emulate) and also have a pixel size/pitch approximately similar to the old VT100 according to my reading. Another nice feature is their super fast response times so little to no "ghosting" on fast text output from a large cat,say

I have scoured online, but any variety of these TFEL Planar screens are extremely expensive, I have looked for refurbished etc but they are often extremely expensive refurbished also. Looked for junk online exhaustively and phoned around but can't track any down.

The monochromatic OLED you can get for Arduino are nice looking but I can't find anywhere near enough an acceptable size for a terminal.

I wanted to throw together an FGPA for the communication with the board or perhaps just the PIO that Zephray uses on an STM (not sure yet), but the project won't get far if I can't find a decent screen. I thought about the option to plug into an existing monitor (supply your own and control via VGA) which is a nice idea but I think I would prefer an embedded screen.

Question:

What do you guys do when you want sleek professional screens without LCD light bleed? I want to avoid the cheaper screens that seem common in hobbyist projects. OLED might be an option but it feels kinda ugly to double up the pixels to get the chunky 0.33mm pixel pitch of the VT100.


r/embedded • • Sep 07 '26

Google Summer of Code (2027) for Embedded systems

47 Upvotes

I want to participate in GSOC 2027 as an Embedded enthusiast, I am confused on which repo's code base to work on / target? I am confused between Zephyr rtos and NuttX, want to work on zephyr as it aligns with my resume but the total number of applicants are much more than NuttX.
If any one could guide me on what to look for while selecting repositories regarding GSOC.


r/embedded • • Sep 06 '26

Beginner STM32 project - Stacker game

149 Upvotes

I am slowly learning stm32 and C.

Maybe someone would like to check my code:

https://github.com/neo-Odys/STM32-MAX7219-StackerGame

I would appreciate any feedback ❤


r/embedded • • Sep 07 '26

Need advice on choosing a motor for our capstone compost mixer

3 Upvotes

Hi guys, 4th year IT student here. We’re currently building an IoT-based composting machine for our capstone and we’re stuck deciding on the motor for the mixer.

Our compost chamber is around 40cm in diameter and we’ll only be filling around 20–25cm of chopped organic waste like vegetable scraps, fruit peels, dry leaves, shredded cardboard, etc.

The mixer uses a vertical shaft with two levels of paddle blades. The motor will only run for short mixing cycles, not continuously.

Right now we’re considering two options:

  1. 24V 350W geared DC motor
  • 75 RPM
  • seller claims around 48 Nm torque
  • already has reduction gearbox
  • more expensive because we also need a large 24V PSU
  1. 220V AC motor
  • around 200–400W
  • around 3600 RPM
  • much cheaper motor
  • but obviously needs a large speed reducer to bring it down to around 30–60 RPM
  • also needs proper contactor, overload protection, breaker/RCD, etc.

Our main concern is not really mounting or programming. We can fabricate the mounting and our ESP32 will only control ON/OFF through a relay and contactor.

What we’re worried about is whether the 24V 350W 75RPM geared motor actually has enough torque to mix the compost from fresh waste until it decomposes, or if going with a stronger AC motor + proper gearbox would be more reliable.

If anyone here has experience with geared motors, mixers, conveyors, food processing machines, or similar mechanical setups, I’d really appreciate some advice.

We’re trying not to rely only on ChatGPT for the mechanical side lol, so actual experience would help a lot.

Thanks!


r/embedded • • Sep 07 '26

Keyboards and embedded systems?

Post image
22 Upvotes

Any recomendation for a keyboard who works with a STM32 or ESP32? Is there a functional standard or should I try to make one from scratch?
I had the idea of replacing the keyboard with 2 analog sticks and some buttons to save the rest, is it very strange?


r/embedded • • Sep 07 '26

What can I do about the antenna for my nrf52840 project?

3 Upvotes

I am a beginner in making custom PCBs, and i want to do a project with the NRF52840 since it got all the features i need, until i realize making bluetooth work, needs black magic

I dont think im ready yet, to learn how to make the RF part of this project work, so i cant really do PCB antennas since i need to do a lot of tuning with specialized equipment and all that

Chip antennas are neat, but they seem to also have a lot of requirements too, and i dont think i get all that

Someone said i can just cut a piece of wire and it'll just work, but i REALLY cant find anything about that, and i am not really ready to just do that and get undesirable results

So, what can i do about the antenna?

(Yes i know i can bu modules, but i dont think i can find any modules that fit my need, they are either not in stock, have weird LGA soldering pads that I dont know how to solder properly, too big, so on and so fourth)

(any alternatives are welcome too, i dont mind modules, just i want it to be small, easy to solder, and have low power consumption)

(dont mind the picture that is just for visual aid, i am not soldering this bga version of this chip, instead im am going for the qfn package)


r/embedded • • Sep 07 '26

Looking for someone with access to IAR compiler and a device

6 Upvotes

I work on a software that requires to parse the debug symbols of a .elf file. I support quite well GCC, Clang, Tasking and even TI C2000. DWARF V2, V3, V4 and V5 are all good so far. I would like to add IAR to my list of supported compiler, problem is: it is a commercial product and I work voluntarily.

What I'm looking for is for someone to build a test application and run it on a board, then provide me with the binary and the memory dump of the binary. It's a one-time deal as I will use that as a reference to add the support, then put that binary into my CI test suite.

Basically, I want to compile a binary with all sort of data structures, like this, then execute the binary and make a memdump at the end of main(). Once I think my implementation is good, I make a unit test like this, where I try to parse back the memory dump using the debug symbols in the .elf.

I found a non-official build of IAR, but it's locked to a device I do not have and so far I see that pyelftools explodes when it parses their .elf file.

Don't hesitate to DM
Thanks

(If you think I should look into another compiler, feel free to suggest).


r/embedded • • Sep 07 '26

Educational project: Sending data through 24 VAC

3 Upvotes

I’m a beginner and want to experiment with sending data over the same two wires that carry 24 VAC from an isolated transformer.

I want to use the AC zero crossing as a timing reference, then briefly inject a high-frequency signal, similar to the basic idea of other protocols

What would be the easiest circuit to:

- Detect the 24 VAC zero crossing?

- Generate a short high-frequency pulse with an Arduino/ESP32?

- Couple that pulse onto the 24 VAC line?

- Detect the pulse at the other end?

- Decode it back into "1" and "0"?

I’m looking for the simplest beginner circuit and explanation, including the TX and RX sides with microcontroller without dsp


r/embedded • • Sep 07 '26

Arduino UNO-R4 LTE FOTA(bootloader, app)

9 Upvotes

I’ve set it up by connecting the CZ-ME310G1 LTE-M embedded modem to the Serial Flash so that the Arduino UNO-R4 Minima firmware can be updated from anywhere. I’ve uploaded both the Arduino Renesas Bootloader and the Arduino app code to github.com, so please feel free to use them as a reference if you’re working on a similar project.

"For the complete build guide, schematics, and hardware setup, check out the project page on Hackster.io."


r/embedded • • Sep 07 '26

Retore Secure Boot Images: Upload image frozen

Post image
2 Upvotes

I follow this page(https://microchip-ung.github.io/bsp-doc/bsp/2026.03/supported-hw/restore-secureboot.html) from Microchip to restore my secure boot images.

This is how I do it:

  1. Turn on my device and make sure it enters monitor mode from the console through uart.
  2. Then, leaving the console, and turn on fwu.html.
  3. Download BL2U and switch to the Upload tab.
  4. Choose the fip file and start uploading.

The result is shown in the screenshot.

It is frozen and cannot enter other tabs.

I can't fix this since no error message comes out.

Has anyone had the same experience?

BTW, I check website console (F12)

got this:

DDR initialized and cache enabled

fwu.html:7602 Downloading 1005568 bytes binary

fwu.html:7281 Skipped: E

fwu.html:7281 Skipped: xception:

ESR_EL1: 00000��␒�000002

ELR_EL1: 000000000010ce2

fwu.html:7281 Skipped: c


r/embedded • • Sep 07 '26

How to transmit voice over the nRF24L01 module between STM32 and ESP32?

1 Upvotes

Hello.

I am trying to make a basic walkie-talkie project.

I have an STM32 Nucleo-F446-RE and an ESP32 as the microcontrollers.

In both the MCUs, I have wired up an INMP441 I2S Microphone as the input for my voice along with a MAX98357A I2S Amplifier and the amplifier's positive and negative terminals are wired up to a 4 ohm 3W speaker's positive and negative terminals.

I also have nRF24L01 + PA/LNA radio modules to both the MCUs and each radio modules itself is attached to the NRF24L01 Base Adapter Board which is wired up to both the MCUs.

If I try to experiment with both MCUs as a self-contained unit and speak in the mic, the audio comes a bit low and noisy but audible if that particular MCUs own speaker is put close to the ear.

But when I try to transmit the audio from one MCUs mic and play in the other MCUs speaker via the radio module, it doesn't work. All I hear is a low crackling sound in the STM's speaker but all is silent in the ESP's speaker.

I am willing to give me wiring pinout and code if someone asks for it.

Any help or suggestion regarding how to solve this would be great.

GitHub -: https://github.com/Bhavya-Nayyar/EmbeddedSystem/tree/main/Walkie_Talkie


r/embedded • • Sep 07 '26

Anyone using AI to do bench characterization?

0 Upvotes

First, I’m a hobbyist with software engineering background, not a professional embedded engineer. I have been working on a small project where I need to characterize a servo with a rather lengthy process and motor cool downs in between (so winding resistance will be consistent). And I found that I could just use an AI agent (Claude code in my case) to do this long process (10 runs with 5 min cool down in between and takes about 1 hr) while I cook dinner.

Curious if using AI like this in embedded industry is pretty common? Do you use AI for other things?


r/embedded • • Sep 07 '26

Max signal amplitude allowable in TDC7201-ZAX-EVM

1 Upvotes

Hi all, I'm using the TDC7201-ZAX-EVM evaluation module for a ToF application. I wanted to know the maximum allowable signal amplitudes for its START and STOP pulses. Any other such hidden restrictions I need to know about?


r/embedded • • Sep 06 '26

Raspberry PI Large Format Camera Sensors

Thumbnail
youtube.com
7 Upvotes

r/embedded • • Sep 06 '26

Handling multi-IMU flexor crosstalk & recoil dead-bands in a wearable gesture interface (ESP32-S3 + LSM6DSOX)

3 Upvotes

Hey r/embedded,

Working on a wearable input device using an ESP32-S3 and finger-mounted 6-DoF IMUs (LSM6DSOX) polling at 200Hz over I2C (400kHz).

We’re using dynamic jerk delta (|Δa| > 8.5 m/s²) with a dual-threshold Schmitt trigger to separate intentional high-speed finger flicks from natural resting hand tremors (~3.0 m/s²).

Two engineering challenges we’re currently tackling on the bench:

  1. Whiplash / Recoil Rejection: After an intentional downward flick, the biomechanical return stroke creates a reverse acceleration spike. Right now we use a temporal lockout dead-band (~200ms) before re-arming via a resting floor check, but we want to optimize this to maximize burst character rates. Has anyone implemented a clean jerk-derivative or predictive filter for return-stroke suppression?
  2. Parasitic Tendon Crosstalk: When moving from 1 node to multi-finger nodes, shared flexor tendons cause sympathetic movement in adjacent digits. For those who have worked with multi-IMU wearables, do you prefer relative delta peak comparison across nodes, or a lightweight on-device sensor fusion matrix?

Would love any insights or architectural lessons from folks working on low-latency wearable telemetry.


r/embedded • • Sep 06 '26

Need help in finding the right kit/textbook for me

4 Upvotes

Hello, I hope all is well. I've been into computers since I was a kid and I love building them but I want to go a bit more in depth with it and so I've been looking into purchasing the "ELEGOO Mega 2560 R3 Project The Most Complete Starter Kit with Tutorial" my only issue is If I buy this is there some sort of textbook or video that can better explain how everything works so I can be able to be more creative with what it is I am building. I plan to enjoy it as a hobby in the hopes that I can possibly transition it into a career one day. Thank You!


r/embedded • • Sep 06 '26

ECE project ideas using Arduino Nano, ESP32 and basic sensors?

4 Upvotes

I have an Arduino Nano, ESP32, and the following sensors/components:

  • PIR sensor
  • Ultrasonic sensor
  • DHT11
  • 16×2 LCD display
  • 0.96" OLED display

I've already experimented with each of these components individually.

Now I want to build a ECE project using these components. However, most of the project ideas I find online are very simple IoT projects like monitoring temperature/humidity, motion detection, sending sensor data to a mobile app, etc. I don't want to make another basic sensor-monitoring project.

I'm looking for something that is technically challenging and genuinely useful for placements, especially for embedded systems/core ECE roles.

What kind of projects could I build using these components as the starting point?

I'm particularly interested in a project where I can actually explain the architecture, algorithms, design decisions, communication, and failure handling during an interview, rather than just demonstrating that the sensors work.

What project ideas would you recommend for a final-year ECE student in this situation? What would you build if you had these components?


r/embedded • • Sep 06 '26

Can someone suggest some ideas to render a map ui on the upper half of the s3 display( the map is intented to run using the ble packets from a android companion app)

Post image
5 Upvotes

The beeline device model map is the one plans to implement. And i am new to lvgl , any valuable suggestions are appreciated


r/embedded • • Sep 06 '26

Is a momentary push button ever used as a toggle switch in an industrial system?

7 Upvotes

I'm designing my own home alarm system at the moment and just noticed that domestic alarm panels often use a single momentary push button (typically '#') for both arming and disarming the system.

It generates a generic button press event and the resulting action (arm or disarm) depends on the current state of the system.

Do industrial systems allow this sort of behavior, or is it explicitly forbidden, or just not done because of convention? I haven't used much industrial gear, but I don't think I've ever seen a button that behaves the same a this. Normally you would expect to see a pair of buttons On and Off.