Auto Calibration Sensor Library for Arduino
This is Arduino Library for Calibrate, Find (Middle or Avg. Value) of Sensors.
Based on Arduino, Can try with any board based on Arduino
PASSED ON FRIEND ROBOT BOARD (MODEL PRO)
- Download Here - Release
- Add Library - How to Add Library to Arduino IDE
- Enjoy, We have 2 Example
// Constructor
class AutoCalibrate(int n_Sensor, int* pPort, int* pReff)
// Debug Method
void showOutput(); // To Show All Output on Serial
void readSensor(); // To Read All Sensor on Serial
// Compute Method
void calibrate(int TimeToCalibrate); // To Compute sensor with Time (ms.)
Just try it with my example, it's very simple :D
Board : FRIEND ROBOT BOARD MODEL PRO
Sensor : 5 Red Analog Reflective Sensor (Port -> A1 - A5)
Motor : 2 6v 400rpm DC Motor (Port -> Left=1, Right=2)
-
Calibrate_Simple
-
Calibrate_Motor
(Test on Model Pro -> You can change #include <ModelPro.h> to your board.)
-
Calibrate_TrackLine
Calibrate sensor for The Follower Line Robot Example
You can ask me in Issues.
- Save Reff to EEPROM (Source, Example)
- Thai Documentation
- Boss Hudsawat
ChatGPT (Super Consultant ><)
if you like this repository, Please Give me a star for support me. :D