Next project
Outreach Initiatives and Community Awareness


What is it?

Paperplayer is a piece of paper that plays and does all other control on music. It is easy to build with the tools and instructions below.

What do I need?

Image Name Description Part No. Qty. Where to Buy Where to Borrow
arduino Arduino Uno R3 AVR board that reads real life inputs A000066 1 CArobotix SEEK @ UOIT
rberypi Raspberry Pi Microcomputer used for prototyping RASPBRRY-MODB-512M 1 Element14 SEEK @ UOIT
hdmicab HDMI Cable Shows video from computer on monitor/tv None 1 Electronics Shop None
1.2amp Power Adapter Powers Raspberry Pi with closely 1.2Amps current None 1 Cellphone charge None
sdcard 4 Gb or larger SD card Acts as "Hard Disk" for Raspberry Pi None 1 Electronics Shop None
paper Pencil and Paper Shade with pencil play controls on paper None 1 Stationery Isle at Shop School library
1megohm 1 Mega Ohm Resistor Pack of 5 Resistor circuit elements None 1 Dipmicro SEEK @ UOIT

What to do on Raspberry Pi?

First time use of Raspberry Pi needs means your Pi's "hard disk" does not have the operating system on its SD card.

  • "I am using a new SD card":
    • Download latest Raspbian operating system. Then install Win32DiskImager (for Windows) or ApplePi-Baker (for Mac). Unzip Raspbian download. A file .iso will be extracted. Use Win32DiskImager or ApplePi-Baker to flash or "burn" it to the SD card you have inserted in the card reader of your laptop/pc. After it completes flashing the .iso image to the SD card, pop the SD card out and insert into the Raspberry Pi.
  • "I am using same SD card that I used with my Raspberry Pi last time":
    • Do nothing, go to next step.

Insert SD card into your Raspberry Pi, then connect its:

  1. HDMI jack to monitor/tv
  2. LAN interface to ethernet jack
  3. Power pin to AC power outlet.
  4. USB receptacles to a usb-compatible keyboard and mouse

RPi has no "on", "off" button, once you power it, it automatically starts. To login, wait until you are asked by your RPi. Use Username: pi and Password: raspberrypi to login. Then, do the command pi@raspberrypi:~$ startx if you remain on the terminal console even after logging in.

From your desktop, open the internet browser and go to website you are on now.

  1. Download source code and unzip it.

    • "playmusic.py" - To listen to touch from Arduino and plays music on Raspberry Pi. Download and unzip the source-code on your laptop.
    • "readtouch/readtouch.ino" - To be run on Arduino for detecting a touch on the pencil shaded area.
  2. Connect your Arduino to the Raspberry Pi via USB cable. Arduino shipment should include this USB cable. If it did not, printer USB cable will work as well. Now do:

pi@raspberrypi:~$ sudo apt-get update && apt-get install python-serial arduino

What to do on Paper with Pencil?

As shown in Figure 1, you shade with pencil on your white blank paper and do the wiring job.

papergraphite

Figure 1 On blank paper attach one end of wire with tape or play dough on the shaded area. The other end of the wire goes to the specified pins on Arduino board.

Arduino pins are connected by wire to the shaded areas. These pins need resistors, as shown in Figure 2

What to do on Arduino?

You access Arduino from your Raspberry Pi. Start the IDE for Arduino by clicking the "start menu" > "Programming" > "Arduino"

  1. Open from Arduino IDE readtouch/readtouch.ion from the source-code folder.
  2. At top left corner, click "Verify" and "Upload".

breadboard

Figure 2 Breadboard setup of resistors with pins.

How to use PaperPlayer?

Make sure you keep your Arduino board plugged into your Raspberry Pi's USB - it make sures that Arduino board provides the standard 3.3 Volt of power to the AVR microcontroller in it.

On your Raspberry Pi, do command pi@raspberrypi:~$ cd path/to/your/source-code and then pi@raspberrypi:~$ python playmusic.py

Now plug headphones or speakers into Raspberry Pi's Audio Jack. Just touch pencil shaded shape "Play" on your paper for a while. Immediately music will be played. Touch other shapes to go to next or previous track, or stop the play.

download course code  Download Source Code (79.90 MB)
Other Projects
Professional Circuit Drafting
Professional Circuit Drafting CAD drawing gives you professional grade circuit schematics and prototype models. Learn to communicate design of electronics and hardware innovation like the professional engineer. Continue >>
Knock to Ring Bell
Knock to Ring Bell Make a complete musical bell system that rings with your knock. Possibly, this may reduce door banging or frustration at dormitory doors that aren't allowed to have buttoned door bells, yikes! Continue >>
Raspberry Pi Tweet to my Door Raspberry Pi Tweet to my Door Raspberry Pi connected to colour display wirelessly. Show your twitter updates on a screen attached to your door at school's club office, classroom, treehouse room. Display to your audience your... Continue >>
Self-Driving Car
Self-Driving Car Robots are smart. Here you transform your old toy car or another vehicle into a bot that follows a wavy line. Use it for shipping goods between unmanned travel ports. Real world uses are endless. Continue >>
Optical Network Made Easy
Optical Network Made Easy Optical communication is fast, cheap, and reliable. Build your own prototype of a peer-to-peer network using laser. Understand how big Rogers, Bell and use Fibre to connect you in lightning speed to... Continue >>
Pedometer for Athletes
Pedometer for Athletes Supercharge your shoe! Use it to find issues in your run during basketball, track or soccer. Or, track the distance and stats of your jog. Help keep others keep their walk at constant pace, such as... Continue >>
Broadcast Your Radio
Broadcast Your Radio Broadcast your music and voice wirelessly. Spread your news with your friends over short distance using radio. It is easy to make, free, and won't get CRT angry at you. Radio podcasts, chatroom uses... Continue >>
Networked Thermometer
Networked Thermometer Thermometers are old. They are useful: superb tool to control experiments in science labs, monitor body heat, get weather data, save devices from overheating as your flat screen tv, and car engines. Continue >>
Internet Controlled Lights
Internet Controlled Lights Use internet to make lighting during Christmas or other occasions dance! Surprise your buddies with LED sequence control. Make decoration energetic during your sweet holidays. Continue >>
Arduino Tweets to my Door Arduino Tweets to my Door Arduino connected through wire to display. Show your twitter updates on a screen attached to your door at school's club office, classroom, treehouse room. Display to your audience your location at the... Continue >>
Arduino Lilypad Remote Mouse
Arduino Lilypad Remote Mouse Control your computer's mouse with this homemade remote-control. Build touch switches completely in software and then link the remote to the computer via infrared. Continue >>
Gesture Pong Game
Gesture Pong Game Build your own motion tracked game and console similar to Kinect or Wii. Inside is code and design helping you make the classic Pong Game. Play the game as you move on your tv or monitor. See step by... Continue >>

Maintained by Qusay H. Mahmoud
Content Contributors: Rudy Lang, Michael Lescisin, Rahma Mahmood, Ahmad Shamshiri, Ahmad Touseef, Mirna Zohiry