Tugas Arduino Uno Time Delay 2

Lutfi Syahlani
26 Jun 202510:47

Summary

TLDRIn this video, Hanif Fitresulistami demonstrates the process of assembling a time delay circuit with a light, resistor, USB cable, and jumper cables. The setup involves connecting components like the LED light and resistor in a specific configuration, followed by coding the Arduino to introduce a time delay. The tutorial includes step-by-step instructions on wiring and coding to achieve a delay effect, with the LED light switching on and off at set intervals. The video concludes by showing how to upload the code to the Arduino and finalize the project, making it a comprehensive guide for beginners in electronics and coding.

Takeaways

  • 😀 The presenter, Hanif Fitresulistami, introduces the tools needed to create a time delay circuit, including a backboard, light, resistor, USB cable, and jumper cables.
  • 😀 The LED light should be connected in parallel with the resistor, with the short part of the light connected to the resistor.
  • 😀 One leg of the resistor connects to the light, while the other leg is connected to the negative terminal.
  • 😀 A yellow jumper cable is used to connect the long leg of the LED light to pin 8 on the board.
  • 😀 The red jumper cable connects to the negative terminal (GND).
  • 😀 Diviar Putri shares the steps for coding the time delay function, starting with defining pin 8 as an output.
  • 😀 The initial delay is set to 1000 milliseconds (1 second).
  • 😀 The delay value is adjusted so that the LED stays off for 3 seconds before lighting up.
  • 😀 The delay value is later set to 100 milliseconds, with a total delay duration of 3000 milliseconds (3 seconds).
  • 😀 After completing the code, the setup is plugged into a laptop and uploaded to the Arduino Uno board.
  • 😀 The presenter concludes the tutorial with a thank you, indicating the circuit and coding steps are complete.

Q & A

  • What tools are mentioned in the video for creating time delay circuits?

    -The tools mentioned include a backboard, a light (LED), a resistor, a USB cable, and a jumper cable.

  • How is the LED light connected in the time delay circuit?

    -The short part of the LED light is connected in parallel with the resistor. One leg of the resistor is connected to the light, and the other leg is connected to the minus side of the circuit.

  • What role does the jumper cable play in the circuit setup?

    -The yellow jumper cable is connected to the long leg of the LED light and then to pin 8. The red jumper cable is connected to the minus side and then to the GND (ground).

  • What is the purpose of pin 8 in the circuit?

    -Pin 8 is used to control the LED light. It is connected to the long leg of the LED through the jumper cable.

  • How is the LED light controlled in the coding part of the project?

    -In the coding, the pinMode function is used to set pin 8 as an output pin, and the delay function controls how long the LED stays on or off.

  • What is the initial delay time set in the code?

    -The initial delay time is set to 1000 milliseconds (1 second).

  • What happens after the 3-second delay in the program?

    -After the 3-second delay, the LED light is programmed to remain silent (off) for a set period of time.

  • What is the role of the 'delay' function in the code?

    -The 'delay' function is used to pause the program for a specified amount of time, allowing the LED to remain in a certain state (on or off) for that duration.

  • What does the term 'pinMode' mean in the Arduino code?

    -The 'pinMode' function is used to configure a specific pin (like pin 8) as an input or output. In this case, pin 8 is set as an output to control the LED light.

  • What happens after the code is uploaded to the Arduino Uno?

    -Once the code is uploaded to the Arduino Uno, the circuit will execute the delay sequences as programmed, controlling the LED light's on/off behavior based on the delay times.

Outlines

plate

Cette section est réservée aux utilisateurs payants. Améliorez votre compte pour accéder à cette section.

Améliorer maintenant

Mindmap

plate

Cette section est réservée aux utilisateurs payants. Améliorez votre compte pour accéder à cette section.

Améliorer maintenant

Keywords

plate

Cette section est réservée aux utilisateurs payants. Améliorez votre compte pour accéder à cette section.

Améliorer maintenant

Highlights

plate

Cette section est réservée aux utilisateurs payants. Améliorez votre compte pour accéder à cette section.

Améliorer maintenant

Transcripts

plate

Cette section est réservée aux utilisateurs payants. Améliorez votre compte pour accéder à cette section.

Améliorer maintenant
Rate This
★
★
★
★
★

5.0 / 5 (0 votes)

Étiquettes Connexes
ArduinoLED circuittime delayelectronicscodingDIY projectstech tutorialArduino Unoelectronics projectcircuit assemblystep-by-step
Besoin d'un résumé en anglais ?