My Autonomous Robot Adventure:
Parts in Play:
For this experiment, I gathered my RedBoard, breadboard, jumper wires, motor driver, motors (both left and right), a switch, and the trusty HC-SR04 distance sensor. Oh, and don't forget the scissors (not included) and 4 AA batteries (not included).
Building the Robot:
The first step was getting my robot ready. I attached the battery pack to the baseplate using the Dual Lock provided. If I hadn't attached it in Project 4, I cut two pieces of Dual Lock, stuck one to the back of the battery holder, and the other to the bottom of the baseplate. A satisfying press, and my robot was ready to roll, literally!
Wiring the Circuit:
With my robot assembled, it was time to get into the nitty-gritty of the circuit. Following the provided hookup table, I connected everything to the RedBoard and breadboard. The distance sensor was particularly crucial – it needed a clear path for accurate readings. I made sure it was free from any wire interference.
Diving into the Code:
Next up was the coding part. I opened the Arduino IDE, made sure the switch was OFF, and navigated to File > Examples > SIK_Guide_Code-master > SIK_Circuit_5C-AutonomousRobot. Copy-pasting the code into the IDE, I felt like a coding maestro. A quick upload to the RedBoard, and we were ready for action.
Observing the Robot's Behavior:
With the switch flipped ON, my robot sprang to life! It cruised forward elegantly, but the real magic happened when an obstacle appeared. The distance sensor did its job – the robot gracefully stopped, reversed, executed a slick turn, and then resumed its forward journey. It was like a mini self-driving car, and I was its proud creator.
Fine-Tuning and Challenges:
The experiment didn't end there. I took on the challenges presented – tweaking the obstacle reaction distance and modifying the robot's behavior. It was an exercise in creativity and problem-solving, and it felt empowering to see my robot respond differently to its environment based on my code changes.
Navigating the Challenges:
Of course, no experiment is without its hiccups. I encountered issues like unexpected motor behavior and slow movement. Each problem was a puzzle to solve. Checking wiring, adjusting sensor positions, and ensuring the batteries were juiced up did the trick.
Lessons Learned:
Through this project, I delved into the world of autonomous vehicles on a micro-scale. The concept of using a distance sensor to avoid obstacles isn't just confined to my little robot – it's the same principle used in Mars rovers and self-driving cars! The possibilities felt endless.
Closing Thoughts:
As my robot confidently roamed around, reacting to its surroundings, I couldn't help but marvel at the power of coding and electronics. It was more than just a project; it was a glimpse into the potential of autonomous systems, and I was the architect of this small, but mighty, mechanical creation.
The Landing files tool can be used to share files with others, comment on them and build dialogue around them.
Some files are treated specially: on the whole, pictures will be displayed as pictures (jpg, gif and png formats), audio will be played as audio (mp3 and a few other formats) and video will be shown as video (various formats). It is thus a way to build picture galleries, podcasts and vodcasts.
You can upload multiple files and even upload zip files, that will be extracted on this site into their individual components.
We welcome comments on public posts from members of the public. Please note, however, that all comments made on public posts must be moderated by their owners before they become visible on the site. The owner of the post (and no one else) has to do that.
If you want the full range of features and you have a login ID, log in using the links at the top of the page or at https://landing.athabascau.ca/login (logins are secure and encrypted)
Posts made here are the responsibility of their owners and may not reflect the views of Athabasca University.