Operating a Timer Using a Rotary Encoder using Raspberry Pi Pico

Aim

The goal of this activity is to operate a 4-digit display using a rotary encoder. Rotary encoder is used to increase or decrease a number shown on the 4-digit display.

Materials Required

  1. Raspberry Pi Pico -1    
  2. Active Buzzer-1 
  3. Rotary Encoder-1 
  4. 4-Digit Display-1 
  5. Several Jumper Wires   
  6. Micro USB Cable-1      

Wiring Diagram

Desired Outcome

Encoder shaft is rotated clockwise or anti-clockwise to increase or decrease the number displayed in the 4-digit display module. Once the Rotary Encoder button is pushed the number will decrease at the rate of 1 number per second until it reaches 0. Once it reaches 0, the buzzer will beep three times.