✨ 1:1 Online Live Robotics & Coding Classes for KidsTry a free class →
🤖 Build real robots at home with our Starter KitsShop kits →
🎮 New! Build circuits on screen in our free Circuit PlaygroundPlay now →
🚀 Inspiring Minds, Igniting FuturesOur story →
Electronic Dice with LEDs

Electronic Dice with LEDs: Roll a Dice Without Throwing It | एलईडी वाला इलेक्ट्रॉनिक पासा: बिना फेंके पासा चलाओ

Experiment 12 · Arduino Nano Coding & Electronics Kit🎲

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.

Arduino NanoArduino NanoLEDLEDPush ButtonPush ButtonResistorResistorBreadboardBreadboardWiresWires

🔌 Circuit diagram

Arduino Nano5VD2D13D12D11D10D9GND10 kΩ220 ΩLED220 ΩLED220 ΩLED220 ΩLED220 ΩLEDGNDPush buttonnode
Button press→D2 reads HIGH→if pressed ?→D13 HIGH→LED

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?

🎯 हम क्या बना रहे हैं?

हम पाँच एलईडी और एक पुश बटन से इलेक्ट्रॉनिक पासा बनाते हैं। हर बार दबाने पर बोर्ड बेतरतीब नंबर चुनता है और जली हुई बत्तियों से दिखाता है।

Arduino Nanoअरुडिनो नैनोLEDएलईडीPush Buttonपुश बटनResistorरेसिस्टरBreadboardब्रेडबोर्डWiresतार

🔌 सर्किट डायग्राम

Arduino Nano5VD2D13D12D11D10D9GND10 kΩ220 ΩLED220 ΩLED220 ΩLED220 ΩLED220 ΩLEDGNDPush buttonnode
बटन दबाओ→D2 HIGH पढ़ता है→अगर दबा है ?→D13 HIGH→एलईडी

पिन नंबर Kod2Kids की किताबों के हिसाब से हैं। आप दूसरे पिन भी लगा सकते हो, बस कोड में वही नंबर बदल दो।

🎮 इस एक्सपेरिमेंट के साथ खेलो

⚙️ ये कैसे काम करता है?

कोड का शब्द “random” बोर्ड से ऐसा नंबर चुनवाता है जिसका अंदाज़ा कोई नहीं लगा सकता। फिर प्रोग्राम उतनी ही एलईडी जलाता है जितना नंबर हो। ये न्यायपूर्ण पासा है क्योंकि हर नंबर के आने की बराबर संभावना है।

🌍 असली ज़िंदगी में ये कहाँ काम आता है?

  • ऑनलाइन गेम और लॉटरी में रैंडम नंबर इस्तेमाल होते हैं।
  • कंप्यूटर पासवर्ड को सुरक्षित बनाने के लिए रैंडम नंबर इस्तेमाल करते हैं।
  • मौसम और विज्ञान के मॉडल कई संभावनाएँ परखने के लिए रैंडमनेस इस्तेमाल करते हैं।

💡 इससे आप क्या नया बना सकते हो?

परिवार के बोर्ड गेम या स्कूल के खेल में “पहली बारी तय करने वाली” मशीन बनाओ। झगड़ा नहीं होगा क्योंकि पासा न्यायपूर्ण है और उसमें बेईमानी नहीं हो सकती।

🧪 खुद करके देखो!

अपना पासा 30 बार चलाओ और गिनो हर नंबर कितनी बार आया। क्या सब बराबर हैं?

🛒 Build this at home! / घर पर बनाओ!Arduino Nano Coding & Electronics Kit · ₹999
अरुडिनो नैनो कोडिंग और इलेक्ट्रॉनिक्स किट

Get the kit / किट खरीदें →

Leave a Comment

Your email address will not be published. Required fields are marked *

Shopping Cart

Book A Free Demo Session

Join us for an exciting adventure into the world of robotics and coding! Our Robotics and Coding Class for Kids is designed to inspire young minds, foster creativity, and ignite a passion for technology.

Contact Info

Email

info@kod2kids.com