Making A Lucky Draw Device Using Raspberry Pi Pico

Making A Lucky Draw Device Using Raspberry Pi Pico

Introduction

Raspberry Pi launched the latest product called Pico last Thursday. In this regard, Cytron Technologies has made a lucky draw contest. So to decide the winner, we create a lucky draw device using Raspberry Pi Pico. How it works? Let’s watch the video.

Video

This tutorial shows how to make a device that can generate and display the random numbers, to be used in the lucky draw contest using Raspberry Pi Pico.

Hardware Preparation

This is the list of items used in the video.

Raspberry Pi Pico GPIO Connection:

RASPBERRY PI PICO GPIOCONNECTION
GP12Button 2
GP13Button 1
GP14Grove LCD I2C (SDA)
GP15Grove LCD I2C (SCL)
GP18Piezo Buzzer
RUNReset Button

Sample Program

There are 3 files involve in this tutorial. You can refer to the video on how to put it in the MicroPython Raspberry Pi Pico.

  • grove_lcd_i2c.py <--- library
  • main.py
  • pitches.py <--- library

Thank You

References:

Thanks for reading this tutorial. If you have any technical inquiries, please post at Cytron Technical Forum.

"Please be reminded, this tutorial is prepared for you to try and learn.
You are encouraged to improve the code for a better application."