Editing
Tasks WiSe2021
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Resources == === Pinout of Pi Zero === physical connections <br/> JL: https://peppe8o.com/raspberry-pi-zero-pinout/ <br/> CR: https://de.pinout.xyz/pinout/io_pi_zero <br/> HW: https://www.argon40.com/learn/index.php/2020/03/06/a-comprehensive-guide-on-raspberry-pi-3-and-raspberry-pi-zero-and-zero-w-gpio-pinout/ <br/> JW: https://www.raspberrypi.org/documentation/usage/gpio/ <br/> SF: With the gpiozero library you will by default want to reference the pin number as in GPIOx where x is the pin you define in software. Example: LED(5) in software; connect to GPIO5 on the Pi Zero header. (see also: https://gpiozero.readthedocs.io/en/stable/recipes.html#pin-numbering) === Setting up the OS and Python === NOOBS configure <br/> JL: https://www.tutorialspoint.com/python/python_environment.htm <br/> CR: https://learn.adafruit.com/setting-up-a-raspberry-pi-with-noobs/download-noobs <br/> HW: https://www.raspberrypi.org/help/noobs-setup./ <br/> JW: https://www.raspberrypi.org/documentation/installation/noobs.md <br/> SG: https://medium.com/@nikosmouroutis/how-to-use-atom-with-your-raspberry-pi-through-sftp-382c43176a9e <br/> SF: The simple three-step wizard we talked about: https://www.raspberrypi.org/software/ === Access to GPIO === JL: http://codefoster.com/pi-basicgpio/ <br/> CR: https://fedoramagazine.org/raspberry-pi-zero-gpio-fedora/ <br/> HW: https://webnist.de/raspberry-pi-zero-gpio-pins-ueber-den-desktop-steuern/ <br/> SG: https://github.com/fivdi/onoff <br/> SF: With the gpiozero library you will by default want to reference the pin number as in GPIOx where x is the pin you define in software. Example: LED(5) in software; connect to GPIO5 on the Pi Zero header. (see also: https://gpiozero.readthedocs.io/en/stable/recipes.html#pin-numbering) === Blinking an LED === JL: https://raspberrypihq.com/making-a-led-blink-using-the-raspberry-pi-and-python/ <br/> CR: https://fedoramagazine.org/raspberry-pi-zero-gpio-fedora/ <br/> HW: https://webnist.de/raspberry-pi-zero-gpio-pins-ueber-den-desktop-steuern/ <br/> JW: http://www.heidislab.com/tutorials/getting-started-with-raspberry-pi-led-blinking-on-raspberry-pi-zero === Reading a Pin === JL: http://raspberry.io/projects/view/reading-and-writing-from-gpio-ports-from-python/ <br/> CR: https://learn.sparkfun.com/tutorials/raspberry-gpio/all <br/> HW: https://mjrobot.org/rpi-gpiozero/ <br/> SG: https://tutorials-raspberrypi.de/raspberry-pi-gpio-erklaerung-beginner-programmierung-lernen/ <br/> SF: What state does your input pin have by default? With gpiozero, you can configure the pin to be pulled up (pull_up=True) or pulled low (pull_up=False). If you pull up, you can only change the state by connecting the pin physically to GND. If pulled low, you can only change the input state by connecting it to 3.3V. (see also: https://gpiozero.readthedocs.io/en/stable/api_input.html). By default, the pin is pulled up. If you always define the state explicitly in your code, you might make it easier for yourself to debug the code. Example: Button(15, pull_up=True) === Runing a Webserver that access GPIO === JL: https://towardsdatascience.com/python-webserver-with-flask-and-raspberry-pi-398423cc6f5d <br/> CR: https://www.e-tinkers.com/2018/04/how-to-control-raspberry-pi-gpio-via-http-web-server/ <br/> HW: https://hackaday.io/project/173322-controlling-gpio-outputs-using-a-web-interface-wit <br/> JW: https://www.youtube.com/watch?v=c6FOpPXbLjs <br/> SG: https://randomnerdtutorials.com/raspberry-pi-web-server-using-flask-to-control-gpios/ === Restful API === JL: https://sites.google.com/site/cartwrightraspberrypiprojects/home/other-projects/rest-api <br/> CR: https://docs.dataplicity.com/docs/control-gpios-using-rest-api <br/> HW: https://www.youtube.com/watch?v=JZfevVG-VuA&list=PLLIDdNg0t5ceg3mI3vn0YJocJ4ndMtM98&index=4&t=0s <br/> SG: https://tutorials-raspberrypi.de/raspberry-pi-nodejs-webserver-installieren-gpios-steuern/ === Description of the components === JL: https://www.adafruit.com/product/3411 <br/> CR: https://computer.howstuffworks.com/raspberry-pi2.htm <br/> HW: https://learn.adafruit.com/introducing-the-raspberry-pi-zero <br/> JW: https://www.youtube.com/watch?v=WJdQ4rknBX0
Summary:
Please note that all contributions to Sketching with Hardware at LMU Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
My wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
All Videos
Special pages
Coursebook
Part I: Introduction
Edge ML class
UBISS2024
Previous Classes
Open Hardware Session 2022
Course page WS21/22
Course page SS21
Workshop August 2021
Course page WS20/21
PEM2 20/21
Course page 2020
Individual Tasks
Project Topic
Group Project
Tutorials
Tutorial Basics
Tutorial Digital IO
Tutorial Analog IN
Tutorial Display
Tutorial Network
Tutorial AutoRun
Tutorial Webserver
Example File IO
Various Resources
Workshop
Hardware List
Raspberry Pi
Known Issues
Gallery 2020
CircuitPython
Smart Watch Components
Smart Watch Component Tutorials
This MediaWiki
Feedback
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Page information