Press a button and the lights show a random number from 1 to 6.
बटन दबाओ और बत्तियाँ 1 से 6 के बीच का कोई भी नंबर दिखाएँगी।
🎯 What are we building?
We use five LEDs and one push button to make an electronic dice. Each time you press, the board picks a random number and shows it as lit lights.
🔌 Circuit diagram
Pin numbers follow the Kod2Kids books. You can use other pins, just change the same numbers in the code.
🎮 Play with this experiment⚙️ How does it work?
The word “random” in code makes the board pick a number that nobody can predict. The program then lights as many LEDs as the number. It is a fair dice because every number has an equal chance.
🌍 Where is this used in real life?
- Online games and lotteries use random numbers.
- Computers use random numbers to make passwords safer.
- Weather and science models use randomness to test many possibilities.
💡 What could YOU invent with it?
Build a “turn-decider” for family board games or for choosing who goes first in a school game. Nobody argues because the dice is fair and cannot be cheated.
🧪 Try this!
Roll your dice 30 times and count how many times each number appears. Are they equal?
🎯 हम क्या बना रहे हैं?
हम पाँच एलईडी और एक पुश बटन से इलेक्ट्रॉनिक पासा बनाते हैं। हर बार दबाने पर बोर्ड बेतरतीब नंबर चुनता है और जली हुई बत्तियों से दिखाता है।
🔌 सर्किट डायग्राम
पिन नंबर Kod2Kids की किताबों के हिसाब से हैं। आप दूसरे पिन भी लगा सकते हो, बस कोड में वही नंबर बदल दो।
🎮 इस एक्सपेरिमेंट के साथ खेलो⚙️ ये कैसे काम करता है?
कोड का शब्द “random” बोर्ड से ऐसा नंबर चुनवाता है जिसका अंदाज़ा कोई नहीं लगा सकता। फिर प्रोग्राम उतनी ही एलईडी जलाता है जितना नंबर हो। ये न्यायपूर्ण पासा है क्योंकि हर नंबर के आने की बराबर संभावना है।
🌍 असली ज़िंदगी में ये कहाँ काम आता है?
- ऑनलाइन गेम और लॉटरी में रैंडम नंबर इस्तेमाल होते हैं।
- कंप्यूटर पासवर्ड को सुरक्षित बनाने के लिए रैंडम नंबर इस्तेमाल करते हैं।
- मौसम और विज्ञान के मॉडल कई संभावनाएँ परखने के लिए रैंडमनेस इस्तेमाल करते हैं।
💡 इससे आप क्या नया बना सकते हो?
परिवार के बोर्ड गेम या स्कूल के खेल में “पहली बारी तय करने वाली” मशीन बनाओ। झगड़ा नहीं होगा क्योंकि पासा न्यायपूर्ण है और उसमें बेईमानी नहीं हो सकती।
🧪 खुद करके देखो!
अपना पासा 30 बार चलाओ और गिनो हर नंबर कितनी बार आया। क्या सब बराबर हैं?
अरुडिनो नैनो कोडिंग और इलेक्ट्रॉनिक्स किट
Get the kit / किट खरीदें →
