Robotics & Artificial Intelligence
Explain the use of digitalWrite() function.
Tinkercad
2 Likes
Answer
The digitalWrite() function is used to control the state of a digital pin on the Arduino microcontroller. It is used to send a HIGH or LOW signal through an output pin.
- HIGH means the pin outputs 5 V (ON)
- LOW means the pin outputs 0 V (OFF)
Syntax:digitalWrite(pin, value);
Where pin = digital pin number, and value = HIGH or LOW.
Example:digitalWrite(3, HIGH);
will send a HIGH signal through pin 3
Answered By
1 Like
Related Questions
Fill in the blanks:
- ……………. are used to move the wheels of the robot.
- Motor Driver L293D has ……………. input pins.
- ……………. pin in Arduino is used to provide a power supply of 5V to other components.
- Delay function takes input in ……………. .
- In forward mode, all the output pins receive ……………. values.
With the help of the battery, make the connection to glow an LED.
Explain the structure of breadboard.
Make the labeled pin out diagram of motor driver.