Week 2

 Revision of Linux

  • Find out which directory you are in.
    • pwd
  • list things in the directory
    • ls
  • telling directories from files
    • colour in putty
  • long listings to see permissions (into of sudo)
    • ls -l
  • listing all
    • ls -a
    • ls -la lists long for all files
  • changing into a directory
    • cd
  • changing up a directory
    • cd ..
  • challenge changing into a directory above
    • cd ../<directory>
  • Output to text file
    • > Output overwrite,  >>Output append

Programming

  • Using Thonny (more about debugging later)
  • Using Nano
  • Forgetting the u3a network so we can be sure it does not get priority. 
    sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

Hello World Program.

    • Write 2 programs.  One using Thonny and one using nano.  Ensure that both work.
    • Any faults (unlikely) here are probably because you have different keyboard encodings.  Do your inverted commas look funny?

Reading Resistor Values

from...

Resistor Color Code Chart

The chart below shows how to determine the resistance and tolerance for resistors. The table can also be used to specify the color of the bands when the values are known. An automatic resistor calculator can be used to quickly find the resistor values.

resistor color code chart


Resistor Colour Calculator

https://www.digikey.com.au/en/resources/conversion-calculators/conversion-calculator-resistor-color-code


Series and Parallel circuits

Make a circuit with 3 series LEDs and 3 parallel LEDs  both behind 500 ohm resistors.

LEDOnOff Program

  • Reading Resistor Codes
  • 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.
    • Try with 500 ohm resistor first.

Next Week

Pulse Width Modulation

Comments

Popular posts from this blog

Week 4

Github and code

Week 1