✨ 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 →
LED ON/OFF Using Arduino

LED ON/OFF Using Arduino: Control Light with Code | अरुडिनो से एलईडी ऑन/ऑफ: कोड से रोशनी पर काबू

Experiment 03 · Arduino Nano Coding & Electronics Kit🔦

Tell the board exactly when to switch a light on and off.
बोर्ड को बताओ कि बत्ती कब जलानी है और कब बुझानी।

🎯 What are we building?

We write a program with separate ON and OFF steps and learn to control the LED with full precision. Where the blink ran forever, here we decide the timing ourselves.

Arduino NanoArduino NanoLEDLEDResistorResistorBreadboardBreadboardWiresWires

🔌 Circuit diagram

Arduino NanoD13GND220 ΩLEDGND
Pin D13→220 Ω→LED long leg→LED short leg→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 board reads the code line by line from top to bottom. A line that says digitalWrite HIGH turns the pin on, and LOW turns it off. The order of lines is the order of actions, so we can design any ON/OFF story.

🌍 Where is this used in real life?

  • Classroom bells switch on and off at set times.
  • Garden sprinklers start and stop on a timer.
  • Shop signboards switch on automatically in the evening.

💡 What could YOU invent with it?

Create a “study timer light”: it stays on for 25 minutes of study and goes off for a 5 minute break. It could help students focus better and take rests on time.

🧪 Try this!

Write a story with your LED: ON for 2 seconds, OFF for 1 second, ON for 3 seconds. Does the board follow it exactly?

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

हम ऑन और ऑफ के अलग-अलग कदमों वाला प्रोग्राम लिखते हैं और एलईडी को पूरी सटीकता से चलाना सीखते हैं। ब्लिंक हमेशा चलता था, यहाँ समय हम ख़ुद तय करते हैं।

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

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

Arduino NanoD13GND220 ΩLEDGND
पिन D13→220 Ω→एलईडी लंबा पैर→एलईडी छोटा पैर→GND

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

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

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

बोर्ड कोड को ऊपर से नीचे लाइन-दर-लाइन पढ़ता है। digitalWrite HIGH वाली लाइन पिन चालू करती है और LOW बंद। लाइनों का क्रम ही कामों का क्रम है, इसलिए हम कोई भी ऑन/ऑफ कहानी बना सकते हैं।

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

  • क्लास की घंटी तय समय पर बजती और बंद होती है।
  • बगीचे के स्प्रिंकलर टाइमर से शुरू और बंद होते हैं।
  • दुकानों के साइनबोर्ड शाम को अपने आप जल उठते हैं।

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

“पढ़ाई का टाइमर लाइट” बनाओ: 25 मिनट की पढ़ाई तक जलती रहे और 5 मिनट के ब्रेक के लिए बुझ जाए। इससे विद्यार्थी ज़्यादा ध्यान लगा सकेंगे और समय पर आराम भी कर पाएँगे।

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

अपनी एलईडी से कहानी लिखो: 2 सेकंड ON, 1 सेकंड OFF, 3 सेकंड ON। क्या बोर्ड ठीक वैसा ही करता है?

🛒 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