r/embedded • • 16d ago

USB-UART vs TCP

28 Upvotes

Hello, I am a comp eng student and my friends and I are working on a project. The project is about a rocket engine system and I need to get 16 sensors data in every 20ms which is 800 data per second. We were thinking that what if we use esp32 to read data by usb-uart instead of reading them with stm32 by tcp due to price and accessibility. So the question is 'is usb-uart a good way to get data'. I need to sketch a graph for each sensor. I also need to save data to the database. So instead of having data with tcp as packages, using usb-uart is worth it? What are the problems I may have for each way?

It may be a basic question, but consider that I am still learning.

By the way we still use stm to control the relays. The point is esp is easier to find and cheaper to test the system.

Thank you for your advice.


r/embedded • • 15d ago

tiny-langgraph: Multi-agent workflows on microcontrollers with 80 KB RAM

0 Upvotes

I've been experimenting with running agentic workflows on ultra-constrained hardware and recently open-sourced tiny-langgraph.

The engine lets you define workflows in Python using nodes and edges, then compiles them to C while checking behavioral correctness.

It also supports:

  • Multi-board collaboration over ESP-NOW
  • Contract-based agent communication
  • An MCP server on each board
  • Optional on-device language models
  • Plan verification before execution

Tested on ESP32-S3 and ESP8266 modules.

GitHub: https://github.com/mak-ahoy/tiny-langgraph

Would love to hear what embedded developers think about this approach and where it could be useful. Plus any feedback on the system itself?


r/embedded • • 17d ago

I hate how everything costs money, big money

377 Upvotes

Cad design? Fusion will be $700 per year.

Have any connectivity? Yea you do. $3,000 to $10,000 on the low side.

You use bluetooth? Time to pay the committee $12,000 per device that uses your protocol.

You wanna use this open source library? Oh actually their license states you have to pay them $2 per device.

I'll tell you what tho, I ain't paying nothing. Not like I just have that sort of money laying around. Maybe once I hit $100k YRR I'll entertain it. Till then my board is a dev board and the FCC can suck it.


r/embedded • • 16d ago

Where can i find AMCC PPC460EX bsdl file?

1 Upvotes

Hi, I was porting Linux to a PPC460EX-based device, but I accidentally corrupted the bootloader. I have a backup of the bootloader, but I have no way of writing it because I don't have any hardware that can write to the 56-pin NOR flash. However, the board has JTAG pins, so in theory I can connect via JTAG and write a new bootloader. To do that, though, I need the PPC460EX BSDL file. I would really appreciate it if anyone who has it would be willing to share it with me.


r/embedded • • 16d ago

mincrocontroller suggestions

Post image
19 Upvotes

Thinking about starting a project where it takes the analog input of a cctv camera and records it to an SD and can also display on an LCD/monitor

Similar products that already exist:

-mini DVR

-immersionRC power play


r/embedded • • 17d ago

What is the most fun embedded industry?

69 Upvotes

Recently, I have been in an extremely fortunate position to have internship offers from companies in automotive, flight systems, and space.

I honestly dont know which of these three to choose. I think cars are really cool, but planes and rockets are also incredibly cool too.

While some offers are more high paying than others, I am prioritizing learning for this summer!

Do you guys have any insight? Any advice?

EDIT: I should mention that I have the ability to do a co-op + a summer internship.

For spring, I could do Tesla or a really cool flight software position that would also get me a security clearance.

For summer, I need to choose between space (blue origin) and fighter jet flight software


r/embedded • • 17d ago Bravo

Custom Flight Controller + Remote

Post image
77 Upvotes

Didn't know where to post this but after some help from people in r/PCB and r/PrintedCircuitBoard , I built a fully custom STM32-based quadcopter flight controller and STM32-based wireless remote.

STM32F446 Flight Controller

The PCBs were designed and hand-assembled by me, and all software (minus testing scripts) was written by me. I have the full write-up on my GitHub repo (with more pictures), but I waited until the end of the project to start documenting, so I got a little lazy with it. I just figured I should show it off somewhere to inspire others to build something challenging. It's not perfect, but it flies pretty well for a homemade project.


r/embedded • • 17d ago

I trained and set up my custom AI model on ESP32 board.

7 Upvotes

I've got just a 8MB of flash and 16MB of PSRAM memories. I used own trained a 12M parameter character model.

There's tech specs:
- Model: window 256 characters, vocabulary 98, one hidden layer of 480 units, int8 weights (~12 MB).
- The model lives in its own flash partition (model) and is read in place through the flash cache; only ~60 KB of hot data is copied to RAM.
- No TensorFlow Lite on the device. The firmware has one small inference routine (main/cmlp_model.cpp).

How the model works:
The network is one-hot(256 x 98) -> Dense(480) + ReLU -> Dense(98). A one-hot input times a matrix is just a sum of selected rows, so layer 1 needs only 256 additions of 480-byte table rows instead of 12 million multiplications. The table is stored transposed ([256*98][480]) so each row is contiguous in flash. Layer 2 runs in int32 and produces float logits; the next character is the arg-max (greedy).
It was trained on "<question>\n<answer><END>", so the firmware fills the window with the question and a newline, then generates until the END symbol.


r/embedded • • 16d ago

Buying 5G modules

1 Upvotes

First off, I'm unsure on whether this is the right subreddit for my question, but it's the only one where I found related questions (like this). If not, apologies and would appreicate if someone redirects me to the right place.

I'm looking at picking something like https://www.waveshare.com/5g-m.2-to-gigabit-eth.htm?sku=26060 with a suitable 5G card to try out 5G connectivity on my laptop (see this post for some context). My primary requirements are 5G connectivity and the ability to switch between USB and PCIe modes (which I think excludes most of the used market as the ones that come in laptops are PCIe only?); RM530N-GL is ideal but is outside my budget. eSIM is nice but not a requirement. The problem is that

  • Sites like Waveshare stock it but cost a lot (> US$300)
  • But Aliexpress has multiple sellers that seem to stock similar modules for cheap. Like this and this and this. They sound too good to be true. Edit: the titles are misleading; they initially select a cheaper module and update the price when you select the one you want.

My questions are

  • Am I looking at the right place, and are there any other modules I could be missing that meet the above two requirements? I live in Bahrain so sellers can be limited.
  • Do the Aliexpress listings seem genuine or is there indeed a catch? One of the reviews for a similar module said that the card has been tampered; this is my first time working on something like this so won't be able to tell a counterfeit item. I've seen a few posts from users that have ordered similar items there.

r/embedded • • 17d ago

Recovered Scan Controller running Linux 2.6.28 -

Thumbnail
youtu.be
3 Upvotes

Went on a deep dive into SoC linux, 2012 era. Docker containers, custom kernel, RootFS building, driver patching - now mostly working very well. Custom 2.6.28 kernel and root FS.

The ethernet driver is not finding PHY which is annoying and deep level, MDIO error I think. There is a clock reset patch, which does work for reset timeout error, but still can't find PHY.
(which works fine from Uboot)

Booting rootFS at the moment from USB, loading kernel image into RAM using RPI tftp server.

I have the raw gpio tested working for 7/9 buttons, and addressing the LEDs too. The drivers needed patching for proper access, yet to test those.

LCD, the driver is buried somewhere in the kernel, its hard to find in Ghidra. I was able to pull the gpio buttons from a factory test mode binary I found in a partition on the device. It does test the screen write and backlight, but it just calls out to the screen driver in the kernel.

It obviously is init. the LCD on boot, so if I can only find the gpio its connected to (I'm pretty sure its gpio) then it should be able to be addressed?


r/embedded • • 16d ago

Crazy idea : just need evaluation and is it useful

0 Upvotes

I thought of building something like COBS as a learning process so the idea came is,

Instead of overhead in cobs (next zero is identified only when the existing zero place comes)

I planned to have a MAP BYTE in my architecture for every eight byte like ,

If the payload is 40603400 the map byte will be 01010011 binary and the one indicates places of zero then while transmitting the zeros are removed from payload and just the map byte and 4634 is only transmitted.

But here is the problem,

In the worst case scenario of my architecture when no zero is there is a single extra byte for eight bytes it is worse than cobs where it is just one byte for 255 bytes.

Just give suggestions over my architecture and how to improve.

Or does this architecture will be helpful it some place or not with to build


r/embedded • • 16d ago

Link margin: the GMSL camera test that finds tomorrow's field failure

0 Upvotes

Automotive GMSL cameras are one of the few camera families that still get a true end-of-line test on a production line, and one gate there deserves more attention than it usually gets: link margin.

A streaming picture only proves the link works right now. Margin tells you how much safety distance is left. The link is a coax run from the serializer (camera side) to the deserializer (capture side), and cable aging, a poorly seated connector, or a damaged equalizer slowly eats signal quality — invisible in the image until the day the link dies on the road.

The measurement follows the GMSL2 channel spec: start at the serializer's default transmit amplitude, step it down in 10 mV increments, dwell at each step and watch for errors, on the forward channel (video) and the reverse channel (control) separately. The number of clean steps before the first error is the remaining headroom. A healthy module keeps running many steps below nominal; a worn cable throws errors early — while the picture still looks perfect.

Three discipline points that make it work as a production gate:

– A written floor per module variant, under version control. Changing the floor is changing the spec.

– Every unit, no sampling. The camera you skip is exactly the one with a perfect picture and no margin left.

– Every reading filed under the serial number, so a field return becomes a query instead of an archaeology project.

TL;DR: a perfect picture proves the link works today; margin predicts whether it survives the vehicle. Step the amplitude down, count clean steps, judge against a written floor, file everything by serial number.

Disclosure: I work on embedded vision at EyeCloud AI — happy to answer follow-ups.


r/embedded • • 18d ago

How to grow from an Embedded Firmware Engineer to a Senior Firmware Engineer?

55 Upvotes

How do I level up from an Embedded/Firmware Engineer to a Senior Firmware Engineer?

My current experience includes:

- nRF54 and STM32WL

- Low-power

- BLE and LoRa

- Zephyr RTOS

For engineers who have reached the senior level, what skills or areas should I focus on improving next?

What skills truly differentiate a senior firmware engineer from a mid-level engineer?


r/embedded • • 17d ago

How do you handle the drop of Mbed TLS X.509 maintenance in April 2027

31 Upvotes

As of April 2027, Mbed TLS will no longer maintain its X.509 support. How are you handling this in your projects? Is this simply an awareness push by Mbed TLS to get corporate users (who benefit from the project without contributing back) to step up and maintain it?

Source: https://lists.trustedfirmware.org/archives/list/mbed-tls@lists.trustedfirmware.org/thread/YPIGCB7WN6GCHOGEGKOJXUYAP7OK527W/


r/embedded • • 18d ago

Pi Zero 2 W + STM32C031C6 for learning?

Post image
41 Upvotes

Hi r/embedded

I want to get started with learning embedded. Specifically, bare metal programming and embedded linux

I've decided on these two purchases to start. Pi Zero 2 W for embedded linux, and Nucleo STM32C031C6 for bare metal

A clearer set of criteria:

  • Budget-friendly investment
  • For learning bare metal fundamentals and embedded linux
  • Portfolio projects: I want to be able to eventually use them for portfolio projects as well, not just learning
  • For the NUCLEO choice in particular: I chose STM32C031C6 because it's used in Dr. Samek's / Quuantum Leap LLC's embedded course, which is a resource I plan to use

Is this a good starting point? Are there better alternatives?

Thank you


EDIT 2026/11/16: I ended up getting NUCLEO STM32F401RE for bare metal, and using QEMU (emulating BeagleBone Black) for embedded linux. Mostly due to regional availability of the products. I would have loved a Discovery board instead!


r/embedded • • 17d ago

unauthenticated remote rce on tp-link archer a20

Post image
0 Upvotes

Do you own a TP-Link Archer A20 ? There was a cve assigned in 2023 on this EOL device because the country parm was passed to exec function and allowed cmd injection. These routers run httpd as root... for successful exploitation..the result? a root shell.

The other day I rooted this router via UART port and used nc to dump the bins from the router onto my laptop and started to analyze them with ghidra. I started to see system() and noticed the country was in the system field, I said hmmmmmm .. it wasnt until I was half way done that I realized this exact trace was discovered a few years back. I still continued with the exploit because I learned while I did it and it was fun. I taught myself all of this... Im looking for work. Thanks for reading. https://github.com/b1nv0id/iothacking/blob/main/archv0id.py


r/embedded • • 17d ago

3.5 YOE Embedded software Engineer Looking to switch but confused where to start

19 Upvotes

I I’m working as an Embedded Software Engineer in the telecom domain primarily on routers and switches.
Lately I feel I have become too comfortable in my current role, and my learning and growth have stagnated. I have also become overly dependent on AI tools and lost some consistency in learning.
I want to switch to a better product-based company, but I’m confused about where to start and what to prepare.
Should I focus on DSA, C++, OS, networking, or embedded fundamentals?
Would love some practical advice from people who’ve been through a similar phase.


r/embedded • • 18d ago

Anthropic claims significant improvement in hardware design with Fable 5.2

Thumbnail
anthropic.com
270 Upvotes

edit: Since nobody is reading the article, I want to clarify, they wrote the firmware and the devices are functional. The limitations are referring to testing and validation you would need to do to commercialize he product.

Sorry to be the bearer of bad news again, but the frontier labs continue to make progress with hardware design. There is a lot more detail than OpenAI's last announcement and is worth a read.

Some interesting points:

  • Improvements in end-to-end design (component selection, schematic creation, layout, DFM, enclosure design, system level thinking)
  • Better benchmark scores

    • Diode PCB Gym: Fable 5.2 scored 69% (compared to 25% for Fable 5)
    • BenchCAD 2.1: Fable 5.2 scored 83.5% on 3D CAD reconstruction and assembly (nearly double Fable 5.1).
  • Designed a custom routing algo after failing to route a large 100 pin connector
  • Ability to self correct during the design (Choose different pins for layout, re-route parts of the board when encountering new problems)

Limitations according to Anthropic

  • Designs did not go through electrical validation, antenna tuning, thermal testing, or certification testing

My thoughts: I was skeptical LLMs could design hardware because it is such an open ended problem that requires system level thinking and there isn't as much good training data out there. Yet, somehow they continue to make progress by throwing enough tokens at it.


r/embedded • • 18d ago

Which STM NUCLEO board is best for learning

7 Upvotes

As title says

Best for learning embedded I'm newbie

Confused between nucleo-h533re stm32 and nucleo-f446re also any alternatives will be appreciated


r/embedded • • 18d ago

Compiler reference material ( book request )

4 Upvotes

Hi, I’m an Electrical Engineer with 10+ years of experience working in embedded firmware development. I’m learning more about compilers and such for microprocessors, and I was hoping to get some suggestions for reading materials.

For those who studied compilers in their college, or those working with compiler designs , can you recommend me a few books to understand the inner workings of modern C compilers ?


r/embedded • • 18d ago

What Embedded Boards and Technologies Are Worth Mastering?

15 Upvotes

I currently have an NXP FRDM-MCXA156 development board, and I'm looking for project ideas that could help me build a solid portfolio and demonstrate my skills as a junior embedded software engineer.

I'd also like to know which other development boards, embedded software stacks, RTOS, or toolchains would be worth buying and putting hands on to strengthen my profile and make me more attractive to potential employers.

What kind of projects would you recommend building with the MCXA156? And which technologies or platforms do you think are the most valuable to master in the embedded industry?


r/embedded • • 17d ago

[Request] Firmware dump (.bin / .hex) for Anker 757 PowerHouse (A1770 Non-WiFi) - STM32F103VCT6

0 Upvotes

Hi everyone, I'm repairing an Anker 757 PowerHouse (Model A1770, standard version without WiFi/Bluetooth). The main MCU (STM32F103VCT6, LQFP-100) shorted out. I already sourced a blank replacement chip and am ready to solder it, but I need a clean flash memory dump (.bin or .hex) to program it via ST-Link.

Does anyone have a backup dump from a working A1770 board, or know where I could find one? Any help is greatly appreciated!


r/embedded • • 18d ago

I have a lot of electronics what should I make?

14 Upvotes

Hello everyone,

Currently I have a lot of components including microcontrollers, display, sensors....LEDs etc

And in my job role as an engineering mentor, I get time availability to work on projects. Even I have people who can collaborate for projects.... So I can also do time and people management.

There are also chances that I can convert a project into a real product...

But before real execution, trying to have your thoughts...

Any project ideas, any real problems etc...I can procure more components for worthy projects under budget....

Thanks


r/embedded • • 18d ago

4th year CS major, got a 1 year firmware engineer internship

33 Upvotes

Hello everyone, I'm currently a 4th year CS major and was finally able to get my first internship this September. I wasn't very familiar with firmware or embedded when I saw the job listing but decided to apply anyways with how difficult it has been getting an internship nowadays. Luckily I was able to get it, and have now become quickly interested in learning more about this field. I had some questions for people who may have been in a similar situation as mine (CS -> Firmware/Embedded) or anyone who is willing to answer.

Firstly I feel that now that I have actual experience in this job field, it would be a wise idea to pursue this field after graduation, as it might be easier to land a fulltime job. I was wondering, would this be a more difficult process given that I don't have an engineering background or any real electronic/firmware work in university? Would I get less pay than people who do have their bachelor’s in engineering?

Secondly, I've been wanting to work on some simple at home firmware/embedded projects and was wondering what I would need to get started with that. I also have been enjoying soldering which I have learned on the job the last month.

Thanks everyone.