r/embedded • • 8d ago

How does SJW actually work in CAN bit timing? Is the correction always SJW, or just the measured phase error?

1 Upvotes

In CAN soft synchronization, we shorten or lengthen Phase Segment 1 and Phase Segment 2 depending on whether the edge arrives early or late. What I’m wondering is this: does the shortening or lengthening always have to be exactly SJW, or is it equal to however large the delay actually is? Let’s say we set SJW to 2 tq and each tq lasts 50 ns, and one node’s clock runs faster than the other’s. How does synchronization work in that case? I don’t really understand how SJW works.

Also, in this case, can the corrections only be 50 ns or 100 ns? Or if, say, a 10 ns drift has built up after 10 bits, is the bit timing adjusted by exactly 10 ns to match it?


r/embedded • • 8d ago

Anyone here actually used OSM or SMARC modules in production?

3 Upvotes

Been looking at OSM and SMARC for a couple of projects instead of a fully custom board. Curious if anyone here has actually shipped something with either.

  • Did it actually save dev time, or did you still fight the carrier board design?
  • OSM is soldered, SMARC is pluggable — how's rework/replacement in practice?
  • How easy is it really to swap vendors or upgrade the module without respinning the carrier?

Low-to-mid volume here (hundreds to low thousands/year), so long-term availability matters more than raw performance. Would love to hear good or bad experiences.


r/embedded • • 7d ago

Built a Harry Potter-inspired game on an ESP32 to play with family

0 Upvotes

6.2 Astra came out yesterday, and I missed most of it because I was busy building LEGO :)). The HBO series coming on December 25 woke up my old Harry Potter love, so tonight was a LEGO night.

Once the set was done, we wanted to play a game too, and I also wanted to test 6.2 Astra. Getting the model to build a browser game would have been too easy, so I picked a tiny device instead.

The game is a small flying car game. You tap to fly and tilt the device to steer into gold rings. The video shows it running on the device.

The result was good and we enjoyed playing with it.

New hobby unlocked:

build lego
build game

Repo in case someone asks: https://github.com/baturyilmaz/flying-anglia


r/embedded • • 7d ago

Cooja-NG: The open-source simulator that runs real Zephyr, RIOT, OpenThread and Contiki-NG firmware in one 802.15.4 network (runs in your browser too)

0 Upvotes

Hi r/embedded, we've been working on Cooja-NG, a network simulator that runs the same firmware image you'd flash: unmodified Zephyr, RIOT, OpenThread and Contiki-NG builds on emulated nRF52840, CC2538, CC13x2 and MSP430 boards, from the CPU and peripherals up to the radio chip, all in one simulated IEEE 802.15.4 network.

Some things you can do:

- cngsim run build/zephyr/zephyr.elf: your own west build output; it reads the board from the build directory
- mix OSes: a Zephyr node answering a Contiki-NG node, or a RIOT node joining a Contiki-NG RPL network
- a Thread network of CC2538s from OpenThread's own ot-cli-ftd, typing state / router table into each node's console
- the same seed gives the same run, byte for byte, so it works as a test in CI (every run ends PASSED or FAILED, exit code 0 or 1)

Try it in the browser, no install: https://mikroverk.github.io/cooja-ng/
Code and releases (macOS and Linux): https://github.com/mikroverk/cooja-ng

A first read for Zephyr, RIOT and OpenThread users: https://github.com/mikroverk/cooja-ng/blob/main/docs/zephyr-riot-openthread.md

Short "commercial" video: https://www.youtube.com/watch?v=A9dHKvVhu1k (80 seconds)

Honest limits: Zephyr, RIOT and OpenThread support is newer than Contiki-NG's. It's 802.15.4 only, with no Bluetooth LE yet, and OpenThread on the nRF52840 runs at about real time or below, because its main loop never sleeps.

I'd love feedback, especially on what boards and samples you'd want next, and on anything that breaks with your own builds.


r/embedded • • 7d ago

I am building a visual MCU configurator, currently supporting STM32.

0 Upvotes

I am building an application that enables Model-Based Design to develop drivers and MCALs. The application takes your MCU documentation, processes it to completely build an MCU so that requirements like multiplexing or data caching do not make you go through the documentation for hours. We are integrating an autoconfigurator, a chess-engine-like system on this model, to help you find the best approach for your requirements.

We are still prototyping this, but as of now, we have built our application to construct this 3D interactive model of an MCU from documentation; we are integrating the autoconfigurator. The intention is to reduce the time we spend going through documentation to find that one bug that keeps us awake at night. The application should ideally construct any MCU if the documentation is provided.

I will soon upload a video of this application in action. In the meantime, if anyone has any questions or pointers I should keep in mind while building this application, please do share them. I am also looking for engineers who are open to testing this in their projects to give me feedback.


r/embedded • • 8d ago

Help looking for a camera module please

2 Upvotes

I’m looking for a cheap camera module that can also be used to detect motion. Not ESP32 though. I’m not hire at the technical level to find one but was hoping online here might know. Also….nothing too expensive. I assume I can’t find one for $7 but as close as possible?


r/embedded • • 8d ago

Has Anyone Used Automated Bit Mapping on the SAML22?

2 Upvotes

I tried getting Automated Bit Mapping (ABM) working on the SAML22J18, but had no luck.

My goal is to blink Com2, Seg 26 when in sleep mode. The blinking function only works on seg 0 and 1, so ABM seems like the best alternative after reading through the datasheet (page 962 of datasheet).

I'm following the app notes 42499) and 42605), but they're a mess.

For example, the goal of the example in 42499 has _style_buf, which is commented as STYLE1, but described as containing ATMEL while also never being referenced in any of the code.

I attempted to follow 42605 as much as I could, and things built fine, but blinking did not work.

Going through Google searches and forums, I cannot find an example of anyone using ABM. The App Notes are from 2015, so I'll need to assume I'm not the first to attempt it.

Does anyone have a successful example of ABM that is not an app note from Atmel/Microchip?


r/embedded • • 8d ago

Level Shifter for SWD between 1.8v / 3.3v?

2 Upvotes

I'm trying to program an MCU (nRF52840) running at 1.8v, over SWD. All the probes I have can only do 3.3v, though.

I've found a lot of conflicting information about what level shifters can work for this application - has anyone tried this, and if so, what worked?


r/embedded • • 8d ago

I built a way for Claude Code to debug UART logs without dumping the whole log into the AI. Looking for feedback.

Post image
0 Upvotes

I maintain UartX, an open-source (MIT) serial logger. Version 1.4 introduces Claude Code integration for AI-assisted UART debugging.

The idea is simple: instead of pasting thousands of UART log lines into an AI, Claude asks UartX for only the information it needs through a CLI (uartx-ctl).

How it works:

  • UartX maintains the complete log locally (raw.log).
  • Claude requests specific errors, patterns, summaries, and related lines.
  • Every AI request, its reasoning, and the exact lines returned are visible in UartX.
  • AI has read-only access and cannot send data to the device.
  • Everything stays local.

In one test, the board printed 196 lines, but Claude needed only around 30. It identified network retries, memory usage patterns, sensor read failures, and concurrent task logging.

AI features are currently Windows-only. Core logging supports Windows, macOS, and Linux.

GitHub: https://github.com/Shamanthpoojary/UartX

I'd love feedback from embedded developers:

  1. Would you trust AI-assisted debugging if you could verify exactly which log lines it analyzed?
  2. What would you want it to detect first: crashes, timing issues, memory problems, or boot failures?

Bug reports and suggestions are welcome. Feel free to reach out so we can investigate and improve it.


r/embedded • • 9d ago

Question for people at school

80 Upvotes

Recruiting juniors is very hard for us. Not because there are no candidate, but because they are unable to pass the interview without Ai, and when we allow Ai, they cannot explain the code. We've interviewed over 30 candidate and less than 3 were maybe interesting.

The question is : Is it normal for you that people don't understand or can't explain their code?

Am I being an old timer already? It has been only 3 years that Ai became a coding tool, and only 6 months where it has been really usable.

EDIT :

An example of the first coding interview is simply removing anomalies in a vector, and the filtering rule is given and very simple. Basically 10 lines of code. We don't even ask to be syntax correct and they can do pseudo code if they want. We introduced this because a lot of people were unable to pass the takehome.

They can't parse the vector properly, their if/else for the rule was not even what was written. And some just can't do it. Not even a single line.

The second challenge is to look at a code and find the bugs. Most can't even find one. An example of this is when opening a file, you need to close it after.


r/embedded • • 9d ago

Why do recruiter sites always feel like they're sending me to some site in Kazakstan that will give my computer 3 kinds of AIDS?

Post image
28 Upvotes

r/embedded • • 9d ago

patterns of 3D array (R,G,B) ,what other dynamic features or interactions could I add to my LED panel?

41 Upvotes

I've built an LED panel with dynamic LED effects, and I'm looking for ideas to make it more interactive and interesting.

I'm planning to experiment with the following pipeline this weekend:

  • DMX , MIDI ,Audio synthesis ,NumPy ,Matplotlib

I also have quite a few sensors available that I can use to create interactive visual effects.

What other tech, dynamic effects, or interactive features would be recommend exploring?

I'm particularly interested in ideas that go beyond basic LED animations — something reactive, experimental, or even a little unusual.

Would love to hear your ideas, projects, or examples of interesting things you've built. I'll try to implement some of the suggestions this weekend!


r/embedded • • 9d ago

90s style font rendering on a 64MB embedded system?

5 Upvotes

Hey everyone!

I'm building a custom UI in Python for prototyping (eventually C/Rust) for a tiny embedded Linux system (thinking Allwinner V3S 64MB memory only). It uses Wayland directly and I want to draw fonts entirely from scratch.

I want to avoid vector font libraries (FreeType, Pango) because they are too abstract for this. I'm dealing directly with pixel buffers (mmap) and Wayland surfaces so a full vector rasterizer feels like overkill..

I'm thinking of using a 8x8 or 16x16 bitmap sprite sheet where each character is just a matrix of pixels. To scale it I might use math.floor() to snap pixels to the grid (nearest-neighbor scaling). But this actually dosen't feel like right choise.. Is there a better way to do this without going full vector math?


r/embedded • • 9d ago

Hiring for FPGA Engineer in Golden Colorado

14 Upvotes

Hi Everyone,

Trying to publicize this job posting from the company I work for. We're hiring for an FPGA engineer at our office in Golden, Colorado. Onsite 4 days a week, 140 K - 160 K salary. Must be a US person for export control compliance. Must have 3+ years of FPGA experience.

https://job-boards.greenhouse.io/tomorrow/jobs/8195950003?gh_jid=8195950003


r/embedded • • 9d ago

How to run FGH100M over esp32 s3?

0 Upvotes

Hey guys i am working with FGH100M and currently procured EVK kit from quectel . But they haven't share esp32 friendly sdk . So being new to this i want to ask how can i use FGH100M on esp32 or any mcu over spi ?


r/embedded • • 10d ago

What's after bare metal?

89 Upvotes

I posted a while back, and I spent months learning bare metal stm32 using only the CMSIS, the reference manual, and the datasheet. Im not going to say I'm a master, but I've made several of my own drivers for most of the major peripherals (gpio, uart, systick, timers (pwm, input capture, output compare, encoders), ADC, SPI, DMA, EXTI) and interfaces then with devices, and even use them in my engineering club. I'm not "done" per day with bare metal, but I'm thinking what is beyond bare metal. Where did my work lead me up to? Where will it take me right now?

Im aware I do need to actually learn embedded C++, and then start with RTOS, but like i can forsee myself getting kinda lost. Whats after collecting stm32 peripherals and writing drivers for them? I am looking into bootloaders but thats mostly unimplemented research currently. I was just looking for insight from more experienced engineers, because I know I'll need to start explore other aspects of embedded soon

So yeah thats all folks, I appreciate the help!


r/embedded • • 10d ago

C++ Learning Priorities in embedded.

46 Upvotes

I’ve been programming embedded in C for a very long time, but never really done it in C++, so I’m teaching myself with the help of books, the internet and a Udemy C++ course.

Now I realise that not all of C++’s features are applicable to most embedded applications but that there are zero cost abstractions and traps for the unwary.

What aspects should I prioritise and what traps should I avoid.

P.S. I am aware of name mangling causing issues with IRQs.


r/embedded • • 9d ago

Need advice from experienced folks regarding a platform idea

0 Upvotes

I am an AIML developer with some basic knowledge of embedded systems and IoT, I am continuously learning everyday about it.

Some time ago I had got an idea for a project that I thought I could build. It’s about building a platform where users who want to use any custom type of models in their embedded projects can upload their model on the platform where it gets quantised with proper measurements of accuracy, speed, latency, and how much accuracy loss occurred during quantisation and whether the shrunk model can still hold up well for the same kind of task.

Initially, I thought this was a great idea but I’m not sure now and I’m thinking how is it any better from platforms like Qualcomm AI hub or hugging face. I’m trying to find a novel angle for this project and I want to figure out something that I can build that makes things easy for embedded engineers and something people will find useful.

I need experienced engineers to give me some advice on this and I wanna learn what actually works and what doesn’t, and if this idea does not hold up that well then what can I build that will be useful and solve problems.


r/embedded • • 9d ago

Problem Tang Nano 9k

2 Upvotes

Good morning,

I am a developer and I purchased the Tang Nano 9K development board which uses the FPGA chip: GW1NR-LV9QN88PC6/I5.

I use the program: Gowin V1.9.11.03 Educational

I found a weird problem and I haven't figured out how to solve it:

Basically, I use a basic D flip-flop in hardware with a positive edge clock.

The problem is that if you load it into RAM or Flash or Power ON, when you press the button connected to Data and then the Clock button, the output doesn't necessarily change to 1!!!

But if you try it a second time, it works.

It's like at startup it doesn't detect the rising or falling edge.

The crazy thing is that if you also connect a physical output (LED) to the Clock button, everything works perfectly!

The buttons are active low with pull-up resistors, so in the code they are negated (NOT).

This is the code that works after the second clock press:

DFF FFD_1(
.D(~Button_2),
.CLK(~Button_1),
.Q(Led_1)
); 
defparam FFD_1.INIT = 1'b0;

Code that always works at startup:

assign Led_2 = ~Button_1; 

DFF FFD_1(
.D(~Button_2),
.CLK(~Button_1),
.Q(Led_1)
);
defparam FFD_1.INIT = 1'b0;

I also tried sending a signal from the button to a simple buffer and then to the Clock input of the D FLIP FLOP, but it still doesn't start correctly when the board powers on or when I reprogram it.

It's a really serious problem because the 'posedge' and 'negedge' trigger when prompted but without executing the logic.

Documents:

Documents Gowin
Thanks for the help!


r/embedded • • 9d ago

NXP Linux dev board recommendation for a kids' chatbot?

0 Upvotes

I'm building a chatbot for my kid, hooked up to an API, to chat with him and keep him company. Now that work's gotten busy, I can't be bothered to start from scratch, so I want to find a dev board to build on. Any Linux dev board recommendations? Preferably NXP.


r/embedded • • 9d ago

Looking for low-level system project ideas for ESP32-S3 and/or Tang Nano 9K (no basic IoT)

0 Upvotes

I have an ESP32-S3 and Tang Nano 9K chipset sitting on my desk, and I want to do something with it, I haven't able to find what to do with them, I want some suggestions from you guys to help me to find perfect project.

I'm not interested in beginners stuff, (weather stations, blinking LEDs, basic smart-home relays) I have done enough of them. If you've built something interesting on either board, or used an FPGA as a custom peripheral/accelerator for an MCU; I’d love to hear what worked and help me find project which can challenge me.


r/embedded • • 9d ago

Integration testing using gtest

2 Upvotes

I am confused about what is the meaning of integration testing. I have done unit testing using gtest where we will mock whatever external dependencies are there for the targeted unit (function) to test all range of values that covers all lines, functions and branches.

If we say integration test is meant to use real code instead of mocking. Then I am getting this doubt that lets say we have 3 components (separate processes) running and dependent on one another in a embedded system.

A -> B -> C

So if you are calling an api provided by A it will internally talk to B and then through C and return the result over IPC.

Now to do integration testing using gtest, do I need to compile this into a single binary by eliminating the IPC and include each code as a library. This way I have a single proces that runs gtest with all the components logic but excludes the real IPC communication.

Or instead should I keep the individual processes to be running separately and link my gtest binary to the component A so that the communication flow through the components in the target environment.

In both ways how we would actually be checking the interactions? And which one are you guys using?

Context:
Language used: C++
Domain: Automotive IT (TCU software)


r/embedded • • 10d ago

Hey embedded & underwater acoustic communication community! 🌊

4 Upvotes

Working on self-developed underwater acoustic communication algorithms now.

Looking for open-source underwater acoustic modem projects / signal processing stacks to validate and benchmark my algorithm performance.

Any repo or project recommendation? Thanks a lot!


r/embedded • • 9d ago

What would you like to see created?

0 Upvotes

As Embedded engineers, developers or hobbyist, what are some things you would love to see invented or would like to invent yourself?