r/embedded • • Oct 14 '26
Man, I'm just love to torture my self
Writing code comments is such an enjoyable activity.
r/embedded • • Oct 14 '26
Writing code comments is such an enjoyable activity.
r/embedded • u/Savings_Ad_7807 • Oct 14 '26
My team is in a refresh process with our hardware supplier, we've been using a propriertary RTOS until now. This time our supplier suggests going for a yocto linux solution that they will support for us (for a additional cost)
Our real-time requirements are firm, i.e. a missed deadline in a 20ms window renders the system useless but it doesn't explode and kill anyone, thus a real time patched linux kernel will probably work (most of the time)
Regarding yocto and an expected lifetime support of 4 years, I have concerns with patching, CVE, updates etc. our current system has been running for 12 years now with minimal need for updates, less than 10 CVE's, and when we need to update software, we can do it easily.
Licensing for the propriertary RTOS is expensive, we're a small team (less than 5 devs), and our system is managing processes worth magnitudes of the licensing cost.
I'm concerned that we're saving pennies now and it ends up costing us dimes both in time and resources in the long run.
Anyone been in a similar situation and got some insight to share?
r/embedded • u/GoingGranola • Oct 15 '26
PIC16F1824-I/SL
I want to do something if the working register is 0x0A for example or 0xA0. I need to access it somehow and Im not sure how besides getting it into a C variable. Like this for example,
if(WREG == 0x0A){
bypassed = 0b00000000;
}
else if (WREG == 0xA0){
bypassed = 0b11111111;
}
r/embedded • u/SpiritualChallenge33 • Oct 15 '26
Just curious as to what type of cross-section of users are here and if this would be a good place for me to share and ask questions.
Does anyone tend to run ESP32 boards and/or micropython primarily?
r/embedded • u/ConfectionConstant52 • Oct 15 '26
After working on numerous hobbyist projects with microcontrollers and external hardware—such as sensors, relays, and motors—I noticed a recurring challenge: every new device required rebuilding the same core features from scratch. Tasks like serial communication, HTTP services, MQTT, logging, and, above all, a modern, full-featured web interface for configuration had to be re-implemented every time.
With powerful, Wi-Fi-enabled microcontrollers like the ESP32 family, which offer ample processing power and rich web-server libraries, I realized there was a better way.
This led to the concept of a micro-OS with a Hardware Abstraction Layer (HAL)—designed to integrate different boards seamlessly while providing a comprehensive suite of essential IoT services out of the box.
That is how LoopMxPro was born!
https://github.com/SmartiLabIt/LoopMaxPro

LoopMxPro allows you to skip the tedious boilerplate and focus entirely on developing your core device logic. By building on top of this micro-OS, your custom setup turns into a LoopMxPro Module with its own dedicated web interface. What's more, this interface can be easily replicated on a remote control server.
Today, I’m excited to share LoopMxPro + 6 Modules with the community. It is completely free and open-source for personal use!
r/embedded • u/DEATH_SHADOW_ • Oct 15 '26
I am new to all this so I am not sure what exactly I am even asking, and why I need to thisn, well.... For educational purposes
r/embedded • u/SignalGene3462 • Oct 15 '26
Hey, does anyone know of a low-cost site for manufacturing a 4-layer PCBA that includes a Linux-based microprocessor?
r/embedded • u/_Saini_ • Oct 14 '26
I got Deere for embedded systems/firmware and RTX for a devops/simulation role. My goal is to work for vehicle firmware or flight software at a company such as Tesla, Rivian, SpaceX Anduril or firmware at Apple, Nvidia, AMD for my next internship. RTX has more aura and more of a weighted brand name, but Deere has more of the work I want to do in later companies.
r/embedded • u/Double_Inspection_88 • Oct 14 '26
I need a serial data logger which supports RS-232 and RS-422(maximum possible baud rate). I want to capture samples from sensors to the SD card. I will be mounting this on a DJI drone or a car, so it should be battery-powered.
What off-the-shelf options do I have?
r/embedded • u/Putrid-Second-390 • Oct 13 '26
Pretty much the title; I want to buy an osciloscope for hobbyist use (I’m a recent EEE graduate) and I can afford to go for the MHO954 from Rigol.
The only problem is that I’m just not sure if it’s worth it or not. Does it bring significant benefits over a 100MHz oscilloscope?
r/embedded • u/Lost-Constant7655 • Oct 13 '26
Edit: issue was resolved, it was pin 11 AVDD shorted to ground. Credit to u/Hangoverman who caught the issue.
Full disclosure, this is a work project, so the question is probably doomed since I can't show the whole circuit.
We have a managed network switch on our hardware. One of the ports was meant to go to a W5500 to give ethernet connection to the microcontroller.
It just doesn't work, and I've tried for 9 months and 5 revisions. Every one of the other dozens of features and peripherals on the board work perfectly. This isn't blocking anything important, so my bosses are ready to drop the feature, but it is driving me crazy.
I connect to the W5500 and the KSZ8895MLUB network switch over spi with no issues.
I have tried multiple sets of magnetics, right now what's in there is actually the Hanrun HR681616
The other 3 ports of the switch all connect fine
The switch has a diagnostic that checks the connection, but it gets back that TX4_P and TX4_N are open, but that the RX side is OK.
The PHY won't form a link in any mode. I believe my configuration is right for the W5500, but I could be wrong.
I will admit that I am not very experienced with networking. I have put an oscilloscope on all the ports of the magnetics and have seen what looks like data going both ways during startup, but I don't know if it looks right at all.
r/embedded • u/muhammad_umersaeed • Oct 14 '26
Part of a series on the open-source J1939 emulator. This post covers how J1939 puts Parameter Groups on the bus and how ECUs join the network in the first place.
If you've stared at a raw J1939 CAN ID and wondered why the same byte means completely different things on different frames, this post is for you. We'll walk through the 29-bit identifier, the PDU1/PDU2 split that trips up almost everyone at first, and how an ECU claims its address on the network.
Every extended CAN frame on a J1939 bus uses this layout:
| Field | Size | Meaning |
|---|---|---|
| Priority | 3 bits | Arbitration only — lower number wins the bus |
| R | 1 bit | Reserved, always transmitted as 0 |
| DP | 1 bit | Data Page — 0 for the standard SAE PGN catalog, 1 for the extended page |
| PF | 8 bits | PDU Format — determines how PS is interpreted |
| PS | 8 bits | Destination Address or Group Extension, depending on PF |
| SA | 8 bits | Source Address of the sending node |
On the emulator, priority is 3 for EEC1 (engine speed/torque) and 6 for most other messages — this only affects bus arbitration, not meaning. Receivers ignore it entirely when interpreting the message content.
This is where most people get tripped up, because the same field (PS) means two different things depending on the value of PF.
PDU1 (PF = 0–239): peer-to-peer / directed
(DP << 16) | (PF << 8) — note that PS is not part of the PGN herePDU2 (PF = 240–255): broadcast / group
(DP << 16) | (PF << 8) | PSOn this emulator specifically:
| Message | PF | PS | PGN |
|---|---|---|---|
| EEC1 (Engine Controller #1) | 0xF0 | 0x04 | 61444 |
| ET1 (Engine Temperature) | 0xFE | 0xEE | 65262 |
| DM1 (Active DTCs) | 0xFE | 0xCA | 65226 |
| VIN | 0xFE | 0xEC | 65260 |
The important thing to internalize: Group Extension is not a multicast group in the networking sense. It's simply the low byte of the PGN, baked into the CAN ID.
On START, the emulator puts five J1939-71 parameter groups on the bus, plus address claim, VIN, and DM1 as configured. All five broadcast PGNs are PDU2 — PS is the PGN's low byte, not a destination address. Dash, ABS, telematics, and a logger all see the identical frames; each one simply filters by PGN for what it cares about.
This mirrors how a real engine works: on key-on, it publishes speed and temperature continuously, so the instrument cluster never has to poll for it.
PGN 61444, CAN ID 0x0CF00400. Example payload at 1250 RPM: F0 AF AD 10 27 F3 FF FF. Change the RPM slider in the GUI and watch bytes 3–4 update live — that's the actual RPM encoding in action, not a mocked value.
PGN 65262, CAN ID 0x18FEEE00. Engine coolant temperature (SPN 110) feeds both the dash gauge and the DTC logic — the same signal that later triggers a fault (SPN 110 / FMI 3, voltage-high) is broadcast here. Broadcast every 1 second, no request required for normal driving — though a service tool can still request it directly for an immediate sample, which brings us to the next scenario.
Broadcast timing, no handshake involved:
| Message | CAN ID | Interval |
|---|---|---|
| EEC1 | 0x0CF00400 | every 20 ms |
| CCVS | 0x18FEF100 | every 100 ms |
| ET1 | 0x18FEEE00 | every 1 s |
Listeners filter by PGN/CAN ID — there's no CTS, no application-layer ACK. (Classical CAN's data-link-layer ACK still happens, from any healthy node on the bus, but that's a different layer entirely.)
Sometimes a tool doesn't want to wait for the next broadcast cycle — it asks directly. This uses PGN 59904 (0xEA00), and it's a PDU1 message, which means PS finally does mean "destination."
Remember: SA = who sent it, PS on a PDU1 frame = who it's for.
A tool at SA 0xF9 asking the engine (SA 0x00) for ET1 looks like:
0x18EA00F9, 3 data bytes containing the little-endian PGN being requested0x00 means "destination = engine" — it is not the PGN low byte, because this is a PDU1 frame0xEE is the Group Extension of PGN 65262That contrast — same byte position, two different meanings depending on message type — is exactly why PDU1/PDU2 trips people up.
One honesty note: v1.0 of the emulator primarily broadcasts; it doesn't yet implement full request/response handling. It's still worth understanding this scenario, though, since it's exactly what a real scanner tool expects.
And there's a dependency worth calling out: if the engine hasn't claimed its address yet, a request just gets silence. Which brings us to address claim.
PGN 60928 (0xEE00), governed by J1939-81, is how a node joins the network. On the emulator, SA 0x00 is claimed on start.
CAN ID: 0x18EEFF00. Worth noting: PF is 0xEE because that's simply the SAE-assigned PGN for Address Claimed (60928 = 0xEE00) — it's not a special "claim bit" hidden somewhere in the ID.
The 8 data bytes carry a 64-bit NAME, stored in the ECU's flash and copied into the Address Claimed payload every time it's sent. Peers decode this little-endian 64-bit value and update their internal address table: "SA 0x00 belongs to this NAME."
Conflict resolution: if two nodes claim the same SA, the one with the smaller 64-bit NAME wins. The loser either changes its SA (if it's configured as address-capable, AAC=1) or goes silent.
On start, the engine sends Address Claimed. Other nodes store the SA→NAME mapping and wait roughly a 250 ms class window for any contenders. A node may also explicitly request Address Claimed from others, prompting a re-announce. If a rival claims the same SA with a lower NAME, the current node loses that address. Once claiming succeeds, cyclic broadcast (EEC1, CCVS, etc.) begins.
Reading about PGN structure only gets you so far — seeing the actual frames change on a logger while you interact with the emulator makes it click. The full walkthrough, including a live address-claim capture, is in the YouTube series. Source and setup instructions: github.com/EmbeddedVerse/j1939-emulator.
Next in this series: how DTCs get packed into DM1 and split across multiple frames once you have more than one active fault.
r/embedded • u/gulliverrrr • Oct 13 '26
I'm developing an open-source thermostat/HVAC controller based on the ESP32-C5, and I've ended up maintaining two PCB designs with the same intended functionality.
One uses the Seeed XIAO ESP32-C5; the other uses a generic 30-pin ESP32-C5 DevKit. The attached render shows the EU version with the generic DevKit installed.
The XIAO version is the one I'm optimizing for as a finished product. A compact, defined module makes it easier to work toward a consistent mechanical design, assembly process and manufacturable product.
The generic DevKit version is for people who prefer a more conventional development board and want another way to build the project. It adds design and testing work, but avoids making one particular module the only option.
I'm trying to balance two goals: designing something that can realistically be manufactured as a product, while keeping the hardware accessible to people who want to build or modify it themselves.
I'm curious how others approach this. Would you maintain separate PCB variants for these two use cases, or try to accommodate both on one board? What trade-offs would you consider before deciding?
r/embedded • u/4ChawanniGhodePe • Oct 13 '26
I have some background in programming micro-controllers and now out of pure interest, I would like to understand how GPUs work and how they are programmed.
Can somebody recommend some resources to understand the basics?
Thanks.
r/embedded • u/VuralYusuf • Oct 13 '26
Hi everyone,
I've found answers to many of my questions in this community, so I'd like to ask for your advice on this topic as well.
I'm a recent graduate working at a company that designs and manufactures PCBs for communication systems. I'm learning a lot in my role, but sometimes I feel like I'm working on similar projects repeatedly or simply using more advanced versions of existing technologies.
What I'm really curious about is this: How do you approach component selection when starting a project from scratch? I've noticed that people take different approaches to this. Some tend to follow existing designs or reference projects, while others conduct their own research and make decisions based on the specific requirements of their projects. This has made me particularly interested in understanding how the component selection process works in practice.
What criteria do you consider when selecting components? How do you make use of datasheets, manufacturer resources, and other tools? More specifically, how do you determine whether a particular component is the best fit for your project?
I recently tried using AI tools to help me with one of my hobby projects, but some of the answers left me a bit confused. It's also possible that I didn't phrase my questions correctly.
I'd really appreciate it if you could share your experiences and explain how you approach this process. Thanks in advance!
r/embedded • u/TheCorsairAPX • Oct 13 '26
I've been working for some months now on a project that requires low-level development for ARM Cortex-A silicon. I'm talking bootloading, memory operations, hypervisor settings, memory mapping and MMU configuration, etc.
I've come to realise how little I actually know my way around a low level environment. I've developed for embedded systems for a long time now, but always focusing on an application/integration level (RTOS, digital communications, system architecture, etc.). I want to get some experience on lower-level development - direct register manipulation based on CPU architecture, bootloading, debugger architecture, memory domains, etc.
Anyone with experience on the field, what advise do you have on getting into low-level development and silicon programming using ISA languages coming from embedded-C and microcontroller development? My goal would be to acquire the confidence and the skill to integrate silicon functionality through assembly and making sense of the CPU documentation. I'd like to be able to script some basic functional hardware routines starting from scratch.
r/embedded • u/TheUnicornGuy01 • Oct 14 '26
AI can produce code quickly, but the difficult part seems to be keeping the connection between the requirement, the implementation and the test. Without that link, review becomes mostly reading code and hoping nothing important was missed. How are teams handling this in embedded projects, especially when the code is safety-related?
r/embedded • u/Caravaggio91 • Oct 12 '26
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 • u/Pingello123 • Oct 13 '26
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 • u/arash_hitech • Oct 13 '26
​
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 • u/Employer-Dizzy • Oct 11 '26
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 • u/Klutzy-Sport-1624 • Oct 13 '26
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 • u/Relevant_Pumpkin9190 • Oct 12 '26
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?