✨ 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 →
Two LED Alternate Blinking

Two LED Alternate Blinking: The Police-Light Effect | दो एलईडी बारी-बारी: पुलिस लाइट जैसा असर

Experiment 05 · Arduino Nano Coding & Electronics Kit🚨

Two lights take turns, one on while the other is off.
दो बत्तियाँ बारी-बारी: एक जले तो दूसरी बुझी।

🎯 What are we building?

We connect two LEDs to two pins and write code so they blink one after the other. It looks just like the flashing lights on a police car or railway crossing.

Arduino NanoArduino NanoLEDLEDResistorResistorBreadboardBreadboardWiresWires

🔌 Circuit diagram

Arduino NanoD13D12GND220 ΩLED220 ΩLEDGND
Each pin→220 Ω→LED→GND

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 code turns pin A on and pin B off, waits, and then swaps them. Because they are never on together, our eyes see a back-and-forth flash.

🌍 Where is this used in real life?

  • Railway level crossings flash red lights alternately to warn road users.
  • Roadwork signs flash in turns to catch drivers’ attention.
  • Ambulances use alternating lights so they are seen from far away.

💡 What could YOU invent with it?

Design a “school-gate warning light” that flashes when children cross. It could make drivers slow down and keep school kids safe at busy gates.

🧪 Try this!

Make the left light stay on a little longer than the right. How does the effect look different?

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

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

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

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

Arduino NanoD13D12GND220 ΩLED220 ΩLEDGND
हर पिन→220 Ω→एलईडी→GND

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

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

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

कोड पिन A चालू और पिन B बंद करता है, रुकता है, फिर दोनों की अदला-बदली कर देता है। दोनों कभी साथ नहीं जलतीं, इसलिए हमारी आँखें आगे-पीछे चमकती रोशनी देखती हैं।

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

  • रेलवे फाटक पर लाल बत्तियाँ बारी-बारी चमककर सड़क वालों को चेताती हैं।
  • सड़क के काम के साइन ड्राइवरों का ध्यान खींचने के लिए बारी-बारी चमकते हैं।
  • एम्बुलेंस की बारी-बारी चमकती लाइटें दूर से दिख जाती हैं।

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

“स्कूल गेट चेतावनी लाइट” डिज़ाइन करो जो बच्चों के सड़क पार करते समय चमके। इससे ड्राइवर धीमे होंगे और भीड़ वाले गेट पर स्कूली बच्चे सुरक्षित रहेंगे।

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

बाईं बत्ती को दाईं से थोड़ी देर ज़्यादा जलाओ। असर कैसे अलग दिखता है?

🛒 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