Group Assignment: group project: use the test equipment in your lab to observe the operation of a microcontroller circuit board
Individual Assignment: redraw an echo hello-world board, add (at least) a button and LED (with current-limiting resistor) check the design rules, make it, and test it extra credit: simulate its operation
To start, I have never taken a physics class and I think I made below a C on most of my high school math classes. I definetly feel behind compared to my other classmates. So to begin this week, I think it's important for me to go over some basics. Greg helped with this using water as a way to explain many terms and processes; Water = Charge, Pressure = Voltage, and Flow = Current, Hose Width = Resistance. Following others advice, I checked out Spark Fun which also uses the water analogy. Also, they break everything down into easier modules that make learning this easier. So for my sake, I'm going to go over some basic vocab that's been used alot and I assume I'll need to understand. Most of these photos are from the Spark Fun tutorials that I sited above.
Electricity is the movement of electrons and voltage is an expression of that... voltage is the difference between two points in a circuit
Current is measured in Amperes (usually just referred to as "Amps") and is represented as an I in equations. On the left, the tube is bigger and on the right it is smaller. More water is running through the one on the right; higher current.
Resistance is kind of like how much water can get through the tube... or how much charge can go through something at once. This brings us to Georg Ohm's Law called Ohm's Law. In equations, Ohms looks like the Lululemon logo, Ω. Voltage = Current x Resistance
This is what some resistors look like. There are lots of different kinds of resistors. We use SMD (surface mounted devices) resistors. Different kinds of resistors have different ways of knowing what they are. This guide helped me better understand the ones we have been using in FabAcademy. Also the zig zag line is how they look in some diagrams.
V = Voltage in volts, I = Current in amps, R = Resistance in ohms
The basic function of a capacitor is to store electrical energy. Essentially, potential difference is created and that translates into energy until it is balanced out. When you add electrical energy to a capacitor is is called charging and when you release it it's called discharging. We measure capacitance using farads.
Diodes have two terminals and they are distinctly polarized. Diodes kind of help current go the way we want it to I think...? LEDs are light emitting diodes.
For the ATtiny we did last week, we used two zener diodes and two LEDs.
So the board I am trying to make will have a button and a light that is turned on and off by the button. Sounds super easy, right. Lies. To get started, because I was already using SparkFun, I continued with their tutorials and started cross referencing them with the FabAcademy one. I downloaded Eagle and then saved this schematic to my Eagle projects.
Closed and open circuits - Electricy is the flow of electrons... and there are lots of tricky traits to understand. How much water is going through a thing... is kind of like volts. Current is the flowrate of electrons... how much current is being forced thorugh a pipe... Current is meseaured in Amperes or Amps. Thes size of our pipe... can be kind of thought of as resistance which is measured in Ohms (r). More resistance means smaller pipe.
Already installed the schematic and this is me installing the library.
When I tried to open it, this is the error message I got.
I ended up downloading it from GitLab and that worked. I think I originally had it in the wrong place.
I used the command line to add the LED and kept getting this error message.
I just put them in a line...
While watching this video I found in the depths of Youtube, I tried hitting esc twice t get out of adding and it worked... which was great since I was just going back to the lib and cancelling.
I found the info button which tells you about the component you are clicking. This helped with nameing in my schematic.
I needed to use the command NAME.
I got them to connect and be in the same net.
I found that script here.
This is one of the first times I used the autorouter. It assumed I had a souble sided board which is what I think those green circles are.
Becuase I was not using the correct 2x3 pin header, my lines wouldn't connect. I was kinda fed up so I brought them into Ai to edit.
This seemed ok so I went to mill it.
What is a resistor? We need resistors but how do we choose the right one? Ohms Law Components V Power Source R=(power source 9v - forward v - how much it needs) / fast current moves which is amps.
Eagle is insane and I hate it with a vigor... except for the part where I got to connect everything by hand and that was slighlty therapeutic. If you would like a migraine to ensue, feel free to look through these photos which represents my day starting at 7AM and ended at... oh wait it still hasn't ended. Also, shout out to Greg for helping me every 30 min... I don't think I've developed the grit to fully work through all of this myself.
I wondered why we wern't using a reuglar CNC and Greg explained it's because PCB mills have micron level precision. We then cut the board out and Greg began to show us how to solder and collect our parts.
This is where I started getting even more lost. I ended up going to Lena Park where our FabAcademy teacher works to get help. Starting now, the journey I took may get a bit convuluted, poorly documented, and confusing so I'm going to do my best to list the sites I am learning from. This tutorial is the first one. From there, I jumped to Saba Ghole's site who was a 2018 student and has in depth documentation. Thanks Saba! I impulsively downloaded Arduino and then dove into High Low Tech's tutorial. I soon realized I needed to add a new board... right?
This was all going great until i realized I didn't have a USB port on my mac and no dongle to use to hook it up.
So, at the end of the day... it didn't work in the intended way. As Greg said, this works like a car still goes downhill with no breaks... the sbutton does turn the light off but not because I programmed it... actually we aren't sure why and I will end up making a new board. I still feel super proud of myself... I'm learning I need to just go with it knowing I will pick up bit and pieces of seemingly disparate information while having faith that at some point the dots will connect and my mental stars will align.