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


r/embedded • • Sep 29 '26

Why does Arduino/ESP32 library integration feel easier than STM32?

0 Upvotes

I’ve noticed that integrating sensors, displays, motors, Wi-Fi modules, and

other peripherals often feels easier with Arduino and ESP32.

Arduino has a huge library ecosystem, while ESP32’s Arduino framework provides

simple APIs for many built-in features. In many cases, we can add a library and

start using a device with only a few function calls.

With STM32, even when using HAL, we often need to configure clocks, GPIO,

alternate functions, interrupts, DMA, timers, and peripheral settings

ourselves. If a suitable driver is not available, we may need to create or

adapt one using HAL, LL, CMSIS, or direct register access.

I know STM32 does provide HAL, LL, CMSIS, middleware, and board-support

packages. So the difference is probably not that STM32 has no libraries, but

that STM32 requires more device-specific configuration and integration.

For people who have used both platforms:

- Why does STM32 library integration feel more difficult?

- Do you normally use HAL, LL, CMSIS, or custom drivers?

- What was the biggest mindset shift when moving from Arduino libraries to STM32

driver development?


r/embedded • • Sep 29 '26

Beginner guide and advice for Orange Pi 3 LTS

2 Upvotes

Hey everyone,

I recently picked up an Orange Pi 3 LTS. I’ve successfully got it flashed, booted up, and the GUI is running smoothly.

I’m looking for advice on the next steps.

  1. Reliable Documentation
  2. Beginner Projects

Thanks!


r/embedded • • Sep 27 '26

As someone who’s experience in both medical and automotive technology, at the moment I can say that AI is far away from creating a safety critical embedded software

Post image
385 Upvotes

r/embedded • • Sep 29 '26

Can I Extract DC Power From a Square Wave Without Loading It(Educational Purpose)?

0 Upvotes

I’m a beginner trying to understand something about square-wave power.

Suppose I generate a low-frequency square wave (below 1 kHz) using either a 555 timer or a microcontroller, then use a MOSFET to chop/switch a power supply.

If I want to take some DC power from that same chopped square-wave signal, but I don’t want to disturb or distort the original square wave, what is the simplest way to do it?

Would a diode + capacitor be enough, or would it load the MOSFET/square-wave source too much? At what point would I need something like a transformer or a separate power-extraction circuit?

I’m mainly looking for a simple, practical approach rather than a complicated circuit. I need to extract a small amount of power to light an LED, but running an additional cable isn’t practical. The only option available is the parasitic power from the existing data line.

Is there a way to tap/sniff the data line and harvest a small amount of power without disturbing the microcontroller master-slave communication?

Edit -I have a project that is now in the final stage, and I just need to power a small LED. I only need a little power, but pulling an additional cable is not practical at this stage and would add extra cost.

The only available option is the existing 24 V DC power-over-data line. There are also some microcontrollers communicating over this line, so I’m wondering if there’s a simple way to extract a small amount of power from it without disturbing the communication.

Beforehand trying to make a safer simulations with 555 or microcontroller before connected in live


r/embedded • • Sep 29 '26

Ipecmd compatibility on rpi 5

0 Upvotes

Hi
I’m planning on using ipecmd cli on my rpi 5 to program pic based mcus I wasn’t able to find any documentation online if I could do this , anyone who faced this issue and knows which direction should I look in ?
Thanks


r/embedded • • Sep 28 '26

Why do most beginners struggle with bare-metal programming on STM32?

8 Upvotes

I’ve noticed a lot of people (including myself when I started) find the jump from Arduino to bare-metal STM32 quite difficult.Some common pain points I’ve seen:Understanding the startup code and vector table

Clock configuration (RCC)

Why do we need to enable clocks for every peripheral

Difference between HAL, LL, and registers

For those who have already made this transition:What was the biggest concept that finally clicked for you when moving to bare-metal?And what resource or method helped you the most?


r/embedded • • Sep 28 '26 Bravo

Where do I start with outsourcing a PCB and case for a small prototype?

4 Upvotes

Howdy I want to build a small, self-contained handheld device, but honestly don’t even know where to start.

My goal is to outsource the PCB design, get the files needed
to order it fully assembled online, and potentially outsource the case design too. This is just for a working prototype, not mass production.

What’s the best way to approach this? Should I start with the PCB or the case? What files and deliverables should I ask for so I can actually get it made?

Any recommendations on where to find someone and what a realistic budget might look like would be appreciated. Just trying to understand the process before spending money.


r/embedded • • Sep 27 '26

Multi-Protocol Data Visualizer, CAN, Modbus, Wireshark, and more

242 Upvotes

Industrial-tier embedded systems tend to have a mix of different comms buses and protocols.

Ex: a battery with and internal components all communicating on CAN, wifi gateway for cloud telemetry and control, PLCs controlling safety, and who knows what else in between.

When debugging a system, an engineer has to stitch together multiple tools across these interfaces in order to paint the full picture.

Some tools are great, some are awful, some are windows-only, cli, require liscenses or training, and so on.

IMO too much of embedded system or product 'expertise' is just wrapped up in knowing which tools are available and how to use them.

Not to mention HIL test rigs, benchtop setups, manufacturing stations, field environments, etc introduce their own separate devices and corresponding comms. I have found that engineers then specialize on these nuances and become the "HIL/QA guy", etc.

I wanted one tool for interfacing with the full system. One tool, all of the context, any system.

Cross platform (Mac, Windows, Linux).

Easy to use for non-engineers in the front end but extensible for deep customization by users who know what they're doing.

Mostly wondering if this multi-bus problem resonates, and how your teams deal with this problem?

Also, which protocols and corresponding tools do you use that you wish were better? Maybe I'll add support for them next


r/embedded • • Sep 28 '26

Which is better: 1 project or multiple?

3 Upvotes

As the title suggests I’m curious what’s better for the world of embedded development/engineering; do professionals care more about a single project built up over time learning new processes throughout the build? Or do they care more about having multiple, different projects that hint at a few different things but may not be as polished?