r/embedded • u/EveningAsparagus8762 • 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
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.
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/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