r/CodingForBeginners • u/Beyond_5112 • 14d ago
I wanna learn hardware , pls help
hi ,im a highschool student. i always found hardware so fascinating , and i wanna build cool stuff myself too . i have almost zero prior coding experience , i did learn basic python loops and conditional statements in python a few years back thats all i know .
what language should i learn ?
what tutorials should i follow ?
is there a roadmap ?
hope anyone helps .
16
Upvotes
4
u/GuruPentameter 14d ago
starting simple is often a useful first step. i got some mileage from arduino kits from amazon when i first started with hardware.
3
u/TheUmgawa 14d ago
It’s really too bad the VGA protocol has been deprecated, because Abrash’s Graphics Programming Black Book was wild back in the day of being able to directly access hardware without an abstraction layer.
Nowadays, I’d probably start simple, like with an arduino or something. Put a thermostat on it, and light up an LED when the temperature exceeds a certain amount, and then use a hair dryer to blow hot air on it. Pretty simple, but that’s how you start designing and programming hardware. The guys in my robotics classes regularly walked around with arduinos in their backpacks, and we’d talk about what we were working on. They were hardware guys; I was a code guy, so everybody was contributing something to everybody else’s projects.
2
u/blavek 14d ago
Honestly, what kind of Hardware do you want to learn? There is a whole lot that goes into hardware before you even get to the coding problem. You can get stuff done with Arduino or Raspberry Pi. But I think you're probably more looking for electrical engineering than coding. Again, it really depends on your goals.
2
u/Agawell 14d ago
What do you mean by “hardware” exactly?
Programming embedded software? Then something like arduino would be a good starting place
Designing hardware - circuits etc? Then find some books on basic electronics, buy a soldering station and then some components and go from there
If both then peruse both paths
2
u/FuggaDucker 14d ago edited 14d ago
language? c
buy an arduino
watch youtube and online tutorials galore
get good at it
move to an STM32 chip
get good at it
by this point, your will be talking to devices on dev boards and ready to MAKE things,not just use existing things
1
u/W31337 14d ago
First Learn the difference between hardware and software...
Hardware is servers and cables... also cool
1
u/Some-Comparison4863 14d ago
well I started with assembly and you can start all in into bootloader it teaching you how the CPU builds from inside and what is real mode (1970 CPU of intel/AMD) and protect mode(32 bits) they both have sagments and 64 bit long mode (what you are on now) that can help you with how the process of the CPU started and how defenses got developed by time
1
u/Traveling-Techie 14d ago
“hardware — the easy part of the system” — The Devil’s DP Dictionary (1981) Stan Kelley-Bootle
1
u/gm310509 14d ago
You might want to consider getting yourself an Arduino starter kit.
You will find that most examples are in C/C++, but you will find that most of the stuff you write will be C with some of the simpler elements of C++.
You can also program microcontrollers in other languages, for example Assembly language, BASIC, Python and others. Not all languages are supported on all platforms - for example Python (or micropython) can only run on the larger 32 bit MCU's such as the Arm Cortex based systems.
The starter kit will teach you the basics of electronics and how to program them. It will typically start with things like how to wire up an LED (with no coding) and a button. Then it will add in the Microcontroller (the Arduino) and teach you how to program it - typically to make it blink and so on.
From there is really is where you want to go next. You could explore more components and hardware interfaces. For example the LED and button will use simple GPIO (General Purpose digital Input/Output, but there are others such as SPI and I2C) or you could delve into assembly language (one level above what the CPU actually runs and a 1:1 relationship between assembly language instructions and machine instructions). Or delve into bare metal programming.
If you are interested, I have created several how to videos for newbies (along with some more advanced topics), have a look at my YT channel The Real All About Arduino but maybe start with these:
Note that the videos are intended to be follow along. Simply watching them is a waste of time. To get the most out of them, watch a bit, hit pause and try out what you just saw. Explore that concept, try to integrate it with earlier concepts. Lastly, try to do the exercises when I propose them.
But, do the starter kit first before branching out into other things.
You might want to check out the monthly digests on r/Arduino to see the sort of things other people are doing. You can find the most recent ones in the pinned posts/highlights section of the feed.
All the best with it and hopefully welcome to the club.
1
u/ExitEnough4941 14d ago
Grab a cheap Arduino starter kit and just start blinking LEDs