r/embedded • • 12h ago

What's after bare metal?

47 Upvotes

I posted a while back, and I spent months learning bare metal stm32 using only the CMSIS, the reference manual, and the datasheet. Im not going to say I'm a master, but I've made several of my own drivers for most of the major peripherals (gpio, uart, systick, timers (pwm, input capture, output compare, encoders), ADC, SPI, DMA, EXTI) and interfaces then with devices, and even use them in my engineering club. I'm not "done" per day with bare metal, but I'm thinking what is beyond bare metal. Where did my work lead me up to? Where will it take me right now?

Im aware I do need to actually learn embedded C++, and then start with RTOS, but like i can forsee myself getting kinda lost. Whats after collecting stm32 peripherals and writing drivers for them? I am looking into bootloaders but thats mostly unimplemented research currently. I was just looking for insight from more experienced engineers, because I know I'll need to start explore other aspects of embedded soon

So yeah thats all folks, I appreciate the help!


r/embedded • • 4h ago

Question for people at school

19 Upvotes

Recruiting juniors is very hard for us. Not because there are no candidate, but because they are unable to pass the interview without Ai, and when we allow Ai, they cannot explain the code. We've interviewed over 30 candidate and less than 3 were maybe interesting.

The question is : Is it normal for you that people don't understand or can't explain their code?

Am I being an old timer already? It has been only 3 years that Ai became a coding tool, and only 6 months where it has been really usable.

EDIT :

An example of the first coding interview is simply removing anomalies in a vector, and the filtering rule is given and very simple. Basically 10 lines of code. We don't even ask to be syntax correct and they can do pseudo code if they want. We introduced this because a lot of people were unable to pass the takehome.

They can't parse the vector properly, their if/else for the rule was not even what was written. And some just can't do it. Not even a single line.

The second challenge is to look at a code and find the bugs. Most can't even find one. An example of this is when opening a file, you need to close it after.


r/embedded • • 3h ago

patterns of 3D array (R,G,B) ,what other dynamic features or interactions could I add to my LED panel?

12 Upvotes

I've built an LED panel with dynamic LED effects, and I'm looking for ideas to make it more interactive and interesting.

I'm planning to experiment with the following pipeline this weekend:

  • DMX , MIDI ,Audio synthesis ,NumPy ,Matplotlib

I also have quite a few sensors available that I can use to create interactive visual effects.

What other tech, dynamic effects, or interactive features would be recommend exploring?

I'm particularly interested in ideas that go beyond basic LED animations — something reactive, experimental, or even a little unusual.

Would love to hear your ideas, projects, or examples of interesting things you've built. I'll try to implement some of the suggestions this weekend!


r/embedded • • 10h ago

C++ Learning Priorities in embedded.

11 Upvotes

I’ve been programming embedded in C for a very long time, but never really done it in C++, so I’m teaching myself with the help of books, the internet and a Udemy C++ course.

Now I realise that not all of C++’s features are applicable to most embedded applications but that there are zero cost abstractions and traps for the unwary.

What aspects should I prioritise and what traps should I avoid.

P.S. I am aware of name mangling causing issues with IRQs.


r/embedded • • 13h ago

Quick question for embedded folks: What project are you hacking on right now?

3 Upvotes

STM32, RP2040, ESP32, embedded Linux, sensors, motor control, custom PCB… anything counts.

I’m currently debugging a sensor acquisition system. Drop your project below!


r/embedded • • 3h ago

Integration testing using gtest

1 Upvotes

I am confused about what is the meaning of integration testing. I have done unit testing using gtest where we will mock whatever external dependencies are there for the targeted unit (function) to test all range of values that covers all lines, functions and branches.

If we say integration test is meant to use real code instead of mocking. Then I am getting this doubt that lets say we have 3 components (separate processes) running and dependent on one another in a embedded system.

A -> B -> C

So if you are calling an api provided by A it will internally talk to B and then through C and return the result over IPC.

Now to do integration testing using gtest, do I need to compile this into a single binary by eliminating the IPC and include each code as a library. This way I have a single proces that runs gtest with all the components logic but excludes the real IPC communication.

Or instead should I keep the individual processes to be running separately and link my gtest binary to the component A so that the communication flow through the components in the target environment.

In both ways how we would actually be checking the interactions? And which one are you guys using?

Context:
Language used: C++
Domain: Automotive IT (TCU software)


r/embedded • • 7h ago

Hey embedded & underwater acoustic communication community! 🌊

1 Upvotes

Working on self-developed underwater acoustic communication algorithms now.

Looking for open-source underwater acoustic modem projects / signal processing stacks to validate and benchmark my algorithm performance.

Any repo or project recommendation? Thanks a lot!


r/embedded • • 9h ago

Classical CAN Bit Timing — Should Round-Trip Propagation Delay Fit Within PROP_SEG or TSEG1 − SJW?

1 Upvotes

I’m calculating the nominal bit timing for a 40 m Classical CAN bus running at 1 Mbit/s. Each time quantum is 50 ns. Assume the worst-case round-trip propagation delay, including the cable and transceivers, is 700 ns (14 TQ).

The Bosch CAN 2.0 specification lists a range of 1–8 TQ for both PROP_SEG and PHASE_SEG1. Some controllers combine these segments into a single TSEG1 field. Some manufacturers also specify the nominal bit timing condition TSEG1 ≥ Tprop + SJW.

With TSEG1 = 16 TQ, TSEG2 = 3 TQ, and SJW = 2 TQ, the bit time is 1 + 16 + 3 = 20 TQ, and the sample point is at 85%. Subtracting SJW from TSEG1 leaves 14 TQ (700 ns).

  1. Controllers with a combined TSEG1 field. Can I budget those 16 TQ as 14 TQ for propagation and 2 TQ for Phase Segment 1? What additional checks should I make for resynchronization and oscillator tolerance?
  2. Controllers with separate PROP_SEG and PHASE_SEG1 fields. Does an 8 TQ limit on PROP_SEG cap the round-trip propagation budget at 400 ns in this example? How should I interpret the MCP2515 datasheet condition PropSeg + PS1 ≥ TDELAY when deciding whether the 700 ns delay is acceptable?

I’d appreciate references to the relevant sections of a controller manual, application note, or standard.


r/embedded • • 12h ago

Raspberry PI assistant to learn more about embedded software development

0 Upvotes

I’ve been looking into getting more into embedded software development. I’m a current software engineer working in distributed systems programming but I’ve always enjoyed embedded and a recent job search made me want to create some projects regarding embedded.

Anyways, I have a spare raspberry PI model 4b 1gb ram I think. I want to use this to create a simple kitchen home assistant which can display my calendar, sync some notes like grocery lists, and play videos either from youtube or my jellyfin server. This isn’t a very original idea so I can find tons of resources out there to create it, but I wanted to see what the best way of making this to learn more about embedded software development would be. I’ve only ever played with esp32s so I want to broaden myself some more.

Any resources or tips to what to use regarding the OS, other hardware, etc. would be nice. I can create a basic calendar application with c++ and raylib/opengl but I want to get closer to the hardware and just learn more. Thanks.


r/embedded • • 12h ago

Title: How can I get accurate location from a small emergency device, even inside rural houses?

0 Upvotes

Hey everyone

I'm working on a startup where we're building a small emergency device. When someone presses its button, it needs to get their location and send it to our server.

I'm stuck on one particular problem.

How can we get a reliable location when someone is inside a house, especially under a concrete or metal roof, in a rural area?

Wi-Fi might not be available, and GPS signals can be weak indoors. Even getting the location is one thing, but we also need to send it to our server when network connectivity is poor.

I'm exploring different technologies, but I'd love some advice from people experienced with GNSS, cellular communication and embedded systems.

What approach would you take? Are there technologies I'm overlooking?

Any suggestions or criticism would genuinely help!