Limited Time Your first expert consultation is free! Book now Book now

Back to MakerSpaceElectronics Without Microcontrollers

Simple Electronic Piano with NE555 (No Code, One Octave)

Heba 9

1. Project Overview

A small piano built around the classic NE555 timer chip, with no microcontroller and no code. Eight push buttons play one octave, from C5 to C6 (do re mi fa sol la si do). Each button selects a different resistance for the timer, and the chip turns that resistance into a square wave at the matching note frequency. A piezo buzzer plays the tone. The whole circuit runs from a 9V battery on a breadboard.

Cover photo: the "Simple Electronic Piano" project by joshua.brooks on Instructables and Tinkercad. The licence text on the source page could not be confirmed (the page would not load its content for us), so treat it as a reference photo of a similar build, not a photo of this page's build. The diagram, tables and screenshots on this page were made for this page.

Sources and credits: the idea and the resistor-ladder principle follow "Simple Electronic Piano" by joshua.brooks (instructables.com/Simple-Electronic-Piano, also published as a public Tinkercad design) and the 555 piano circuit by Ligo George at Electrosome (electrosome.com/electronic-piano-555-timer). The note frequencies and resistor values here were calculated for this page with the standard 555 astable formula. No text or images were copied from those pages.

2. How It Works

The 555 runs as an astable multivibrator: it charges and discharges the timing capacitor C1 (100nF) and outputs a square wave on pin 3. The frequency is f = 1.44 / ((Ra + 2 x Rb) x C1). Ra (1k) and C1 are fixed, so the button you press decides Rb. Between pin 7 and the timing node there is a ladder of 8 resistors in series (6.2k, 390, 910, 1k, 1.1k, 620, 1.3k, 1.5k) with 8 taps. Each button connects the timing node to one tap. The full ladder gives the lowest note (C5); pressing the last button leaves only the 6.2k and gives the highest note (C6). With no button pressed the timing node is open and the buzzer is silent. Pin 3 drives the piezo through C3 (10uF), which blocks the DC part. The 10nF capacitor on pin 5 keeps the reference stable.

3. Components Required

  • NE555 timer IC x 1 - not in the store yet
  • Tactile push button 6x6x5mm, 4-pin x 8 - 🛒 Add to cart
  • Piezo buzzer (passive) x 1 - not in the store yet
  • Resistor 1k ohm 1/4W x 2 - not in the store yet
  • Resistor 390 ohm 1/4W x 1 - not in the store yet
  • Resistor 620 ohm 1/4W x 1 - not in the store yet
  • Resistor 910 ohm 1/4W x 1 - not in the store yet
  • Resistor 1.1k ohm 1/4W x 1 - not in the store yet
  • Resistor 1.3k ohm 1/4W x 1 - not in the store yet
  • Resistor 1.5k ohm 1/4W x 1 - not in the store yet
  • Resistor 6.2k ohm 1/4W x 1 - not in the store yet
  • Ceramic capacitor 100nF (marked 104) x 1 - not in the store yet
  • Ceramic capacitor 10nF (marked 103) x 1 - not in the store yet
  • Electrolytic capacitor 10uF x 1 - not in the store yet
  • Breadboard 830 points x 1 - 🛒 Add to cart
  • Male-to-male jumper wires 20cm (40 pcs) x 1 set - 🛒 Add to cart
  • 9V battery x 1 - not in the store yet
  • 9V battery clip with wires x 1 - not in the store yet

Click here to open the components table

4. Circuit Diagram

The diagram below is the reference circuit from Electrosome (Ligo George, electrosome.com/electronic-piano-555-timer), shown here with credit; the page states no licence, so we treat it as a credited reference drawing, not our own. Our build follows the same circuit with these changes: 8 buttons instead of 7, calculated ladder resistors (section 7) instead of the 10k variable resistor and the 1k steps, a piezo buzzer instead of the 8 ohm speaker, and a 9V battery instead of 6V. Build by the wiring table in section 5, which is exact for our parts. In short: 555 pin 8 and pin 4 to the + rail, pin 1 to the - rail, pin 5 through C2 (10nF) to the - rail, pin 7 through Ra (1k) to the + rail and through the resistor ladder towards the buttons, pins 2 and 6 joined as the timing node X with C1 (100nF) to the - rail. Pin 3 goes through C3 (10uF, + leg to pin 3) to the piezo +, and the piezo - goes to the - rail. Each button connects node X to one ladder tap.

Click here to open the reference circuit diagram (credit: Electrosome)

Click here to see the reference build photo (credit: Electrosome)

5. Wiring Table

Read each row from the From pin to the To pin. Build with the battery disconnected and check power, ground and the ladder order before connecting it.

Click here to open the wiring table

6. Connection Steps

  1. Place the 555 across the center gap of the breadboard, notch (pin 1 mark) to the left.
  2. With the battery disconnected: pin 1 to the - rail, pins 8 and 4 to the + rail.
  3. Ra: 1k resistor from pin 7 to the + rail.
  4. Join pins 2 and 6 (node X). C1 100nF from X to the - rail, C2 10nF from pin 5 to the - rail.
  5. Build the ladder from pin 7 in series: 6.2k, 390, 910, 1k, 1.1k, 620, 1.3k, 1.5k.
  6. Place the 8 buttons across the center gap in a row (K1 to K8, like piano keys). One side of each button to node X.
  7. The other side of each button to its tap: K1 to the free end (C5), in order to K8 right after the 6.2k (C6).
  8. Pin 3 to the + leg of C3 (10uF), C3 - leg to piezo +, piezo - to the - rail.
  9. Check: 555 notch direction, C3 polarity, every button straddles the gap, ladder order.
  10. Connect the 9V battery and press K1 to K8: you should hear C D E F G A B C rising.

Click here to open the connection steps table

7. Notes and Frequencies

With Ra = 1k and C1 = 100nF, the formula f = 1.44 / ((Ra + 2 x Rb) x C1) gives the frequency for each button. The table lists the target note, the Rb total that plays it, and the actual calculated frequency with the resistor values used. Every note lands within about 3% of its target; a semitone is about 6%, so each key clearly sounds as its own note. To tune closer, swap ladder resistors for nearer values or add a 10k trimmer in series with the ladder and adjust by ear.

Click here to open the notes and frequencies table

8. Testing & Troubleshooting

  • No sound at all: check the battery clip polarity, the 555 notch direction (pin 1 position), that every button straddles the center gap, and the piezo wires.
  • Notes play in reverse order: the ladder order is flipped; K1 must connect to the free end of the chain (full ladder) and K8 right after the 6.2k.
  • One button is silent: that button's legs are on the same breadboard row; a 4-pin tactile button connects only across the gap. Rotate it 90 degrees.
  • Crackling or unstable tone: check C2 (10nF) on pin 5 and push all component legs firmly into the board.
  • Notes slightly off pitch: normal with 5% resistors; see the tuning tip in section 7.
  • The chip or battery gets hot: disconnect the battery at once and look for a short between the + and - rails.

9. Improvements

  • Add a 10k trimmer in series with the ladder to tune all notes at once.
  • Add a second ladder and 8 more buttons for a second octave.
  • Drive a small 8 ohm speaker through an LM386 amplifier module for louder sound.
  • 3D-print or laser-cut piano keys that sit over the buttons.
  • Redraw the circuit in Tinkercad Circuits and simulate it before building.

10. Safety

Power this circuit from a 9V battery only; never connect it to mains voltage. Disconnect the battery when the piano is not in use, because a shorted 9V battery heats up quickly. Watch the polarity of the electrolytic capacitor C3. The values and wiring on this page are calculated from the standard formula and follow a tested reference circuit, but always check your real build before powering it. Small parts are a choking hazard for small children.

H
About the authorHeba
Share a useful question or note and the project team can reply in the discussion.

Comments & discussion (0)