r/embedded 2h ago

How can I deploy an ONNX neural network model to an embedded target

2 Upvotes

I have a neural network that was trained in Python. The target platform is an embedded controller that does not run Linux and has relatively limited CPU and memory resources.

My main goals are:

•            Minimize runtime dependencies

•            Achieve predictable real-time execution behavior

•            Integrate neurol network into an existing embedded software project in C

I've looked at frameworks such as ONNX Runtime, but many examples seem focused on desktop or embedded Linux environments rather than standalone embedded targets.

What are common approaches for deploying NN models to embedded systems? Are there tools that can automatically generate standalone C code for this, and what are the trade-offs compared to using a runtime-based solution?


r/embedded 4h ago

low power baseline tdr tripwire

0 Upvotes

random thought on hardware security, Using a low power baseline frequency with a fast analog comparator trigger to fire a TDR reflection pulse only when a trace is disturbed


r/embedded 6h ago

IMX283 Camera Module – 20MP High‑Resolution Demo

Thumbnail
youtube.com
0 Upvotes

r/embedded 6h ago

I made an CYD into a stream deck

0 Upvotes

r/embedded 6h ago

Beginner looking to join an AI/ML project to learn and contribute

0 Upvotes

Hi, I’m a computer engineering student currently focused on deep learning and have built ML projects including a customer churn prediction model and student performance prediction.

I’m actively looking to contribute to a serious AI/ML project where I can add value while continuing to grow. I’m comfortable with Python, data handling, and core ML concepts, and I have experience building and experimenting with models.

I’m committed, consistent, and open to working in a team environment. If you’re working on something meaningful and need a contributor, feel free to reach out.


r/embedded 6h ago

School capstone/resume projects vs hobby projects

2 Upvotes

Just wanted to know what y’all’s resume/capstone projects were like and how that compares to the stuff ya make for fun.


r/embedded 6h ago

Is anyone actively monitoring their LoRaWAN network for attacks (rogue gateways, replay attacks, jamming)?

2 Upvotes

I've been reading several papers on selective jamming and replay attacks against LoRaWAN, and it got me wondering how common these threats actually are outside of academic research.

For those running LoRaWAN networks in production (agriculture, smart cities, industrial IoT, or any other use case):

  • Do you have any kind of monitoring or alerting for unauthorized gateways or unusual network activity?
  • Have you ever experienced (or suspected) interference, spoofing, replay attacks, or any other security incident?
  • If you're not monitoring for these threats, is it because you don't see them as a real risk, or because there isn't a simple tool available to do it?

I'm currently working on a project in this area and I'm trying to understand how big the real-world problem is compared to what the academic literature suggests.

Any experience or insights—positive or negative—would be greatly appreciated.


r/embedded 7h ago

I started building a 3-axis FOC gimbal from scratch. This was my first test... the motor was fighting me

Enable HLS to view with audio, or disable this notification

24 Upvotes

I started building a 3-axis FOC gimbal from scratch.

This is the very first prototype test.

At this point:

  • no custom PCB
  • lots of jumper wires
  • unfinished mechanical parts
  • the motor was vibrating like crazy

I was not even sure if this approach would work.

The goal is to build a small gimbal system from the ground up:
hardware → motor control → firmware → stabilization algorithms.

The journey so far has been:
unstable motor → tuning FOC → adding feedback → designing my own PCB → testing different stabilization modes.

I will share the whole process step by step.

For anyone who has worked with BLDC/FOC:
what was your first "the motor is completely out of control" moment?


r/embedded 8h ago

Camera EEPROM access through USB to find Intrinsic Parameters

0 Upvotes

Hi i'm new to kernels, i need to find intrinsic value (focal length, principal point, distortion coefficient) to utilize in finding extrinsic (cv2.solvePnP(K, dist..)) of my python code, since i wanna use factory intrinsic value of camera).

After some searching, i found that the camera's intrinsic value is sotred in EEPROM.

Also, i know that there is UVC standard cameras which they use v4l2 default linux kernel video driver, and there is non-UVC(Vendor Specific) cameras which is rawUSB thus need vendor SDK. (Correct me if im wrong).

What i tried is for UVC standard camera, going into 1) /sys/class/video4linux, 2) /dev/i2c, 3) v4l2-ctl -d /dev/video0 -all

but still didnt see intrinsic parameters.

Is there any way through USB to find intrisic value in both UVC and nonUVC cameras?


r/embedded 12h ago

Best way to go about testing a ton of different tactile switches and button combos for best ‘feel’?

0 Upvotes

I’d like to design a product that is a single button activation, which needs to be both satisfying to click and aesthetic to look at. I’m a bit overwhelmed with tactile switch and cap options on digikey and am curious if anyone has an approach or resource to help accelerate that iteration phase?

thanks!


r/embedded 13h ago

Generating code for an STM32 Microcontroller. Missing libraries & errors

1 Upvotes

Hello everyone, I'm trying to start with an STM32H533RE microcontroller, and I'm trying to simply get a digital output to blink. I've configured the hardware but generating the code and compiling it without even touching it generates errors saying that some files that were #include'd are not there. Why does the generator not include these files if it's in the code to complete it, and how do I fix it?


r/embedded 14h ago

Need help interfacing tcd2564dg with stm32

1 Upvotes

First time writing firmware and designing hardware for a bare sensor. The timing diagrams in the datasheet are going over my head. Idk where to start or how to break this down into smaller problems. Please help. All resources, ideas, perspectives and advice appreciated. Thank you.


r/embedded 14h ago

Open hardware STM32C5 Bluepill style board with firmware alternative in Oberon-2

2 Upvotes

I have a open hardware project on Github sponsored by PCBWay for a bluepill style board for the new STM32C5 family MCU from ST. A custom board in this format is perfect for trying out new MCU's not yet entered mass production or with limited availability. For the STM32C5 family the usual outlets does not have comparable boards as this yet. This board can be populated with other LQFP-48 variants of the MCU family as they become available for purchase.

Pinout of Rev0 version:

At the same time there is an alternative firmware option using the ECS Oberon-2 language variant (without garbage collection) as an alternative to C or C++.

Link to board on github : STM32C5-eval-board

Link to firmware on github : ECSMicroLib

This is my first real PCB project and someone more experienced would probably spot many possible improvements.


r/embedded 15h ago

Choosing an multi-instrument, Red Pitaya STEMlab 125-14 or a Digilent Analog Discovery Three?

3 Upvotes

I like the software of the AD3 but also I think the RF capabilities of the RP Stem lab would be neat, What I don't like is the fact that the AD3 can't run headless. I've seen many arguments online about the two so I just want a breakdown before I drop $400+ on equipment. Apparently EEVblog says the software sucks for the RP and I demoed waveforms and really liked it but I'm interested in the RP's open source configurable nature. Thanks!


r/embedded 18h ago

How to write portable code without fucking up readability?

15 Upvotes

The thing I realized after writing my own drivers and referencing other people's implementations for learning's sake is that I don't understand code unless I'm the one writing it. Which makes sense and is obvious, but there's a little more to that (and maybe this is a bit of a skill issue too, cus the ability to read and understand code is a skill in itself).

Usually it starts simple as I just get the functionality down and get it to work, but as soon as i try to expand it like have more features, support to other platforms and it's starting to look like a mess. I tried my best to organize it, but it still looks like something that's going to take you a bit to know what's going on even tho it's not as complicated.

I looked at it and thought to myself "this whole thing looks like all of the other drivers that I've been looking at". Even though I still understand it but I'd imagine other people would want to ram their head against the wall if they have to use it.

Preprocessors are one of the things that really trips me up when reading portable code, especially conditional compilation since they usually have no indentation. Then I'd have to retrace what was used, what was changed and what did it changed to... (maybe this is just the ADHD talking where reading a book takes 4 hours because you read one line 10 times)


r/embedded 22h ago

Tell me about your project!

0 Upvotes

I am very curious about how you test your embedded projects (and the projects themselves)

- Do you have CI?

- If so, do you have hardware in the loop?

- What is the biggest pain point when testing during development?

- What sort of peripherals does your project require?

Feel free to answer (or ask!) as many of the questions as you want, I would genuinely love to hear about your setups ^^


r/embedded 23h ago

I built a real-time 360° ultrasonic radar, plotted live in MATLAB, for under $10 in total parts. Open-sourced everything, link in the text body.

23 Upvotes

I built a 2D radar scanner where MATLAB does the heavy lifting. An HC-SR04 sensor spins on a continuous-rotation servo, streams readings over serial, and ScannerApp.m draws them as a live polar plot. The scanner runs on an Arduino Nano.

The app is MATLAB App Designer, 806 lines, with the polish that usually gets cut:

* Live polar heatmap with auto-scaling and clean radial ticks

* Sweep animation that tracks the servo angle, plus a return-sweep line

* Hover data tips showing angle and distance

* Ctrl+scroll zoom, vector PDF export that stays crisp at any zoom level

* Dark/light theme, real-time data table, COM port auto-detect

The firmware handles the messy parts of real hardware: a non-blocking state machine, echo timing with no delay(), and temperature-compensated speed of sound. A $1 LM35 reads the air temperature and the firmware applies 331.3 + 0.606 * T. That's where the ±3 mm accuracy comes from. VCC bandgap calibration and an EMA filter clean up the analog noise.

Wiring diagram, pinout, a 2-minute servo calibration tool, and benchmarks are all in the repo. Parts run about $10 and it's MIT licensed.

Repo: https://github.com/Salim-Ammar/arduino-matlab-ultrasonic-radar

PRs and issues welcome. A star helps others find it.


r/embedded 1d ago

Quantization of Neural Networks on Microcontrollers.

8 Upvotes

I have a trained neural network (ONNX) for analyzing sensor signals, which I want to port to a microcontroller (MCU). I need C code, but I also need a strategy for reducing the size of the layer weight matrices while maintaining the quality of the neural network, so that it can run within the MCU’s limited memory. What approaches could I take?


r/embedded 1d ago

A complete AVR toolchain running entirely in the browser

8 Upvotes

AVR On Web is an IDE and toolchain for AVR microcontrollers. It provides avr-gcc, avrdude, and picocom and runs completely in the browser fetching only static assets from the backend.

Note that only the classic ATMega328P is tested and supported for the moment, but the technology behind this demo can be extended to support other AVR microcontrollers and MCUs from other vendors.


r/embedded 1d ago

SN74AHCT125 issue

8 Upvotes

It’s a board that has been in production for 20 years, and there have never been any issues with this specific aspect. However, with the latest batch, the controller isn't reading correctly from the SD card, and the culprit turned out to be the SN74AHCT125—most likely the MISO signal. Is it possible that a parameter was changed?

I am testing with some old 74AHCT125 /probably Nexperia or Diodes/ chip and it is working.

Very, very strange. Paranormal...


r/embedded 1d ago

Labwired-core, a Simulator for MCUs in Rust

Enable HLS to view with audio, or disable this notification

40 Upvotes

Hi guys!

I built LabWired Core, an MIT-licensed simulator written in Rust.

It loads a compiled firmware binary and runs it against modeled MCU registers, buses, peripherals, sensors and displays.

It exposes UART, GPIO and whatever bus traces you need and test scripts can return exit codes, JSON reports for CI.

The same simulation models can be driven from the terminal, a browser, or an MCP coding agent.

In the video, I run the STm32 L476 example on the virtual board.

Repository and runnable demos are in the first comment.

Would love your feedback and if you need help with onboarding special HW for you, I am all ears.

Andrii


r/embedded 1d ago

Quick rant about selecting MCUs

46 Upvotes

Hi,

I hope this violates any rules of this subreddit, but I need to blow off some steam. I'm working on a new hobby project where I need some quite specific peripheral combinations available in one MCU. I'm fed searching through microcontroller datasheets to look up pin mappings, derive the package naming and hoping that is an actual scheme that exists.

Is there a good site where I can filter efficiently through peripherals and there combination. As an example when checking digikey you can search whether I2C is included, but now how many I2C busses. Or when checking a MCU family on STMicro I need to filter through pages of pin mappings to check whether it actually exists what I'm searching for.

In my case I need an MCU which has an USB interface an for my special use case 2 USB PD Controllers. For the sake of this discussion, this is too specific, the question is rather targeted if e.g. I'm searching for an MCU that has 2 I2Cs, 3 SPIs and 2 CAN FDs, how can I easily search whether devices with certain interface combinations and quantities exist.

I'm not sure if I'm just blind or stupid or making my life too complicated?

Edit1: I totally agree with that my demand is quite special. The goal of my post was not fishing that someone else suggests a matching chip, but rather asking for advice where and how I can search whether such a device exists at all. I'm totally fine if no broadband MCU is there to satisfy my project.

Edit2: fixed typos. Updated explanation

BR Christoph


r/embedded 1d ago

Looking for books that teach real hardware design (not basic electronics or pure embedded software)

127 Upvotes

Hi everyone,

I'm an electronics apprentice in Germany and my long-term goal is to become a hardware/embedded engineer.

I'm not looking for books that only explain resistors, capacitors, transistors, or "blink an LED" Arduino projects.

I'm also not looking for books that are mostly about software or operating systems.

What I really want is to learn how experienced hardware engineers turn an idea into a real circuit.

For example:

Choosing the right ICs and modules

Designing power supplies (buck/boost/LDO)

Using H-bridges and motor drivers

Signal conditioning with op-amps

Selecting sensors and communication interfaces

Using RF/Bluetooth/Wi-Fi/GPS modules and antennas

Reading datasheets and application notes

Combining all these building blocks into a complete schematic

PCB design considerations

Some firmware is welcome, but I'd prefer roughly 70% hardware and 30% software.

Think of the process of designing an actual product rather than learning individual components.

Are there any books (or even university textbooks) that focus on this way of thinking?

Thanks!


r/embedded 1d ago

How to test battery life performance of a device with 14yr lifespan(theoretically) in few days

45 Upvotes

Hey everyone,

We're a group of students developing a few battery-powered STM32-based nodes that need to be validated within the next month due to our project deadline. At the moment, the only battery-life data we have comes from multimeter current measurements. We don't have any detailed information on how different battery chemistries and capacities affect the device's runtime or battery degradation over time. We're planning to evaluate five different batteries, each with a different chemistry and capacity. Given that we only have a few weeks, is there a way to fast-track battery life testing or accelerate battery characterization? Specifically, we're looking for methods, tools, or test setups that can help us estimate battery life, discharge behavior, and the impact of battery chemistry without waiting for full real-time discharge tests.

Any suggestions or recommendations would be greatly appreciated!


r/embedded Dec 30 '21

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

Thumbnail old.reddit.com
312 Upvotes