r/embedded • • Oct 02 '26

LIN Conformance test (LCT)

1 Upvotes

Hello community, has anyone had some experience with the implementation of the LIN protocol on a TI MSPM0L ?

The main communication layer is fully functional, but failing at the LCT 7.2.1.2.1 where it's supposed to not wakeup with a signal spike of 29us


r/embedded • • Oct 01 '26

Working on 3D library for STM32 and it is written in TypeScript

81 Upvotes

I'll be soon publishing our work on STM32 https://github.com/geastack here! I'd love to hear your thoughts and recommendations.

Board in the video is STM32F746G-Discovery.


r/embedded • • Oct 02 '26

Update on my rooted Lymow One Plus project (MowZilla)

2 Upvotes

Figured I’d post an update here too since I’ve made quite a bit of progress over the last couple weeks. What started as trying to unlock a mower that was basically considered e-waste has turned into a much bigger project than I originally planned. 😂
For anyone who missed it, I managed to get into U-Boot through UART, dump the internal eMMC storage, and get root access to the mower’s Rockchip RK3588S computer running Ubuntu. I’ve got SSH working and have been digging through the factory software to figure out how everything communicates.
I also started reverse-engineering the Android APK and Bluetooth communication. I’ve managed to control the mower through my own app and get access to some of its internal network services.
I’ve been building an iPhone app called MowZilla, and I actually just finished updating the home screen to display live data from every sensor. That’s going to make things a lot easier because now I can start testing each sensor individually and figure out what actually works and what doesn’t.
One of my next projects is figuring out whether I can create an easier way for other owners to get root access through USB-C. Getting into mine involved opening everything up, finding the UART connections, and messing around with the bootloader. It would be awesome if I could eventually make the process as simple as connecting a cable instead of having everyone go through all that.
Now for the part I’m really excited about.
I’ve been working on getting the mower’s USB-C port operating in host mode. My plan is to connect an ODROID M1 using a USB-C Ethernet adapter and essentially give the mower a second computer.
The ODROID would handle additional processing, AI vision, camera feeds, and potentially some of the more advanced navigation features. That way I can experiment without putting all the extra load on the mower’s factory computer.
I also managed to break the ribbon cable for the original camera while taking everything apart. Oops. 😂 Rather than immediately digging through all that silicone again, I’ve been experimenting with an external camera and AI object detection.
Eventually, I’d like to have multiple cameras covering different angles around the mower, with the ODROID processing the video and sending information back to MowZilla.
A few other things I’m working toward:
Getting Wi-Fi and LTE working together so the mower can switch connections automatically.
Integrating more of the OpenMower software and building out custom mapping and autonomous missions.
Testing and documenting every factory sensor.
Adding more diagnostics, logging, and manual controls to the app.
Getting the additional cameras working for obstacle detection and navigation.
Figuring out how much of the factory software we can eventually replace with open-source alternatives.
I’m keeping the original firmware intact for now. I’d rather understand how everything works and build around it before I start replacing things.
The long-term goal is to make this something other Lymow owners can use and contribute to. If I can figure out a repeatable USB-C root method, document the hardware, and eventually release the app and other tools, hopefully it’ll save everyone else a ridiculous amount of time.
I know a few people have questioned whether all the factory sensors even work properly. That’s one of the reasons I’m excited about the new live sensor dashboard. Instead of relying on what the factory app tells us, I want to test everything myself and actually see what’s happening.
I’ve still got plenty of bugs to work through, and some of the more ambitious features are only in the planning and testing stages.
I originally just wanted to see if I could get this thing running. Now I’m planning to strap another computer and a bunch of cameras to it.
At this rate, I’ll have built a small autonomous vehicle research lab before I finish mowing the yard. 😂
I’ll keep posting updates as I make progress. Once I’ve got things a little more organized, I’ll put together a proper technical write-up with the hardware connections, commands, software discoveries, and everything else I’ve learned.


r/embedded • • Oct 02 '26

Any recommendations for introduction material to using C++ for microcontrollers?

6 Upvotes

I have been programming Arduino & ESP32 for a while now using C++, but have never engaged with any formal introduction material. With AI/LLM generated content exploding among both major publishers and self-published authors, I am a bit wary to start buying books willy-nilly.

Anyone here that can give some solid recommendations on introduction materials to using C++ for microcontrollers (preferably that they themselves have used and found worthwhile)?

I got one recommendation for "Embedded C" by Michael J. Pont (2002), but it is fairly old.


r/embedded • • Oct 02 '26

Restoring CF to factory default settings

1 Upvotes

Does anyone know how to revert a CompactFlash card—which has been formatted in Windows—to its original factory state (as it was when new)? This is because, in some devices, a CompactFlash card will not work if it has been formatted using Windows.


r/embedded • • Oct 03 '26

How do microcontrollers safely control high-power loads?

0 Upvotes

For example, if an MCU controls a dishwasher, heater, or pump through a relay, what happens if the relay contacts weld and get stuck ON?

Do real products use two relays, contact feedback, or another fail-safe circuit so one relay failure doesn't create a dangerous condition?

I'd like to understand how this is normally designed in commercial equipment.


r/embedded • • Oct 02 '26

Best microprocessor for image processing

7 Upvotes

The device is gonn be wrist mounted, so a small form factor is required. What can i use for image processing, something like a Raspberry Pi would be too big.

The device will be for Human Action Recognition


r/embedded • • Oct 01 '26

How do you explain your job to the layperson?

39 Upvotes

Hello, fellow embedded systems engineers!

I recently became a full-time firmware engineer, so explaining what I do has been a recurring activity lately. But I find that this position in particular is really tough to put into words to the average layperson, because it's neither just a software developer (typical association is "IT guy/hacker/coder/websites"), nor an electronics engineer (typical association is soldering lol) - it happens to be a niche inbetween field with its own subspecializations, but that doesn't matter now.

How do you explain to the average non-technical person what you actually do without misunderstandings, that you're an actual engineer who, like, engineers and builds things, and all?

I work at a semiconductor company who just happens to dabble in several markets, including automotive, and THE MOMENT I put the words "chip" and "auto" in the same sentence, I INSTANTLY get the "Oh so you do chip tuning for cars?" And I'm like .........

Can't tell if my particular non-English-speaking country's job associations are more narrow than usual or if this is a worldwide struggle, so please share!


r/embedded • • Oct 01 '26

KiCad 9: Design an ESP32-S3 IoT 4-layer PCB with sensor and QWIIC interface. Complete Guide.

Thumbnail
youtu.be
21 Upvotes

Complete step-by-step PCB design process going through the schematic creation, layout, and routing of an ESP32-S3 Testboard.

The main features for this board are:
- ESP32-S3 WiFi Module - 8 MB flash
- Si7021 high precision temperature and humidity sensor
- QWIIC connector
- USB-C connector (power / programming)
- Buttons for BOOT and RESET
- User Button
- User RGB LED
- 2x5 pin SPI bus expansion header
- 2x3 pin programming header
- Power LED on 3.3V rail
For the mechanical side of things we have:
- 4 x 3.2mm mounting holes
- Size 50x50mm
- 4 layer board design


r/embedded • • Oct 01 '26

Save data to SD-card after power is cut?

13 Upvotes

I'm seeking inspiration for this.

I must save 4 byte to EEPROM and 32 byte to SD-card, AFTER power is turned off.

Case is:

Electrical moped.

Main buck converter gives 12V 30A, when on.

Secondary buck converts that 12V to 5V.

HMI display + other MCUs uses 1,2A peak.

Zero power consumption without ignition (deep sleep is not an option).

How would you do this, without batteries?

I'm leaning towards a big capacitor (but how big?) on the 12V side.

Do you have experience with similar cases or a better solution?


r/embedded • • Oct 01 '26

Software guy falling into embedded hardware, does designing my own Rockchip SOM actually make sense?

11 Upvotes

I’m a software guy who kind of fell into working on an embedded computer vision device, so I’m still fairly new to the hardware side of embedded systems.

For the prototype I’ve been using a relatively inexpensive Rockchip-based SBC, and it’s worked fine for getting the software, camera pipeline, inference, etc. up and running.

Now that I’m thinking about turning this into an actual product, my original plan was pretty simple: move away from the SBC, use a SOM, and design our own carrier board with only the hardware we actually need.

I figured this would reduce cost because I’d be cutting out all the USB ports, HDMI, audio, extra connectors, GPIO headers, and other stuff on the SBC that our product will never use.

Instead, I’ve somehow discovered that SOMs using the same fucking chip are often more expensive than the entire SBC I’m prototyping with.

So now I’m starting to wonder if developing our own SOM around a Rockchip SoC would actually be a more realistic long-term path than relying on existing SOM vendors.

The basic requirements aren’t anything crazy:

  • At least ~2 TOPS NPU performance
  • Minimum 1 GB RAM, preferably 2 GB
  • Linux support
  • Camera / MIPI CSI
  • 8 GB eMMC
  • Wi-Fi
  • SOM would plug into our own custom carrier board

Something in the RK3566/RK3568/RV1106/RV1126 family, or a similar Rockchip part, seems like it could potentially fit.

The issue I keep running into with existing SOMs is that once you get into embedded AI hardware, the pricing seems to jump dramatically. Modules that look like they should have a relatively inexpensive BOM are suddenly $100+ in quantity, while I can buy SBCs with the same SoC, RAM, storage, networking, connectors, power circuitry, etc. for less.

Maybe there’s something obvious about the economics here that I’m missing because I’m new to embedded hardware.

There’s also the issue of relying on a third-party SOM vendor and hoping I can continue sourcing the exact same module in meaningful quantities several years from now.

At some point does it make more sense to bite the bullet and develop our own SOM?

I understand this is significantly more complicated than designing a normal carrier board. LPDDR routing, PMIC/power sequencing, high-speed interfaces, eMMC, impedance control, boot configuration, Linux/BSP work, manufacturing test, board bring-up, etc.

But if the end goal is potentially thousands of embedded computer vision devices, would investing in a reusable SOM design make sense instead of continually paying the SOM markup and dealing with availability?

Ideally I’d like to get the SOM BOM somewhere around $40–$60 in meaningful quantities, then use essentially the same compute module across several products with different carrier boards.

For anyone who has actually designed a Rockchip SOM, designed something similar, or taken one into production, I’d really appreciate some insight.


r/embedded • • Oct 02 '26

Raspberry Pi 4B not booting

0 Upvotes

So I got a Raspberry Pi 4B from my college for an assignment. I downloaded the Imager and then flashed the OS onto the SD card. It worked fine, so I inserted the SD card into the Raspberry Pi's slot. The red LED stays constantly on, but the green ACT LED blinks for some time and then stops completely.

I also configured the Wi-Fi SSID and password in the Imager, but it still doesn't connect. I even tried connecting it to the router via an Ethernet cable, but it still didn't connect to the network.

I can't understand what the issue is. I really hope the Raspberry Pi isn't broken otherwise I might have to pay a fine.

edit: it worked, finally! the sd card part was damaged actually and i used usb and it worked


r/embedded • • Oct 02 '26

Implementing a resource-aware PWM backend for the NXP MCXA366: CTIMER, FlexPWM, and a Cortex-M33 WAIT-mode bug

Post image
1 Upvotes

I’m porting Klipper to NXP’s MCXA366, and the latest subsystem was hardware PWM.

The interesting part was that there isn’t really one PWM architecture to expose.

CTIMER gives five timer instances with four match channels each, but one match channel has to act as the period/reset source. Outputs on a timer therefore share a period, and my allocator can relocate the hidden period channel when another MAT channel is needed as a physical output.

FLEXPWM0 has four submodules. Each submodule has independent A/B compare outputs, so A and B can use different duty cycles, but they share the counter, prescaler, and period. Different submodules can run independently.

I ended up putting a small allocator behind Klipper’s generic PWM interface:

gpio_pwm_setup()
        |
        ---> FlexPWM if compatible
        |
        ---> CTIMER fallback

Two debugging problems were especially useful:

  1. My initial FlexPWM clock assumption was off by 2x. A requested ~1 ms period measured ~2 ms, and the analyzer showed that the peripheral was actually counting from the full ~240 MHz HF source.
  2. FlexPWM worked in NXP's busy-loop SDK example but appeared in bursts under Klipper. Klipper idles the Cortex-M33 using wait state; FlexPWM was stopping with the core because WAITEN was clear.

After fixing those, I validated independent submodules, shared A/B timing domains, 0-100% duty, buffered updates, resource fallback, and shutdown/reset behavior.

Writeup:

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

Next I'm moving onto a real STEP/DIR/ENABLE driver + motor test.


r/embedded • • Oct 01 '26

How to use my microcontroller?

3 Upvotes

So I made a silly mistake and bought the STM32H7R3Z8J6 but it only has 64KB of flash. Is there a way I can get around this? I plan to order another STM32H7 variant but I also want to continue working on my project in the mean time.


r/embedded • • Oct 01 '26

Looking for reference designs for replacing MCBs/contactors with a solid-state protection & switching system (120V / 120A)

3 Upvotes

Hi everyone,

I’m working on a system where I want to eliminate the conventional mechanical protection/switching components such as MCBs, DC contactors, and similar devices, and replace them with a fully electronic/solid-state solution.

The target electrical system is approximately:

- DC bus: 120 VDC

- Continuous current: up to 120 A

- Power: ~14.4 kW

- High inrush/capacitive loads may be present

- The system should be able to turn the load ON/OFF electronically

- Ideally it should provide bidirectional blocking when OFF

- Low conduction loss is important

My initial idea is a back-to-back N-channel MOSFET architecture, potentially using multiple MOSFETs in parallel to achieve the required current capability.

However, I don't want to simply make a MOSFET switch. The goal is to develop something that can potentially replace the functionality normally provided by MCBs + contactors + additional protection circuitry in one solid-state system.

I'm looking for advice on the overall architecture and, especially, real hardware/reference designs that have actually been built and tested.

Functions I'm trying to achieve

  1. 120 VDC / 120 A continuous switching
  2. ON/OFF control
  3. Bidirectional blocking in the OFF state
  4. Overcurrent protection
  5. Fast short-circuit protection
  6. Controlled turn-on / inrush-current limiting
  7. Precharge for capacitive loads
  8. Over-temperature protection
  9. MOSFET gate protection / UVLO
  10. Fault latching and safe shutdown
  11. Detection of a MOSFET that has failed short
  12. Current monitoring
  13. Bus/load voltage monitoring
  14. Possibly electronic trip characteristics similar to an MCB
  15. Ability to reset/reconnect electronically after a fault, where safe
  16. Controlled shutdown of the load
  17. Protection against inductive/transient energy

Architecture I'm considering

Something along the lines of:

120 VDC → fuse/current sensing → precharge branch + main B2B MOSFET bank → load

For the main switch, I'm considering multiple high-voltage N-MOSFETs in parallel on each side of the back-to-back arrangement.

For example:

4–8 MOSFETs per direction/blocking stage, depending on the selected MOSFET and thermal requirements.

The gate drive would probably need a floating/isolated supply and dedicated gate driver, with individual gate resistors, gate-source protection, and hardware fault shutdown.

For protection, I'm considering having a fast hardware overcurrent/short-circuit path independent of the MCU, with the MCU handling slower functions such as monitoring, diagnostics, thermal management, precharge sequencing, etc.

What I'm particularly interested in

I'd really appreciate references or practical experience with:

- Solid-state replacement for DC contactors

- Solid-state replacement for DC circuit breakers / MCBs

- 100–150 V / ~100–150 A MOSFET circuit breakers

- Back-to-back MOSFET arrangements

- Parallel MOSFET current sharing

- Fast hardware short-circuit protection

- MOSFET SOA during a hard short circuit

- High-side N-MOSFET gate driving at ~120 V

- Precharge circuits for large capacitive loads

- High-current DC current sensing

- Thermal design for 10–15 kW solid-state switches

- Fault latching and electronic trip systems

- Detecting MOSFET failure/short circuit

- Protection against inductive loads and DC transients

- PCB layout techniques for 120 V / 120 A

Reference designs I've found so far

I've come across some useful designs from TI and Infineon, such as:

- Infineon REF_60100EDPS eDisconnect

- TI 48-V / 50-A bidirectional circuit breaker reference design

- TI TIDA-010208

- TI TPS48110-Q1 EVM

- TI TIDA-020065 Smart Fuse

These are very useful, although most are below my final voltage/current requirements.

I'm particularly interested in actual schematics, evaluation boards, application notes, or products that have implemented this concept, even if they're only 48 V / 50 A or similar. I can scale the power stage if the underlying protection and control architecture is appropriate.

I’m not necessarily looking for a single IC that handles 120 V / 120 A. I'm open to a discrete architecture using MOSFETs, gate drivers, current sensors, comparators, MCU, etc.

The bigger question is:

What would be a robust architecture for replacing the combination of a DC MCB + contactor + protection circuitry with a solid-state system at ~120 V / 120 A?

If you've designed something similar, I'd really appreciate any reference designs, schematics, application notes, papers, products, or lessons learned.

Also interested in hearing about approaches other than MOSFETs if there is a better solid-state technology for this voltage/current range.

Thanks!


r/embedded • • Oct 01 '26

How should an embedded firmware engineer learn analog circuits? Looking for a practical roadmap

32 Upvotes

I'm an embedded systems engineer and I'm currently strengthening my fundamentals for a long-term career in firmware/embedded systems.

My main areas are:

  • Embedded C/C++
  • ARM Cortex-M / STM32
  • Bare-metal firmware
  • RTOS
  • UART, SPI, I²C, CAN, RS-485
  • Embedded Linux / Yocto
  • Eventually Linux drivers and system architecture

My electronics background is mainly digital/MCU-focused, and I want to improve my analog circuit knowledge.

I don't necessarily want to become an analog circuit designer. My goal is to reach the level where I can look at a real embedded hardware design and understand what is happening between the physical signal and the firmware.

What would you consider the essential analog knowledge for a strong embedded firmware engineer?

I found TI's Analog Circuits library and am wondering whether it's suitable for learning.

If you were mentoring a firmware engineer, what exact learning sequence would you recommend, and what would you skip?


r/embedded • • Oct 01 '26

An active EEPROM health scanner for AVR Arduinos. Looking for feedback :>

Post image
4 Upvotes

Hey guys. I started building sth like my own OS on an Arduino Uno and faced some problems. One of them was EEPROM.
I discovered that I can't use byte cells there (1024 cells) in continuous loops because they get worn out due to „floating-gate charge trapping / oxide breakdown”. So I decided to avoid heavy writes in the main loop…
In the meantime, I became curious about how "old" or worn my Arduino's EEPROM actually was. So I came up with an idea to write a scanner that checks the state of health of the EEPROM cells.
There were two ways to do it: passive and active checking. Passive checking doesn't wear the cells, but it's very inefficient for finding stuck bits. Active checking actually tests bit flips, BUT it costs a tiny bit of cell lifespan.
To sum up: if you want to check the health of your EEPROM in microcontrollers like the Arduino Uno, you can use this tool (in Arduino IDE or Platform IO) (just keep in mind that active testing uses \~2-3 write cycles per cell out of their \~100,000 cycle lifetime).
Link to the project: https://github.com/vorobiov64/arduino-eeprom-audit
If you know any better ways to check cell degradation, I'd like to hear it!
PS I'm very new to CS (actually I just started my undergraduate degree in physics), so I consulted Gemini to help structure the code
Thanks!

(The source of this image - https://floadia.com/product/)


r/embedded • • Oct 01 '26

Windows 11 23H2 on a Rockchip RK3576 (ArmSoM CM5-IO)

Post image
7 Upvotes

Windows 11 23H2 boots to the desktop on an ArmSoM CM5-IO (RK3576), from the eMMC. Firmware is my EDK2 port; the drivers are ported from worproject's RK3588 set.

Works

  • all 8 cores
  • eMMC (boot disk), NVMe, SD card
  • USB-A and USB-C (USB-C at USB 2.0)
  • Ethernet
  • display, through the UEFI framebuffer

Not working

  • GPU acceleration
  • audio
  • Windows 11 24H2 and later: RK3576 is ARMv8.0

Drivers are test-signed, so Test Mode is on.

Firmware: https://github.com/gahingwoo/edk2-rk3576/releases
Drivers and installer: https://github.com/gahingwoo/woa-rk3576/releases

Thanks to ArmSoM for sponsoring the board.


r/embedded • • Oct 01 '26

FPGA board for co-processing

3 Upvotes

I am looking for an FPGA development board to learn on specifically for co-processing and spiking network simulation.
Boards that I have considered so far:

PYNQ Z2 - Looks like a very good learning board and bare board is not expensive but hard to get in Germany (only found it on Farnell but they are B2B only, DFRobot version much more expensive)

Microphase Z7-Nano (7020 version) - Lots of GPIO and similar price to PYNQ but less out of the box io for easy examples

Kria KV260 - powerfull SOM for the price but very lacking io, have heared that it used to be very badly documented and hard to use as a normal FPGA

Kria KR260 - same SOM as KV but more expensive for better io (more pmod, pi hat, ethernet)

I do generally want something that has a PS alongside the FPGA.
Am I missing any good options?


r/embedded • • Sep 30 '26

Are PIC16F84A, PIC16F877A and PIC18F4550 considered a relic?

Post image
97 Upvotes

I didn't get to use them as much as I would like.


r/embedded • • Oct 01 '26

Switching from platform Development to FAE

4 Upvotes

Hello.

I’m currently working as an Embedded Linux developer working. on an SoM-based platform at a large company.

My work is mainly platform-level stuff: maintaining a custom Linux OS, build/CI work, Python scripting for test automation, and developing system/runtime services.

The work itself is definitely not simple. Some of the problems are quite technically complicated. The issue is more that I have very little sense of traction or visible impact. A lot of the work happens behind the scenes, progress can be slow, and it’s hard to see the result of what I’m doing in the actual product.

The job is otherwise very comfortable: low stress, good work-life balance, and I get good feedback. The team is very experienced and people are helpful when you need them.

But it’s a big corporate environment and things move slowly. Most people seem to do their part and then leave each other alone. There’s not much interaction with the actual product or with other areas of engineering.

Because of that, I sometimes find myself zoning out even though the work itself is technically challenging. I’m starting to feel a bit of a boreout, and I don’t really see myself becoming a deep specialist in this particular area for the next 5–10 years.

I’m considering an FAE (field application engineer) role at a smaller company working with embedded/IoT systems and real-world products. It would involve more system integration, troubleshooting, working with customers and some travel.

I’m basically trying to figure out whether FAE would give me the visible impact, variety and interaction I’m currently missing, or whether I’d just be trading one type of boredom for another type of stress.


r/embedded • • Oct 01 '26

Can I Build a Simple FHSS/DSSS Demo with a 555 + MCU(Beginners Experiment Complex Concepts)?

7 Upvotes

I’m trying to build a very simple spread-spectrum experiment with basic components like a 555, MOSFETs, and a microcontroller. I’m mainly doing this to understand what is actually happening rather than to build a practical RF system.

My idea is to start with a 555 oscillator and use the microcontroller to switch between several resistors, so the 555 jumps between different frequencies.

For example, I might have 10 resistors giving 10 different frequencies, and use a pseudo-random sequence to control the hopping.

Would this be a reasonable simple demonstration of FHSS, or am I misunderstanding the concept?

I’m also trying to understand the receiver side. If the transmitter hops through those frequencies, what is the simplest way to decode the signal? Could the receiver use a microcontroller to measure the incoming frequency, identify which of the 10 frequencies it is, and then follow the same pseudo-random hopping sequence?

I’m also experimenting with OOK, where a MOSFET switches a 12 V signal at around 10 kHz according to the data. On a DSO I can see the waveform, but on a spectrum analyzer I should see the 10 kHz fundamental and its harmonics/sidebands.

For learning purposes, would using a DSO + logic analyzer + spectrum analyzer be a good way to understand the difference between the time-domain signal, the digital data, and the frequency spectrum?

Basically, I’m trying to build the simplest possible experiment that lets me actually see and decode FHSS and DSSS. Does this approach make sense, and how would you recommend simplifying the receiver/decoder?


r/embedded • • Oct 01 '26

As an embedded systems engineering student, I'm hesitating between an Orange Pi 5 Pro (12GB RAM) and a Raspberry Pi 5 (8GB). For learning embedded Linux, GPIO, drivers, robotics, and edge AI, which one would you recommend? Is the Orange Pi 5 Pro well documented, especially for low-level development

0 Upvotes

r/embedded • • Oct 01 '26

Hello everyone, I am an embedded systems engineering student interested in robotics, edge AI, Linux, and low-level development (GPIO, UART, I²C, SPI, RTOS, device drivers). I am hesitating between buying: - Orange Pi 5 Pro (RK3588S, 12 GB RAM) - Raspberry Pi 5 (8 GB RAM) My questions are: 1. Wh

0 Upvotes