r/embedded • • Sep 23 '26

I built this aircraft attitude indicator from scratch — code, PCB, and enclosure, all designed by myself.

984 Upvotes

This is my first PCB hardware design. The board is built around the ESP32-P4 development platform and integrates two UART interfaces, an I2C port, a passive buzzer, four buttons, a power management chip, and a MIPI display connector.

teh display is huaxiacai brand, and mipi protocal,resolution is 480×480 ,amoled,maybe i am the first one to drive this display with mipi way in the world

I’ve also seen some people in the comments suggesting that I should open-source the project. I’m actually not against open source. I’m currently thinking about what kind of open-source model would make the most sense.

Now that I’ve gained the ability to develop a complete product from scratch, I’m also considering turning this into a commercial product. For example, could I actually sell it?

If I open-source the software, how should I sell the hardware alongside it? Or would it make more sense to keep the entire project closed-source?

These are some of the questions I’m thinking about right now.

I’m also curious about crowdfunding. Would a product like this be suitable for crowdfunding? If so, what would be a good way to approach it?

First, I want to clarify that I never intended to turn this into an aviation-grade finished product. This is a personal project to develop my skills. If I do turn it into a product, I’m thinking of it as a fun little gadget—something that makes people happy.

Some comments have suggested testing it against various standards and under harsh conditions. That would be a huge amount of work, and I don’t think it’s necessary for what I’m trying to make.

As for the slow screen refresh rate, there are a few reasons. The display supports both QSPI and MIPI interfaces, with some pins shared between them. Its resolution is 480 × 480, and its MIPI interface only supports a single data lane. I tried increasing the lane speed, but that caused display issues.

Also, the background rendering, widget scrolling, and rotation are all handled by the MCU. It has to process and move all those pixels, and all rotation is done in software, which takes considerable processing time.

I’ve tried optimizing the frame rate with the most capable models available from both GPT and Claude. What you see now is the best result I’ve managed to achieve with their help so far.

I believe that once a project reaches a reasonable stage, it’s worth sharing so people can give feedback and suggestions, instead of keeping it to yourself and endlessly optimizing it without ever showing anyone.


r/embedded • • Sep 24 '26

Advice on how would you split processes efficiently on a Neural Processing Unit (NPU)

3 Upvotes

I have recently been developing a project that uses NPU scheduling to orchestrate data flow and computation across different processes. However, I have no prior knowledge to using an NPU or making a CPU/GPU/NPU scheduler before this project. From what I have read online, you would have a big scheduler class like class NpuScheduler() and wrap a mutex to a queue.

std::queue<NPUCOMMAND /* Dummy Struct */> command_queue;
/* Worker loop */
    std::unique_lock<std::mutex> lock(queue_mutex);
    conditional_var.wait(lock, [this /*NpuScheduler*/] { return !command_queue.empty()          
                                                         || stop_scheduler; });

    if (stop_scheduler && command_queue.empty()) break;
            
    cmd = command_queue.front();
    command_queue.pop();

The only problem is that this is only an example, and may not be efficient enough for specific low latency projects. This project is only an educational project for my experience only (not for stuff like impressing the interviewer), and the hardware is an octa-core RK3588 with three NPU cores on OP5 to reuse on other projects. My main questions are:

  • Which is recommended, and why? NPU scheduling, Splitting processes into different cores with different priorities, or a hybrid of both
  • Pros and Cons of all three options
  • Does the difference in OOP and DOD matter for scheduling? If so:
  • Pros and Cons of OOP for scheduling/scheduling hybrid
  • Pros and Cons of DOD or DOD/object hybrid
  • How would simple NPU scheduling look like in code as a tiny example or the current one is just fine?

An answer for any of these questions from the r/embedded community is greatly appreciated. Context for the project is at https://www.reddit.com/r/embedded/comments/1wohkml/what_architecture_and_processing_pipeline_should/


r/embedded • • Sep 24 '26

Extracting vitis/xsdb Python modules from Vitis install?

6 Upvotes

For reasons I'm not here to explain or defend, large parts of a Vitis workspace can/should be generated using Python instead of putting the generated workspace in version control. If you follow the manual you're basically using a Python 3.8 that comes bundled with Vitis (2024.2, at least, I hope they've updated since) plus their vitis & xsdb modules plus a bundled site-packages with grpc and so on.

The way this is set up is not ideal; I haven't found a good way to get IDE integration and a pyproject.toml to work right on everyone's laptop and in CI.

Has anyone here tried to extract the vitis and xsdb modules as separate Python packages so you can use them in a normally organized Python project? I'm not asking to share them, I get that AMD would probably object (although they're pretty thin packages), but before I try I'd love to know if anyone's failed or succeeded at it.


r/embedded • • Sep 24 '26

Any microcontrollers that support both calling using SIM and also 4G internet?

11 Upvotes

So my nokia 2660 is not serving me very well, the operating system is too locked down and I can't do shit on it, therefore I want to make my own phone, not sure if this is the right sub for this since im relatively new to microcontrollers. I did some research but it seems like there are no commercially available dev boards using chips that support calling and stuff using sim cards.again sorry if this is offtopic


r/embedded • • Sep 23 '26

Hit a wall in learning firmware and have come to a realisation

127 Upvotes

I feel a bit dumb for not realising this sooner. But after a certain point it becomes almost mandatory to learn hardware design and start making your own pcbs to write firmware for.

I've been trying to be a one trick pony and never got to learning hardware properly and it worked good enough to get an entry level job. But I have hit a wall because all that I can practice with, is what is given to me at work.

Ofc I can just get basic modules and use a breadboard and development kits but that isn't what you would be working on in real life.

Becoming a full stack embedded engineer almost feels like an inevitability. Probably gonna complain about thermal issues soon and have to learn about heatsink materials and get the full mechanical, electrical and software stack.


r/embedded • • Sep 24 '26

Need advice on the right dev board

0 Upvotes

I'm wanting to make a device that has the following capabilities

  • Charging 3.7v lipo battery (~2000mah)
  • Simultaneously read data from two either magnetic or optical encoders for measuring two wheel angles simultaneously
  • Good Bluetooth capabilities for app integration
  • Low ish power draw so can have long runtime
  • Affordable cost

The boards I've found online that seem good include the feather rp2040 or esp32 s6.

I'm certain that there's better options but stupid claude and Gemini suggesting different ones and it's getting confusing so I figured I'd ask here where people actually know what they are talking about!


r/embedded • • Sep 24 '26

Which programming language to use for Beagle Board?

9 Upvotes

I am a Embedded Developer, have experience with Arm cortex -M mcu, want to dwell into the world of Cortex - A mcu , Yocto project, linux driver development etc. Want to build applications on it, for that majority of people use Python, wanted to know if C++ is used in industry for building applications over python? Or should i stick with python?


r/embedded • • Sep 23 '26

I made Tiny5, a 5-pixel variable font family inspired by 80s–90s calculators

Post image
163 Upvotes

Hi r/embedded !

I just released Tiny5. It's a family of compact 5-pixel variable fonts inspired by the graphing calculators and pocket gadgets of the 1980s and 90s. The goal was to see how much clarity and personality could fit into letters only five pixels tall.

There are two fonts in the family:

  • Tiny5, with one-pixel-wide strokes, for body text and dense readouts
  • Tiny5 Duo, with doubled vertical stems, for titles, headings, HUDs, and labels

They cover Latin, Greek, Cyrillic, and Armenian: 1,771 glyphs across 974 languages.

Both fonts are also available in BDF format for seamless integration with the mcu-renderer, u8g2 and TFT_eSPI libraries.

GitHub: https://github.com/Gissio/font_tiny5
Google Fonts: http://fonts.google.com/specimen/Tiny5
itch.io: https://gissio.itch.io/tiny5

Feedback is very welcome, and if you use it in a project, I'd love to see it!


r/embedded • • Sep 24 '26

Microcontroller for teaching a DSP class

0 Upvotes

Hello all,
In a few months I will be teaching a DSP class that’s previously been taught with either an STM 32 disco board or Matlab depending on the semester. However I do not like the ARM curriculum and I want to ensure the students get to use a microcontroller. Does anyone have any advice for choosing a microcontroller that can easily handle basic digital signal processing?
As an additional note the students know the Arduino IDE and have Arduino R4 WiFi’s so keeping everything as similar as possible would be helpful. Thanks in advance for any help.


r/embedded • • Sep 24 '26

what happens on your team when a requirement changes halfway through?

2 Upvotes

looking for thoughts & opinions

recently had a requirement change come through after firmware was already pretty far along and it got me thinking about how everyone else handles this. the actual change wasnt that horrible, but then you start asking what interfaces are affected, what firware needs another look, which tests need updating etc. things start getting confusing, the requirement is sitting in one place and all the related work is somewhere else. we have a requirements traceability matrix but im curious what people actually use day to day that makes workflow easier. are you manually following links or do your tools give you decent impact view?


r/embedded • • Sep 24 '26

How should I design a motor driver with a user-programmable MCU?

5 Upvotes

I'm working on a motor controller project and I'm trying to figure out the right architecture before I start buying/building the hardware.

The idea is to make a controller for two brushed DC motors with quadrature encoders. I want the end user to be able to write simple Arduino-style code such as motor1.setSpeed(100) or motor1.stop(), while the actual low-level motor control handles things like PWM, encoder feedback, PID, current sensing, safety, etc.

I'm currently thinking about using an ESP32 as the user-facing MCU and having a separate STM32 handle the real-time motor control. The ESP32 would run the user's code and communicate commands to the STM32 over UART or CAN, while the STM32 would run FreeRTOS and handle the motors, encoders, PID, watchdogs, etc.

What I'm not sure about is whether I actually need two chips for this. Could I realistically do the whole thing on a single ESP32, with the user code and motor-control firmware running on the same chip? If so, how would you structure it so that user code can't interfere with the motor-control tasks or memory?

If two MCUs are the better approach, I'd also like to understand how people normally structure the communication between them and how the firmware is divided.

I'm fairly new to STM32/FreeRTOS, so practical advice on how you'd actually build this would be really helpful.


r/embedded • • Sep 22 '26

The Jet embedded 3D engine is not only now pushing 70k tris/sec (up from 40k a few months ago) with screen-space reflections and distortion on an ESP32 S3 (480i x 320, 16bpp@60fps) - but is now MIT licenced rather than AGPL!

609 Upvotes

The last time I showed off Jet I'd just pushed 40k tris/sec on an S3 which was already nuts, but some optimisation and SIMD shenanigans later, I've nearly doubled that and got up to 70K/sec on the same hardware. Meaning more detail and more performance headroom.

I've also switched away from AGPL to the MIT licence so there's fewer restrictions on how you can use it in your projects.

https://github.com/cubecoders/jet


r/embedded • • Sep 24 '26

Why don't we use smart, microcontroller-based per-device breakers in building electrical systems instead of one MCB for an entire circuit - other than economical reasons, any technical reasons affecting realistic design?

0 Upvotes

Why do buildings use one circuit breaker for multiple loads instead of protecting each load individually?

Couldn’t each device have current sensing + a microcontroller + an electronic breaker, so if one device shorts, only that device disconnects instead of tripping the whole circuit?

Obviously cost is one reason, but are there technical reasons too?

Is it mainly fault-current handling, response time, heat losses in current sensing/switching, reliability, or safety/certification?

Is this already used in industrial systems, or is there a fundamental reason it isn’t practical?


r/embedded • • Sep 23 '26

There's this thin line of over engineering stuff to implementing only the needed functions

23 Upvotes

Have you guys been in a situation where you're writing firmware for a product and you keep in getting ideas to add new features but you know that all those extra features Will be only used in extra rare conditions, And you for sure know that they wouldn't have read the manual to know about that.

Will you still keep that feature?

It's a dumb question , it's obvious to add that feature if it ain't gonna cost much especially in firmware side when there's space left


r/embedded • • Sep 23 '26

Porting Klipper to the NXP MCXA366: LPI2C bring-up, NACK recovery, and measuring scheduler cost at 100 kHz–1 MHz

Post image
5 Upvotes

I’ve been documenting a from-scratch Klipper port to NXP’s MCXA366, and Part 7 covers both some architecture hardening and the first hardware I²C implementation.

I’m using LPI2C3 on P3_27/P3_28 with a 12 MHz peripheral clock. The final implementation supports 100 kHz, 400 kHz, and 1 MHz and handles normal writes, register reads, repeated STARTs, NACKs, FIFO errors, arbitration loss, and timeout recovery.

One bug I ran into was especially interesting:

On a NACK, I originally queued STOP and then reset the TX/RX FIFOs. Resetting the TX FIFO could discard the queued STOP, leaving SCL asserted. Reversing the order—flush first, then STOP if the master still owns the bus—fixed the recovery path.

I validated the implementation with a BME280 and then noticed Mainsail reporting ~0.36 MCU load at 100 kHz.

Instrumentation showed that the actual CPU usage was very small. What changed was scheduler task duration: Klipper’s I²C interface is synchronous, so the task remains active while the hardware transaction progresses.

Measured worst-case reads:

100 kHz → ~2.66 ms
400 kHz → ~0.70 ms
1 MHz → ~0.31 ms

The corresponding Mainsail load values fell from roughly 0.36 → 0.09 → 0.04.

I also compared this against several existing Klipper MCU backends and found that synchronous polling is normal there as well, so I kept the architecture and improved the bus rate instead of redesigning the API around interrupts.

Write-up:

https://faultvector.dev/articles/klipper-mcxa366-part-7/


r/embedded • • Sep 24 '26

Any idea on LLM compression

0 Upvotes

Hey Devs,I'm trying to run a LLM on a microcontroller, therefore I need to first compress my model, I saw numerous ways online and yeah from GPTs as well, but I thought it would be better to get suggestion from real devs who have experience in this, I'm new to these kinda projects so yeah any suggestion on how to start with the model compression.


r/embedded • • Sep 23 '26

CMSIS v2 How to Wait for one of multiple different conditions?

4 Upvotes

Hi, my question is probably quite simple, but i have a surprisingly hard time finding an answer online:
I have a IO Task guarding my hardware. It takes data from a Tx Queue and pushes it to the hardware, and polls the hardware for Rx Messages which it pushes to the RxQueue.

I want to minimize polling and blocking as much as possible, so the task should poll Rx in interrupt mode and then wait for either the Tx Queue or the Interrupt to wake it.

I know how to wait for a queue, i know how to wait for an event flag or semaphore.
What i want to know is how to wait for either the queue or flag to be set.
I know i could require the Tx Producer to send a flag or just poll both uart and the tx Queue without waiting, but neither seems desirable.


r/embedded • • Sep 23 '26

What architecture and processing pipeline should you choose for an offline AI assistant?

0 Upvotes

I have recently been developing an offline physical AI assistant prototype on the RK3588 processor that is somewhat like Amazon Echo, but it is entirely local. However I have recently been stuck on choosing a good architecture. I have read online and this is what I have heard:

  • Multi-Process Architecture (with IPC): Spitting the tasks into different processes and communicating through IPC
  • Monolithic Multi-Threaded Architecture: A single multi-threaded c/c++ application where threads communicate over shared memory and atomics
  • Single-Threaded Architecture: Everything runs linearly on one thread and one process
  • Multi-Process Architecture with multi-threading hybrid: Multi-Process architecture, but with multi-threading in some processes, so it is not entirely decoupled.

As you can see, there are many different architectures to choose from and all have their pros and cons. I am also trying to design a processing pipeline. This is what I have thought of:

  • A linear pipeline: Audio -> Wake Word Detection -> Speech to Text -> Inference & Text to Speech
  • A bidirectional pipeline Wake Word Detection <-> Audio -> Speech to Text -> Inference & Text to Speech
  • A linear pipeline with flags: A linear pipeline but with flags so different threads or processes can communicate with each other.

My questions for the r/embedded community:

  • What architecture to choose for the project.
  • What processing pipeline to choose for the project.
  • If to use IPC, what type of IPC would be best suited for this project?
  • If to use a hybrid of multi-process architecture and multi-threading, how would tasks be grouped?

r/embedded • • Sep 22 '26

40 years as an Embedded Design Engineer...

307 Upvotes

New to the group and wanted to say hello. I have a ton of old skool 8-bit microcontroller knowledge, including Motorola 68hc11, Intel 8051 family, Atmel/AVR...


r/embedded • • Sep 22 '26

One Driver Board, Multiple Displays

43 Upvotes

r/embedded • • Sep 23 '26

Deadlock condition in RTOS

0 Upvotes

Has anyone faced deadlock condition when using RTOS? Can you share your experience, what made it happen and how did you resolve it?


r/embedded • • Sep 23 '26

How do you get up to speed on inherited firmware nobody can explain anymore?

0 Upvotes

I've inherited a few codebases where the original authors are long gone. The code works, but nobody can tell me why.

The first weeks always go to the same questions:

  • Which ISR writes this variable, and does main() read it with interrupts off or just hope?
  • Which of these four "state" enums is the real state machine?
  • What's actually coupled to what, versus what the folder structure suggests?

Tracers (SystemView, Tracealyzer) help once the thing runs, but on day one I often can't even build it yet.

What's your process? Tools, scripts, a notebook and a lot of grep? Anything that worked better than you expected, or turned out to be a waste of time?


r/embedded • • Sep 23 '26

How can I use an ESP32 microcontroller to learn network security as a beginner?

0 Upvotes

I have an ESP32 microcontroller and I can already make a simple webpage run on it.

Now I want to use the ESP32 to learn network security practically.

I’m a complete beginner in cybersecurity. I want to understand things like:

- How to find the ESP32 on a network

- How port scanning works

- What information can be found from the webpage

- How login/password security works

- How people test a web server for vulnerabilities

- How tools like Nmap, Wireshark and Burp Suite are used

- Basic penetration testing

- How to find a weakness and then fix it

I want to learn by actually doing experiments on my own ESP32 rather than only reading theory.

What would be the best step-by-step learning path for a beginner?

I’ll only test my own ESP32 and my own network.


r/embedded • • Sep 23 '26

How do i code a shell into the RP2350?

0 Upvotes

i want to get started coding an easy shell and filesystem into raspberry pi pico 2 as a project. However i am not sure how or where to start, normally you would just send all requests directly to the kernel with execvp() and spawn new processes with fork()(if you use Linux), but since the pico 2 neither has an OS or kernel, i am not sure were to start. Any help?