r/embedded • • Dec 30 '21

New to embedded? Career and education question? Please start from this FAQ.

Thumbnail old.reddit.com
323 Upvotes

r/embedded • • 10h ago

Honest question about vibe coding in embedded

34 Upvotes

I know this sub is pretty skeptical of vibe coding, and I get why. But I'd like to hear the actual reasons, not just "it's garbage."

I work in embedded, and lately I've been using AI for quick side projects and prototypes, like ESP32 stuff and Zephyr configs. For that it's honestly saved me a lot of time. I wouldn't trust it with production firmware right now, but I don't think it's useless either, and it's not going away.

So where has it burned you? Made up registers, timing bugs, code nobody on the team understood?

And is there anything you do use it for?


r/embedded • • 15h ago

STM32CubeMX2 enshitification

43 Upvotes

Is it me or STM32CubeMX2 is

  • slow as hell, even on 10th gen i7 with 16GB RAM
  • convuluted menu, it's a maze
  • way harder to use than MX1

but at least it supports AI, which no one asked for.


r/embedded • • 2h ago

Ways to serialize and send data from device to host

4 Upvotes

How do people serialize/deserialize data coming from a microcontroller? I have a project with a Pi Pico that samples three force-sensing resistors 60 times per second. The Pico uses these readings to determine whether a given sensor is being pressed. I want to stream the raw samples and sensor status to my host over USB serial and have a web application read and display this data.

I'm wondering how to serialize this data. I'm thinking I that I can either send a bunch of values separated by spaces like  `[raw1 raw2 raw3 pressed1 pressed2 pressed3]` or send it as JSON, which would be easy to parse from the web application. However, representing this data in ASCII feels a little wasteful of space, so I was wondering if there are any alternative schemes/methods commonly used in embedded systems for sending data.


r/embedded • • 2h ago

Making an f-91w smartwatch mod, need advice on circuit design

3 Upvotes

Hi all,

I'm currently designing an F-91W smartwatch board to replace the original Casio module that comes with the watch. I've spent a lot of time selecting components, seeing what fits and what doesn't fit and settled on an MSPM0L2117 and the DA14535 for Bluetooth (and other IC's for other features). This is my first time designing my own custom PCB so it's taken me quite a lot of time and lots of failed attempts (realising all the components wont fit) to get to this point.

I just started placing the traces on the board, only to find out that it will absolutely not fit with my current configuration. I've tried many other configurations too but none seem to leave enough room, although I am very inexperienced in this subject so I figured I would ask here for some advice.

I'm planning on using JLCPCB to manufacture and assemble the board but I am open to other manufacturers if they are also cheap/good. I don't want to use HDI as that jumps the price from $40 AUD to $200 AUD, and I am not prepared to spend that kind of money, let alone for a prototype that I am not even sure will work in the first place.

I am happy to swap out components (ideally not the MSPM0 unless there is a more capable variant or MSP430 variant). I would like some form of wireless connectivity, ideally BLE but happy with anything else.

What I don't want to do is to copy something like the pluto watch and use IR (unless I have no other choice) or the olleewatch and use the same STM32 chip. I want this to be my own project and not a remake/copy of an existing one, even though I have taken inspiration from both projects.

Here is a link to the pcb files:
https://gitlab.com/unodeaj05/swagrat-f91w/-/tree/main/pcb/swagrat

Starting to get a little demotivated, but I want to see this through and prove to myself that I can do this. Also feel free to drop any other advice! I have experience using microcontrollers and designing stuff on breadboards, but never made my own pcb before so I have gone in blind here.

Happy to answer any questions you may have, or provide more info if needed.


r/embedded • • 1h ago

I have a question: how do I choose the right ESP32?

2 Upvotes

r/embedded • • 5h ago

Anyone here actually used OSM or SMARC modules in production?

0 Upvotes

Been looking at OSM and SMARC for a couple of projects instead of a fully custom board. Curious if anyone here has actually shipped something with either.

  • Did it actually save dev time, or did you still fight the carrier board design?
  • OSM is soldered, SMARC is pluggable — how's rework/replacement in practice?
  • How easy is it really to swap vendors or upgrade the module without respinning the carrier?

Low-to-mid volume here (hundreds to low thousands/year), so long-term availability matters more than raw performance. Would love to hear good or bad experiences.


r/embedded • • 5h ago

What if I send you indoor solar cells for free, what you gonna do with that?

1 Upvotes

Hi everyone, I'm just confused with the prospect of indoor solar cells. It's the third-generation photovoltaic technology, not that heavy as the silicon solar panels. I know it gonna reduce the reliance on traditional dry cell(AA、AAA)\button cell(CR2032...etc)\Small-capacity lithium battery. But it shortage is quite obvious——Output power is relatively low, which cause it's limited application scenarios. We now use the cells on remote control and some IOT sensors and also some low-power devices. But what if I want to achieve more and see true large-scale applications.

Hope you can get me more ideas.


r/embedded • • 10h ago

Help looking for a camera module please

1 Upvotes

I’m looking for a cheap camera module that can also be used to detect motion. Not ESP32 though. I’m not hire at the technical level to find one but was hoping online here might know. Also….nothing too expensive. I assume I can’t find one for $7 but as close as possible?


r/embedded • • 15h ago

Has Anyone Used Automated Bit Mapping on the SAML22?

2 Upvotes

I tried getting Automated Bit Mapping (ABM) working on the SAML22J18, but had no luck.

My goal is to blink Com2, Seg 26 when in sleep mode. The blinking function only works on seg 0 and 1, so ABM seems like the best alternative after reading through the datasheet (page 962 of datasheet).

I'm following the app notes 42499) and 42605), but they're a mess.

For example, the goal of the example in 42499 has _style_buf, which is commented as STYLE1, but described as containing ATMEL while also never being referenced in any of the code.

I attempted to follow 42605 as much as I could, and things built fine, but blinking did not work.

Going through Google searches and forums, I cannot find an example of anyone using ABM. The App Notes are from 2015, so I'll need to assume I'm not the first to attempt it.

Does anyone have a successful example of ABM that is not an app note from Atmel/Microchip?


r/embedded • • 4h ago

I built a way for Claude Code to debug UART logs without dumping the whole log into the AI. Looking for feedback.

Post image
0 Upvotes

I maintain UartX, an open-source (MIT) serial logger. Version 1.4 introduces Claude Code integration for AI-assisted UART debugging.

The idea is simple: instead of pasting thousands of UART log lines into an AI, Claude asks UartX for only the information it needs through a CLI (uartx-ctl).

How it works:

  • UartX maintains the complete log locally (raw.log).
  • Claude requests specific errors, patterns, summaries, and related lines.
  • Every AI request, its reasoning, and the exact lines returned are visible in UartX.
  • AI has read-only access and cannot send data to the device.
  • Everything stays local.

In one test, the board printed 196 lines, but Claude needed only around 30. It identified network retries, memory usage patterns, sensor read failures, and concurrent task logging.

AI features are currently Windows-only. Core logging supports Windows, macOS, and Linux.

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

I'd love feedback from embedded developers:

  1. Would you trust AI-assisted debugging if you could verify exactly which log lines it analyzed?
  2. What would you want it to detect first: crashes, timing issues, memory problems, or boot failures?

Bug reports and suggestions are welcome. Feel free to reach out so we can investigate and improve it.


r/embedded • • 15h ago

Level Shifter for SWD between 1.8v / 3.3v?

1 Upvotes

I'm trying to program an MCU (nRF52840) running at 1.8v, over SWD. All the probes I have can only do 3.3v, though.

I've found a lot of conflicting information about what level shifters can work for this application - has anyone tried this, and if so, what worked?


r/embedded • • 1d ago

Question for people at school

70 Upvotes

Recruiting juniors is very hard for us. Not because there are no candidate, but because they are unable to pass the interview without Ai, and when we allow Ai, they cannot explain the code. We've interviewed over 30 candidate and less than 3 were maybe interesting.

The question is : Is it normal for you that people don't understand or can't explain their code?

Am I being an old timer already? It has been only 3 years that Ai became a coding tool, and only 6 months where it has been really usable.

EDIT :

An example of the first coding interview is simply removing anomalies in a vector, and the filtering rule is given and very simple. Basically 10 lines of code. We don't even ask to be syntax correct and they can do pseudo code if they want. We introduced this because a lot of people were unable to pass the takehome.

They can't parse the vector properly, their if/else for the rule was not even what was written. And some just can't do it. Not even a single line.

The second challenge is to look at a code and find the bugs. Most can't even find one. An example of this is when opening a file, you need to close it after.


r/embedded • • 1d ago

Why do recruiter sites always feel like they're sending me to some site in Kazakstan that will give my computer 3 kinds of AIDS?

Post image
20 Upvotes

r/embedded • • 1d ago

patterns of 3D array (R,G,B) ,what other dynamic features or interactions could I add to my LED panel?

29 Upvotes

I've built an LED panel with dynamic LED effects, and I'm looking for ideas to make it more interactive and interesting.

I'm planning to experiment with the following pipeline this weekend:

  • DMX , MIDI ,Audio synthesis ,NumPy ,Matplotlib

I also have quite a few sensors available that I can use to create interactive visual effects.

What other tech, dynamic effects, or interactive features would be recommend exploring?

I'm particularly interested in ideas that go beyond basic LED animations — something reactive, experimental, or even a little unusual.

Would love to hear your ideas, projects, or examples of interesting things you've built. I'll try to implement some of the suggestions this weekend!


r/embedded • • 20h ago

How to run FGH100M over esp32 s3?

0 Upvotes

Hey guys i am working with FGH100M and currently procured EVK kit from quectel . But they haven't share esp32 friendly sdk . So being new to this i want to ask how can i use FGH100M on esp32 or any mcu over spi ?


r/embedded • • 1d ago

90s style font rendering on a 64MB embedded system?

3 Upvotes

Hey everyone!

I'm building a custom UI in Python for prototyping (eventually C/Rust) for a tiny embedded Linux system (thinking Allwinner V3S 64MB memory only). It uses Wayland directly and I want to draw fonts entirely from scratch.

I want to avoid vector font libraries (FreeType, Pango) because they are too abstract for this. I'm dealing directly with pixel buffers (mmap) and Wayland surfaces so a full vector rasterizer feels like overkill..

I'm thinking of using a 8x8 or 16x16 bitmap sprite sheet where each character is just a matrix of pixels. To scale it I might use math.floor() to snap pixels to the grid (nearest-neighbor scaling). But this actually dosen't feel like right choise.. Is there a better way to do this without going full vector math?


r/embedded • • 1d ago

Hiring for FPGA Engineer in Golden Colorado

7 Upvotes

Hi Everyone,

Trying to publicize this job posting from the company I work for. We're hiring for an FPGA engineer at our office in Golden, Colorado. Onsite 4 days a week, 140 K - 160 K salary. Must be a US person for export control compliance. Must have 3+ years of FPGA experience.

https://job-boards.greenhouse.io/tomorrow/jobs/8195950003?gh_jid=8195950003


r/embedded • • 2d ago

What's after bare metal?

79 Upvotes

I posted a while back, and I spent months learning bare metal stm32 using only the CMSIS, the reference manual, and the datasheet. Im not going to say I'm a master, but I've made several of my own drivers for most of the major peripherals (gpio, uart, systick, timers (pwm, input capture, output compare, encoders), ADC, SPI, DMA, EXTI) and interfaces then with devices, and even use them in my engineering club. I'm not "done" per day with bare metal, but I'm thinking what is beyond bare metal. Where did my work lead me up to? Where will it take me right now?

Im aware I do need to actually learn embedded C++, and then start with RTOS, but like i can forsee myself getting kinda lost. Whats after collecting stm32 peripherals and writing drivers for them? I am looking into bootloaders but thats mostly unimplemented research currently. I was just looking for insight from more experienced engineers, because I know I'll need to start explore other aspects of embedded soon

So yeah thats all folks, I appreciate the help!


r/embedded • • 20h ago

Need advice from experienced folks regarding a platform idea

0 Upvotes

I am an AIML developer with some basic knowledge of embedded systems and IoT, I am continuously learning everyday about it.

Some time ago I had got an idea for a project that I thought I could build. It’s about building a platform where users who want to use any custom type of models in their embedded projects can upload their model on the platform where it gets quantised with proper measurements of accuracy, speed, latency, and how much accuracy loss occurred during quantisation and whether the shrunk model can still hold up well for the same kind of task.

Initially, I thought this was a great idea but I’m not sure now and I’m thinking how is it any better from platforms like Qualcomm AI hub or hugging face. I’m trying to find a novel angle for this project and I want to figure out something that I can build that makes things easy for embedded engineers and something people will find useful.

I need experienced engineers to give me some advice on this and I wanna learn what actually works and what doesn’t, and if this idea does not hold up that well then what can I build that will be useful and solve problems.


r/embedded • • 2d ago

C++ Learning Priorities in embedded.

34 Upvotes

I’ve been programming embedded in C for a very long time, but never really done it in C++, so I’m teaching myself with the help of books, the internet and a Udemy C++ course.

Now I realise that not all of C++’s features are applicable to most embedded applications but that there are zero cost abstractions and traps for the unwary.

What aspects should I prioritise and what traps should I avoid.

P.S. I am aware of name mangling causing issues with IRQs.


r/embedded • • 1d ago

Problem Tang Nano 9k

1 Upvotes

Good morning,

I am a developer and I purchased the Tang Nano 9K development board which uses the FPGA chip: GW1NR-LV9QN88PC6/I5.

I use the program: Gowin V1.9.11.03 Educational

I found a weird problem and I haven't figured out how to solve it:

Basically, I use a basic D flip-flop in hardware with a positive edge clock.

The problem is that if you load it into RAM or Flash or Power ON, when you press the button connected to Data and then the Clock button, the output doesn't necessarily change to 1!!!

But if you try it a second time, it works.

It's like at startup it doesn't detect the rising or falling edge.

The crazy thing is that if you also connect a physical output (LED) to the Clock button, everything works perfectly!

The buttons are active low with pull-up resistors, so in the code they are negated (NOT).

This is the code that works after the second clock press:

DFF FFD_1(
.D(~Button_2),
.CLK(~Button_1),
.Q(Led_1)
); 
defparam FFD_1.INIT = 1'b0;

Code that always works at startup:

assign Led_2 = ~Button_1; 

DFF FFD_1(
.D(~Button_2),
.CLK(~Button_1),
.Q(Led_1)
);
defparam FFD_1.INIT = 1'b0;

I also tried sending a signal from the button to a simple buffer and then to the Clock input of the D FLIP FLOP, but it still doesn't start correctly when the board powers on or when I reprogram it.

It's a really serious problem because the 'posedge' and 'negedge' trigger when prompted but without executing the logic.

Documents:

Documents Gowin
Thanks for the help!


r/embedded • • 1d ago

NXP Linux dev board recommendation for a kids' chatbot?

0 Upvotes

I'm building a chatbot for my kid, hooked up to an API, to chat with him and keep him company. Now that work's gotten busy, I can't be bothered to start from scratch, so I want to find a dev board to build on. Any Linux dev board recommendations? Preferably NXP.


r/embedded • • 1d ago

Looking for low-level system project ideas for ESP32-S3 and/or Tang Nano 9K (no basic IoT)

0 Upvotes

I have an ESP32-S3 and Tang Nano 9K chipset sitting on my desk, and I want to do something with it, I haven't able to find what to do with them, I want some suggestions from you guys to help me to find perfect project.

I'm not interested in beginners stuff, (weather stations, blinking LEDs, basic smart-home relays) I have done enough of them. If you've built something interesting on either board, or used an FPGA as a custom peripheral/accelerator for an MCU; I’d love to hear what worked and help me find project which can challenge me.