Skip to content

Bash script for using the Raspberry Pi and a computer keyboard as a piano

Notifications You must be signed in to change notification settings

DaleMitchell/pcspkr_keyboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

What is pcspkr_keyboard?

A program used to control a PC speaker that is hooked up to a computer (such as the Raspberry Pi) that has GPIO pins using PWM.

YouTube video here.

How do I use it?

First, obtain a PC speaker. Hook it up to pin #18 and GND (ground). Polarity (+ -) does not matter. If you want to reduce the volume, simply add a resistor to the circuit.

Then, download the script and execute it.

./keyboard.sh

Keys available: Q 2 W 3 E R 5 T Y U 8 I 9 O 0 P - [ = ] \

Note: Keys TAB and 1 do not work, because the command in the script 'read' cannot take TAB. 1 doesn't work because I'm too lazy to add it. :P

Refer to the below image for key chart:

Inspired by ["Robert Moogs 78th birthday" Google Doodle] (http://www.google.com/doodles/robert-moogs-78th-birthday)

My image

About

Bash script for using the Raspberry Pi and a computer keyboard as a piano

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages