I built a developer kit for my recent AFR (air to fuel ratio) gauge project
https://preview.redd.it/9yv8mheorz9g1.jpg?width=1536&format=pjpg&auto=webp&s=768fcf32a2f58e8d621e3abad4bd07f4d603c9d2
Actually this is my first complex project where ım using a LCD its a 2 inch tft display with a ILI9225 driver and ım using the 16 bit mode to drive it and ı added some buttons buzzer and a pot for a adc simulation
https://redd.it/1pxz813
@r_embedded
https://preview.redd.it/9yv8mheorz9g1.jpg?width=1536&format=pjpg&auto=webp&s=768fcf32a2f58e8d621e3abad4bd07f4d603c9d2
Actually this is my first complex project where ım using a LCD its a 2 inch tft display with a ILI9225 driver and ım using the 16 bit mode to drive it and ı added some buttons buzzer and a pot for a adc simulation
https://redd.it/1pxz813
@r_embedded
Are breakout boards used in commercial/industrial products?
Are breakout boards used in commercial/industrial products?
Hello everyone. I had this simple question.
BME280 is a very small sensor itself and most often it comes with it's own breakout board.
I was wondering if people in industry use these breakout boards as they are? As soldering bme280 itself, the tiny silver cube, imo seems a difficult task.
https://redd.it/1py1spv
@r_embedded
Are breakout boards used in commercial/industrial products?
Hello everyone. I had this simple question.
BME280 is a very small sensor itself and most often it comes with it's own breakout board.
I was wondering if people in industry use these breakout boards as they are? As soldering bme280 itself, the tiny silver cube, imo seems a difficult task.
https://redd.it/1py1spv
@r_embedded
Reddit
From the embedded community on Reddit
Explore this post and more from the embedded community
Where can I learn the business aspect of embedded systems?
I'm jobless but I think I know many things in embedded software.
Companies are rejecting me. Feeling like I have reached a dead end.
Which study could give me the knowledge by which I could understand business aspect of embedded systems?
https://redd.it/1py6330
@r_embedded
I'm jobless but I think I know many things in embedded software.
Companies are rejecting me. Feeling like I have reached a dead end.
Which study could give me the knowledge by which I could understand business aspect of embedded systems?
https://redd.it/1py6330
@r_embedded
Reddit
From the embedded community on Reddit
Explore this post and more from the embedded community
Stm32L476RG
Hello all , does anyone have any .c and .h files for the liquid lcd display? Im on bare metal c right now ive done code myself but i just get blocks and not full text.
https://redd.it/1py8rn2
@r_embedded
Hello all , does anyone have any .c and .h files for the liquid lcd display? Im on bare metal c right now ive done code myself but i just get blocks and not full text.
https://redd.it/1py8rn2
@r_embedded
Reddit
From the embedded community on Reddit
Explore this post and more from the embedded community
STM32 FDCAN goes Error Passive when transmitting shared CAN IDs (same ID, different payload) — existing system works fine, how to coexist?
Hi everyone,
I’m integrating a new STM32H7-based ECU (FDCAN, Classic CAN mode) into an existing vehicle CAN bus.
There are 3 shared arbitration IDs (e.g. 0x7A1 / 0x7A2 / 0x7A3) that multiple ECUs already publish on this bus.
Each ECU sends different payloads on the same ID (HW/FW/version info).
This has been running in production across many vehicles for years.
When my ECU also starts transmitting these shared IDs, my node alone starts accumulating TX ACK errors, TEC rises, and it enters Error Passive (PSR_EP=1). Eventually transmission stalls.
Other ECUs continue operating normally.
Key observations:
RX works fine (REC stays \~0)
CEL stays 0 (no framing/stuff errors)
TEC rises steadily during shared-ID transmission
If I stop sending those shared IDs, my ECU is stable
Bench setup works better; vehicle bus triggers the issue
Other ECUs use a mix of Classic CAN + FDCAN and RTOS-based TX queues. I only use a normal, bare metal queueing approach
Questions:
1. Is this expected CAN behavior when multiple nodes transmit the same arbitration ID with different payloads?
2. Why would only my node go Error Passive while others remain stable?
3. Are there any workarounds for sharing common arbitration IDs
I understand this setup is not CAN-spec compliant, but I need to integrate with an existing architecture. I can modify TX timing and retry logic, but I cannot change the IDs or remove periodic transmission.
Thanks!
https://redd.it/1pycr7y
@r_embedded
Hi everyone,
I’m integrating a new STM32H7-based ECU (FDCAN, Classic CAN mode) into an existing vehicle CAN bus.
There are 3 shared arbitration IDs (e.g. 0x7A1 / 0x7A2 / 0x7A3) that multiple ECUs already publish on this bus.
Each ECU sends different payloads on the same ID (HW/FW/version info).
This has been running in production across many vehicles for years.
When my ECU also starts transmitting these shared IDs, my node alone starts accumulating TX ACK errors, TEC rises, and it enters Error Passive (PSR_EP=1). Eventually transmission stalls.
Other ECUs continue operating normally.
Key observations:
RX works fine (REC stays \~0)
CEL stays 0 (no framing/stuff errors)
TEC rises steadily during shared-ID transmission
If I stop sending those shared IDs, my ECU is stable
Bench setup works better; vehicle bus triggers the issue
Other ECUs use a mix of Classic CAN + FDCAN and RTOS-based TX queues. I only use a normal, bare metal queueing approach
Questions:
1. Is this expected CAN behavior when multiple nodes transmit the same arbitration ID with different payloads?
2. Why would only my node go Error Passive while others remain stable?
3. Are there any workarounds for sharing common arbitration IDs
I understand this setup is not CAN-spec compliant, but I need to integrate with an existing architecture. I can modify TX timing and retry logic, but I cannot change the IDs or remove periodic transmission.
Thanks!
https://redd.it/1pycr7y
@r_embedded
Reddit
From the embedded community on Reddit
Explore this post and more from the embedded community
Is it possible to get an Embedded Engineering job with a BSc in Computer Engineering + MSc in Embedded Systems
Exactly what the question says, I'm majoring in CE and want to get my MSc in Embedded Systems and I want to know if this will help me boost my chances of landing a job in said field.
https://redd.it/1pye0bb
@r_embedded
Exactly what the question says, I'm majoring in CE and want to get my MSc in Embedded Systems and I want to know if this will help me boost my chances of landing a job in said field.
https://redd.it/1pye0bb
@r_embedded
Reddit
From the embedded community on Reddit
Explore this post and more from the embedded community
Preparing for a specific position in defense, should i push bare metal or no (cortex m)
Im new to embedded, ive been working on it for a few months. Im preparing for a us based company and a guy i know works there and he gave me a short list of what they require. Among other things theres motor control and communication protocols such as spi,i2c, can, uart. How do i prepare for this? Should i push bare metal? Where it makes sense to use bare metal? For some motor control methods such as foc? For communication protocols with sensors?
https://redd.it/1pyf5wu
@r_embedded
Im new to embedded, ive been working on it for a few months. Im preparing for a us based company and a guy i know works there and he gave me a short list of what they require. Among other things theres motor control and communication protocols such as spi,i2c, can, uart. How do i prepare for this? Should i push bare metal? Where it makes sense to use bare metal? For some motor control methods such as foc? For communication protocols with sensors?
https://redd.it/1pyf5wu
@r_embedded
Reddit
From the embedded community on Reddit
Explore this post and more from the embedded community
What's the difference between a System on Chip (SoC) and a System on Module (SoM) ??
Thanks
https://redd.it/1pygk7y
@r_embedded
Thanks
https://redd.it/1pygk7y
@r_embedded
Reddit
From the embedded community on Reddit
Explore this post and more from the embedded community
How to get IAR for ARM
I am trying to get an IAR license for my lab. I've submitted requests a few times through their form but haven't heard back yet. I also contacted my county's sales person but no luck. What should I try?
https://redd.it/1pyjas6
@r_embedded
I am trying to get an IAR license for my lab. I've submitted requests a few times through their form but haven't heard back yet. I also contacted my county's sales person but no luck. What should I try?
https://redd.it/1pyjas6
@r_embedded
Reddit
From the embedded community on Reddit
Explore this post and more from the embedded community
What are the common challenges in debugging embedded systems with real-time constraints?
Debugging embedded systems can be particularly challenging, especially when real-time constraints are involved. In my experience, issues like race conditions, timing problems, and resource contention can make finding the root cause of a problem difficult. I'm curious to know what specific techniques or tools other developers use to tackle these challenges. Do you rely on hardware debuggers, software tracing, or perhaps even simulation tools? How do you ensure that your debugging process does not interfere with the system's real-time performance? Additionally, if you've faced unique issues while debugging, sharing those experiences could provide valuable insights to others in the community. Let's discuss the best practices and tools that can help streamline the debugging process in embedded systems with strict timing requirements.
https://redd.it/1pykjw4
@r_embedded
Debugging embedded systems can be particularly challenging, especially when real-time constraints are involved. In my experience, issues like race conditions, timing problems, and resource contention can make finding the root cause of a problem difficult. I'm curious to know what specific techniques or tools other developers use to tackle these challenges. Do you rely on hardware debuggers, software tracing, or perhaps even simulation tools? How do you ensure that your debugging process does not interfere with the system's real-time performance? Additionally, if you've faced unique issues while debugging, sharing those experiences could provide valuable insights to others in the community. Let's discuss the best practices and tools that can help streamline the debugging process in embedded systems with strict timing requirements.
https://redd.it/1pykjw4
@r_embedded
Reddit
From the embedded community on Reddit
Explore this post and more from the embedded community
Looking for multi-output isolated flyback converter reference design (12–48V, up to 3A)
Hi everyone,
I’m looking for a **multi-output isolated flyback converter reference design**. bcoz, i do not have enough time to develop new flyback and transformer.
**Requirements:**
* Input: some 300 to 380Vdc. (open to common industrial ranges)
* Outputs: **multiple isolated outputs**
* Output voltage range: **12V to 48V**
* All outputs must be **greater than 12V**
* At least **one output: >12V @ ≥3A.**
* Other outputs: **>12V @ ≥2A**
* Each output must be **isolated from the others**
If you know of any **TI / ST / Infineon / Power Integrations or other** reference designs, app notes, or evaluation boards that match (or are close), please share.
Any guidance on controller ICs suitable for this power level would also be appreciated.
Thanks in advance!
https://redd.it/1pyk4he
@r_embedded
Hi everyone,
I’m looking for a **multi-output isolated flyback converter reference design**. bcoz, i do not have enough time to develop new flyback and transformer.
**Requirements:**
* Input: some 300 to 380Vdc. (open to common industrial ranges)
* Outputs: **multiple isolated outputs**
* Output voltage range: **12V to 48V**
* All outputs must be **greater than 12V**
* At least **one output: >12V @ ≥3A.**
* Other outputs: **>12V @ ≥2A**
* Each output must be **isolated from the others**
If you know of any **TI / ST / Infineon / Power Integrations or other** reference designs, app notes, or evaluation boards that match (or are close), please share.
Any guidance on controller ICs suitable for this power level would also be appreciated.
Thanks in advance!
https://redd.it/1pyk4he
@r_embedded
Reddit
From the embedded community on Reddit
Explore this post and more from the embedded community
Project Concept: Solar-powered "Audio Mesh" to monitor the Amazon Rainforest. I need a reality check on the Power Budget.
Hi everyone,
I am based in Belém, Brazil (Amazon region), and I am designing a scalable hardware solution to detect illegal deforestation and poaching in real-time.
The Problem: Satellite imagery is reactive (too slow). We need ground-level bioacoustic monitoring. The Idea: Air-drop thousands of low-cost, solar-powered IoT sensors into the canopy. They use Edge AI to detect chainsaws/gunshots and send alerts via Satellite (Starlink Direct-to-Cell or LoRaWAN).
The Challenge: The environment is brutal (100% humidity, heat, rain). I am struggling with the power architecture for a "deploy-and-forget" device that lasts 5+ years.
My questions for this community:
1. MCU: I'm considering the ESP32-S3 for AI capabilities, but I'm worried about deep-sleep power consumption. Would an STM32 be a safer bet for extreme efficiency?
2. Power: LiFePO4 vs. Supercapacitors? Given the canopy shade, solar harvesting will be tricky. Are supercaps viable for short bursts of satellite transmission?
3. Protection: For the Amazon humidity, is standard conformal coating enough, or do I need full resin potting (which kills thermal management)?
I am looking for brutal technical feedback. If anyone has experience with remote sensors in tropical environments, I’d love to hear from you.
Thanks from the Amazon!
https://redd.it/1pynppt
@r_embedded
Hi everyone,
I am based in Belém, Brazil (Amazon region), and I am designing a scalable hardware solution to detect illegal deforestation and poaching in real-time.
The Problem: Satellite imagery is reactive (too slow). We need ground-level bioacoustic monitoring. The Idea: Air-drop thousands of low-cost, solar-powered IoT sensors into the canopy. They use Edge AI to detect chainsaws/gunshots and send alerts via Satellite (Starlink Direct-to-Cell or LoRaWAN).
The Challenge: The environment is brutal (100% humidity, heat, rain). I am struggling with the power architecture for a "deploy-and-forget" device that lasts 5+ years.
My questions for this community:
1. MCU: I'm considering the ESP32-S3 for AI capabilities, but I'm worried about deep-sleep power consumption. Would an STM32 be a safer bet for extreme efficiency?
2. Power: LiFePO4 vs. Supercapacitors? Given the canopy shade, solar harvesting will be tricky. Are supercaps viable for short bursts of satellite transmission?
3. Protection: For the Amazon humidity, is standard conformal coating enough, or do I need full resin potting (which kills thermal management)?
I am looking for brutal technical feedback. If anyone has experience with remote sensors in tropical environments, I’d love to hear from you.
Thanks from the Amazon!
https://redd.it/1pynppt
@r_embedded
Reddit
From the embedded community on Reddit
Explore this post and more from the embedded community
e2 studio load times are insane
So, I just got into MCUs that aren't called arduino, and I came across STM32 and Renesas. I downloaded e2 studio and CubeIDE to see which is better, and well both are ok I really didnt go too deep into the development because they are both eclipse anyways, so the most immediate differences I found were that the clocks, pin configs, interrupts etc are always in the same location at your fingertips in the e2 studio but not in the CubeIDE which needs extra steps like finding the ioc file (didnt generate when I created the project [version 2.0.0\]). Then there is the load times
STM CubeIDE loads in 1 minute
e2 studio took 10min damn!!!!!!
what gives? any suggestions to decrease the load time?
https://redd.it/1pyqxv8
@r_embedded
So, I just got into MCUs that aren't called arduino, and I came across STM32 and Renesas. I downloaded e2 studio and CubeIDE to see which is better, and well both are ok I really didnt go too deep into the development because they are both eclipse anyways, so the most immediate differences I found were that the clocks, pin configs, interrupts etc are always in the same location at your fingertips in the e2 studio but not in the CubeIDE which needs extra steps like finding the ioc file (didnt generate when I created the project [version 2.0.0\]). Then there is the load times
STM CubeIDE loads in 1 minute
e2 studio took 10min damn!!!!!!
what gives? any suggestions to decrease the load time?
https://redd.it/1pyqxv8
@r_embedded
Reddit
From the embedded community on Reddit
Explore this post and more from the embedded community
write lib for sx1278
Hi everyone,
I’m trying to initialize the SX1278 LoRa module directly from the datasheet, but I’m having trouble figuring out which registers I actually need to set and in what order. The datasheet lists a lot of registers and parameters, but it doesn’t explicitly say which ones are required for basic initialization.
Can someone point me to the specific sections/pages in the official datasheet that explain how to set up the module for LoRa mode, frequency, spreading factor, bandwidth, preamble, and TX/RX mode? I want to understand this directly from the documentation rather than relying on example code.
https://redd.it/1pyqs3p
@r_embedded
Hi everyone,
I’m trying to initialize the SX1278 LoRa module directly from the datasheet, but I’m having trouble figuring out which registers I actually need to set and in what order. The datasheet lists a lot of registers and parameters, but it doesn’t explicitly say which ones are required for basic initialization.
Can someone point me to the specific sections/pages in the official datasheet that explain how to set up the module for LoRa mode, frequency, spreading factor, bandwidth, preamble, and TX/RX mode? I want to understand this directly from the documentation rather than relying on example code.
https://redd.it/1pyqs3p
@r_embedded
Reddit
From the embedded community on Reddit
Explore this post and more from the embedded community
Troubles with entering the bootloader of the CH32V203
Hi everyone,
I have just recently seriously started my journey into embedded electronics. Part of my project requires making a fully functioning development board based on the CH32V203(C8T6) SoC. I've designed a PCB, gotten it manufactured, and soldered the components. Fortunately, it worked and I could see the chip appear on my `lsusb` list. I've spent ages trying to write code onto it (I ended up making my own C program for that).
It worked - I wrote a blinky and even drove an 8-bit LED array with cool patterns. Then, I went to sleep and woke up. The chip no longer wanted to appear as a USB device on my PC.
Here is some interesting behaviour I noticed:
I hold BOOT0 and press RESET. The chip resets, good. Then, as soon as, and only *after*, I let go of BOOT0, the LED program starts instead of the bootloader. Even while BOOT0 is held, no appearance of it as a USB device.
I investigated and though that maybe it was the external crystal at fault (I wired it up wrong) so I re-soldered it diagonally. Nope.
I even spent a day soldering another board (of the same design) and that works! Still, I would like my first board to work as well in case this issue arises on the second one as well.
I couldn't have fried it while soldering as it broke overnight. Maybe I pushed too much current? But why do the LEDs work then and not the bootloader?
Unfortunately, I do not have the WCH-Link to debug over SWIO and I don't have a seller close by. What do I do?
Thank you!
https://redd.it/1pyv5da
@r_embedded
Hi everyone,
I have just recently seriously started my journey into embedded electronics. Part of my project requires making a fully functioning development board based on the CH32V203(C8T6) SoC. I've designed a PCB, gotten it manufactured, and soldered the components. Fortunately, it worked and I could see the chip appear on my `lsusb` list. I've spent ages trying to write code onto it (I ended up making my own C program for that).
It worked - I wrote a blinky and even drove an 8-bit LED array with cool patterns. Then, I went to sleep and woke up. The chip no longer wanted to appear as a USB device on my PC.
Here is some interesting behaviour I noticed:
I hold BOOT0 and press RESET. The chip resets, good. Then, as soon as, and only *after*, I let go of BOOT0, the LED program starts instead of the bootloader. Even while BOOT0 is held, no appearance of it as a USB device.
I investigated and though that maybe it was the external crystal at fault (I wired it up wrong) so I re-soldered it diagonally. Nope.
I even spent a day soldering another board (of the same design) and that works! Still, I would like my first board to work as well in case this issue arises on the second one as well.
I couldn't have fried it while soldering as it broke overnight. Maybe I pushed too much current? But why do the LEDs work then and not the bootloader?
Unfortunately, I do not have the WCH-Link to debug over SWIO and I don't have a seller close by. What do I do?
Thank you!
https://redd.it/1pyv5da
@r_embedded
Reddit
From the embedded community on Reddit
Explore this post and more from the embedded community
BinForge – Post-Build ESP32 Firmware Tool & Framework for Injecting Data
https://redd.it/1pyu9fx
@r_embedded
https://redd.it/1pyu9fx
@r_embedded
What to learn Zyphr Rtos or Embedded linux driver development?
I am fairly new to embedded systems, though I have experience with STM32 and FreeRTOS. Whenever I search for embedded development roles on job portals, I frequently see Zephyr RTOS mentioned. Other job profiles specify Embedded Linux driver development. Does embedded driver development align with the profile of an embedded developer? Furthermore, should I focus on learning Embedded Linux development or Zephyr RTOS first?
https://redd.it/1pyx17c
@r_embedded
I am fairly new to embedded systems, though I have experience with STM32 and FreeRTOS. Whenever I search for embedded development roles on job portals, I frequently see Zephyr RTOS mentioned. Other job profiles specify Embedded Linux driver development. Does embedded driver development align with the profile of an embedded developer? Furthermore, should I focus on learning Embedded Linux development or Zephyr RTOS first?
https://redd.it/1pyx17c
@r_embedded
Reddit
From the embedded community on Reddit
Explore this post and more from the embedded community
Wokwi based design for Rohee Desktop gadget robot with ESP32-C3
This is the link for online based design.
https://wokwi.com/projects/450256201969103873
https://redd.it/1pyxu7a
@r_embedded
This is the link for online based design.
https://wokwi.com/projects/450256201969103873
https://redd.it/1pyxu7a
@r_embedded
How to get smooth velocity reading from incremental angle sensor?
Hi,
I am using my teensy4.0 and the MT6835 magnetic encoder to measure the incremental angle (65536 CPR) of a rotating motor shaft.
Context: I want to build an rotary inverted pendulum and therefore have to measure the angle of a motor shaft and a pendulum shaft and also the angular velocity respectively.
I don’t expect big velocities but rather how accelerations because of fast direction changes . The will be no state of constant rotation. So I need very accurate velocity data.
I configured two pins on my teensy4.0 to detect incoming encoder pulses and trigger an interrupt. Basically what i want to do is to measure the time between each encoder pulse by using a timer on my teensy. By doing so I get a value which is inversely proportional to the shaft rotation speed.
I am also using another method where I count the encoder pulses within a fixed time interval and then derive the shaft speed from it.
Combining these two methods to change between high speed and low speed works kind of good.
But sometimes there are some spikes in my velocity reading and sometimes the reading does not really work.
Does anyone know of there is a library for reading encoder pulses and simultaneously measure the time between each encoder pulse ?
Does anyone know if there is a better way to do it ? Or do you have good tips for me?
I can send my code, if needed:) thank you !!
https://redd.it/1pz21eh
@r_embedded
Hi,
I am using my teensy4.0 and the MT6835 magnetic encoder to measure the incremental angle (65536 CPR) of a rotating motor shaft.
Context: I want to build an rotary inverted pendulum and therefore have to measure the angle of a motor shaft and a pendulum shaft and also the angular velocity respectively.
I don’t expect big velocities but rather how accelerations because of fast direction changes . The will be no state of constant rotation. So I need very accurate velocity data.
I configured two pins on my teensy4.0 to detect incoming encoder pulses and trigger an interrupt. Basically what i want to do is to measure the time between each encoder pulse by using a timer on my teensy. By doing so I get a value which is inversely proportional to the shaft rotation speed.
I am also using another method where I count the encoder pulses within a fixed time interval and then derive the shaft speed from it.
Combining these two methods to change between high speed and low speed works kind of good.
But sometimes there are some spikes in my velocity reading and sometimes the reading does not really work.
Does anyone know of there is a library for reading encoder pulses and simultaneously measure the time between each encoder pulse ?
Does anyone know if there is a better way to do it ? Or do you have good tips for me?
I can send my code, if needed:) thank you !!
https://redd.it/1pz21eh
@r_embedded
Reddit
From the embedded community on Reddit
Explore this post and more from the embedded community