Week 2 Resistors, Using the Solderless Breadboard, Turning an LED on and off using the Pico
Resistors
Using the Breadboard
- Power to the Breadboard
- How the jumper pins work for 3.3V and 5V
- What pins are connected on the board.
- How to use the connectors
LEDOnOff Program
- How IO pins work.
- How Breadboard pins work
- Meaning of extra names on pins (Especially SPI pins)
- Safety with Pi
- Set all pins to input at close of program
- Unplug Pi to set up circuit
- If doing something you are unsure of test with LEDs or Multimeter.
- Have no physical connections to expensive laptops etc. (More on running the pico without a laptop connection later)
- Try with 500 ohm resistor first.
- Run LED program on pico.
Explaining the program
- Commenting with #
- The importance of indents in python
- try, exception, finally
Homework
- Make your LED flash an SOS in Morse Code
- S is 3 dits. O is 3 dahs
- The Dot (Dit): The shortest element, representing 1 unit of time.
- The Dash (Dah): A longer element, equal to 3 dots in duration.
- Intra-character Gap: The short silence between dots and dashes within the same letter. Duration: 1 unit (the length of a dot).
- Inter-character Gap: The longer silence that separates different letters within a word.
Duration: 3 units (the length of a dash) - Word Gap: The longest silence that separates entire words.
Duration: 7 units (equivalent to two dashes with a normal dit-gap).
Comments
Post a Comment