PI-63IntermediatePremium

Raspberry Pi Pico Pendulum Gravity Meter (LED + LDR Light Gate + OLED + Potentiometer)

The classic physics lab experiment on your desk: while a weight swings on a string, an LED + LDR light gate times every pass. The Raspberry Pi Pico finds the period from the average of 10 swings, you set the string length with a potentiometer, and g = 4π²L/T² is worked out. The OLED shows the period, g, the percent error and a swing-by-swing graph, and a buzzer ticks on every pass. A reverse mode takes g = 9.81 and finds the length.

0.0(0)
Raspberry Pi Pico Pendulum Gravity Meter (LED + LDR Light Gate + OLED + Potentiometer)
Set up the pendulum experiment from physics class on your desk with a string and a nut, and measure Earth's gravity yourself. Every time the weight swings through the light gate you hear a little tick; the display shows the swing time, a bar graph and, after ten swings, a number close to 9.8. You set the string length with a knob, and a reverse mode works out the string length from the swing instead.

Source Code

Premium Content

The source code, block version and FAQ of this project are open to Premium members.

  • All Project Code
  • Block version
  • Frequently Asked Questions