1 / 5

Raspberry Pi

Raspberry Pi. The singing jelly baby. Starter task. Name each of the components on the Raspberry Pi. If you can, tell me what each of them is for. Command line coding. Type these three commands seperately . sudo apt-get install mpg321

jera
Download Presentation

Raspberry Pi

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Raspberry Pi The singing jelly baby

  2. Starter task • Name each of the components on the Raspberry Pi. • If you can, tell me what each of them is for.

  3. Command line coding • Type these three commands seperately. • sudo apt-get install mpg321 • wgethttps://github.com/Rob-Bishop/ RaspberryPiRecipes/blob/master/la.mp3 • nanoSingingJellyBaby.py

  4. Python coding Import time Import Rpi.GPIO as GPIO Import os GPIO.cleanup() GPIO.setmode(GPIO.BOARD) GPIO.setup(3,GPIO.IN) While True: if GPIO.input(3) == False: os.system(‘mpg321 la.mp3 &’) time.sleep(1) Sudo python SingingJellyBaby.py

  5. Put your headphones on… • …Now push your jelly baby!

More Related