r/learnprogramming • u/Cold-Performer4659 • 18d ago
Self-taught aspiring embedded engineer looking for a learning roadmap
Hey everyone!
I’m looking for some guidance, a learning roadmap, or just some advice on how to structure my learning.
I’m really interested in microcontrollers, electronics, and programming. I’m not currently studying at university, but my goal is to eventually land a job as an embedded software engineer.
I’m curious about how people actually learn this field. Where do you get your knowledge from? How do you learn to write firmware, understand compilers, design and build different electronic devices, and figure out what tools and skills are needed to make things work?
Could you recommend any courses, guides, books, YouTube channels, or other resources that could help me get into this field?
More importantly, I’d like to learn how to actually understand what I’m doing rather than just blindly following tutorials. I want to develop a solid understanding of the fundamentals, learn how to approach problems, come up with project ideas, and figure out what to learn next.
I’d really appreciate any advice, learning resources, or personal experiences you could share. I’d love to hear how you got started and how you approach learning new things in this field.
Thanks in advance!
3
u/ResidentPomegranate6 18d ago
buy an stm32 nucleo, write bare-metal C from the datasheet instead of the HAL; flashing one LED and tracing the clock tree teaches you.
2
u/Delicious_Bed_4410 18d ago
Since you want to understand things rather than follow tutorials, I'd pick one small physical goal and let it pull you through the fundamentals. For example, make a sensor reading show up on a display and then make it reliable. To get there you end up learning C properly, reading the chip's datasheet and register descriptions, and using a debugger instead of guessing. Learning C well first and getting comfortable with basic electronics like voltage, pull-up resistors and how a serial connection works will carry you a long way. Keep a notebook of every bug and what actually caused it, because that habit is most of what embedded work really is. Later you can read about how interrupts, timers and a simple scheduler work, then rebuild one yourself so it stops feeling like magic.
2
u/porn_sub_lurker 18d ago
I would buy a book on computer architecture. It's dense and boring but it will give you a foundational knowledge for how things work. You could learn about compilers from the top down, like how C gets translated into assembly instructions, but I think that's the wrong approach. If you first learn about the hardware and what the assembly instructions do then it becomes more clear why the compiler translates things the way it does. You could buy an FPGA and learn how to build different hardware with that. You can use it to control sensors and signals and stuff like you would with an ESP32 or an Arduino. But you're working at the gate level and you have to control everything yourself. That sounds scarier than it is though. You can use a hardware description language like Verilog to design the hardware for the FPGA. Google Gemini can show you how to do things, kinda. Google is much worse at HDLs than it is at programming languages, but still very useful. You could build things like digital signal processors, like if you wanted to make a distortion pedal for a guitar or something. It's incredibly quick to do this kind of thing in hardware so you don't notice latency like you might with using a microcontroller. All of the inefficiencies and overhead of a microprocessor are removed and the only thing you have is the necessary logic to perform the given task. It's just a different level of embedded. When I was in college one of my projects was to build a bitcoin miner on an FPGA. It can do all 64 calculations in parallel, because it has all the necessary hardware to do it. It doesn't have to wait on the same hardware 64 times, if that makes sense. So it's much more efficient than running it on a PC or a microcontroller. I only suggest FPGAs because you say you want to understand how it works. If you wanted to just build stuff and get your feet wet I'd suggest an Arduino or ESP32. They are more user friendly. If you wanted to, you could build a microprocessor on the FPGA and use that too, although FGPA are expensive and arduinos are not so the only practical part of such a project would be the learning experience.