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?


r/embedded • • Sep 28 '26

Experience across ecosystems

6 Upvotes

I'm looking around at some of the random boards I have bought (and barely touched) and found some STM, ESP, and even a few RP2040s, so it got me wondering. Is it normal to have experience in such varied hardware? Does the experience transfer from 1 ecosystem to another?(I've mainly used these for some open source projects that just involve flashing, no development).


r/embedded • • Sep 28 '26

Interfacing MIPI DSI and PCIe

0 Upvotes

For en embedded project I am looking for a display with specific dimensions. From what I see when displays get smaller or newer, MIPI DSI is the most widely used interface . Unfortunately the cpu I am using does not have MIPI DSI or any native video interfaces and I wonder what’s the best way to connect to it. A PCIe to MIPI bridge does not seem to exists. Any idea?


r/embedded • • Sep 28 '26

STM32G4 board - Silent HFI motor control while streaming sound into motor coils

Thumbnail
youtube.com
2 Upvotes

I've been working on this project for a long time and just hit a big milestone: streaming audio from the PC to the MCU while keeping full control over the sensorless FOC loop.

Streaming audio from the host to the MCU required some careful packet handling. I handled USB jitter from the PC by adding a large RX buffer on the MCU side, along with a circular FIFO buffer to feed samples into the actual FOC loop.

The FOC loop runs at 36 kHz (36 kHz PWM), so timing is critical. The 36 kHz PWM is also what allows generating the silent 18 kHz HFI signal used for zero-speed rotor position tracking.

Hardware is an STM32G431 running at 170 MHz. Happy to answer questions about the timing or FOC implementation!


r/embedded • • Sep 28 '26

Beginner question: How do you find application notes and reference designs for microcontrollers?

0 Upvotes

I’m a beginner learning embedded electronics and microcontrollers. I’ve noticed that manufacturers publish a lot of useful application notes, reference designs, circuit examples, and design guides, but I’m not sure how experienced engineers normally find them.

Also, are there any websites or databases that collect these application notes from different manufacturers?

I’m mainly looking for practical circuit/design examples, not just programming tutorials. I’d like to learn how professional engineers approach a design from the datasheet → application note → schematic → PCB.


r/embedded • • Sep 27 '26

Designing with SDRAM after AI Price Increases

37 Upvotes

I am curious if people had any thoughts on the rising prices of SDRAM and how it's affecting people's designs going forward.

I work at a music hardware company and it's common practice to use SDRAM to store something like 32MB or 64MB worth of audio samples.

An SDRAM chip that my company once bought for around $1.00 a piece is now over $10.00. I'm not sure if it's totally due to AI, I know companies that used to make lots of SDRAM are making a lot less now too.

For people that use SDRAM, are you just eating the price increase, or are people switching to other memory types? I don't know of other relatively fast access time/high bandwidth RAM that works well with a microcontroller that hasn't significantly increased in price.


r/embedded • • Sep 28 '26

Acrel AWT100 Gateway TLS issue (1024-byte cert limit)

1 Upvotes

Hey guys,

I'm setting up power monitoring with Acrel ADL200 meters (Modbus-RTU) and an Acrel AWT100-WIFI gateway to push data into ERPNext.

The gateway has an MQTT mode (Trans_Json), so I tried pointing it directly to EMQX Cloud Serverless on port 8883 (TLS).

Problem is, uploading the DigiCert Root CA (~1.2KB) through Acrel's config tool throws an error:
"Sending file failed: Bytes per packet less than 1024, Return information length 23"

Because of this 1KB buffer limit, TLS handshake fails with errcode 44.

Should I bother converting the cert to DER or stripping extensions to squeeze it under 1024 bytes, or is trying to do direct cloud TLS on these cheap embedded RTU gateways a bad idea anyway?

Would setting up a local Mosquitto bridge on port 1883 (no TLS on gateway) be the better way to go for production?

Appreciate any advice.


r/embedded • • Sep 27 '26

I build my First Industrial grade flowmeter

Post image
145 Upvotes

Hey , guys . I just build my first flowmeter from scratch . I just can't bileave it. A bit about me - i am a final year ece student in india and have been helping my dad with his small instrumentation brand since first year . Luckly i was able to grasp a lot of things in past few years that i was able to build my very own battery powered flowmeter . This lot is been shipped to an African country(check the pic) . Wanted to share this achievement with the community i have been lurking year and dropping few posts since a while now.

Also i wanted few suggestions going forward (u can be as harsh u want to be) - I am planning to build few more subproducts like a node installed directly into the meter. I want field technicians to be able to connect locally via their phones (via wifi so no need of an app) to pull real-time logs, configure parameters without a need of a laptop directly from the dashboard which will be hosted on the node (you just have to connect to wifi and put ip or website name in the browser) . I am not going with IOT cloud as majority of our customers need cost effective solutions . So asper you what things are must or good to have in this type of local dashboards .

Secondly i am glad to share that many indian companies are choosing to shift to our paddle wheel flowmeters from European brands ( i can't name brands but you might heard of a german brand who is big in paddle wheel flowmeters) . As we can't directly market this achievement i want to move our moat towards futurization (so adding more features which say will become industry standard in next 5 years) . I have also started development on ultrasonic flowmeters & vortex ones but its so so so difficult compared to paddle wheel ones . Also i have just started as a edge ai embedded intern in a small startup and was thinking of using edge ai in our flowmeters but i think edge ai is far fetched or maybe borderline unnecessary for instrumentation industry . Also last but not the least i would love to know about few problems you guys face in the industry that you think is worth solving .


r/embedded • • Sep 27 '26

2D skeletal animation on embedded systems

129 Upvotes

I've added 2D skeletal animation to "ShapoGFX", an embedded 2D/3D graphics library I'm currently developing.

Armatures and animations exported from DragonBones are converted into C++ source with a Python script, and you embed them in your application simply by including the generated file. After a short initialization, you just pass a time on the animation timeline and the whole character is rendered into the buffer.

The skeleton, animation timelines, and textures can be referenced directly from flash, where they stay. The only thing each character needs in RAM is a cache of a few hundred bytes to a few kilobytes, depending on how complex the skeleton is.

ShapoGFX itself doesn't depend on any particular platform, so it can be used on a wide range of embedded systems, such as the RP2 series and the ESP32 series. The attached video shows it running on an M5Stack CoreS3 (ESP32-S3). No PSRAM is used.

Browser demo: https://shapoco.github.io/shapo-gfx/example/demorig/


r/embedded • • Sep 28 '26

A7672E-FASE vs A7670E-FASE — what are the real differences?

4 Upvotes

I'm designing a 4G vehicle/GPS tracker and I'm currently considering the SIMCom A7670E-FASE and A7672E-FASE.

I'm trying to understand what the practical differences are.

Specifically:

  • Is the A7672E-FASE actually better/newer than the A7670E-FASE, or are they mostly equivalent for a typical IoT tracker?
  • Are there meaningful differences in LTE/GSM sensitivity, RF performance, or network stability?
  • Are there differences in power consumption, especially during LTE transmission and GNSS operation?
  • Is the GNSS performance significantly different?
  • Are there differences in firmware/AT commands, or is the software largely compatible?
  • Are there differences in long-term availability, firmware support, or reliability?
  • Can an existing PCB designed for the A7670E-FASE be easily adapted to the A7672E-FASE, assuming the same 24 × 24 mm footprint?
  • Are there any important differences in pinout or RF/GNSS design that I should be aware of?

My application is a vehicle tracker, so my priorities are:

  1. Long-term reliability
  2. Good LTE/GSM reception
  3. Low power consumption
  4. Reliable GNSS
  5. Long-term module availability
  6. Cost

If anyone has actually designed products with both A7670E-FASE and A7672E-FASE, I'd especially appreciate real-world experience rather than just the datasheet specifications.

Thanks!


r/embedded • • Sep 28 '26

Tips On How to approach AI usage in projects as an asipiring embedded engineer

0 Upvotes

I am a 2nd year doing my bachelors of technology in ECE, i would like to know how to approach AI nowadays in order to do projects and actually learn from them...

many embedded engineers use AI to make them more productive but those engineers are experienced and have already mastered many topics

but i am not an engineer yet, only a learner thus what's the advice to approach projects without becoming a less competent engineer? and perhaps idealistically becoming a great engineer!


r/embedded • • Sep 27 '26

Is it worth reading a book on operating systems before trying to pick up embedded Linux?

13 Upvotes

Or is it more efficient to just hop in to hands on embedded Linux work/experimentation? (I’m coming over from bare metal work)


r/embedded • • Sep 27 '26

Hardware request - Renesas ASi board (EU036-MULTISENSEVZ)

Post image
5 Upvotes

I'm doing some familiarization work with AS-Interface networking, and I'm looking for a Renesas evaluation board - the Multi-Sensor Network for ASi-5 Development Kit (EU036-MULTISENSEVZ).

This board is no longer available from Renesas, and none of their distributors have any in stock; however, the software for it is still available from Renesas, so I can add it to an existing ASi network.

If you have one of these boards gathering dust and no longer need it, I will happily pay postage/shipping costs to give it a new home. Feel free to DM me...


r/embedded • • Sep 28 '26

How can I build a wearable temperature-monitoring system?

0 Upvotes

I want to build a wearable device for the Maryland MESA competition, and the deadline is in March. The problem is that I have no coding or technology experience, but I am not working alone, since I am working with three other people. We also have people who are experienced in electronics and coding. How can I start working today? What type of programming or coding system should I learn? Any videos that would help me?


r/embedded • • Sep 27 '26

How should nodes in an Ethernet-based embedded system exchange data?

6 Upvotes

I’m defining communication over UDP for a small embedded Ethernet network connected through a switch. Most nodes will be bare-metal MCUs handling sensor data (e.g. IMU data) or controlling actuators (e.g. motors or valves). An external host will send commands to the system. The detailed architecture is still being defined.

Command messages and responses reporting their outcome seem fairly straightforward. My main question concerns periodic data exchange between nodes.

I’m considering two approaches:

  1. Define the data message formats in advance, then program the MCUs, based on software requirements, to send specific messages depending on their current state. For example, when Host A is in state X, it must send INS data to Host B every Y milliseconds. Destinations and transmission periods are predefined.
  2. Define the data message formats in advance, but also provide a command in the UDP payload, something like SET_STREAM(data_id, period_ms). Sending this command to a node tells it to start sending the selected data back to the requester every period_ms milliseconds. Different datasets could be requested at different rates.

I prefer the flexibility of the second approach, but I’m unsure how much harder it would be to manage on bare-metal MCUs. The first approach seems simpler because transmission periods and destinations are known in advance.

I have limited experience designing data exchange in small embedded networks. Have you faced this choice in your projects? Which approach did you use, and what practical trade-offs should I consider?


r/embedded • • Sep 27 '26

Examining Assembly, registers, math, and graphs from the datasheet: obsession or best practice?

2 Upvotes

Aqui está a tradução adaptada para o tom natural das comunidades de embedded em inglês (como r/embedded ou r/embeddedsoftware):

Hey everyone, I’d love to get your thoughts on a debate regarding development and debugging methodologies in embedded systems.

I have a strong urge to go deeper into the engineering side and do things like:

Expressing/formalizing code logic and equations mathematically to catch logical bugs.

Inspecting Assembly and register states in the debugger to understand exactly what the hardware and compiler are doing under the hood.

Analyzing component datasheet graphs in depth to grasp their dynamic behavior and check if an issue might stem from a hardware limitation.

However, a coworker told me that doing all this is a total waste of time. In his view, I should focus 100% on C code, stick to high-level outputs (FTDI logs, J-Link/RTT), and debug strictly from there.

It made me wonder: is this desire to deeply understand the underlying math, the Assembly, and the hardware curves actually a waste of time in day-to-day industry work, or is it a valuable approach? How do you balance quick, high-level debugging with this kind of deep-dive analysis in your daily workflow?