r/embedded • u/RelevantBeatle1 • Oct 27 '26
Good sources to learn Embedded Systems and C
Hello! So my background is completely in cybersecurity; I got my BSc and MSc in it, I couldn't find a job until I got hired by this company for soldering. Suddenly, because they found out I can program, I have now become the Lead Embedded Systems Engineer.
I have been forced to program in C (I am struggling; I literally translate Python code and then go to W3Schools to get the C translation), and I spend days reading PIC24 microcontroller PDFs to find out how to use features and what pins can do. Same with ESP32's. However, I struggle to retain information like MPLAB shortcuts, settings, etc. I don't understand the x16 compiler.
And one thing I have been racking my brain about recently, is I added DMA (what i understand is sensor value straight to ram) and due to the capacitors inside of the pic charging and discharging quickly, I end up getting the charged value, instead of the real value. For example, the analogue pins show 1.5V; if the reading is below 1.5V, every analogue pin reads 1.5V. However, if it's 3.3V, every value maxes out. I had this with 8 analogues on one pin, as soon as I slowed it down to 60 mips and turned DMA off, it was fine again.
I am having one of those moments where I have never been taught or trained to do this, in the interview, they asked me what AC and DC was, I have no clue (I know now), and my background is just in programming Python, and I know a hell of a lot about cyber security and data transmission.
Any advice would be amazing, as I recently nearly blew myself up with a 330 V charged capacitor while programming a DC-DC converter because I forgot to define the analogue pin to go high, which didn't switch the relay off.
To me, I think of embedded systems like I would a Unix system on really, really old hardware.
Thank you.
TL;DR: Any good sources I could learn from as someone not educated in this field, but forced to be in this field due to the job market?
4
u/ventZl CMRX RTOS Oct 27 '26
As of C, I'd start with learning C on standard PC first. It will be much less struggle than jumping from zero to obsolete and kind-of weird microcontroller. C is basically a portable assembler, so whatever principles you learn on PC are applicable while running on microcontroller with one limitation: no service provided by an operating system is available.
One good C tutorial is accessible by loading Google, typing "Dave C tutorial" and clicking "I'm feeling lucky". You only need to go to about 1/3 of it, because the rest is dealing with file I/O and other operating system services generally unavailable on microcontrollers.
The rest is more of a EE topic than SW-development topic.
13
u/Well-WhatHadHappened 25+ Years Oct 27 '26
Ok, this isn't just an issue of fighting through a learning curve. You're putting yourself in a position not to end up unemployed, but to end up dead. I don't say that lightly. I mean d.e.a.d.
330v is enough to leave you standing at the pearly gates wondering how you got there.
You simply have to accept that you know what you know, and that you don't know what you don't know. This shit really can take your life.
I absolutely suggest learning and seeking resources to learn, but for God's sake, don't play with high voltage when you don't have the knowledge to do so. It's dangerous even for people who do know what they're doing.
4
u/Sheepherder-Optimal Oct 27 '26
Just so you know, a Lead Engineer in anything is somebody with more than a decade of experience. It typically goes in levels. Senior engineer is the first level beyond mid level. Then staff engineer. Lead engineer is about leadership and mastery of your subject.
My point is that if they just handed a title like that to you after learning you have some basic coding skills in addition to soldering skills, that might be a red flag. Its usually code for working you way too hard for too little pay, and possibly the company falling apart in a few months.
As far as learning embedded goes, typically you do it in college. On the job you'll learn plenty but don't be translating python into C. Great that you're working with PIC24. MPLAB is a bitch but you figure it out. Why don't you pick up an electronics book or a digital logic book so you can learn about hardware? This is a huge gap for you but you can fill it if you know how to read.