Electricity Generating Keyboard

This project is an electricity generating keyboard, using energy from keystrokes to generate energy!
Pranav Pathak
Grade 8


We are always in need of more energy for our living and hence are trying to make more of it. My aim was to make a self powered wireless keyboard. This type of keyboard could also help provide reusable energy to sustain our lives.



Trial 1:

  1.  Make a diode rectifier on the breadboard by inserting the diodes in specific positions. None of the diodes should touch each other, otherwise this could cause a short circuit.
  2.  Insert the piezo element in the breadboard in a specific position.
  3.  Insert the LED on the breadboard in a specific position.
  4.  Test the circuit by tapping on the piezo element. Check that the LED lights up.


Trial 2:

  1. Take a piece of cardboard
  2.  Tape piezo elements in series by attaching red wire to white part and the black wire to golden part of the next piezo (they can be soldered or hot glued)
  3.  Make a diode rectifier by taking four diodes and twisting each of the two sides together. One of the four sides has to have the black parts touching. The opposite point has to have the grey parts touching.
  4.  Attach the two points of the diode rectifier mentioned before to the LED using alligator clips
  5.  Connect the other two sides to the piezo element series using alligator clips
  6.  Test the circuit by tapping on the piezo elements. The LED should light up.
  7. Replace LED with a capacitor. Charge it up by tapping the piezo several times. The capacitor should store the charge, which is tested with a multimeter.


Trial 3:

  1. Order the circuit board, the soldering iron, the solder and the jumper wires
  2.  Heat up the soldering iron
  3.  Place the four diodes in the same way and solder the ends together
  4.  Solder four jumper wires to each of the corners of the diode rectifier
  5. Place the correct components in closest corresponding holes
  6.  Connect the piezo elements in series by soldering the proper ends
  7.  Separate a little bit of the top layer of cardboard and insert the piezo elements in the gap (connected in series) 
  8.  Turn over the board and solder the LED and the clips to complete the circuit (the positive end of the LED should touch the meeting point of the black side of diodes and the negative side should touch the meeting point of the gray side of diodes)
  9.  Take two alligator clips (four if the capacitor is being used) and connect the corresponding jumper wires to the correct ends of the components 
  10. Test the circuit by tapping the keys on the keyboard and check if the bulb lights up (if a capacitor is used, then the bulb will not always light up because some of the energy is being stored in the capacitor)
  11. Measure the voltage by using a multimeter


Main Results:

Procedure #1:

  • The breadboard has small connectors which help make proper connections between various components
  • The circuit worked and the LED lit up
  • We had to understand the circuit before we could do the prototype


Procedure #2:

  • The circuit was connected mainly with alligator wires and it worked 
  • The amount of voltage for 200 keystrokes is 5.75 volts
  • A AA battery holds 1.5 volts
  • So, we can charge a AA battery in about 55 keystrokes!
  • If an average person does 200 keystrokes per minute, and types for 6 hours, then that person generates 2070 volts each day. This amount of voltage can charge 1380 AA batteries!


Procedure #3:

  • The circuit worked but had a few problems as it was not visible
  • We had to take the whole circuit apart repeatedly because the tape was not strong enough
  • So, we soldered and hot glued the piezo wires to hold them in place and this worked
  • In the final test, 200 taps could generate 2.4 volts, which means that with each tap, the piezo generate 0.012 volts
  • If an average person does 200 keystrokes per minute, and types for 6 hours, then that person generates 864 volts. This amount of voltage can charge 576 AA batteries! But, this is not as significant as the other test because the exact places of the piezo elements could not be seen to hit them accurately


  • The tests conducted prove that the piezoelectric generator can convert the mechanical stress applied into DC current and can be stored in a capacitor.
  • Arranging several piezo elements together in series or parallel increases the voltage produced and helps produce more energy.
  • The voltage produced was enough to immediately power a small LED.
  • The voltage produced seem to be good enough to power certain rechargeable batteries.
  • Therefore, my hypothesis is correct and has been proved by the three tests.
  • Hiding a piezo element (such as under the keys of a keyboard) can reduce the electricity generated, as it is not visible, and the amount of mechanical stress is reduced.


My references:




(2020, April 11). Retrieved May 15, 2020, from


(2020, May 6). Retrieved May 15, 2020, from


Nanogenerator. (2020, May 6). Retrieved from


Capacitor. (2020, May 14). Retrieved from


Building a Piezoelectric Generator - Activity. (2020, March 11). Retrieved from


How Piezoelectricity Works: EAGLE: Blog. (2018, July 13). Retrieved from




Informative PDF:


I would like to acknowledge the people who helped me. My mom helped me in making the prototypes, soldering and gave me very helpful advice. My dad helped me buy the materials and gave me some ideas to make my project better. My sister helped me to put jumper wires in my bread board.