r/embedded • • 4h 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 • • 21h ago

Honest question about vibe coding in embedded

52 Upvotes

I know this sub is pretty skeptical of vibe coding, and I get why. But I'd like to hear the actual reasons, not just "it's garbage."

I work in embedded, and lately I've been using AI for quick side projects and prototypes, like ESP32 stuff and Zephyr configs. For that it's honestly saved me a lot of time. I wouldn't trust it with production firmware right now, but I don't think it's useless either, and it's not going away.

So where has it burned you? Made up registers, timing bugs, code nobody on the team understood?

And is there anything you do use it for?


r/embedded • • 2h ago

Is it possible to get pigeonholed from working in one layer of the Embedded software stack for too long?

0 Upvotes

To me, it seems like the engineers who work on all the layer (whether simultaneously or just over their years of experience) are some of the most competent devs I've met. However, I've been working only on the application layer (bridging high level functionality to requirements) for close to 7 years now...it makes me very nervous seeing how I really have not done more work on low-level code. I don't have opportunities to do it at my job but I'm wondering if theres a way for me to transition more to BSP / HAL development.


r/embedded • • 5h 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 • • 16h ago

Anyone here actually used OSM or SMARC modules in production?

1 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 • • 3h 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 • • 2h ago

ISO 15118-20 becomes mandatory for new and renovated EU charge points on January 1. What are you checking before then?

3 Upvotes

From 1 January 2027, AFIR requires newly installed and renovated charging points in the EU, public and private, to support ISO 15118-20, the standard for how a car and a charger talk to each other.

Things that seem worth checking before then:

- which of your chargers fall in scope, since the exact boundaries of the rule are still being debated
- whether your charge controllers support powerline communication, which ISO 15118 runs on
- whether your firmware can be updated remotely
- whether your CSMS can handle Plug & Charge certificates over OCPP 2.0.1, if you plan to offer it
- what test logs and reports you’ll keep as evidence, since official ISO 15118-20 test plans for AC chargers aren’t out yet

What’s missing from this list?


r/embedded • • 13h ago

Ways to serialize and send data from device to host

7 Upvotes

How do people serialize/deserialize data coming from a microcontroller? I have a project with a Pi Pico that samples three force-sensing resistors 60 times per second. The Pico uses these readings to determine whether a given sensor is being pressed. I want to stream the raw samples and sensor status to my host over USB serial and have a web application read and display this data.

I'm wondering how to serialize this data. I'm thinking I that I can either send a bunch of values separated by spaces like  `[raw1 raw2 raw3 pressed1 pressed2 pressed3]` or send it as JSON, which would be easy to parse from the web application. However, representing this data in ASCII feels a little wasteful of space, so I was wondering if there are any alternative schemes/methods commonly used in embedded systems for sending data.


r/embedded • • 9h 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 • • 4h ago

Is a master on artificial intelligence worth it?

0 Upvotes

I don't know if I can really discover decent roles on all this ML engineering part of IT, or should I just say that specialization on ML/AI is not really safe having in mind LLMs advancements , and maybe I should pursue something more hardware oriented like Embedded systems? I want something where creativity is rewarded.


r/embedded • • 4h ago

Data engineering vs Embedded systems vs software architecture vs Compiler Engineering

0 Upvotes

Which one is the best from your perspective? For me, those options are somehow resistant in this AI context.


r/embedded • • 14h 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 • • 2h ago

Not another square LED matrix! 👀

26 Upvotes

I've added a new horizontal LED bar to my setup alongside the usual square LED panel.

square matrices are everywhere, but I rarely see this kind of horizontal LED display. I think it opens up some interesting possibilities for animations and visual effects.

what do you think? Any cool ideas for what I should make it do?

will add some more shorts this weekend~~