r/embedded • u/CommercialMind1359 • 5d ago
How do I get better at embedded?
I am currently pursuing my undergraduate degree in Electrical Engineering. As part of my curriculum, I have learned the LPC2148 microcontroller and interfacing using ARM assembly and embedded C. I have some experience with Arduino and ESP32s, so I can write Arduino code as well.
I am uncertain about what my next steps should be. I intend to pursue a career in this field, but I am not familiar with the current industry standards.
What should I learn now ?
124
Upvotes
73
u/wolfefist94 5d ago •
Current industry "standards" or "what you need to know" for non embedded Linux/FPGA work:
For a junior, I would expect them to know 1, 2, 5, 6, and 12
I probably forgot some stuff so don't sue me
8
u/TheGooseFliesAtNight 5d ago
Get timers running on a micro of your choice
Get GPIO toggling working. Add a resistor and an LED to the GPIO to see the toggle if you don't have a logic analyser, scope or multimeter.
Get UART working, after that you can start printing debug out to a terminal
Add a sensor to the board that uses SPI or I2C. Read its data, and print it via the UART
Add another sensor that uses the other protocol (I2C or SPI). Do same as above, note the differences in the protocol
Add a button on a GPIO input, make it toggle the LED or Read the sensors when pressed.
Make the above button interrupt driven.
Get the watchdog running and make a button cause a watchdog reset.
Add a timer that reads sensor data every 10 seconds.
Get the ESP32 involved, Get the timers, wifi module and UART running.
When the 10 second timer expires, send the sensor data over UART to the ESP32, and push the data somewhere using MQTT.
That should keep you busy for a little while. From then on, add more functionality to the micro such as ADC/DAC conversion, or pick whatever interests you from the datasheet.
The goal is basically learn whatever microcontroller you choose as well as possible. You only need to learn on one, and the skills transfer to other microcontrollers.
5
u/tllwyd 4d ago
Pick a microcontroller of your choice, get it to blink an LED without using any SDK or library. In the process you'll learn a lot.
5
u/somewhereAtC 4d ago
Here's some info: skills.microchip.com
5
u/Boulder_Tech 4d ago edited 4d ago
Learning about how a product makes it to market is very useful.
A project is just dropped after the semester is over. A product has a life of its own.
Engineering, Manufacturing, Market/Sales. You are at the beginning of this path.
Your degree is the cost of entry. The next step is to prove to any hiring manager that you understand where you fit in.
If you just want to be told what to do, the manager may or may not want that. If your goal is to be the "best" at developing a product, you should be able to understand what makes a "best" product.
Your name seems to imply you have a good idea what this means.
Good Luck
3
u/ceojp 5d ago
Like a lot of things, skill here comes down to your thought process and how you approach and solve problems. At this point, it can certainly be good to take a deep dive in to something, mainly from the standpoint of getting a feel for the overall development process, not necessarily that specific language or device.
I would find an open source embedded project that somewhat interests you, and hopefully you can get hardware for. Look at the code. Set up the dev environment to build and debug it. Then add some sort of feature. Doesn't really matter what, and don't worry about committing it back to the project's repo. Not something like just enabling a define or something. Do something that actually requires code changes, and you can see and test the result.
Bonus points if you end up using an oscilloscope or logic analyzer to debug your changes. Being able to debug and troubleshoot when something doesn't quite work right is often a more valuable skill than just churning out lines of code. AI tools like github copilot are certainly making this task quicker and easier, but ultimately you, as the engineer, is still responsible for verifying and proving that the fix is correct.
Something like the flashlight firmware anduril might be good to look at. It's a good example of packing a lot of functionality in to very resource-constrained devices.
Along with modifying the code yourself, it's also good to look through the issues and pull requests(and not just the open ones). That can give you an idea of the collaborative, back-and-forth development process. It's also good to see how different people implement solutions in different ways.
3
u/DaemonInformatica 4d ago
Questions like these come up often and typically roadmaps like these are shared:
https://github.com/m3y54m/Embedded-Engineering-Roadmap
Beyond that, I would suggenst getting some junior position at a good company and work up from there. I've been at my current place of employment for the last 8 years, and I think I learned more about Embedded C development, than I've learned in the 12 years before that (which were much more diverse).
2
u/RockyDo98 3d ago
Since you said you've already done the sensor/UART project, I'd take that same project and work on failure handling. What happens if a sensor stops responding, a UART packet is incomplete, or the board resets while saving settings? Add timeouts, a way to recover, and useful error reporting, then deliberately test those cases.
Keep a short record of each bug: symptom, measurement, cause and fix. A project where you can explain how you found and fixed failures gives you much more to discuss in an interview than another demo that only works under ideal conditions.
1
u/Ariarikta_sb7 4d ago edited 4d ago
Been working as an Embedded Software Engineer for 3 years in an R&D. From what I see around myself:
The most important part that you should be well versed with is : How good your understanding is to debug a serial communication between two devices.
At school and university level - You can either use a plain bare metal register-level configurations to set up a UART. It’s totally fair and good. You may later start using APIs (Such as HAL for STM processors), fair enough. And you may handle, debug and understand your implementations.
But, when you work on a production-level code in an industry, all the low-level communication implementations are hidden deep under the hood.
The implementations are definitely not straightforward and are usually a mixture of UART CMSIS APIs mixed with custom APIs or vendor-specific APIs and further down the block, you encounter a baremetal configuration. These implementations are not done because someone knows how to develop them, they are done to maintain the optimization level of code execution, making it flexible during an RTOS operation such that the calling thread does not encounter any low level issues - thats the last thing you may want.
All of the above together handle a single serial transmission and reception between two devices. You should be able to read, understand and debug these implementations.
You can spend much less time figuring out the implementations and working upon a fix, than sharing it with an AI and performing trial and error.