I am new to electrical engineering and the usage of microcontrollers. I am trying to build a custom circuit board using parts bought separately, but I'm not sure how this should be done.
Some things aren't clear to me. For example, I want my chip to control a LED that turns on and off at a specified interval. My questions are:
How this things should be linked? I mean the microchip has some input and output pins. The output pins should be linked to the part that controls the flow of electricity trough the LED. But what output pin, cause there are more than one.
If I have a USB connection connected to an input pin(or more, I'm not sure). How should I load the program in the microchip's memory? Is a boot loader needed? Do I need a special program to write the code in. I assume that I can load the code and if I want to use another code I just load the new one and overwrite the memory.
If I want to turn on 3 LEDs at different moments, how should the wires be linked? I guess that I can specify in the code what pin to output to but what if I want to control a lot of LEDs ?
I don't know if my questions are wrong. I'm in high school and I try to learn on myself but google can't find me everything I need.