![]() Also, you can try this project with a different development board like Raspberry Pi and expand your knowledge. You can also try using the LCD Modules based on which you will also get to know the distance of the obstacle. It will turn off when there is no obstacle. Serial.println(“OBSTACLE!!, OBSTACLE!!”) Ī few seconds after the upload finishes, place a board in front of the Obstacle Avoidance Sensor, and the LED attached to pin 7 on the Arduino Uno board will light up, the onboard obstacle led will turn on. Int isObstacle = HIGH // HIGH MEANS NO OBSTACLE ![]() Int isObstaclePin = 2 // This is our input pin Then load up the following sketch onto your Arduino. The green power LED (labelled PWR) should go on.Open the Arduino IDE and choose corresponding board type and port type for you project. After above operations are completed, connect the Arduino board to your computer using the USB cable.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |