(function(){
let w = window.innerWidth;
function setHeaderCssVar() {
const headerEle = document.getElementById('shoplaza-section-header');
if(!headerEle){ return };
document.body.style.setProperty('--window-height', `${window.innerHeight}px`);
document.body.style.setProperty('--header-height', `${headerEle.clientHeight}px`);
const mdScorllHideEle = headerEle.querySelector('.header__mobile .header__scroll_hide');
if (mdScorllHideEle) {
document.body.style.setProperty('--header-scroll-hide-height-md', `${mdScorllHideEle.clientHeight}px`);
}
const pcScorllHideEle = headerEle.querySelector('.header__desktop .header__scroll_hide');
if (pcScorllHideEle) {
document.body.style.setProperty('--header-scroll-hide-height-pc', `${pcScorllHideEle.clientHeight}px`);
}
}
function handlResize() {
if(w == window.innerWidth){return};
w = window.innerWidth;
setHeaderCssVar();
};
function init(){
setHeaderCssVar();
window.removeEventListener('resize', window._theme_header_listener)
window._theme_header_listener = handlResize;
window.addEventListener('resize', window._theme_header_listener);
}
init();
})();
${data.index + 1}/6
Description
DIY Electronic Lucky Turntable Kit Electronic Components kit Lottery Welding Parts Assembly Soldering Practice Kit
Product Description
The lucky turntable is a tool that first predicts which position the disc will stop when it stops. Can also be used as an estimate number game, electronic dice, lottery machine, etc. The electronic lucky turntable achieves the same function electronically. This kit configures 10 LEDs into a circle. When the button is pressed, each LED rotates in sequence, the flow speed is slower and slower, and finally stops at a certain one. The LED does not move anymore. If the last LED is the same as the player predicted, it means "winning".
Circuit principle
The circuit is mainly composed of a pulse generator and a decimal counter circuit.
Description
The pulse generator consists of NE555 and peripheral components. The multi-vibrator is composed. When the button S1 is pressed, Q1 is turned on, and the NE555's 3 pins output pulses. The 10 outputs of the CD4017 alternately output high-level driving 10 LEDs to rotate. After releasing the button, Q1 will not be cut off immediately due to the presence of capacitor C1. As the voltage across C1 decreases, the conduction procedure of Q1 gradually decreases, the frequency of the output pulse of 3 pin becomes slower, and the frequency of LED movement also follows. Slow down. Finally, when the C1 discharge is over. When Q1 is cut off, the NE555's 3 feet no longer output pulses, and the LED stops moving. A "winning" process was completed. R2 determines the speed of LED movement, and C1 decides the time to wait for the "winning".