ធ្វើរ៉ូបូតថ្ងៃទី៤ | Calibrate sensor
by .panhavorn in Tech
In English
Building a Robot Day 4: Calibrating Line-Tracking Sensors
While building a line-tracking and maze-solving robot, the creator encountered an issue where five sensors provided inconsistent readings between black and white surfaces. To fix this, the sensors were calibrated across both colors to establish baseline values, standardizing black to zero and white to one thousand. The calibration produced more stable and accurate data to improve the robot's navigation.
The story
អ្នកបង្កើតបានរកឃើញដំណោះស្រាយចំពោះបញ្ហាមិនស៊ីសង្វាក់គ្នានៃ Sensor ចំនួនប្រាំនៅលើ Robot ជំនាន់ទីបួន ដោយប្រើប្រាស់វិធីសាស្ត្រ Calibration ដើម្បីបែងចែកពណ៌ខ្មៅ និងពណ៌ស។ ដំណោះស្រាយនេះជួយឱ្យប្រព័ន្ធ Sensor ដំណើរការកាន់តែមានស្ថិរភាពសម្រាប់ការរត់តាមគន្លង និងការរត់ឆ្លងកាត់ផ្លូវវង្វេង។
នៅក្នុងការបង្កើត Robot ទីបួនដែលអាចរត់តាមគន្លង និងដើររកផ្លូវវង្វេងបាន អ្នកបង្កើតបានជួបប្រទះបញ្ហាបច្ចេកទេសលើ Sensor ទាំងប្រាំ។ Sensor ទាំងនោះមានភារកិច្ចសំខាន់ក្នុងការបែងចែករវាងពណ៌ខ្មៅ និងពណ៌ស ដោយបញ្ជូនតម្លៃចន្លោះពី ០ ដល់ ១.០០០ ទៅកាន់ Robot ប៉ុន្តែទិន្នន័យដែលទទួលបានមិនមានភាពស៊ីសង្វាក់គ្នានោះឡើយ ដោយឧបករណ៍ខ្លះបង្ហាញពណ៌ខ្មៅស្មើនឹងលេខ ៥០០ ខ្លះ ៧០០ និងខ្លះទៀតស្មើនឹងលេខ ៤០០។
ដើម្បីដោះស្រាយបញ្ហានេះ តម្លៃរបស់ Sensor ទាំងអស់ត្រូវបានយកទៅបញ្ចូលក្នុងដំណើរការមួយហៅថា Calibration ដើម្បីឱ្យ Sensor ទាំងអស់រាយការណ៍តម្លៃស្មើគ្នា ដោយកំណត់ពណ៌ខ្មៅឱ្យស្មើនឹងលេខ ០ និងពណ៌សឱ្យស្មើនឹងលេខ ១.០០០។ ដំណើរការនេះតម្រូវឱ្យអូស Sensor កាត់ទាំងផ្ទៃពណ៌ខ្មៅ និងពណ៌ស ដើម្បីឱ្យវាចាប់យកតម្លៃដើមខ្ពស់បំផុត និងទាបបំផុត រួចបញ្ចេញតម្លៃដែលមានស្ថិរភាព។
ជាលទ្ធផល បន្ទាប់ពីឆ្លងកាត់ការ Calibrate រួចមក Sensor ទាំងនោះដំណើរការបានល្អប្រសើរជាងមុន ដោយតម្លៃនៃពណ៌ខ្មៅបានខិតទៅកៀកនឹងលេខ ០ ហើយពណ៌ស ឬពណ៌ភ្លឺៗ បានខិតទៅកៀកនឹងលេខ ១.០០០ ដែលជួយឱ្យប្រព័ន្ធដំណើរការរបស់ Robot កាន់តែត្រឹមត្រូវ។
What the sources say
Sources support the calibration method, but they do not independently confirm this specific robot or all reported results.
- Five sensors help the robot tell black from white. (Backed by sources: Arduino, Electricalflux, Mouser)
- Calibration uses readings from dark and light surfaces. (Backed by sources: Electricalflux, Mouser, Github)
- Readings can be normalized to a 0–1000 range. (Backed by sources: Arduino, Pcbway, Github)
- Calibration makes the robot’s sensor readings more consistent. (Backed by sources: Arduino, Electricalflux, Pcbway)
- The robot is the creator’s fourth robot project. (No source found)
Sources it was checked against
- [PDF] Line Follower and Obstacle Avoiding Robot using Arduino ... - IJRTI (Ijrti)
- Line Follower Robot (with PID controller) - Arduino Project Hub (Arduino)
- Choosing Line Following Robot Sensors for Arduino and ESP32 ... (Electricalflux)
- Line Follower Robot (with PID controller) - Arduino Project Hub (Arduino)
- Line Robot - Line following (Microline)
- [PDF] Grove - Infrared Reflective Sensor User Manual (Mouser)