ធ្វើ maze solving robot, day 3.
by .panhavorn in Tech
In English
Building a Maze-Solving Robot: Day 3 Motor Control
On the third day of building a line-following and maze-solving robot, work transitioned to software development following the completion of hardware assembly. The creator wrote setup code and motor control functions to operate both the left and right motors, enabling the robot to move forward and reverse.
The story
ការអភិវឌ្ឍរ៉ូបូតដែលអាចរត់តាមបន្ទាត់ និងស្វែងរកផ្លូវវង្វេងបានឈានចូលដល់ថ្ងៃទីបី ដោយផ្តោតលើការសរសេរសូហ្វវែរសម្រាប់បញ្ជាម៉ូទ័រ បន្ទាប់ពីផ្នែករឹងត្រូវបានផ្គុំរួចរាល់។
នៅក្នុងដំណើរការនៃការបង្កើតរ៉ូបូតមួយគ្រឿងដែលអាចរត់តាមបន្ទាត់ និងដើររាប់ផ្លូវវង្វេងបាននោះ ការងារដំឡើងផ្នែករឹង (Hardware) ត្រូវបានបញ្ចប់ជាស្ថាពរ។ ការងារនៅថ្ងៃទីបីនេះ បានបង្វែរមកផ្តោតលើការរៀបចំផ្នែកសូហ្វវែរ (Software) វិញ ដោយក្រុមការងារបានចាប់ផ្តើមសរសេរមុខងារ (Function) សម្រាប់បញ្ជាម៉ូទ័រ។
ការរៀបចំកូដរួមមានផ្នែកខាងលើដែលប្រើប្រាស់សម្រាប់កំណត់រចនាសម្ព័ន្ធរបស់រ៉ូបូត (Setup) ខណៈដែលកូដផ្នែកខាងក្រោមត្រូវបានប្រើសម្រាប់បញ្ជាម៉ូទ័រខាងឆ្វេងឱ្យដំណើរការវិល និងអាចផ្លាស់ប្តូរទិសដៅទៅមុខ ឬថយក្រោយបាន។ ទន្ទឹមនឹងនេះ កូដបន្ថែមមួយចំនួនទៀតក៏ត្រូវបានដាក់បញ្ចូលដើម្បីដំណើរការ និងបញ្ជាម៉ូទ័រខាងស្តាំដូចគ្នាផងដែរ។
តាមរយៈការបន្ថែមមុខងារបញ្ជា និងកូដត្រួតពិនិត្យបន្ថែមទៀតនេះ រ៉ូបូតអាចបញ្ជាចលនា និងទិសដៅបានយ៉ាងត្រឹមត្រូវ ដែលជាជំហានដ៏សំខាន់ក្នុងការឈានទៅសម្រេចការរត់តាមទិសដៅដែលបានកំណត់។
What the sources say
Sources support the general robot functions, but independent coverage of this specific project is limited.
- The team began writing software functions to control the motors. (Backed by sources: Maker, Github, Arduino)
- The code controls left and right motor direction. (Backed by sources: Maker, Github, Arduino)
- The robot's hardware was completed by day three. (No source found)
- The robot can now move accurately in planned directions. (No source found)
Sources it was checked against
- projecthub.arduino.cc › jrachana › line-followerLine Follower Robot using Arduino UNO - Arduino Project Hub (Arduino)
- github.com › maysha24 › maze-solving-robotmaysha24/maze-solving-robot - GitHub (Github)
- http://www.iaeme.com/IJARET/index.asp (Iaeme)
- nguyenfpga/Maze-Solving-Arduino-Robot - GitHub (Github)
- RobotLogo (Arduino)
- How to Make a Beginner's Robot Using Arduino | Arduino (Maker)