Class 10 - New Digital Senses
This week:
- palate cleanser
- GPIO
- Artists and the Pi: New Digital Senses
- Intro to camera project
The 1-bit Art of Tristan Perich
GPIO
Raspberry Pis are digital swiss army knifes of computing. They can run any Unix/Linux operating system, and others as well.
Let’s review the layout of our Pi’s hardware.
GPIO stands for General Purpose Input Output. The GPIO pins (a collection of 40 sharp pins on your Raspberry Pi) allow you to connect external hardware such as buttons, sensors, power and more. These are hardware additions that go beyond the basic functionality of your out-of-the-box Pi.
26 pins are controllable.
The USB ports are to the right of this above diagram.
Pins interact with the sensors and get data. Output can include buzzers, motors turning, LED blinkings, or a display.
A guide to the pins:
The two top left red pins supply 5v power.
The two mustard yellow pins supply 3.3v power. It is always on, so you could leave an LED plugged in to this to indicate that power is on.
The black pins are ground. For all circuits, you connect one side to positive and the other to negative or ground.
Two white pins are ID EEPROM. These shouldn’t be used by you but may be used by any commercial HAT you want to connect.
Note: There are multiple ways to number PINs, depending on the manufacturer or depending on how you want to count (from the top left?). Make sure to double check what pin is really indicated. Different Pis have different pins mappings.
What can work with the GPIO pins? Any language can access or write to the pins. It’s common to use Python, but Processing and now even Javascript, can access the pins.
IF you don’t have the GPIO package installed:
sudo apt-get install rpi.gpio
HATs
HAT stands for Hardware Attached on Top. They are essentially add-on boards to the Pi to get additional physical computing capabilities. HATs conform to a specification, which means that any board labeled a HAT is guaranteed to work in conjunction with your Raspberry Pi.
There are dozens of HATS available, from a large number of manufacturers.
Resources for working with GPIO on the Pi
NodeJS with GPIO - Use Javascript to control the GPIO pins
Official Raspberry Pi documentation on GPIO pins
Processing 3’s GPIO reference
Intro tutorial on using Processing to trigger LEDs on the Pi
Adafruit tutorial on using Processing with Pi
Pinout Diagrams
Complete Raspberry Pi tutorials
Artists and the Pi: New Digital Senses
“Social Media without the Internet” is an interactive performance art project, created as an examination of the human sense of touch. The work is created to accompany the research project entitled “Digital Senses,” as a research innovation that examines how a new developing sense –digital sense—is applied to human sense of touch. Social Media without the Internet consists of two mediums: art object and performance. The art object is a tech wearable. Its functions are designed to be operated by hand gestures when people are socializing, i.e. handshaking, hi-fiving, shoulder-tapping, and handholding. The performance is a medium of investigation of the way social media’s interactions can be introduced into the real world. The project encourages people to socialize and invites them to have more intimate interactions with one another. These two aspects, the wearable and the live performance, were created to invigorate and inform each other. The interactive part of the wearable functions as a collector to amass data from interactions with participants, while the performance works to make that interaction happen. The wearable is designed as a blazer, an informal suit jacket without matching pants, that looks casual enough to be worn with other street-style clothing. In the gallery setting, there is live video of the jacket wearer and participants interacting streaming on monitors, which represents the broadcast of interaction between users on social media. However, without the Internet, the live stream operates as a “local area network” only.
by Tuang Thongburisute. additional info
She Bon
SHE BON is a collection of wearable augments capable of sensing various forms of the wearer’s bio-data as input, in order to indicate their level of arousal with electronic and mechanical devices as output!
I view SHE BON as my personal suite of amour that enhances my ability to express aspects of my physical state that might be subtle and thus go unnoticed.
by Sarah Petkus. info
The Cyborg Foundation
The Cyborg Foundation is a nonprofit organization created in 2010 by cyborg activists and artists Moon Ribas and Neil Harbisson. The foundation is a platform for the research, creation and promotion of projects related to extending and creating new senses and perceptions by applying technology to the human body.
–info
Next project: Raspberry Pi camera projects
For our next project we will make use of the Raspberry Pi Camera Module 2, featuring a Sony 8-megapixel sensor. It is compatible with all versions of the Raspberry Pi.
- Official Camera documentation
- Useful tutorial Guide to Raspberry Pi Camera V2 Module from “Random Nerd Tutorials”
Project examples/tutorials:
- Pi + Teachable Machine (machine learning to identify objects)
- Timelapse camera
- Selfie bot with instant receipt printer
- Low light long exposure photography camera
Not exactly related but may be of use/interest:
Homework
Form a team to work on this project.
Review the documentation for the Raspberry Pi camera. View some example projects. Brainstorm a camera project.
Acquire a Raspberry Pi camera and a USB battery pack to power your camera Pi project.
Write down an idea for a camera project. Note any references, links, inspiration, etc.
Bring to class with your parts.