LED Dice With Buzzer

by vin0617 in Circuits > Arduino

815 Views, 0 Favorites, 0 Comments

LED Dice With Buzzer

IMG_2929.JPG
Arduino LED Dice with Buzzer

This instructable will teach you how to make a LED dice with buzzer when button is pressed.

Original source: https://www.instructables.com/id/Easy-Arduino-LED-Dice/

Supplies

-jumper wires

-7 LEDs

-1 breadboard

-1 Arduino Leonardo

-1 USB cable for Arduino

-1 button

-1 buzzer

-1 resistor

Assembling LEDs

螢幕快照 2020-04-15 下午7.47.21.png

Arrange your LEDs in the H formation shown above. The H formation will make sure your outcome looks like a dice.

Wiring the LEDs

Now use the jumper wires to connect the LEDs. Connect:

LED 1 in pin 1

LED 2 in pin 2

LED 3 in pin 3

LED 4 in pin 7

LED 5 in pin 4

LED 6 in pin 5

LED 7 in pin 6

And connect all LEDs to the negative channel.

The Buzzer

Connect the positive leg of the buzzer to pin 11 and the other leg to the negative channel.

The Button

IMG_2927.JPG

Follow the formation shown in this image. The grey line goes to the 5V pin and the orange line goes to pin 8.

Coding

Here is the code I used for this project:

https://create.arduino.cc/editor/vin0617/e85b4ec8-...

Wrap & Done!

Wrap and decorate your work to make it look better if you wish. That's all!