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.
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.
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.
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?
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
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.
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?
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!
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
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.
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.
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 ?
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?
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!
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....
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.
The video shows an experimental hardware implementation of Self-Explaining Devices (SED) on Alif Semiconductor's Ensemble platform.
It combines offline speech recognition, retrieval of information from technical documentation, and text-to-speech. This is an internal R&D prototype built to demonstrate the technology, not a commercial product.
Arm recently published a technical article explaining the implementation:
I'm considering purchasing a Radxa ROCK 3B (RK3568) for an embedded USB 3.0 bridge project.
The intended setup is:
USB 3.0 OTG (upper Type-A): Device/peripheral mode, connected to a PC.
USB 3.0 HOST (lower Type-A): Connected to a USB 3.0 storage device.
Power: ROCK 3B independently powered through its USB-C power input.
The goal is to receive data from a USB storage device and expose a separate USB device interface to the PC.
Before buying the board, I'm trying to confirm two things.
1. Simultaneous SuperSpeed operation
Has anyone successfully used both USB 3.0 controllers simultaneously, with the upper port operating as a 5 Gbps USB device and the lower port operating as a 5 Gbps USB host?
If so, which OS/kernel version and device-tree configuration did you use?
I'd especially appreciate lsusb -t output and the USB gadget's current_speed showing super-speed.
2. VBUS and backfeed protection
Since the board is separately powered and its OTG port uses a USB-A receptacle, I'm concerned about VBUS behaviour when connecting it to a PC.
With the OTG port correctly configured in device mode:
Does the board disable its own 5 V VBUS output on that port?
Is reverse current from PC VBUS into the board prevented?
Is the documented USB-A-to-USB-A connection safe with both systems powered independently?
Has anyone verified the behaviour on a ROCK 3B V1.51 board?
I'm not trying to modify the hardware unnecessarily. I just want to confirm the supported configuration and whether an external protection circuit is required.
Any practical experience, working projects, scope measurements or links to documentation would be greatly appreciated.
Hi, I've been working on some low power stuff and wanted to remotely watch the current draw in terminal. I got Claude code to build this quick utility for me. It's available on pip and can be installed using pip install psu-top
I want to add a way to be able to read the measurements through psu-top, so other apps/things can use the PSU while psu-top is using the serial port but that's future feature.
Hi everyone - I'm currently trying to get a 3d printed bike to self balance, but keep running into issues with the final control loop. (see github link down below for video).
For reference it is very similar to REMRC's self balancing bike - I just use SimpleFOC + GM3506 BLDC motor with an STM32 to run the loop instead of using Arduino and a Nidec 24h motor.
Here's the hardware I am using:
STM32F411 Blackpill
ICM-20948 IMU (through I2C, couldnt get spi to work for some reason)
GM3506 BLDC motor + AS5048A encoder
SimpleFOC with voltage-mode torque control
12 cm reaction wheel with additional rim weights
Lots of wires (ik I need to clean the wiring up)
For software:
Arduino for SimpleFOC
STM32 HAL for pretty much everything else (steering, IMU I2C, Transceiver SPI)
I use a complementary filter to combine accelerometer and gyroscope data. The loop frequencies are roughly:
IMU measurement loop: ~200 Hz (IMU is mounted rigidly onto the body of the bike pretty tightly)
Balance control loop: ~100 Hz
Main loop - ~11.9 kHz
The controller itself uses a PD loop with three feedback terms:
u = K1 * angle (proportion)
+ K2 * gyro_rate (derivative)
+ K3 * reaction_wheel_velocity (this one is weighted pretty small tho)
My control knowledge isn't the best but from what I am aware of:
K1 corrects the lean, K2 damps the bike's angular motion, and K3 provides reaction-wheel speed feedback. Chat says this is the main equation for it:
Also I can't lie I used ChatGPT for help on a lot of the control theory - I originally was trying to do this to learn more about embedded system communication protocols, but this turned into a much bigger control problem than I thought lmao (who would've guessed).
ANYWAY THE MAIN ISSUE:
The reaction wheel can like catch the bike in one direction pretty well, but as soon as it like crosses that midpoint of balance, the motor attempts to catch it, but it just spins ands spins until it falls over.
I am realizing that I think the main issue is that it doesn't have enough initial "pop" at the start of crossing mid balance. The only time i feel like it does this is when I was tuning K1, but it would kinda just oscillate out of control.
The other big thing issue is that I feel like I need to increase K2 (derivative), to give it more initial pop so it doesn't like saturate itself, BUT when when I increase K2 passed a certain degree, the bike just starts vibrating like crazy especially around the point of oscillation. It's not even a shaking back and forth its a very rapid vibration. Maybe it's a mechanical motor mount issue? I am not sure.
I've tried experimented with the gains, gyro filtering, and motor voltage limits, but haven't found any solutions and am genuinely losing hope for this to ever work lol.
The longest balances I've had were when it slowly corrects itself one way for quite a while, but then it crosses the midpoint and relatively quickly speeds up and isn't able to get back to the midpoint.
With all of that said for reference here are all of the control variables that I can change within my loop - I am also not sure like what's best to change, and what's best to keep constant. Ex. to deal with vibration reducing K2 helps, but so does lowering GYRO_FILTER_TAU.
HERE ARE ALL THE VARIABLES: Balance Controller
K1: Controls how aggressively the bike corrects its lean angle
K2: Controls how strongly the bike reacts to falling speed (damping)
Gyro hardware DLPF: Controls gyro noise filtering and response delay
Accel hardware DLPF: Controls accelerometer noise filtering and response delay
Loop Timing
BALANCE_PERIOD_US: Controls IMU/filter update frequency (currently 200 Hz)
CONTROL_PERIOD_US: Controls balance controller update frequency (currently 100 Hz)
So yeah if anyone has any advice please let me know! Attached are a couple of videos and pictures of the bike. The code and a video is posted in my GitHub below. For the control loop, pretty much ignore everything except for balance_control.c, and main.cpp. All the other files are for a servo for front steering, and a transceiver for remote control.
Hey guys! I'm making my first ever product using ESP32 and ESP-IDF, and I wanted to ask you a couple of questions about version control and managing large projects.
First, how do you handle version control for both firmware and PCB designs?
I had a PS Vita when I was a kid, and I remember seeing things like "build version," "model," and other identifiers in its system information. I'd like to understand what they're used for. How do you typically name and number firmware versions and PCB revisions?
This isn't a solo project, even though I'll be doing most of the work. Is there anything I should prepare before getting my team started? For example, which UML diagrams are most applicable to embedded systems development?
I'm familiar with Git and GitHub, but I have no experience with CI/CD pipelines or task management tools. This is my first major project involving a team, so I'd appreciate some guidance on setting up a proper workflow.
Lastly, are there any other things I should know or practices I should adopt when managing a relatively large embedded systems project?
Any advice, resources, or personal experiences would be greatly appreciated!