Five lights, endless patterns. Be the director of your own show.
पाँच बत्तियाँ, अनगिनत पैटर्न। अपने शो के डायरेक्टर बनो।
🎯 What are we building?
We program five LEDs to create patterns such as all together, odd and even, and from the ends to the middle. It is art and coding mixed.
🔌 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?
Each LED has its own pin. A pattern is just a list of which pins are ON in each step. By using a for-loop, which repeats steps, the code stays short even for long patterns.
🌍 Where is this used in real life?
- Billboards and shop signs show animated patterns.
- Stage and wedding decorations use patterned lights with music.
- Level meters on music players dance with the sound.
💡 What could YOU invent with it?
Build a “festival decoration controller” with five different patterns for Diwali and Holi. It could help small shop owners make attractive displays at low cost.
🧪 Try this!
Draw five circles on paper and colour the ones that are ON for three different steps. Then turn your drawing into code.
🎯 हम क्या बना रहे हैं?
हम पाँच एलईडी को ऐसे प्रोग्राम करते हैं कि सब साथ, विषम-सम और किनारों से बीच की ओर जैसे पैटर्न बनें। ये कला और कोडिंग का मेल है।
🔌 सर्किट डायग्राम
पिन नंबर Kod2Kids की किताबों के हिसाब से हैं। आप दूसरे पिन भी लगा सकते हो, बस कोड में वही नंबर बदल दो।
🎮 इस एक्सपेरिमेंट के साथ खेलो⚙️ ये कैसे काम करता है?
हर एलईडी का अपना पिन होता है। पैटर्न बस ये सूची है कि हर कदम में कौन से पिन ON हैं। for-loop, जो कदम दोहराता है, से लंबे पैटर्न का कोड भी छोटा रहता है।
🌍 असली ज़िंदगी में ये कहाँ काम आता है?
- बिलबोर्ड और दुकानों के साइन हिलते-डुलते पैटर्न दिखाते हैं।
- स्टेज और शादी की सजावट में संगीत के साथ पैटर्न वाली लाइटें चलती हैं।
- म्यूज़िक प्लेयर के लेवल मीटर आवाज़ के साथ नाचते हैं।
💡 इससे आप क्या नया बना सकते हो?
दिवाली और होली के लिए पाँच अलग पैटर्न वाला “त्योहार सजावट कंट्रोलर” बनाओ। इससे छोटे दुकानदार कम ख़र्च में आकर्षक सजावट कर सकते हैं।
🧪 खुद करके देखो!
कागज़ पर पाँच गोले बनाओ और तीन अलग कदमों में जो ON हों उन्हें रंगो। फिर अपने चित्र को कोड बनाओ।
अरुडिनो नैनो कोडिंग और इलेक्ट्रॉनिक्स किट
Get the kit / किट खरीदें →
