Description: I've always wanted to build an electronic LED dice, but something different from what we see on the internet. Making it motion controlled... now that's new! Many new cell phones that have accelerometers built in also have dice games. These dice move when shaking the cell phone. My LED Dice project will also work with a shake motion but without the use of the expensive accelerometers. The trigger is a mechanical device and it will sense the shaking movement. One contact will be on a spring and the other contact will be on a wire. The spring has a screw on its end and it will act as a weight. Placing the box on its side, the spring needs to have enough strength not to bend with its own weight. Shaking will make the spring move and touch the wire closing the circuit and this way the microcontroller will know when it's time to roll the dice. Turning on the circuit, the microcontroller will initialize and light on and off all LEDs. Shaking the box will roll the dice. The LEDs will simulate the rolling of the dice and the piezo will sound until the final number is displayed. Once the final number is displayed, it's possible to sort another number simply by shaking the box again.
The electronic LED dice project utilizes a mechanical trigger mechanism to simulate the action of traditional dice. The primary components include a 16F688 microcontroller from Microchip, which serves as the central processing unit for the device. The microcontroller is programmed to control the LED outputs and generate sound through a piezo buzzer based on the input from the mechanical trigger.
The mechanical trigger consists of a spring and a wire contact. The spring is mounted in a way that allows it to move freely within the enclosure when the device is shaken. A screw is attached to the end of the spring, providing additional weight that ensures the spring remains in contact with the wire when the device is stationary. The design requires careful consideration of the spring's stiffness to ensure it does not bend under its own weight while still being sensitive enough to activate upon shaking.
When the device is activated, the microcontroller initializes the circuit, lighting all LEDs in a sequential pattern to simulate the rolling of the dice. The LEDs are arranged in a manner similar to traditional dice faces, with each LED representing a potential outcome. The piezo buzzer emits sound during the "rolling" phase, enhancing the interactive experience. Once the microcontroller registers the mechanical trigger activation, it randomly selects a number corresponding to the illuminated LEDs, simulating the roll of a die.
The circuit is powered by two AAA batteries, housed within a battery support system, ensuring portability and ease of use. The resistors (R1 to R7 at 500 ohms and R8 at 10K ohms) are employed to limit current to the LEDs and protect the microcontroller. A 100nF capacitor (C1) is included for decoupling purposes, ensuring stable operation of the microcontroller by filtering out voltage spikes.
The entire assembly is mounted on a printed circuit board (PCB) within a compact box, designed to withstand the mechanical action of shaking. The inclusion of an on/off switch (S1) allows for convenient power management. This innovative approach to creating a motion-controlled LED dice provides an engaging and interactive experience without the need for costly accelerometers, making it an accessible project for electronics enthusiasts.I've always wanted to build an electronic led dice, but something different from what we see on the internet. Making it motion controlled... now that's new! Many new cell phones that have accelerometers built in also have dice games. These dice move when shaking the cell phone. My Led Dice project will also work with a shake motion but without the use of the expensive accelerometers.
The trigger is a mechanical device and it will sense the shaking movement. One contact will be on a spring and the other contact will be on a wire. The spring has a screw on it's end and it will act as a weight. Placing the box on it's side, the spring needs to have enough strength not to bend with it's own weight. Shaking will make the spring to move and touch the wire closing the circuit and this way the microcontroller will know when it's time to roll the dice.
urning on the circuit, the microcontroller will initialize and light on and off all leds. Shaking the box will roll the dice. The leds will simulate the rolling of the dice and the piezo will sound until the final number is displayed. Once the final number is displayed it's possible to sort another number simply by shaking the box again.
Parts:
R1 500 ohms resistor
R2 500 ohms resistor
R3 500 ohms resistor
R4 500 ohms resistor
R5 500 ohms resistor
R6 500 ohms resistor
R7 500 ohms resistor
R8 10K resistor
C1 100nF cap
Led1 to 7 5mm flat led
Piezo Piezo HPE-120
IC1 16F688 microcontroller from Microchip
S1 Normal On/Off switch
Others:
Box
AAA x2 battery support
PCB
Spring, screws and wire
Hex program for the microcontroller
This circuit is designed to drive a total of 42 LEDs, assuming a forward voltage of approximately 2.2V per LED and a forward current of around 21mA for adequate brightness. If the specifications of the LEDs differ significantly, modifications to...
Originally designed as a three-bell animation circuit for Christmas decorations, this circuit can also be utilized for various other applications that require a flashing effect. By reconfiguring U2 (refer to the data manual), it is possible to achieve more than...
This circuit is same as the above setup to drive 25 small Xmas lights. The lights operate at about 200mA and 3 volts. The supply voltage is set to 5 volts and the 4017 counter output will drop about a...
Here is the new flasher circuit schematic. It consists of a 555 timer circuit and a power transistor. The power transistor is likely over-specified, as it is rated at 10A, but it is the component that was available. The values...
The LED operates at 3V, and based on information available online, a blue LED typically supports a maximum current of 0.03A. Given the available current from the USB source, the intention is to construct a parallel circuit. However, the last...
A need exists for a 220V AC line light display or main voltage monitor due to frequent electrical issues in a home.
To create a 220V AC line light display or voltage monitor, a circuit can be designed using a combination...
This is a programmable alarm timer circuit that uses LEDs to indicate hours and minutes. Twelve LEDs can be arranged in a circle to represent the 12 hours of a clock face, and an additional 12 LEDs can be arranged...
This schematic diagram illustrates a ring-around LED flasher circuit. The circuit operates by turning off two LEDs while activating the other two, continuing this pattern until the timing cycle reverses.
The ring-around LED flasher circuit is designed to create a visually...
The basic circuit illuminates up to ten LEDs in sequence, following the rhythm of music or speech picked up by a small microphone. The expanded version can drive up to ten strips, formed by up to five LEDs each, at...
We use cookies to enhance your experience, analyze traffic, and (if you allow) serve personalized ads.
By clicking Accept All, you agree to our use of cookies.
Learn more