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
    1. S is 3 dits.  O is 3 dahs
    2. The Dot (Dit): The shortest element, representing 1 unit of time.
    3. The Dash (Dah): A longer element, equal to 3 dots in duration.
    4. Intra-character Gap: The short silence between dots and dashes within the same letter. Duration: 1 unit (the length of a dot).
    5. Inter-character Gap: The longer silence that separates different letters within a word.
      Duration: 3 units (the length of a dash)
    6. Word Gap: The longest silence that separates entire words.
      Duration: 7 units (equivalent to two dashes with a normal dit-gap). 

Comments

Popular posts from this blog

Week 1 Setup. Using Thonny

Week 3 Introducing Python Coding, Pulse Width Modulation