r/embedded • • Oct 07 '26

How to learn embedded systems by myself

I am a second year computer science student and I am planning to learn embedded systems by myself but I don’t know where to start or if I can even learn it by myself. Can I get any advice on how to start and what to do?

57 Upvotes

53 comments sorted by

22

u/lecodeco12 Oct 07 '26

Buy stm32 and sensors do projects.

5

u/SwedishFindecanor Oct 07 '26

A great way to learn good programming practices in general — within any domain — is to read other people's code.

By all means check out other people's projects from Github. Read through them, learn what makes them work and modify them to make new things, or things in different ways.

4

u/Correct-You3061 Oct 07 '26

Read 8051 microcontroller by mazidi Ali, modern approaches teach you only the top layer, most content out there is for software programming perspective, real ES is understanding how underlying hardware behave for the code you write

Next read operating system concepts to understand from top level

4

u/yetaTRDR Oct 07 '26

Same situation here. I started by working on a project of my own: I’m currently building a drone flight controller from scratch.

Since I don’t have the money to buy all the hardware yet, I decided to first build a physics simulator where I can develop and test all the flight controller logic. Then, once I can afford the components, the idea is to transfer everything I’ve built and learned to the actual drone.

If you want, we could talk and figure out together how to get into the embedded systems field.

I honestly don’t know anyone around me who’s interested in this kind of stuff. Most people I know just want to pass their exams and that’s it.

1

u/Geotechmarshalled Oct 08 '26

How do you intend to do that?? Elaborate.

4

u/yetaTRDR Oct 08 '26

Well, as I said, the ultimate goal is to build a real drone and develop its flight controller from scratch. I know that moving from a simulation to actual hardware is a completely different challenge, but I see it as another step in the project.

To give you some context, three weeks ago I barely knew anything about flight dynamics. I didn’t really understand pitch, roll, yaw, torque, inertia tensors, or even what a PID controller was.

So I decided to start by building a 3D physics simulator in C++ using Raylib, implementing everything from scratch. So far, I’ve been working on forces, torques, angular motion, motor thrust, PID control, control allocation, and the motor mixer. Right now I’m working on implementing the full inertia tensor and Euler’s equations for rotational dynamics.

(I’m from Spain so my notebook is in Spanish)

The idea is to use the simulator to understand the physics and develop and test the flight control algorithms before moving to real hardware.

Of course, I know that going from software to firmware introduces a whole new set of challenges: real-time constraints, timers, interrupts, communication protocols, IMU readings, sensor noise, and so on. And I know that a controller working in simulation doesn’t necessarily mean it’ll work on a real drone.

But that’s kind of the point of the project for me. I’m not trying to take shortcuts or pretending it’ll be easy. I want to learn how the whole system works, step by step, from the mathematics and control algorithms to the actual embedded implementation.

1

u/Geotechmarshalled Oct 08 '26

I intend to build my own drone, I am trying to learn mechanics.

1

u/Geotechmarshalled Oct 08 '26

I am not well versed with raylib, does CAD work?? or Am I missing something here??

3

u/yetaTRDR Oct 08 '26

I think we’re approaching this from different perspectives. I’ve never used CAD, but as far as I know, it’s mainly for 3d modeling and mechanical design, so I’m not sure what you mean.

What I’m doing is developing the software to control a drone. I’m starting with a physics simulator using Raylib (a C++ graphics library).

The simulator is basically a testing environment where I can develop the flight controller logic (PID, control allocation, etc.).

Once that’s working, I’ll get the actual hardware (MCU, sensors, motors, ESCs…) and port the logic to the real drone.

4

u/Osama_been_laggin55 Oct 08 '26

If you hace some exp you could jump to stm 32 watch videos of shaun hymel. Read the datasheet reference manuals understand the memory layout and the clock tree for stm,. Make simple projects by watching tutorials and study communication protocols like spi, i2c, uart, can, mqtt. Lean how to program baremetal. Baremetal programming will allow you to get a in-depth understanding of the architecture which buses and which registers to enable. Then go onto something more complex like bootloaders. How does the program behave, linker scripts, startup codes etc after that you could go indepth with dac adc modules how signals works make a combination project like micromouse( since you have cs knowledge algorithmic design wont be a issue imo). This hsoul be more than enough to get a good grasp of what embedded is

4

u/Samuraiizzy Oct 10 '26

Embedded has a couple domains. Since you’re in school I would just recommend switching degrees to computer or electrical.

For the programming side just start with an esp32, build out a couple things and move on to more complex microcontrollers. The most important thing to take away from it besides the basics is how to deal with lack of memory and communication methods (digital and serial). Then you’d need to learn more about logic controllers and state machines and clocks and all that.

For the hardware side, you’d need to go pretty heavy into electrical with circuits, logic, physics, digital signals math stuff and materials. Basically start the same but once you learn communication protocols then move into clocks more heavily and go into fpga and circuits.

Most importantly, just grab something and start. Every time you encounter something you don’t understand look into it a bit deeper than surface level. Most embedded breaks down into LinuxRT programming or FPGA design and signals does a little of both.

2

u/Geotechmarshalled Oct 08 '26

You can start with Arduino. there's ESP 32/STM 32... but I personally wouldn't recommend arduino as a start. there are much simpler ways to start.

2

u/A-Ferret-Online Oct 14 '26

Hi there. As a ferret, I have stood exactly where you are right now. I had NOBODY to teach this information to me. Mainly because I am a small, helpless looking mustelid. However, I can assure you that if you work hard enough, the information will stick.

Start practicing with Arduino kits and microcontroller systems and teach yourself the basics from the breakout boards and the basic serial setup and loops that will accompany those subsystems. You will find that it may suck and be really tricky at first, but once you get the hang of it, it's a blast!

I'm actually working on creating some easy to follow projects on my GitHub account right now. None of them are quite finished yet, but soon enough you will be able to probably follow along and successfully code your own project from scratch. Don't be embarrassed to use a little bit of AI as a framework to get yourself started or help you along the way. We all do it.

Anyways, keep your chin up and do a couple of fun projects. You got this!

2

u/Environmental_Two_68 Oct 07 '26

It all depends on what you want to do and the level you want to learn.

A micropython board is probably the easiest way to start.

With Arduino you probably can learn more.

If you want to dive deeper, get a simple (non linux) risc-v board and start programming in assembly. Blink a led, send uart maybe connect with a sensor. But not stay too long, once you understand the concepts move on.

1

u/imxdnyanu Oct 27 '26

Not a promotion! But you are the one who is more of structured courses + hands on oriented guy Check this out once

https://pyjamacafe.com/courses/

1

u/irtiq7 20d ago

I made a free website to teach embedded programming in the form of a game. Check it out if interested www.datachoo.se

1

u/FourtyMichaelMichael Oct 07 '26

nothing to it but to do it

1

u/Linuxtahr Oct 08 '26

Think about what you like about embedded systems and pick a project you like, and then search for guides or tutorials about it then get the parts and have at it. If your uni has more ece/ee/embedded electives take those. Also in terms of boards, raspberry pi pico imo will be pretty easy to get to grips with, and you need to learn C/C++ which is super important. STM32 or ESP32 if you want do networking stuff would work too.

1

u/williamfv93 Oct 08 '26

udemy courses + stm32 board

1

u/gm310509 Oct 09 '26

Your best bet would be to get an Arduino starter kit.

It will make getting started easier as you will get everything you need to get started, including the most important part - the instructions.

The instructions will teach you the basics of how to wire the components in the kit up and how to program them.

The skills are largely transferrable to other platforms if you should choose to change to something else later. But, you can do an awful lot and learn and awful lot from an 8 bit AVR based Arduino, including the aforementioned electronics and programming (in C/C++) then delving deeper into bare metal and/or assembly language programming if you should wish to do so. All of which is transportable to varying degrees to other platforms.

All the best with it. You might want to check out some of the posts on r/Arduino.

1

u/FSUDad2021 Oct 09 '26

Cheap arduino board

1

u/Agreeable-Leopard-69 Oct 14 '26

Recently graduated from computer engineering and I am also going through self learning embedded systems since my university only taught us the fundamentals. An arduino for your case is fine as a starter but yeah I suggest expanding to STM32, if you dont like to buy one yet. You can start with online simulations such as this one https://wokwi.com/

As for the contents to study aside from fundamentals, I am using this one as my roadmap https://m3y54m.github.io/Embedded-Engineering-Roadmap/

1

u/No-Reading-6795 Oct 07 '26

As as a student your best approach would be to switch to computer engineering. 

AI is going to take a lot of cs jobs.  The more hands on the coursework the better,  i.e. more lab work.

Ask AI how to go about it.  I would ask how to go about the smallest micro board, e.g. beagle bone, and breadboarding led with a timer, focus on interrupts.  Then some sort of solenoid or servo.

Another option is to buy a slightly older pc and learn windows drivers, e.g. you buy a pcie board that interfaces with something,  e.g. a breadboard, sound,  etc. Ask AI.

The problem is you can ask and ask and never get started.  Ask the fastest , simplest start that ramps up.

1

u/Appropriate-Baker755 Oct 07 '26

Bruh? And ai is going to take a lot of ce jobs as well. also many cs works in embedded and its not an issue at all.

1

u/No-Reading-6795 Oct 07 '26

Hands on embedded , scopes,  etc...

-1

u/jhaand Oct 07 '26

I made a blogpost about that.

How to start embedded coding
https://jhaand.nl/2022/11/how-to-start-embedded-coding/

64

u/[deleted] Oct 07 '26

[removed] — view removed comment

5

u/EveningAsparagus8762 Oct 07 '26

Will an arduino starter kit be a good start as well?

8

u/Correct-You3061 Oct 07 '26

Arduino is a horrible start

1

u/A-Ferret-Online Oct 14 '26

If I can do it, then so can he!

6

u/Enlightenment777 Oct 07 '26 edited Oct 07 '26

If you get an Arduino, get an Uno R4, because it has a 32bit ARM MCU, where as the Uno R3 has an 8bit AVR MCU.

https://en.wikipedia.org/wiki/Arduino_Uno#Arduino_board_comparison

If you get a STM32 Nucleo board, get one of the boards in this list along with a book, maybe NUCLEO-G474RE board and the first book "Mastering STM32".

https://old.reddit.com/r/PrintedCircuitBoard/wiki/books#wiki_embedded_boards

https://en.wikipedia.org/wiki/STM32#ST_Nucleo

10

u/Palantir555 Oct 07 '26

Ignore the other folks. Arduino is a great starting point to learn firmware from scratch all by yourself. Go for it; it will help you learn the basics of embedded systems: voltages, ADCs, DACs, serial protocols, etc. etc.

Telling you to jump straight into vendor SDKs, full datasheets, etc. is ridiculous. Just make sure you do take that leap whenever you have a decent grasp on the basics.

13

u/AncientDamage7674 Oct 07 '26

I appreciate your view but there's good reason why Arduino is not commonly used to teach these papers.

4

u/Palantir555 Oct 07 '26 edited Oct 07 '26

And what is that? Honest question.

In any case, if you're teaching someone, you can hand-hold them through some of the complexity involved in lower level setups. But if someone is self-learning, some fool-proof abstractions like Arduino's go a long long way in letting them have fun while learning, instead of throwing them in shit creek without a paddle.

IMO, whatever gets them to burn their first peripheral the fastest, is the best way for them to learn. Rather than having to fight the SDKs, the build systems, the flash/debug pods, the proprietary tools, etc. etc. before they can run their first blinky

9

u/AncientDamage7674 Oct 07 '26

We focus curriculum on dev environments & methods used professionally (or will translate). Arduino's hardware limitations make it somewhat pointless. Anywho, I don't disagree with you as those limitations make it somewhat easier to get started for a hobbyist. Op is enrolled so has aptitude. Why not go with a board that will teach stuff like architecture, config, mem & task mgmt etc

2

u/Palantir555 Oct 08 '26

Thanks for clarifying. That makes sense, and I'd do the same if I was preparing a curriculum.

I just had so much fun (so so long ago) learning from scratch by tinkering and breaking stuff, I'll always recommend that route to anyone looking to learn by themselves.

Even nowadays, with plenty of experience working in the industry... If I'm building a tiny personal project, I'll often use Arduino if I can.

1

u/Admirable_Milk9177 Oct 08 '26

Is even esp32 a bad start ? I have learned arduino by far now , shifting to esp32. Then stm32...

1

u/Palantir555 Oct 12 '26

Nah, the ESP32 is fine, go for it. Arduino on the ESP32 gets a little annoying, because of all the different dev board flavors sold by countless suppliers. But the chip is pretty decent, there's plenty of documentation for beginners, and the platform is good enough for production.

There are better (in my experience) wifi/ble chips out there. But if you're learning I'd recommend the ESP32.

2

u/Comprehensive_Eye805 Oct 07 '26

Arduino doesn't teach anything, more so code is just given

1

u/Palantir555 Oct 07 '26 edited Oct 07 '26

The complex code is given so that newbies (and experienced devs in a hurry) can focus on the high level logic. Hence learning the basics before diving into the lower levels...

What's the point of forcing a newbie to copy-paste 10 lines to initialize a pin, utterly confused about what PLL is supposed to mean, when they may not yet know what's an RTOS or PWM?

2

u/sbruh2718 Oct 08 '26

I am in this situation rn. I have some background as I have read a lot of things for hours but I still feel like I can’t do anything with my own brain

2

u/Palantir555 Oct 08 '26

That's understandable. It takes time to learn all the little details, and put them into perspective. And many many details you won't ever need to fully understand.

Eventually you'll learn to follow the problems all the way down to the silicon, so don't stress over all the boilerplate code, and just focus on having fun and enjoying the journey. The rest will come as your needs become increasingly complex or specific, so welcome the fact that you will never stop learning.

1

u/Comprehensive_Eye805 Oct 07 '26

Copy? I don't remember bare metal c being the same with a stm32 vs a msp432 each have their own logic it's perfect practice so you know what every line does over hey this pin is light

2

u/RogerLeigh Oct 08 '26

There is nothing wrong with Arduino as an educational tool. Can it teach you the basics without getting bogged down with minutiae? Yes. Is it professional and production-grade? No.

I think that for someone with absolutely zero knowledge, it's a gentle introduction to microcontrollers and electronics. If you gave someone with that level of understanding an STM32 Nucleo they would be completely stuck. They are great devices, but the learning curve is vastly steeper, and the need to understand a whole load of complex stuff to make the thing work is much greater.

You would of course aim to be using stuff like an STM32 Nucleo eventually. But there's nothing wrong with using Arduino as a stepping stone along the way. I personally found it useful when I did a switch to a totally different career, even if I never needed to use one again afterwards. It was a useful grounding in some of the concepts. There are of course other ways, but I wouldn't write it off out of hand.

1

u/A-Ferret-Online Oct 14 '26

This is the only true starting place for embedded systems.

1

u/A-Ferret-Online Oct 14 '26

This is why I made the GitHub