Skip to content
This repository has been archived by the owner on Jan 13, 2021. It is now read-only.

Edubot library with a function that allows user to know if a IR sensor is above the black line or not. This function will return true if the read value of the sensor passed by parameter is greater than the threshhold.

License

Notifications You must be signed in to change notification settings

pinxau1000/Robot_Edubot_S_v2_0_MODED

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

THIS REPOSITORY IS ARCHIVED

Edubot

All Features:

  • void Edutbot.Setup(unsigned int threshold): Setup the robot for a given threshold. - threshold: The threshold value.

  • void Edubot.readSensors(void): Reads all infrared sensors.

  • void Edubot.setMotorSpeed(boolean motor, int s): - motor: defines the left or right motor. - s: the speed of the motor between -255 and 255.

  • bool Edubot.irLine(int sensor): Checks if a sensor is above the line. Note: This function does not update the sensor values, you should make a read of these first. - sensor: the index of the sensor to check. - returns: true if the sensor value is greater than the threshold or false otherwise.

  • bool Edubot.chkLine(int sensor_val): Checks if the given sensor value is above the threshold. Note: This function does not update the sensor values, you should make a read of these first. - sensor_val: the sensor value to compare. - returns: true if the value is greater than the threshold or false otherwise.

  • void Edubot.turnRobotBackToLine(): Makes the robot turns 180°.

  • void Edubot.turnRobotInCross(boolean dir): Turns the robot 90°. - dir: If true makes the robot turns clockwise, if false makes the robot turns anti clockwise.

Installation

Just download and paste this folder on Arduino/libraries folder.

Authors

This library was made available by the teacher of Embedded Computing Systems of Electrical Engineering and Computers in ESTG - IPLeiria, we don't know who are the real authors of this library.

About

Edubot library with a function that allows user to know if a IR sensor is above the black line or not. This function will return true if the read value of the sensor passed by parameter is greater than the threshhold.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages