This is my make-through for the week's assignment. Grab a cup of coffee!
what a difficult journey!!
Actually it started first by wondering what is PCB? printed circuit board? Yes, the thing that we always see in our devices and we do not know what is this?
. we are going to make micro-controller based board like Arduino so we started to figure out what is Arduino and which components does it consist of
Micro controller (the brain)
Crystal oscillator
USB plug
Power LED indicator
But how does each component stay fixed.?
Soldering components on the pcb by welding iron and we started to practice it and I soldered 2 pcb which make soldering easy for me.
And now it is the time to make our own micro controller pcb what we are going to use before that it's important to know pcb manufacturing it's just the making of wires and places components drills in a board. The process consists of two main topics:
Schematic and the difficulty there was
· Pick your proper footprint; a pattern for component that will eventually be soldered ther or in which place the machine should drill, and take care that the same component may have more than one footprint. And to get the correct footprint
1. Download spark fun library.
2. Try to search about your component and get its proper name ,code or number
3. While searching put what you have written between *..*
4. Make sure by searching more and getting the component in its store like sparkfun store.
· Its main function is to wire your circuit so you have to make sure that you wire each component properly there.
Routing
First I was afraid of manual routing and I thought that why don't we choose the automatic routing instead of manual. So I started by using the automatic but it really didn't work well every time I did it there was one air wire remain and it was impossible to be wired. There are no other ways I had to route it manual and to do it I had to:
· think What is the best placing to components and to make it you have to know which components that you had wired together
· Something that helped me more the tall footprint for the resistors helped me route between them better than the short footprint.
After more than 3 routing attempts I managed to do it
before soldering i started to compare between all resistors that i have to solder by resistor calculator to make sure that this the right resistor i am going to solder
the multimeter here was my friend i kept testing if there is any short circuits by it
i kept testing the soldering more and more so i really was waiting the LED to light and the pcb to work well,i put the cable of Arduino and the led didn't light up!!!!! i really would starting to cry but after time i found the diode hadn't been soldered well .
here i started again to be hopefully that the project may be done
Now i just had components placed together but they aren't smart it can not take orders from pc and function ? what should i do
Burn the bootloader
preparing the the Arduino as ISP
i started to make this wiring and install the bootloader then changing the port it doesn't work to burn it doesn't work .
then i tried this step as shown it gives me this error i didn't understand.
then i install the digispark drivers and the libusb didn't appear
put it inside arduino pereference.
and each time i put the usb a msg with your usb is not recognied
i thought the problem from my pc so i tried another one
after time it started to appear so i burn the bootloader and the msg
i started to put any code to see is it working or not .
the code is done uploading but it didn't function well as you see in the last video here .
suddenly it didn't work again so i started testing the soldering again
i got an idea may the diode aren't working well so i start testing it like the end of this video, i changed it.
the led started to light again anther hope
the most annoying warning msg in the whole world started to appear again which is your USB is not recognized, taking in your consideration that the libusb is appearing with black but after mins it changed into grey
I searched for a solution they said try a different cable I bought a different and it is not recognied again , try a different USB port I tried it also appear.
At the end the when i plug the cable libusb appeared and after that it turning grey
i unplug the cable then i upload the code it is done uploading and tell me to plug the usb and it is done uploading but it didn't worked good.
i tried to serial print any analog values of buttoms but the code done uploading but it doesn't function.