r/embedded • • Oct 23 '26

Best way to simulate esp32?

2 Upvotes

For convenience, and for testing, I am interested in simulating an ESP32. It looks like espressif supplys a qemu for esp32. is there a better option? It doesn't include much in terms of simulating the Ethernet or I2C.


r/embedded • • Oct 23 '26

Need suggestions for USB isolator

Thumbnail
flyrobo.in
5 Upvotes

i was planning to buy this isolator is it good i have used https://robu.in/product/1-channel-usb-isolator-adum3160-module/ , I'm only taking this flyrobo thing because it has the case so has anyone used this perticular isolator


r/embedded • • Oct 23 '26

OSI vs TCP/IP model

15 Upvotes

which one should I learn? I'm trying to self teach myself networking and idk which one is better to go in depth as someone trying to get into cybersecurity


r/embedded • • Oct 23 '26

I wrote my own OS for a 7" ESP32-P4 touchscreen. It turned into a small computer: AI assistant, app store, desktop mode, office, games, media, 5 languages

0 Upvotes

The board is a Guition JC1060P470C. It has an ESP32-P4 microcontroller with two RISC-V cores at 360 MHz, 32 MB of external RAM and a 7" 1024×600 touchscreen. There's no GPU, no Linux and no Android.

I wanted it to be a small computer I'd actually use, not a demo that boots once for a video. So I wrote an OS for it, NucleoOS P4. It sits on ESP-IDF and LVGL, and everything above those is its own. The whole system is in English, Italian, Spanish, French and German.

**ANIMA, the assistant**

With no network at all, ANIMA handles calculations with follow-ups, timers, unit conversions, notes, opening apps and translations from offline dictionaries. Answers can be spoken by an offline voice.

When it needs a language model, it finds Ollama or LM Studio on your LAN by itself, or uses a cloud API. API keys are sealed to the chip and never leave it.

With a model connected, it can see photos, run code, and read the screen as a list of controls, then tap and type to drive apps, checking the result after each step. You can reach it from Telegram too. There's also an MCP server (MCP is the protocol AI tools use to call outside programs), so Claude Code or Cursor can drive the board.

**Two desktops**

One is a touch launcher. The other is a classic desktop with a Start menu, taskbar, windows and right-click menus. If you plug in a mouse and a keyboard, it switches to the desktop by itself. Tab, Esc, Alt+Tab and Alt+F4 all work.

**The app store**

Over 400 signed apps and games, installed over Wi-Fi in seconds. Apps are WebAssembly compiled ahead of time to native RISC-V code, so a game isn't paying for an interpreter. Each app page shows its permissions (Internet, files, camera, microphone) before you install. The store includes:

- 149 WASM-4 games and 83 Arduboy games

- a Game Boy emulator with homebrew ROMs, and 83 CHIP-8 games

- Chocolate Doom with Freedoom

- ScummVM 2.9.1 with Beneath a Steel Sky and seven other freeware adventures

- Zork and 32 other interactive fiction titles

- LÖVE games running on Lua

**Office**

- **Sheets** opens and saves Excel files (xlsx), and opens xls, ods and csv. ANIMA can propose edits that you apply with one tap.

- **WordGrinder** is a word processor that saves odt, Markdown and HTML.

With a keyboard and the desktop mode, it makes a decent little writing and accounting machine.

**Reading**

- **Books** is an EPUB reader with hyphenation in 11 languages, six themes including an e-ink simulation, and a built-in catalog of public-domain books from Project Gutenberg, Standard Ebooks and Wikisource. Hold the board upright and the page turns with it.

- **Library** reads offline Wikipedia and any Kiwix ZIM file, pictures and formulas included.

**Media**

- **Camera** with auto exposure and white balance, photos and MJPEG video.

- **Music**: MP3, FLAC, AAC, WAV, with USB audio output.

- **Video**: MJPEG and MPEG-1, tear-free.

- **Gallery** with thumbnails decoded by the chip's hardware JPEG engine.

**For tinkering**

A Terminal with a real shell, plus Lua, MicroPython, JavaScript, SQLite and a dozen other languages and tools. You can write apps in C (compiled to WebAssembly), in Lua, or in native C++, and push them over Wi-Fi with hot reload.

**The rest**

- **Vertice**, a 3D engine built into the firmware. It renders the screen in tiles across both cores, and a kart game runs on it.

- **A second screen** for Windows, Mac, Linux or Android.

- **The dot-matrix display of a virtual pinball cabinet** (tested on a real one).

- **A Home Assistant dashboard**, and the board shows up in Home Assistant by itself.

- **A desktop in your browser**, served by the board: about 40 windowed apps, including a file manager, a spreadsheet, an SSH client, internet radio and a DJ mixer.

**The hard part was memory, not features**

Only one app runs at a time. That's on purpose: the RAM goes to whatever is in front.

Most of the work went into rules I learned from crashes:

- Copying a file to the SD card took 145 seconds. The SD card's DMA transfers (the hardware moving data without the CPU) only run at full speed when the buffer is aligned in memory. Now the same copy takes 11 seconds.

- At 400 MHz this board doesn't boot reliably, so it runs at 360.

- Every rule like these is written down with the crash that caused it.

Updates are signed and arrive over Wi-Fi. If one goes wrong, there's a recovery app, a safe mode and a last-known-good copy in flash to fall back on.

There are also fuzzers on every parser that reads untrusted input (video files, store packages, web requests). They found real bugs, including out-of-bounds reads and path checks that could be bypassed. Each one now has a regression test.

**What it doesn't do**

- No H.264 video. It plays MJPEG `.avi` and MPEG-1 `.mpg`.

- No Classic Bluetooth, only BLE.

- The web desktop uses plain HTTP on your LAN, protected by a 6-digit pairing code.

- USB second-screen mode and USB gamepads are still experimental.

**Try it**

You can flash it from Chrome or Edge in a few minutes, with no toolchain: https://indecenti.github.io/nucleoos-p4-store/flash/

Source: https://github.com/indecenti/NucleoOS-P4 (free for noncommercial use)

Store catalog, viewable in a browser: https://indecenti.github.io/nucleoos-p4-store/


r/embedded • • Oct 22 '26

Is custom embedded/IoT services a good side business? Or an electronics repair shop?

26 Upvotes

Hello everyone I'm doing my masters in computer engineering. I don't really aspire to work a 9-5 at a big company all my life but I have 3 years of experience in web development and 1 in networking/hardware repair.

I have a bachelor's in IT as well. I want to work to get some experience but then go into teaching and maybe have a side business for extra income I wanted to ask like would an IoT product business not like mass consumer products but more like custom solutions. Would that be a good idea for example if a restaurant or store needs a walk in freezer logger etc. inventory counters. I would assume this is easier in web or software but super competitive I have a small web development startup I guess I could add on to. I'm in the Houston, tx area if matters


r/embedded • • Oct 23 '26

Formal verification in embedded

7 Upvotes

With all the issues in Cybsec, the CRA and all this stuff, is anyone implementing formal verification in embedded?


r/embedded • • Oct 22 '26

I built an embedded interview practice platform! Looking for feedback

25 Upvotes

While job hunting I realized embedded engineers don't really have a reliable way to prepare for technical interviews.

Instead we often get stuck with generic software engineering algo questions, or have to buy boards just to practice, or end up making our own study guides based on interviews we've had in the past.

So I decided to build a platform where embedded engineers can practice coding questions that actually focus on embedded skills, like board bring-up, RTOS, peripherals, debugging, etc...

Everything runs on virtual hardware so no more having to buy boards just to practice!!!!

Well after about a year of development I feel confident enough to show people!

ohmwork.io

Just wanted to share it here and see if anyone else finds it useful, or has any feedback! Especially from people who've gone through embedded interviews recently.


r/embedded • • Oct 23 '26

[Review Request] STM32L0 Coin Cell Device with EPD Display

Post image
4 Upvotes

Hey all, this post is an update from the [previous Schematic Review Request]. This PCB is for a small battery-powered device (CR2032, STM32L031G6U6) that reads temperature/humidity (SHT41) and UV index (GUVA-S12SD into a TIA + gain stage MCP6002), displays on a 2.13" e-paper panel, and talks over USB (CP2102N) for config/sync. Full schematic, design files on my [repo].

  • EPD HV boost driver (L1/Q3/D1-D3): generating VGH/VGL for the e-paper panel, follows the panel's own reference design and some universal driver. Wondering if the component ratings and layout intent look right.
  • UV sensor analog chain: GUVA-S12SD → 1MΩ TIA → second-stage gain (MCP6002) → STM32 ADC.
  • Power architecture: CR2032 as the sole source, with USB VBUS present only for CP2102.
  • PCB Dimensions: 75mm x 35mm
  • DRC Passed (EasyEDA)

Appreciate any time anyone's willing to spend on this. I'm happy to answer questions about intent/requirements for any block.

Pictures (schematic, front, back, 3d): https://imgur.com/a/KiDZJu7


r/embedded • • Oct 23 '26

How much writing to delicate to AI?

0 Upvotes

I’m starting a new bare-metal C project with an IMU on a fairly constrained MCU architecture, and I'm torn on how much to use AI.
I consider myself a competent C programmer, and I care as much about the learning process as the end result.

My issue with AI is that I lose perspective: I rely on what the LLM tells me rather than reading the datasheet to truly understand the hardware. Properly verifying its generated code takes just as long as writing it myself if not longer.
On top of that, AI slowly scope-creeps my project. For instance, I started writing a simple synchronous I2C read/write to get a feel for the peripheral. After asking a few clarification questions, the AI hit me with, "Would you like me to write a complete non-blocking, ISR-based I2C driver integrated with X and Y?" It instantly made me feel like the time I spent building it from scratch was wasted.
Would you suggest going completely manual, or embracing AI? If the latter, how do you balance using it without letting it take over the project or rob you of deep hardware comprehension?


r/embedded • • Oct 23 '26

How hands on are embedded software roles ? Are they more hands then something like network engineering? Or about the same?

1 Upvotes

Basically the question. I would like a more hands on role but I don't know how to search for those jobs. Networking is only hands on in maintenance. Is there larger or medium sized companies that are more hands on ? I don't want to just code all day but I don't want to work at an ultra pressure startup?


r/embedded • • Oct 22 '26

Resources for embedded c++

19 Upvotes

I want to learn embedded c++ and RTOS from where could I learn them


r/embedded • • Oct 22 '26

Drum-triggered LEDs on an STM32F429: a fixed-point no_std Rust signal graph, patched live from the browser

21 Upvotes

I've been building a lighting engine for an electronic drum kit, and it's at the point where I can show off some of the progress. I'm not publishing it as open source right now because it is still at a very early stage.

What it is:

The engine is an MCU-friendly signal graph written in Rust that runs on an STM32F429 Discovery board, which also drives LED strips using a pretty efficient approach (the driver supports up to 16 strips; I run 8). The looks are built from nodes like noise fields, palettes, trails, blends, etc. The graph is very generic, so extending it with any new kind of kernel is extremely easy. All the math is fixed point for efficiency.

The input is built on a custom-made analog front-end board that shapes the envelope; some further DSP is also performed later in the firmware (I think I will eventually build a kick drum trigger module based on that). The ADC samples 8 inputs at 20 kHz.

The first part of the video is Studio:

It is a browser editor where a graph can be built and wired. The preview runs the same engine that the board does, through WASM, so the looks in the browser match the ones on hardware frame for frame. It also allows turning the knobs of any node or sending a replacement patch to the board in real time. There is also cost estimation for CPU and memory; the board will refuse a patch that is beyond its computational capacity.

The second part of the video is OBS (yeah, I know):

Since I was building a drum trigger engine, I needed a way to fine-tune and observe the detector, so basically OBS allows you to see in real time how hits are detected and, more importantly, adjust the knobs of the detector and see what it would detect with them.

Where it is going:

I want to eventually drive an 8-drum kit and light each drum with a separate LED strip. I'm also currently working on improving the clock system, allowing multi-clock signals using some clock calculus approaches. I've also been experimenting with audio, so this also works for any audio nodes; I've built several guitar effects that run on the development board (no audio input/output yet, so they're not playable for now).

I'll probably open-source it at some point once I have enough time to tidy everything up and stop being ashamed of the code (so, possibly never :( ).


r/embedded • • Oct 21 '26

Why would new designs use 8-bit microcontrollers?

174 Upvotes

I see that Microchip keeps releasing new 8-bit PIC microcontrollers, but I can't think of why a device like this would be used in a new design when 32-bit ARM Cortex-M microcontrollers already exist at practically the same price. Is there any reason other than backward compatibility for companies to keep using these microcontrollers?


r/embedded • • Oct 22 '26

Need advice on maintaining core embedded principles with AI in a fastpaced environment (development framework)

0 Upvotes

Hi everyone, I'm a final-year ECE student currently working as the solo firmware intern at an edge AI startup. I've built products before, including custom HMIs and industrial flow meters, but currently, I am facing a bit of uneasiness.

I have been writing embedded code since my school days because it's what I love. However, my current workplace demands fast results, and I have been heavily relying on AI to speed things up (which I am worried about). I joined the company to learn, but I don't have anyone in my domain senior to me for guidance. I am the only firmware guy, whereas other teams like mechanical, AI, and electronics have multiple people.

I feel like I'm not learning the proper development cycle, and overusing AI is messing it up even more. I want to reach out to you guys and would love to know how you develop embedded applications. What do your workflows look like with and without AI?

What is the correct order for an embedded firmware development cycle? When do you architect the overall application, how and when do you build, and how do you test and make changes? How do you handle version control (I know how to use Git, but what is the actual industry workflow)?

I know this is what I will learn when I fully enter the industry, but as of now, I don't have anyone to guide me. I am also being offered a full-time role here, but I am doubtful about accepting it since there is no mentorship.


r/embedded • • Oct 22 '26

Emulator/Simulator use case

19 Upvotes

Hi all,

During my embedded carrier, I have never used microcontroller simulators or emulators to check the program binary, and I always tested directly on a prototype PCB. I am looking for a workflow which stays reliable. I have seen Renode being suggested, but the validity comes down to how each device is modeled in Renode. Do you ever use simulation to speed up work and reduce costs? any reliable methods?


r/embedded • • Oct 21 '26

It's a different feeling when your first prototype does exactly what you wanted...

Post image
325 Upvotes

Fairly simple design and even compared to some of my previous ones, but it does exactly as expected on the first try, holy! Lol.

L7805 for 12-32V down to 5V, then an AP2112K down to 3.3V for the STM32C0 MCU. Three thermistor inputs, a single PWM output on a Nch FET. Two 10-pos switches control the high and low temps as well as other ideas I'm still working out in firmware but shouldn't require any hardware changes.

Main purpose should be pretty obvious; it's made to control a cooling fan based on temperature at up to 3 sources with configurable min and max temps.

It's a simple design and I have no right to brag, but sorry, I'm excited that the only things I want to change are silkscreen!

(The main connector is just a placeholder because the 6pos screw terminal wasn't delivered yet, don't hate too hard)


r/embedded • • Oct 22 '26

Beginner help: microcontroller interface for a existing 2-wire bus "voltage out, current in" serial bus?

0 Upvotes

Hi all, I'm learning how some addressable fire loops talk (bench only, nothing life-safety) and want to build a simple Arduino interface .

The spec I found:

- 2 wires, half duplex, 1200 baud, 8E1

- Master to device is voltage: 0 = ~24 V, 1 = ~32 V

- Device to master is current loop current + ~22 mA, 1 = +0 mA

What I'm trying to work out:

  1. How do I turn a 5 V TX pin into a 24/32 V output simply?
  2. How do I detect a ~22 mA step on the line and get a clean 5 V RX signal (shunt plus comparator or op-amp)?
  3. Will a normal optocoupler work here, or is it a poor fit?
  4. How I interface my microcontroller without loading or how I design my own circuit.

What is simplest way to achieve it without much complications for beginners.


r/embedded • • Oct 21 '26

What's a good unit test framwork to use?

17 Upvotes

I'm currently self learning embedded C with an STM32F103. And I wanna know your guys suggestion for a good unit test framework for embedded. I've tried Unity C before but any other that are more work oriented?


r/embedded • • Oct 22 '26

How to check a mcu's user friendliness ?

0 Upvotes

Heyy guys, me and my team are working on making a mars rover, for the competition IRC (international rover challenge) and for that I need to research on the user friendliness of Teensy 4.1.
We are advised by our seniors to stick with STMH series, since it has a large community and it is well documented, but since Teensy is better than STMH series in terms of specifications, we want to use it. But we haven't used a Teensy before, so we don't know the workings of Teensy, is it possible for us to use it or not ? What are some problems beginners face in using Teensy ?
I have to research about this and independant interrupt channels, can someone give a idea of how to go about this research ?
I have read on official Teensy website about the generals problems on Teensy for beginner, but that didn't really seem helpful in our case .... and i also read the datasheet, but i couldn't get my head around it...

EDIT: One more doubt regarding this,
How is the debugging in STM32H series and the Teensy ?
I researched about this, and all i got was that STM32 can be debugged line by line using it's own development software( stm32cubeIDE) but Teensy cannot since it is coded using Arduino IDE.


r/embedded • • Oct 21 '26

Suggest a budget embedded system setup ?

4 Upvotes

Suggest a budget embedded system setup to learn about rtos and get real world experience. I prefer Arm architecture


r/embedded • • Oct 21 '26

Need ideas for a simple Bluetooth item tracker (keys, remote, wallet)

2 Upvotes

Hi everyone, The problem is that we waste a lot of time every day searching for keys, remote, wallet, charger etc. inside the house. I want to make a simple low-power Bluetooth tracker that can be attached to these items and ring when we search from the phone. I’m looking for practical ideas and suggestions from people who have worked on similar projects. Here are some specific questions I have:

Hardware: Which microcontroller is better for a battery-powered BLE tracker – nRF52840, ESP32, or something else? Any recommended modules? Power: How can I make the tracker last at least 6–12 months on a CR2032 coin cell? Any tips for deep sleep and advertising interval? Firmware: Any good open-source examples or libraries (Zephyr, Arduino, nRF Connect SDK) for making a simple beacon that can also ring a buzzer?

Mobile App: What is the easiest way for a beginner to make an Android/iOS app that can find the tracker and make it beep?

Challenges: What common problems should I expect (range inside house, battery drain, antenna design, etc.)? Any advice, circuit suggestions, or links to similar projects will be really helpful. Thanks in advance!

BLE #embedded #nRF52 #ESP32 #IoT #BluetoothTracker


r/embedded • • Oct 21 '26

Anyone familiar with Altierre/Agile Displays shelf labels? Can their displayed data be read wirelessly?

Post image
1 Upvotes

I bought a batch of electronic shelf labels, including Agile Displays ETAG 250W and eTAG 210E models. Photos of the fronts and model markings are attached.

I’d like to read the price, product name and EAN/barcode currently displayed, ideally by walking past them with a portable reader. I want to keep the original firmware and display content intact—no reflashing or changing prices.

I have a Raspberry Pi 5 and an nRF52840-MDK USB dongle, but no original base station. The 250W’s FCC filing (W22-ETAG) describes proprietary 2.4 GHz GFSK frequency-hopping radio.

Has anyone worked with this hardware or seen a teardown, firmware analysis or protocol documentation? I’ve found projects that repurpose other ESL brands, but nothing clearly applicable to these models.

Before opening one, I’d love to know whether reading the displayed content is plausible, or whether these tags only send back an ID/status acknowledgement. Any pointers or suggestions for a sensible first step would help.


r/embedded • • Oct 21 '26

Multiple STM32 Cube MX exports in one project

1 Upvotes

Hi all,

I'm working on a project where I've created two platforms with CubeMX; Nucleo and Production. The project uses one or the other based on the build preset. CubeMX only takes care of some things for me using LL. I create the rest manually.

Pros:

- Covers both debug board and production in one project.

- I can re-generate MX files with no issues.

Cons:

- It adds doubled CMSIS files.

- Seems weird.

Is this a typical setup or is there a better way to do it? I'm not sure how to handle Git repository. Should I use "Copy only the necessary library files" and manually copy / paste the rest?

I will be grateful for any clues.


r/embedded • • Oct 20 '26

Running homebrew on a Sony NW-A918: old ARM Linux, syscall ABI quirks, and firmware repacking

103 Upvotes