Friday, March 15, 2019

Friday March 15, 2019 - Happy Friday... Let's Flash An LED & Read an Switch

Challenge - Extra Credit -  using linux command line or Python code can you copy a file from your Raspberry Pi to your google drive?  Can you copy one from your google drive to your Raspbeery Pi?

 Instructables - Photo Booth
  • Lecture/Presentation - Duration: 40 Min
  • Link: https://www.instructables.com/class/Raspberry-Pi-Class/
  • Instructions & Expectations: Listen and take notes in your Interactive Lab Book. If needed review the posted slide presentation
  • Dig Deeper: Look here to learn more...
See - https://www.raspberrypi-spy.co.uk/2012/06/simple-guide-to-the-rpi-gpio-header-and-pins/

import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BOARD)
yellowLed = 11  # NOT 17 
The GPIO.BOARD option specifies that you are referring to the pins by the number of the pin the the plug - i.e the numbers printed on the board (e.g. P1) and in the middle of the diagrams below.
The GPIO.BCM option means that you are referring to the pins by the "Broadcom SOC channel" number, these are the numbers after "GPIO" in the green rectangles around the outside of the below diagrams:
Unfortunately the BCM numbers changed between versions of the Pi1 Model B, and you'll need to work out which one you have guide here. So it may be safer to use the BOARD numbers if you are going to use more than one Raspberry Pi in a project.

Open LAB  and/or Robot Club 
  • LAB - Duration: 60 Min
  • Link: Robot Club Google Sites
  • Instructions & Expectations: Connect with your Robot Club Team.  You will either be working on your Robot Project or an Open Lab Project.  
    • You will need to account for your time. You will need to convince me by your form submission that you worked given the time allotted. 
    • If  you or your Robot Club Team worked on the Robot Club project, you will make sure your Robot Project Status Google docs are updated.  
    • If you worked on an Open Lab Project, you will also need to tell me about what you accomplished and what you are planning next.
  • How to Submit Assignment:   Each Student needs to account for your time.  
  • Dig Deeper: Open Lab:
Clean Up
  • Assignment - Duration: 2-10 Min
  • Instructions & Expectations: Desk cleanup, put away all projects, find your assigned job
  • How to Submit Assignment: When Complete, check yourself off on Sign Out Sheet - 2 Points

No comments:

Post a Comment