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 🔗 External reference
The microprocessor-controlled oscillator has a frequency range of 8159 to 1, covering from 2 Hz to 20 kHz. An exponential, current output integrated circuit digital-to-analog converter (DAC) functions as a programmable current source, alternately charging and discharging a capacitor...
The LT3465/LT3465A are step-up DC/DC converters designed to drive up to six LEDs in series from a Li-Ion cell. Series connection of the LEDs provides identical LED currents and eliminates the need for ballast resistors. These devices integrate the...
The following diagram illustrates a simple electronic combination lock based on the IC LS7220. The component part list includes: C1 = 1µF 25V, C2 = 220µF 25V, R1 = 2.2K Ohm, Q1 = 2N3904 or 2N2222, D1 = 1N4148...
The circuit diagram of an IC Controlled Emergency Light with Charger, also known as a 12V to 220V AC inverter circuit, is presented here. This circuit features automatic activation of the light during mains failure and includes a battery...
Due to the small size, high precision, and sensitivity of surface acoustic wave (SAW) sensors, along with their cost-effectiveness, a SAW gas sensor has been developed. This sensor comprises a surface acoustic wave device, a sensitive membrane, and the...
A simple lab power supply electronic project can be designed using this circuit diagram, which is based on the LM2576 monolithic integrated regulator that provides all the active functions for a step-down (buck) switching regulator. As seen in the...
Warning: include(partials/cookie-banner.php): Failed to open stream: Permission denied in /var/www/html/nextgr/view-circuit.php on line 713
Warning: include(): Failed opening 'partials/cookie-banner.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/nextgr/view-circuit.php on line 713