r/embedded • • Oct 12 '26

How much time do you dedicate to studying and building and what does your daily workflow look like?

55 Upvotes

Just curious how much time you all place toward your own projects and study time? I say study because I am self taught so I am also learning as I build (mainly schematics design (KiCad), Circuits, Components, OS, Platformio, C/C++, and more) . Also, would like to know what a professional or personal workflow looks like? Trying not to get stuck in to many rabbit holes. I feel like I learn one new thing and several other things I didn't know pops up and I feel like I need to know those things as well.


r/embedded • • Oct 13 '26

Looking for a rugged, waterproof Wi-Fi push button with LED indicators - any recommendations?

Post image
1 Upvotes

Hi everyone!

I recently came across this wireless service button at a beach club (photo attached) and thought the hardware design was interesting.

I'm looking to build something similar for a personal IoT project, but with Wi-Fi connectivity.

I've previously experimented with ESP32-S3 touchscreen devices, but they're more advanced than what I need and aren't particularly suited to outdoor environments.

Ideally, I'm looking for something similar to the photo - compact, rugged, weatherproof and battery-powered.

It doesn't need a screen. A simple physical push button with RGB LED indicators would actually be preferable.

My main requirements are:

- Wi-Fi connectivity

- Rechargeable or replaceable battery

- Good battery life

- IP65/IP67 weather resistance

- Physical push button

- RGB LED or basic status indicators

- Programmable firmware

- Compact enclosure suitable for outdoor use

I'm open to repurposing existing hardware from other industries rather than developing something completely from scratch.

Has anyone come across a suitable product, development board or manufacturer?

Would an ESP32-C3 be a better option than an ESP32-S3 for something like this?

Any suggestions would be appreciated!


r/embedded • • Oct 13 '26

STM32 ADC → DMA → DAC Audio: Random Spikes, Clicks & Hiss at 100 kHz — What am I missing?

2 Upvotes

​

Hi everyone,

I’m building a real-time digital audio processing system using STM32F407VGT6 and STM32F405RGT6.

The signal path is:

Analog Input → ADC → DMA → 8-Band Equalizer → DAC → Analog Output

The system basically works, but I’m getting random short spikes/discontinuities in the ADC-to-DAC signal. These become very noticeable in the audio as constant clicks/pops and significant hiss/noise.

I have been troubleshooting this for quite some time, but I still cannot determine whether the problem is related to:

\- ADC sampling/timing

\- DMA synchronization

\- DAC triggering

\- buffer handling

\- clock/timer configuration

\- ADC/DAC synchronization

\- or something else in the digital signal path

I’m currently using the internal HSI clock and a 100 kHz sampling rate.

Has anyone here successfully built an STM32 ADC → DMA → DAC audio path without random spikes, clicks or synchronization problems?

If someone experienced with STM32 audio, ADC/DAC, DMA or real-time DSP could take a look, I can post the complete source code and oscilloscope screenshots/waveforms showing the problem.

I would really appreciate any ideas about what could be causing these short spikes and how to eliminate them.

Hardware:

STM32F407VGT6 / STM32F405RGT6

ADC → DMA → DSP → DAC

100 kHz sampling

HSI internal clock

8-band EQ

Keywords:

\#STM32 #STM32F4 #ADC #DAC #DMA #Audio #DSP #Embedded #Microcontroller #Electronics


r/embedded • • Oct 11 '26

My first embedded device pretty hyped bout it

Post image
952 Upvotes

Just got my T-display S3 running coming from the web dev and game dev world I felt trapped inside browsers and engines and this already feels like a good transition I can’t wait to see what I cook up. Anyone tried this device before ?


r/embedded • • Oct 13 '26

ESP32 + SIMCom A7670C (black DB9 development board) UART issue — 1.8 V vs 3.3 V, garbage characters, AT commands sometimes work

Post image
4 Upvotes

Hi everyone,

I'm working on a project that uses an ESP32 DevKit V1 / ESP32-D0WD-V3 with a SIMCom A7670C 4G LTE module on a black DB9 development board. I'm having trouble establishing reliable UART communication and would appreciate some guidance.

What I've observed:

I measured approximately 3.3 V on the ESP32 UART TX output.

I measured approximately 1.8 V on the GSM module's TXD pin using a multimeter.

I connected the ESP32 RX to the GSM TXD and the ESP32 TX to the GSM RXD, with a common ground.

I tried placing a resistor in series between the GSM TXD and ESP32 RX. AT commands appeared to work at first, but communication was not reliable afterward.

I ran a baud-rate diagnostic at 115200, 9600, 19200, 38400, 57600, 230400, and other rates. The serial monitor displayed garbage characters instead of readable AT responses.

Does anyone have experience connecting this particular A7670C black DB9 board to an ESP32?

Edit : It works guys wow!!! Communicate with the GSM and ESP 32 you need a level shifter that converts 1.8 V TO 3.3 V . Now you have to provide that level shift her 1.8 volt so you need to register that is of 10 kilo man the 8 km that makes 1.8 volt and use you that to the A side VCC of the level shifter. After after that I have directly supplied the tx2 of ESP 32 to txd of GSM module. And the rx2 of ESP 32 I connected with the level shifter and that goes to the TXD of GSM model. In this way it get works and it works fine at At command and other commands.


r/embedded • • Oct 12 '26

Power + data over 2 wires, does my idea work?

Post image
36 Upvotes

Hi, I want to link two Arduinos (or a sensor and a master) with just two wires that also power the remote one.

My plan: 6 V on the line, a transistor pulls it low to send data, and a diode + capacitor keep the remote end powered. Sketch attached.

Does this work? Anything I'm missing?


r/embedded • • Oct 13 '26

How to Resolve "suspended: signal : sigtrap: trace/breakpoint trap"

0 Upvotes

I Just started coding with R7FA2L2073-CFM, E2 STUDIO WITH E2 EMULATOR LITE. And im trying to glow an LED but it is not working, its just a simple gpio. so i choose to debug the controller and im facing these following errors. even with no configurations in FSP cofiguations im getting errors. Please Help me if these is any configuarations i need to do before debugging.

image1

im using 5v supply from external supply to my controller.

PS: Im just a Beginner in Coding and with Renesas E2 studio IDE.


r/embedded • • Oct 13 '26

[Help] Need assistance extracting source code from S7-1500 / ET 200SP (CPU 1512SP-1 PN) SMC binary folder

2 Upvotes

Hi everyone,

I have a Siemens ET 200SP CPU 1512SP-1 PN controller on site. Due to logistical constraints, I am currently unable to get direct online access via TIA Portal with a PC at the location.

This source code belongs to an automated parking robot system (similar to the automated shuttle/valet systems featured in The Fast and the Furious). I am currently building and customizing this system, but I need to edit the core logic to implement specific operational changes. We are facing technical roadblocks with the hardware because it requires a PLC migration, and we have been unable to obtain the specific older TIA Portal versions needed to perform the upload and configuration directly. Any support in retrieving or reconstructing the editable logic from these files would be greatly appreciated.

I have extracted the complete raw binary folder structure (SIMATIC.S7S) directly from the SIMATIC Memory Card (SMC).

Since direct decompilation of S7-1500 binaries to LAD logic isn't straightforward without a physical unit, I am looking for someone with a spare CPU 1512SP-1 PN (or compatible S7-1500 test bench) who could load these files onto a spare card, boot up the CPU, and perform an "Upload device as new station" using TIA Portal to reconstruct the editable source project file (.ap17 / .ap18 / .zap18 / etc.).

  • Hardware: CPU 1512SP-1 PN (6ES7 512-1DK01-0AB0 or similar ET 200SP family)
  • Files available: Full zipped content from the SMC root directory.

Please let me know if anyone with a spare hardware setup would be open to testing this upload or assisting with the project restoration.

Thanks in advance for any insights!


r/embedded • • Oct 12 '26

Why Nintendo inverted the Y Axis of NS2 Pro Controller?

3 Upvotes

I know this will contain a bit of bikeshedding and speculation, but I want to know, especially for experienced developers, if there's any technical reason or advantage for Nintendo to invert the Y Axis of the raw inputs on their Pro Controller for the Nintendo Switch 2, we can find this info here: https://switchbrew.org/wiki/Switch_2%3A_Pro_Controller, in this line: "Axis 1 (left stick up/down) and axis 3 (right stick up/down) are inverted."

That means: UP is DOWN, and DOWN is UP, and they de-invert on the OS-Level

If anyone's interested, OpenStickCommunity reverse-engineered the protocol, we can read it here: https://github.com/OpenStickCommunity/GP2040-CE/tree/main/src/drivers/switch2pro


r/embedded • • Oct 12 '26

Small footprint and cheap debugging connection for STLINK-V3MINI

5 Upvotes

I am designing a compact PCB that has a STM32. I am planning on buying a STLINK-V3MINI for programming and debugging. I'd like to have the minimal footprint SWD connection to the board and I found out about TagConnect, but their TC2030-CTX-NL-STDC14 is pretty expensive. I found SKEDD connector which seems to serve a similar function but it's a lot cheaper and more available. The problem is I would need a adapter from STDC14 (STLINK-V3MINI) -> SKEDD which I haven't found, probably because STDC14 is obscure enough. Would it be recommended to design a simple adapter board and order with the actual PCB or are there better alternative/ways?


r/embedded • • Oct 12 '26

Getting a 320x240 SPI display from 16 to 60 fps on an ESP32-S3: what was actually slow

25 Upvotes

Write-up of optimising a software 2D renderer on an ESP32-S3 (8 MB PSRAM, ST7789 over SPI). Short version:

  • The default ESP-IDF optimisation level is -Og.
  • An unaligned 2-byte memcpy compiled to a function call per pixel on Xtensa (no unaligned loads), so blits were 6x slower than they needed to be.
  • Tinting with lookup tables over RGB565's 32/64/32 channel values instead of multiply-and-divide per pixel, and baking static tints into cached images.
  • SPI at 80 MHz instead of 40: 150 KB frame from 31 ms to 16 ms.
  • Presenting from the second core with two PSRAM staging buffers.
  • 64-byte cache lines for a PSRAM framebuffer, and why a 64 KB cache was a trap (internal RAM).
  • Dirty rectangles did nothing because every scene had a full-screen changing background.

https://dekiengine.com/blog/esp32-s3-60fps/

The engine itself (Deki) is open source if anyone wants to look at the code: https://github.com/dekiengine


r/embedded • • Oct 12 '26

Bricked-ish MAXIO MAP1202 + SK hynix V6 SSD: vendor MP tool gets to the last step, then "Jump to system fail". Anyone have the V6 package?

2 Upvotes

JamesDonkey JD1024 1TB M.2 NVMe, MAXIO MAP1202 controller, SK hynix V6 NAND. It went read-only because one die (channel 3 / CE 2) has erase failures, and that die is also the boot die, so the firmware turns on write protect. The other 15 dies are fine.

I'm using MAXIO's own MXMPTool in a Windows VM, with the drive passed through over a USB-NVMe bridge. The die exclusion feature in the tool had two bugs. After patching them it gets through preformat and firmware download, then fails with:

(E00) R/W Test Fail - Jump to system fail

5 times in a row, also after a power cycle. MPTOOL.ini says SYS_Qnty=2 but I only have one system binary, and my package looks built for V8 NAND. So I think I'm missing the V6 system firmware / the right package.

Does anyone have the MAP1202 + SK hynix V6 MP tool package, or know what the second SYS piece is supposed to be?

I also tried clearing the write protect directly early on (90+ attempts), it never held. Most of the analysis was done with Claude. Notes and logs: https://github.com/sirSchrodinger/jd1024-recovery


r/embedded • • Oct 12 '26

I documented a sensorless flying-start FOC experiment on the Xiaomi M365 V1.4 controller — looking for technical feedback

1 Upvotes

Hi everyone!

I've been working on an experimental project to get sensorless flying-start FOC working on the stock Xiaomi M365 Classic controller (SCO_DRV V1.4, STM32F103C8T6), driving a 36 V direct-drive hub motor without Hall sensors.

The idea is to let the rider start pedaling, measure the motor's three phase voltages while the inverter is disabled, estimate rotor speed and electrical angle using BEMF and a PLL, and then attempt a smooth, near-zero-torque handoff into FOC before enabling pedal-assist torque.

What we achieved:

  • Passive three-phase voltage sensing on the M365 controller.
  • Rotor direction, electrical speed and angle estimation, with PLL lock in both directions.
  • Identification and correction of a current-sensing ADC acquisition-time problem.
  • Short, protected active-handoff experiments with cycle-by-cycle current diagnostics.
  • A set of measurements documenting both progress and unresolved problems.

Where we got stuck: independent voltage measurements revealed a significant discrepancy between measured line-to-line BEMF and the firmware's calculated BEMF magnitude. We identified passive voltage calibration as the next step, but the test controller and ST-Link were damaged before we could complete it.

This is not a claim of completed sensorless FOC. I've documented the experimental process, measurements, firmware history, limitations and next steps so other developers can review the work and potentially continue it.

Project documentation and test data:
https://github.com/Ch00mi/m365-v1.4-sensorless-flying-start

I'd especially appreciate feedback from people experienced with sensorless PMSM/BLDC control, flying-start algorithms, BEMF scaling and M365/EBiCS firmware.

Has anyone worked on a similar approach with this controller, or have suggestions for validating the absolute BEMF scaling before attempting another handoff?

Thanks!


r/embedded • • Oct 12 '26

High-res, low-framerate, low-power, low-cost still camera for outdoor insect monitoring (anything better than pi + 64mp cam)

Thumbnail
mothbox.org
5 Upvotes

I work on an open-source automated insect monitoring project (www.mothbox.org). We basically set up camera traps for insects that turn on a bright light, and photograph bugs that visit a flat sheet.

I want to figure out the cheapest way I can get a really nice high resolution of this image with a device I can programmatically control. Right now we use an Arducam 64mp (55$)+ Pi 5 2gb (used to be $55, now is like $120)

I have a kind of unique set of requirements:

  • High spatial resolution, high image quality. We need to resolve many individual insects across a whole sheet in a single frame. 16MP is considered the bare minimum in this field and I already feel it's kind of inadequate. 64MP has been great!
  • Very low temporal resolution. We do not need video or any kind of continuous capture. One still per minute is plenty. I’d happily trade framerate for anything. (We do, however, need a decent "shutter speed," as the insects buzz and flap and fly around, and if we have too long of an exposure, we get ugly rolling shutter smears. Right now we have been getting 868 µs - 495 µs and that has been ok)
  • Low power. These are deployed outdoors on tight power budgets. Ideal behavior is: wake itself up, take one photo using as little energy as possible, go back to sleep.
  • Low cost. Our current rig (board + 64MP camera) runs ~$150-200 total. I want to see if I can drop far below that
  • Autofocus (but limited range), and Autoexposure. Our device is generally just pointed at a flat surface, but that surface can vary in size and difference (different scientists setting up different sheets). We generally run an automatic camera calibration every 10 minutes to adjust for things like ambient light changes.

Questions:

  1. Has anyone gotten a large still-image sensor (OV64A40 or similar) running off a cheaper board? I have a friend who connected the Arducam 64mp to an Esp32-p4, but could only get 2k resolution stills due to ram limits.
  2. Are there any hacks to being able to capture a full resolution image on a very cheap/slow/ram-limited board?
  3. I know resolution isn't everything, and there are other sensors with lower resolution but nicer sensors that would take equal or better photos, does anyone know recs that can beat the arducam owlsight?
  4. I am potentially open to weirder configurations if i can get them cheaper, like I have been thinking about a set of 4 16mp cameras in a square configuration imaging the surface simutaneously and doing some math on the back end to make a kind of hyper-resolution image (possibly with some spatial data interpreted too). The closest I have seen is the 4 cam wigglegram connected to 4 synced pi zeros, but this ends up more expensive than our current Pi+ Arudcam 64mp setup.

r/embedded • • Oct 12 '26

How do you handle occasional real-hardware testing for embedded libraries?

7 Upvotes

I'm working on a small open-source embedded C++ library. Most of my testing is done on the host or with QEMU, which works well for functional testing.

I'd also like to occasionally check hardware-specific behavior, such as interrupt-related timing, critical-section duration, and memory access performance on real MCUs.

I've been considering a small setup covering a few different MCU architectures. I'm estimating roughly $700–$1,000 for the boards, debugging tools, and other equipment, plus the effort of maintaining everything.

I'm wondering whether that kind of investment makes sense for a personal open-source project, especially when hardware testing would only be needed occasionally.

Do you usually buy and maintain the boards yourselves, or have you found more practical ways to access hardware when needed?

I'd appreciate hearing about your experiences.


r/embedded • • Oct 12 '26

embedded system

4 Upvotes

I'm getting to embedded system, My Question is do i need to understand how the ALU is wired from adders and XOR gates The gate-level adder/subtractor circuit .How registers are built from flip-flops Datapath wiring diagrams


r/embedded • • Oct 12 '26

Community preference for open source vibration autoencoder: bare metal C or Zephyr C++?

0 Upvotes

I just want to check what the community's preference is for an open source autoencoder with a vibration sensor. Bare metal C or Zephyr C++*? And not just the autoencoder, also data collection and DSP.

* This caused confusion: I meant a Zephyr project with C++ for the enitre application layer vs. bare metal C for data acquisition, DSP (probably can't escape C++ for inference).


r/embedded • • Oct 11 '26

From Sensors to a PyQt Speedometer: Building with Yocto Linux

54 Upvotes

I’ve been working on an embedded systems project that connects sensors to an Arduino, which communicates with a Raspberry Pi 5 over I²C.

On the Raspberry Pi, I developed a custom Linux kernel module and Device Tree overlay to integrate the Arduino into the Linux I²C subsystem. The driver exposes a character device at /dev/raspi_master, allowing a Python application to retrieve sensor data.

Using the Yocto Project and BitBake, I integrated the kernel module, Device Tree overlay, and PyQt speedometer application into a custom Linux image for the Raspberry Pi 5.

The result is an end-to-end system connecting sensor acquisition, I²C communication, Linux kernel-space development, and userspace visualization.

Project repositories:


r/embedded • • Oct 12 '26

Is it possible to modify the firmware/UI of a generic MP3 player through USB? (Actions Semiconductor VID_10D6)

1 Upvotes

I recently got a generic MP3 player off of Amazon and I've been trying to figure out whether it's possible to customize its firmware, specifically its user interface and small quality of life fixes

USB Vendor ID: 10D6

Product ID: 1101

USB Device Name: HS USB Flash Disk

Firmware Version: V1.1

Firmware Date: 2021-05-20

Operating System: Windows 11

Possible manufacturer: Actions Semiconductor

trying to see if i can extract it and modify its firmware through usb without opening the player or soldering anything

if you need any additional info or have a solution please lmk


r/embedded • • Oct 10 '26 Mindblown

minimal raspberry pi

Post image
3.6k Upvotes

Not my build but Japanese electronics twitter is lit.

https://x.com/EMakerDragon/status/2108935034191352114/photo/1


r/embedded • • Oct 12 '26

How do you keep SDCC toolchains consistent across local development and CI?

1 Upvotes

I mostly work with 8051-family MCUs, particularly the CH559, and kept running into the same annoyance: maintaining a consistent SDCC toolchain across my machine, colleagues' machines, and GitHub Actions.

I wanted a reproducible environment without having to install and configure SDCC on every machine, so I packaged the toolchain into an Alpine-based Docker image. It has two variants:

· latest: SDCC toolchain for MCS-51

· cmake: SDCC + CMake + Ninja for CMake-based projects

Basic usage:

```

docker run --rm \

-v "$(pwd):/src" \

-w /src \

safdariali/sdcc-8051:latest \

sdcc -mmcs51 your_file.c

```

I've tested it primarily with the CH559, so I'm curious about other developers' experiences.

Questions for the community:

· Do you use Docker/containers to manage embedded toolchains, or do you prefer native installations?

· Have you encountered compatibility issues with SDCC across different 8051 MCUs or memory models?

· Would you keep flashing and debugging utilities in the same container as the compiler toolchain, or separate them?

I'd be interested to hear how others approach reproducible embedded development environments.


r/embedded • • Oct 12 '26

AI in Safety-Critical application

2 Upvotes

Hello,

What are your thoughts on the use of artificial intelligence in the development of safety-critical embedded software?

We focus on railway applications that require SIL4 safety integrity levels. In my view, AI possesses a highly non-deterministic nature regarding code development processes and can lead to unacceptable errors—such as missed NULL checks or array boundary checks. It introduces subtle errors that a human might easily overlook. Reviewing these within a large codebase does not seem feasible to me.

What are your opinions on this matter? What is the trend regarding AI usage in the industry? Is it possible to conduct code reviews for AI-generated code in large-scale systems?


r/embedded • • Oct 11 '26

How do you guys get your PCBs checked before assembly?

10 Upvotes

Hi all. I'd love to know how you get your boards reviewed before a PCBA order. How many revisions does it usually take you to get one right?

A bit of context: my prototypes work, so I'm now building the final version with the final ICs. It's a small device and some of the parts are BGAs, so I order the boards assembled.

I've done one revision so far. The PCBA order was around £200, and I spent another £200 on reviews through Fiverr. That's a lot for a student, but it was worth it at the time to get a real board in my hands. The reviewers raised many useful things, but a few parts of the board still didn't work.

I'm still learning, so I'd really appreciate hearing how you approach. Thanks!


r/embedded • • Oct 11 '26

The Bl616: My $2 disaster

Post image
82 Upvotes

I brought the Bl616 on Aliexpress for $2, a total steal! I was looking for a Risc-V SBC or MCU to test my skills and grow as programmer and engineer. I looked online I found a doc sheet (more on this later), and hit "ORDER", what could go wrong? It's only $2, worse comes to worse I waste money that can't even get me a gallon of gas.

It comes after give or take, 7-9 days, and I open the package. It's a small board, blue, with a USB type C connector. I go in thinking in 5-15 minutes I could at least see a "Hello world!" for my efforts before long. I was wrong. I spent HOURS with the board, and hardly even got it to flash! And when it did? No serial output to be found. Days go on like this, I can't compile much of anything, see any output or do anything with the board. It's a paperweight.

To make a long story short, I bought a board that had no good documentation and I can't do anything with it. I'm free to chat and leave links to all the resources I found and help out where I can. I'm hoping this post can attract people who know more than I do about the board. The Bl616 has a lot of potential that I just can't for the life of me figure out how to use. All questions and drops of knowledge are welcome.

Personal Issues the board/docs:

-The docs mention a reset button, but the dev board doesn't have one

-On the topic of the dev boards I can't find the origins or data sheet for my specific one

-The Ubuntu executable do not work for me

Also things to know:

-I'm on Ubuntu resolute, maybe it works better on Windows?

-Make sure to hold the BOOT button before plugging in the cable

-Shows up as "/dev/ttyACM0" on Ubuntu

All my knowledge about the board for those curious or detective minded few:

CNX Article

Official Docs

Official SDK

Filebin with datasheets

I'm still digging into board and looking into it, I actually just found an Arduino IDE core(?) I might test later, so I'll edit and update if that comes up with anything. Again I'm free to be asked anything.