#6 Control LED using PUSH Button with Arduino |

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024
  • Welcome Learners to Learn4u RUclips Channel!
    In this video, we'll explore how to control an LED using a push Button and with Arduino: Illuminate Your Projects! 💡this project is a great way to learn about input/output interactions in Arduino.
    In this tutorial, we'll cover:
    1. Wiring Setup:
    - Connect the push button to an Arduino pin (e.g., pin 7).
    - Attach a 220-ohm resistor to the LED's anode (positive leg).
    - Ground the LED's cathode (negative leg) through another resistor.
    - Power everything using the 5V pin and ground.
    2. Code Explanation:
    - We'll use `digitalRead()` to check the button state.
    - If the button is pressed (LOW), the LED turns on (HIGH).
    - Otherwise, the LED remains off.
    3. Testing and Troubleshooting:
    - Upload the code to your Arduino.
    - Press the button to see the LED respond.
    🔔 Don't forget to LIKE, SHARE, and SUBSCRIBE for more exciting projects and tutorials!
    Stay tuned for more exciting projects
    🔗 Connect with us:
    Subscribe us:- / @learn4yedu tech
    Twitter: [x.com/learn4u2]
    Instagram: [Your Instagram Handle]
    Website:[learn4u.in]
    Share this video with fellow Scratch enthusiasts and let's build a community of creative coders! 🚀
    Got questions or suggestions? Drop them in the comments below!
    Thank you for watching, and happy making!
    #Arduino #Electronics #DIY #Tutorial #LED #LDR #BeginnerProjects #Maker #LEDProjects #MakerCommunity #Electronics #DIY

Комментарии • 3

  • @anujsinghdotcom
    @anujsinghdotcom Месяц назад +2

    aap arduino ke bare me ek
    video banaiye

  • @anujsinghdotcom
    @anujsinghdotcom Месяц назад +1

    mujhe arduino k bare me top to bottom tak jankari chaiye
    make a video about arduino