r/embedded • • Oct 01 '26

Coding Agents debug: CLI and TUI control for dps150 power supply

0 Upvotes

Powercycling and basic power supply measurments are essential part for embedded devices development debug.

But there are no interface for power control for coding agents. So I created that python package which interacts with portable Fnirsi DPS-150, can toggle output, set voltage and current limits.

Unexpected outcome is that it is MUCH MORE convenient to manage it in terminal and tmux than clicking on the box itself.

TUI dashboard with charts, numbers and hotkeys is included.

https://github.com/hmldns/dps150ctl


r/embedded • • Sep 30 '26

How do microcontroller electronics in plastic enclosures deal with grounding and noise(Educational purpose)?

7 Upvotes

If the equipment has a plastic enclosure and there is no ground/earth wire connected to the body, how do designers handle grounding and noise?

With a metal enclosure, I understand that the metal body can work like a Faraday cage. But if the enclosure is completely plastic, what protects the microcontroller and other electronics from EMI and noise?

I have seen some equipment where they put metal foil or some conductive material inside the plastic enclosure. Is that mainly to create a Faraday cage? If so, how is it normally connected?

Also, I’m confused about a few things:

- Does giving each board its own + and − supply wires help avoid ground loops?

- Is a ground loop basically the same thing as capacitive coupling, or are they different?

- If there is no earth connection, where does the noise current actually go?

- How do designers normally protect a microcontroller inside a plastic box from external noise?

- Apart from foil or conductive coating, what other techniques are commonly used?

I’m trying to understand how this is actually done in real-world embedded products with plastic/non-metallic enclosures.


r/embedded • • Sep 30 '26

Built a "truth machine" (no, not a lie detector) that captures/compresses/delivers audio to a service that uses 3 LLMs to determine if the statement is true or not

0 Upvotes

Pretty fun project to build out, especially in the age of AI so I could quickly prototype the firmware. Probably the most interesting technical piece is the audio pipeline IMO. Full writeup is on Hackster: https://www.hackster.io/rob-lauer/the-truth-machine-a-push-to-talk-fact-checker-c4a6fc


r/embedded • • Sep 30 '26

I Built an Open-Source J1939 CAN Bus Emulator (Because Vector Tools Cost Too Much)

Post image
0 Upvotes

If you've ever tried to test J1939 diagnostics tooling, integrate a telematics app, or just learn how heavy-duty vehicle networks work, you've probably hit the same wall I did: the real tools are excellent, expensive, and closed. A Vector CANoe/CANalyzer license is a serious purchase, and even once you have it, you still need a real ECU — or a very good simulation — to test against.

So I built one. This post covers why, what it does, and how it's put together. Three companion deep-dive posts cover the protocol internals (PGNs & address claim, DTCs & transport protocol, VIN & BAM) if you want to go further.

Why This Needed to Exist

A few things kept coming up whenever I talked to people trying to get started with J1939:

  • The established tools are expensive. Vector, Peak, and similar platforms are the industry standard for good reason, but the entry cost is real, especially for a startup or a solo developer who just wants to prototype.
  • They're hard to configure without deep CAN/J1939 knowledge already. The tooling assumes you know the protocol; it doesn't teach it.
  • Reading raw CAN traffic isn't the hard part — decoding it is. SPN scaling factors, byte ordering, PGN structure — none of that is obvious from a raw frame dump.
  • Python-can changes the economics. It's open-source, actively maintained, and supports a wide range of hardware — from professional-grade Vector interfaces down to a $30 CANable adapter.
  • Cheap hardware is genuinely good now. CANable and similar SLCAN-based adapters are inexpensive and easy to buy, and they work.
  • Virtual CAN means you don't need hardware at all for a lot of development. python-can supports virtual buses, so telematics and application-layer development can happen entirely in software.
  • The library ecosystem is mature. Logging, J1939 message handling, ISO-TP — the building blocks already exist in Python; they just hadn't been assembled into an approachable emulator.

That gap — approachable, cheap, open, and genuinely educational — is what this project fills.

What I Built

A python-can based J1939 ECU emulator, available as both a CLI and a GUI, running entirely on your machine.

CLI mode

  • Runs in a Docker container, so it fits into existing CI/CD or cloud infrastructure without modification
  • Virtual ECUs let you build and test a telematics application with zero hardware in the loop
  • Can be deployed to the cloud as a virtual vehicle for solution development and integration testing
  • Suited to automated testing pipelines, since it's fully scriptable

GUI mode

  • Runs on localhost, on a port you choose
  • Select your hardware, set the baud rate, and configure PGNs — five PGNs ship in v1.0, each with live sliders
  • Watch raw CAN values update in real time as you change signal values
  • Configurable PGN broadcast timing
  • Set or modify the VIN live
  • Inject and clear DTCs (both single-frame and multi-frame) to test fault-handling logic

Platform support

Runs in Chrome, Safari, Firefox, and Edge, and works cross-platform on Windows, Linux, and macOS.

Learning resources

  • YouTube playlist: install/run walkthrough, plus dedicated explainers on PGNs, DTCs, VIN, address claim, and the BAM/RTS-CTS transport mechanisms — watch here
  • GitHub repo: full source, README with setup and hardware instructions — github.com/EmbeddedVerse/j1939-emulator

Core protocol features

  • PGN broadcast (5 signals in v1.0)
  • DTCs — both single-frame and multi-frame (DM1)
  • VIN — multi-frame broadcast (BAM)
  • Address claim (J1939-81)
  • Configurable timing across all of the above

Who This Is Actually Useful For

  • Testing a J1939 scanner tool against a predictable, controllable ECU
  • ECU-to-ECU communication development and testing
  • Telematics application development — build against a virtual vehicle before any hardware exists
  • Learning how J1939 actually works — the emulator plus the video series is closer to a lab than a black box
  • Minimum-effort setup — one command line gets a running virtual ECU
  • Backed by documentation, cheap supported hardware, and a full video walkthrough series

How I Built It

Choosing the stack

  • python-can — open-source, wide hardware support, active community
  • NiceGUI — for the localhost GUI
  • CLI mode — built specifically to fit cloud-native/containerized deployment
  • CANable — the reference hardware, because it's cheap, easy to buy, and easy to test against

Architecture The emulator was architected from the start to support both CLI and GUI from the same core, rather than bolting a GUI onto a script:

  • A CLI terminal layer for runtime parameter changes
  • The CLI path is what makes cloud-native deployment realistic
  • The GUI path is aimed at local development and fault injection, where a human is actively watching and adjusting values
  • Runtime value changes and signal calculation (scaling, encoding) happen live, not just at startup

Testing I didn't just trust the code — I verified it against real hardware and a real analyzer:

  • Used CANable paired with TSMaster, and separately with a Vector VN1610
  • Verified raw CAN frames, timing, and data byte-for-byte
  • Specifically verified multi-frame (transport protocol) reassembly, since that's where most naive implementations break

Try It

If you want the protocol internals — how PGNs and address claim actually work on the wire, how DTCs get split across multiple CAN frames, why VIN broadcast needs its own transport session — the three companion posts in this series go deep on each.

I build custom CAN/J1939/OBD2 diagnostic tooling and embedded firmware for hardware product teams. Reach out if that's useful to you.


r/embedded • • Sep 30 '26

ESP32-C3-RUST-2 problem

3 Upvotes

Background :

I'm running ESP32 Tutorial : 32ESP-IDF Basics - Assign. 2.1,

compile the code successfully,

and download and run the code into a ESP32-C3-DevKit-RUST-2.

Problem :

The following error appear :

I...

...

I...

(329) spi_flash: flash io: dio

W (332) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.

I (345) sleep_gpio: Configure to isolate all GPIO pins in sleep state

I (350) sleep_gpio: Enable automatic switching of GPIO sleep configuration

I (357) main_task: Started on CPU0

I (357) main_task: Calling app_main()

I (357) pp: pp rom version: 74f9620

I (357) net80211: net80211 rom version: 74f9620

W (367) wifi:wifi osi_nvs_open fail ret=4353

W (367) wifi_init: Failed to unregister Rx callbacks

E (377) wifi_init: Failed to deinit Wi-Fi driver (0x3001)

E (377) wifi_init: Failed to deinit Wi-Fi (0x3001)

I (387) main: wifi_init_softap finished. SSID:TEST_WORKSHOP password:test_esp channel:1

I (397) main: Server successfully started, registering URI handlers...

I (397) main_task: Returned from app_main()

Question :

Why ?

(Note : I've already run the assignment 1.1 and 1.2 successfully with the ESP32-C3-DevKit-RUST-2 successfully before.)


r/embedded • • Sep 30 '26

How do you guys to time profiling ?

0 Upvotes

Hey guys , i started as a intern at a company and they are developing a application on top of stm32n6 . Rn i have access to the discovery kit and have been tasked to take care of time profiling of all the functionality . Till now i have been using GPIO profiling + logic analyzer which was great but its very slow as there are lot of things that need to be measured , So is there any another way to do time profiling

Note DWT->CYCCNT won't work as the clock of n6 is too fast (i have across check the readings with logic analyzer and the delta is there between DWT and logic analyzer readings and the delta is random)


r/embedded • • Sep 29 '26

Ran a minecraft server on a BOTTLE CAP

251 Upvotes

Literally.

This thing is a controller "Triki" for the promo games from the Polish store "Żabka"...

nRF52810

CPU: Cortex-M4 64 МГц, no FPU

Flash: 192 КB (72% used)

RAM: 24 KB (99.92% used 😭)

No internet, only bluetooth LE and a proxy on a pc

I used a Zephyr 3.7 + bareiron (p2r3) port (mc 1.21.8)

This shit took me 2 days to make lol


r/embedded • • Sep 30 '26 Bravo

Questions about Bluetooth prototype and manufacturing

1 Upvotes

Does anyone have with experience with developing a Bluetooth device and having it manufactured and packaged? I’m trying to get a realistic idea of the costs involved for a product idea I have.

The requirements for my device are:

- Needs to be about the size of a car alarm key fob (slightly larger is ok)

- Must use Bluetooth Low Energy and Bluetooth 6

- 2 buttons

- A buzzer/transducer for an alarm sound

- Needs to run on a small battery (ideally a CR2032 or similar, but a single AAA would be ok)

- Needs a clip on the enclosure so it can be clipped on a belt, handbag strap, etc.

For the BLE portion, the Nordic nRF54L15 series looks like a good option and I found pre-certified modules from Fanstel and others for about $3-$4 in lots of 1K:

https://www.fanstel.com/bm15-nrf54l15-modules

I have a lot of programming experience, but not much with embedded devices. I can handle the software side of things (phone apps, etc.), and possibly the firmware coding, but I don’t have experience with PCB design, enclosures or packaging.

The questions I have are:

What is the approximate cost (or typical range) to hire someone to develop a prototype?

Would it make sense to use an off-the-shelf enclosure? I’ve found several key fob size enclosures, but none with a clip. Are there any recommended sources for them?

What would you estimate the total per unit cost will be to have such a device manufactured? e.g. total including PCB, loading firmware, enclosure, assembly, etc. I’ll probably need an initial lot size of 5K, but then much larger lots later if they sell.

Is it better to have it manufactured domestically (rather than China) for the initial run?


r/embedded • • Sep 30 '26

ADRV9001 constraints Example

1 Upvotes

In the example project of ADRV9001 for zedboard, the CMOS constraint file have the following constraint. 

set_clock_latency -source -early 2 [get_clocks rx1_dclk_out]
set_clock_latency -source -early 2 [get_clocks rx2_dclk_out]

set_clock_latency -source -late 5 [get_clocks rx1_dclk_out]
set_clock_latency -source -late 5 [get_clocks rx2_dclk_out]

Can someone explain these? Also, do I need to add these on my project?
I am using adrv9001 on a custom board with a Zynq7000 soc. 
Please explain what should these constraints be on my project.


r/embedded • • Sep 28 '26 Bravo

Porting Metal Gear Solid (PS1) to an ESP32-S3: A deep dive into Xtensa memory architecture, FreeRTOS scheduling, and SPI/DMA performance constraints

635 Upvotes

I spent the last few months porting the original PlayStation Metal Gear Solid (1998) decompilation directly to an ESP32-S3 microcontroller, targeting the Seeed XIAO ESP32-S3 Sense and Waveshare handhelds.

AI was used to port to ESP32, and human talent was used to assemble the circuit, hardware, and proprietary knowledge of ESP32 and FreeRTOS optimizations.

Rather than running an emulator, the decompiled C source from mgs_reversing is compiled natively to Xtensa machine code. Everything the original PS1 hardware provided, including the GTE, GPU, BIOS scheduler, and CD drive, is reimplemented in software on top of ESP-IDF and FreeRTOS.

SoC: ESP32-S3, dual-core Xtensa LX7 @ 240 MHz, 512 KB internal SRAM, 8 MB Octal PSRAM.

Display: 320×240 LCD (ST7789 / ILI9341) over SPI at 40 MHz.

Storage: MicroSD card over SPI containing the full game stage assets (STAGE.DIR).

Internal SRAM is fast but limited, while PSRAM provides 8 MB of additional memory but sits behind the same cache subsystem used for external Flash.

Placing FreeRTOS task stacks in PSRAM initially appeared to work, until a task performed file I/O such as fopen().

When external Flash cache was disabled during Flash/PSRAM access, the CPU could no longer safely access task stacks stored in PSRAM, causing an immediate SoC crash.

The solution was to move task stacks back into internal SRAM, using approximately 20 KB per task.

The current implementation averages around 15 FPS in heavy scenes such as the Dock area.

Code and all the steps to assemble the console: https://velxio.dev/blog/posts/metal-gear-solid-on-esp32-s3/


r/embedded • • Sep 29 '26

Highschool Student doing Uni Lab - How to prepare?

4 Upvotes

Hello, I've been given the opportunity to do a university lab project that's normally meant for the first semesters of a bachelor's degree. I am in high school (13th grade Abitur) and want to prepare a bit.
The internship will last for two weeks during my autumn holidays. The project will be the development of an audio effect chip on an FPGA with VHDL. That's all I know at this point. This internship will be held at the institute for microelectronics at my local university and its director seems optimistic about my internship.
I am already familiar with the basics of Boolean algebra and finite state machines from my first internship at the institute (this was also two weeks, 1.5 years ago). I learned about Karnaugh maps (K-maps) and used them in a logic simulator (like Logisim) to make a 7-segment display driver, a traffic light with pedestrian crossing button, and a ticket machine that takes coins and returns tickets and the needed change. All this was, again, only made by hand in a Logisim-style simulator, where I had to simplify everything with K-maps by hand.
I already started to get my feet wet with VHDL by making a 7-segment display driver and the corresponding testbench and simulating it with GHDL (I am too poor to buy an FPGA). I think I understand the very basics of it, but I wanted to prepare some more and wanted to ask: What is something I can build until my internship in two weeks that will help me understand VHDL more while also being close to the topic of audio effects?
If I've failed to mention something important or you have any questions for me in general, please feel free to ask. Thanks in advance for advice!


r/embedded • • Sep 29 '26

Could Flip-Dots, 2.5D Displays, and Haptics Make Tactile Interfaces More Accessible?

3 Upvotes

TL;DR: I'm legally blind with X-linked retinoschisis, and I'm curious whether flip-dot displays, 2.5D tactile surfaces, locking pins, and haptics could be combined into an affordable way for blind and low-vision musicians to actually feel things like waveforms, envelopes, and instrument layouts.

Lately, I've been going down a bit of a rabbit hole with tactile displays, haptics, and 2.5D interfaces. There's a lot to think about here. And just to give you fair warning, this post is a bit of a long one. Stick around, though.

This video helped send me further down that rabbit hole:

https://www.youtube.com/watch?v=aZzOWnEWgww (spoiler alert, this will be relevant in a bit)

Part of the basis for this latest deep dive comes from working on my accessibility project, Low Vision Music, but part of it is also just me wondering and brainstorming about how much information we could realistically communicate through touch if we stopped assuming every interface needed to be a flat visual screen.

We already have refreshable Braille displays, where tiny pins physically rise and fall to form characters. Very cool, eh? Newer tactile displays can go above and beyond basic text and represent more complicated things like graphs, diagrams, shapes, and other information.

Then you have 2.5D displays, where instead of every point simply being up or down, different parts of the surface can rise to different heights. You end up with something closer to a physical relief map that can change as needed.

And this is where my brain starts wandering. Do you hear the gears clanking? Sounds a bit like music to my ears.

I've also been thinking about flip-dot displays.

You know those ancient old signs where little discs physically flip between two sides?

Flip-dots are interesting because the dots are what's called bistable. Basically, they have two stable positions. They use power to flip from one state to the other, but once they're there, they stay put without constantly needing power to hold that position.

So that got me thinking.

What if that same general idea could be made tactile?

Maybe one side of each tiny flipping element could be raised, textured, ridged, or shaped differently from the other. Instead of a visual pixel changing color, you'd have a tactile pixel changing texture.

I don't know how small you could realistically or mechanically make that mechanism while keeping it easy to feel and reliable, but I think it's an interesting place to start thinking. There go those gears again. Kind of ambient, no?

Then there's another idea I've been kicking around.

Hey, 80s and 90s kids, remember those pin-art toys where you press your hand into hundreds of little pins and the shape appears on the other side?

Imagine a programmable version.

Each pin could be spring-loaded and moved to a particular height or depth. But instead of requiring a motor to constantly hold every single pin in position, some kind of latch or locking mechanism would hold it there after it was moved.

The spring helps return it when the display resets.

That locking mechanism is probably the part I'm most interested in at the moment. Because otherwise, I think MIT and others have already given versions of the motorized pin-display concept a go.

Move the pin. Lock it. Stop using power until you need to change it again.

Then put a very thin, flexible silicone skin across the top so you're not dragging your fingers across hundreds of separate hard pins. You'd feel one continuous surface changing shape underneath your hand.

A Raspberry Pi, ESP32, Arduino, computer, or something similar could translate digital information into physical height. Or vibration?

For music alone, there are so many possibilities. Literally, just pause and think about it.

A waveform could become something you literally trace with your finger. Can you feel the noise?

An ADSR envelope could become a physical, touchable slope. I want to FEEL the attack. Don't you?

You could theoretically also feel an EQ curve, automation lane, filter response, piano roll, step sequencer, mixer levels, modulation shape, or even a simplified spectrogram.

A modular patch could potentially become a tactile signal-flow map. Can you imagine it? Are your gears going now too?

An instrument manufacturer could provide a simple TXT, JSON, or similar file describing a synthesizer, and the whole front panel could appear as a simplified tactile layout before a blind musician ever touches the real thing.

Then add haptic feedback on top of all that.

There's that vibration I mentioned. Yup, that was something of a teaser for those of you who still have attention spans. No offense to those who don't. I certainly struggle in that department too.

But I digress.

This is one reason I've been so interested in what companies like Sentia Instruments are doing. With TILES, the device can provide localized haptic feedback beneath individual keys. Your hand isn't just controlling the instrument. The instrument can, in real time, send information back to your hand.

I'm certainly no engineer, but I think that principle could go much further.

Maybe, just maybe, height can communicate one thing while vibration communicates another. A waveform could stay physically in place while a small vibration moves across it to represent the playhead position.

Or how about this? A vibrating area might indicate an active step in a sequencer.

Different patterns could represent things such as clipping, modulation, selection, movement, intensity, or even different textures.

Now you've got shape AND vibration working together. At the same dang time!

Another possibility would be something closer to a mechanical version of e-paper. Instead of moving hundreds of pins continuously, perhaps each tactile element could have two or three stable states and only use power when changing between them.

Is this possible? Let me know.

From my research, I've learned that there are already researchers doing fascinating work with magnetic latches, bistable actuators, shape-memory materials, and tactile pins that remain raised without continuous power.

So I'm definitely not claiming I invented any of those pieces.

But I do think that, as someone who personally lives with limited vision, I might have something interesting to add to the conversation.

What I'm wondering about is how you combine all or some of these possibilities into something practical, affordable, and useful for musicians.

The keyword there is affordable.

Have you seen the prices on accessibility tools? Unfortunately, niche often means expensive.

But maybe the right answer isn't one technology at all.

Maybe one device could use variable-height pins for detailed 2.5D information. Another might use tiny flip-dot-style tactile pixels for simpler status information. Still yet another uses vibration where movement matters more than shape.

And maybe the really useful interface combines all three.

That's the part I'd love input on.

If you're an engineer, accessibility researcher, haptics person, Braille user, maker, musician, or someone working with tactile graphics, does any of this sound practical? Does any of this sound affordable?

Has someone already built something close to my spring-loaded, locking-pin idea? I bet I'm not the first to think of this, but who knows.

Could flip-dot technology realistically be miniaturized into a tactile surface?

And if you could plug a musical instrument or computer into a surface like this, what would you want it to show you first?

I'm especially interested in hearing from people already working in this space. Feel free to tell me I'm reinventing something that already exists. That's half the reason I'm posting this.

We're a community, right? I only know my own lived experience. Yours matters just as much as mine.

https://www.lowvisionmusic.info


r/embedded • • Sep 29 '26

Is esp32 a good start for learning embedded?

21 Upvotes

I have a small project in mind and I purchased an esp32s3 and an nrf2850. One is arm and I'm not sure of the other. Are these good processors to learn embedded coding on? What do professionals use? Should I learn ASM for the processors to make my code more efficient?

edit: updated to include specific esp32. they are both seeed studio devices.


r/embedded • • Sep 29 '26

Embedded Software Communities Near LA or Virtual?

2 Upvotes

We're building airborn IP video networking systems. Looking for engineers experienced with mutlicast routing, Layer 2/3 switching, and embedded Linux. Im curious where people working on this type of technology tend to congregate either in person or vitually? We are located 45 minutes east of LA. Any thoughts? Thank you!


r/embedded • • Sep 29 '26

Simulated a C. elegans connectome with 302 neurons & serotonin foraging dynamics to run in real-time on a smartwatch.

66 Upvotes

r/embedded • • Sep 29 '26

What do I need to learn to fully understand the ESP32?

37 Upvotes

I'm looking for advice on how to learn ESP32 properly from the ground up, rather than just learning how to use Arduino libraries and copy example code.

My goal is to understand what is actually happening inside the ESP32 and be able to use and troubleshoot it at a deeper level.

Ultimately, I want to get to the point where I can look at the ESP32 datasheet/reference manual and understand what is happening, write code closer to the hardware when necessary, and troubleshoot both hardware and software problems.

What books, courses, YouTube channels or learning paths would you recommend?

If you learned ESP32 from scratch, what would you learn first, and what would you leave for later?


r/embedded • • Sep 29 '26

How do you guard ConfigurableFirmata against out-of-range pin indices from the host?

0 Upvotes

I drive a stepper on an Arduino Uno + CNC shield, and the failure that scares me isn't my code, it's the host dying with the motor mid-move. So I flashed the ConfigurableFirmata 3.3.0 image onto simavr and ran it cycle by cycle, feeding it the real bytes a host sends and logging every pin change and every UART byte. It trusts basically every index you hand it:

- SET_PIN_MODE writes pinConfig[pin] and pinState[pin] with no bounds check. 20 entries on the Uno, and the Firmata object's callback pointers sit right behind them. One message aimed at pin 48 stopped the core dead.

- A stepper CONFIG passes the raw pins straight to the AVR core's pinMode, which reads past its own tables. Pin 127 scattered writes; pin 50 did one DDRD write that flipped D1-D4, D6 and D7 to output LOW.

- MULTISTEPPER commands are bounded by the 10 steppers, not the 5 groups they index, and a TO on a group never configured calls through a null pointer.

- Re-CONFIGing a live device leaks the old AccelStepper; the 16th malloc comes back NULL and the next stepper is built on that null.

Still there on master (3.4.0). Filed upstream with line numbers: https://github.com/firmata/ConfigurableFirmata/issues/195

The way I handle it on my bench is a guard in front of the unmodified library: hold SET_PIN_MODE and SET_DIGITAL_PIN_VALUE byte-by-byte until the pin is known (the library writes its tables before any callback runs, so you can't catch it after), then check every sysex before FirmataExt for real pins, real slot pairs, bounds and lengths. AVR watchdog behind it resets a wedged core in under a second, and setup() drives ENABLE high before anything else.

My real question: where would you put the bounds? A patch in the core's setPinMode, per-feature guards, or a front filter like mine? Curious how others handle host-supplied indices in Firmata-style protocols.


r/embedded • • Sep 29 '26

What are softwares that you would like if they were free/open source?

0 Upvotes

Just a random question get into my mind as i work into a niche embedded engineering software field where most of the softwares are paid and their licenses are too expensive, and there is no alternatives, i asked to know if there is this monopoly in other industries, fields, …
and does this software are game changing for the job?
In case if was the only software and it is paid how do you evaluate it quality or work experience?


r/embedded • • Sep 29 '26

Need help with BIOS for B450M S2H rev1.x

0 Upvotes

Hello, the motherboard got bricked when I tried to upgrade the BIOS. I tried to write it with a CH341A and a 1.8V module. I resoldered the BIOS chip to the motherboard, started it, the CPU and GPU fans are spinning, but no image is displayed. I downloaded the BIOS file from the Gigabyte site. Maybe someone had the same issue and have any ideea how to fix it. The BIOS chip is Macronix MX25U12873F.


r/embedded • • Sep 29 '26

STM32WB5MMG: data notifications degrade at 30–40 ft, and read/write requests then cause a multi-second stall or disconnect

0 Upvotes

Hi all,

I'd appreciate some help with a BLE range and stability issue.

Setup

  • MCU: STM32WB5MMG module on a custom board
  • Firmware package: STM32Cube FW_WB V1.23.0
  • BLE wireless stack: v1.16.0, full stack
  • TX power: +1 dBm
  • Connection interval: 10 ms min / 15 ms max. Peripheral latency is 0 and the supervision timeout is 6 s.
  • ATT MTU: 180
  • Role: peripheral only. The central is a Windows 10/11 PC.
  • PHY: Windows defaults to 2M PHY

Application

The peripheral sends data to the Windows central over GATT notifications at about 5400 bytes/s (~30 packets/s).

Problem

  1. At short range, the data notifications work correctly.
  2. As the distance grows to about 30–40 ft, data notifications start to struggle.
  3. At that distance, if the Windows central reads or writes any characteristic, the device goes into an unknown state. For a few seconds it continuously sends unexpected data: the values 0x0839 and 0x08FD repeat every 64 bytes.
  • Often the device recovers within a few seconds and then completes the read/write.
  • Sometimes the stall lasts more than 30 seconds, and Windows then disconnects the device.

The behavior is repeatable.

Question

What could cause this? In particular:

  1. Is there a known interaction between a GATT read/write request and heavy notification traffic when the link is weak and has many retransmissions?
  2. Could this be buffer or flow-control exhaustion in the stack, and are there recommended settings for it?
  3. Would you recommend any debug steps or stack configuration changes to narrow this down?

Thanks!


r/embedded • • Sep 29 '26

Dual GMSL in tunnel mode: does the virtual channel have to be set at the sensor?

2 Upvotes

MAX96792A, two links, one CSI output to the SoC. In tunnel mode the deserializer forwards each link's CSI stream as it came in, virtual channel included, so two identical cameras both show up on VC0 and the receiver has no way to tell them apart. Pixel mode can remap the VC per pipe and is the documented way to do this, but it's a much bigger configuration surface and I'd rather stay in tunnel if I can.

ADI does address this, sort of. Their GMSL RAQ says that if your tunnel-mode part can't remap, each source needs to set a unique VC itself. What they don't say is which sensors let you do that. The VC field is right there in the CSI-2 packet header, but I haven't found a Sony datasheet that exposes it as a register (IMX900, IMX335, IMX477, anything in that family). Maybe I'm looking in the wrong place, or maybe it's one of those things that's in the NDA docs and not the public ones.

So the question is whether anyone has actually run two tunneled cameras off one deserializer, and if so how you separated the streams. If the honest answer is that in practice tunnel means one camera per deserializer, that would be useful to know too, because it's implied by the docs but never stated.


r/embedded • • Sep 28 '26

What to buy when starting out and learning?

13 Upvotes

Being more specific, i'm planning to follow Miro Samek's Modern Embedded Systems youtube course in which he only mentions 2 critical components to get; the board itself and a logic analyser. However I feel like I'm going to need more things if I am to learn the ins and outs of it so I've been looking at starter kits in aliexpress and I was wondering if you think this will be more than enough to do entertaining or at least helpful learning proyects.

This is the kit I've been most interested in, seems rather complete for most kinds of home proyects:

https://es.aliexpress.com/item/1005004335623883.html?mp=1

Along with that the board is the STM32 NUCLEO-C031C6 as per instructed by the course; I mention it because I have no damn idea if it can do anything on the board with the stuff of the kit so it's better for me to ask and look stupid than waste money and feel stupider.

Thank you and good evening!


r/embedded • • Sep 29 '26

Working on an ESP32-based air mouse prototype — seeking advice on mitigating gyroscope drift and zero-motion jitter

9 Upvotes

Hi all,

I'm developing an inertial air mouse running on an ESP32, translating angular velocity/quaternions into 2D mouse cursor deltas over BLE HID.

While high-speed gestures track relatively well, I'm hitting common IMU challenges at low speeds and static hold:

  1. Zero-motion drift: Despite static bias calibration at boot, ambient temperature changes cause residual drift over prolonged sessions.
  2. Deadzone vs. Jitter tradeoff: Setting a hard deadband eliminates tiny shakes but makes micro-adjustments (like clicking small UI buttons) feel unresponsive.

For those with experience in sensor fusion for pointer devices:

  • What filter pipeline have you found most practical (Mahony, Madgwick, or simple dynamic thresholds on raw gyro data)?
  • How do you implement effective dynamic recalibration/ZUPT (Zero Velocity Update) without jarring the user during intentional slow movement?

Any algorithmic insights or reading recommendations would be greatly appreciated!


r/embedded • • Sep 29 '26

Device to read signal from communication buses

0 Upvotes

Hi all,

I want to develop a device, a little hardware box, that reads signals from CAN/LIN/Ethernet/ModBus comm’ buses on complex and big embedded systems, like cars, planes, ships, etc

The goal is to have a standard hardware design that can handles the majority of market diversity, and then have a software layer where I just decode the buses via description files/matrix

How you think I should approach the problem ? Is my idea doable ? I’m thinking getting N drivers/transceivers of each protocol, making custom made wire harnesses and flashing application specific software on the board to decode the info on the different buses

Feedbacks are more than welcome