Not wanting to ever have to do anything by hand, I searched for hours for a way to avoid drawing a circuit diagram. I came across all kinds of options, and was >>>this close<<< to finding out how to actually simulate an Arduino board in Matlab. I finally gave up, though, head hung in shame. I did, however, install all these add-ons, which somehow contributed in one way or another!
- Simulink
- Simscape
- Simulink support package for Arduino hardware (I have high hopes for this one day!)
- Simscape electrical
I did, however, manage to at least figure out how to draw circuits in Simscape, an add-on to Matlab. (No, this should not have taken me the better part of a work day, but that's what we do...)
Between Google and reaching far back into memory, I finally was able to tell myself the story of the little LED that blinked:
There are three main components on our breadboard:
- The LED (Light Emitting Diode) has two legs: the anode (longer, positive leg) and cathode (shorter, negative leg). The word diode means that current can only flow in one direction, so if you put it in “backwards” the current can’t travel through the circuit. For current to travel through a diode, it has to go into the positive side and out the negative side.
- The wires move the current around the circuit.
- The resistor reduces the current so the LED doesn’t burn out.
No comments:
Post a Comment