Introduction: Arduino LED Dice (Easy)

This is an Instructable on DIY LED dice using Arduino.

*Ideas adapted from

I used the code and circuit from the Instructable above.

*Added visual and sound effects to the code, as well as a decorative cover for the LED dice*

這個Instructable的主題是自製 Arduino LED 骰子





  • 7 LED lights
  • 7 resistors (1/4W)
  • 1 precision resistor (1/4W)
  • 1 button
  • 1 speaker
  • 1 Arduino
  • 1 breadboard
  • 1 cardboard box
  • 1 scissor
  • about 50 lines

Step 1: Preparation

Prepare all the items you need from the "Supplies" section above.
請準備上方 "Supplies" 提到的物件

Step 2: Build the Circuit (LED)

Add the 7 LED and 7 resistors onto the breadboard like the example shown in the images.


Step 3: Build the Circuit (Button)

Then, add the button as well as the precision resistor onto the breadboard (beside the LEDs).

Attach the charges for the LEDs (short leg= negative/ long leg= positive)

*Example is shown in the image*


幫LED電路加上正負極的線路(短腳=負極/ 長腳=正極)


Step 4: Build the Circuit (Speaker)

Attach the speaker onto your Arduino

(red line on digital pin/ black line on breadboard's negative charge)

*Example is shown in the image*


(紅線接上digital pin/ 黑線接到負極)


Step 5: Upload the Code

Step 6: Test Your Project

When you finish adding the code and building the circuit, you can test your project by uploading the code onto your Arduino. If it works, you can scroll down to the next step; but if it doesn't work, try to adjust your code or circuit (be sure to insert the write digital pin for both the LEDs and the button).

如果已經打好程式碼也接好電路,就可以上傳程式了。如果你成功了,可以繼續往下滑; 如果失敗了,可以看一下電路過程式碼是否有接錯。(程式碼的digital pin要記得輸入正確)

Step 7: Make Your Dice Different

Try moving your dice into a cardboard box and decorate it.

(If you wish to pull the LEDs out of the box, be sure to extend the lines (picture 2) so it can be seen)



Step 8: Final Product

If you finished all the steps above, you probably have a dice like the one in the pictures.