Hello everyone. I'm building a robot called robotisto. His goal is to follow a person using an ir SEN0158 camera. I found a code for the camera but don't know how to get it to work with the programm i made with my two dc motors.
Can someone help me out? Here is my code.
The camera is able to detect up to four IR sources (i would like to use only two).
I want the robot to keep a balance between the two IR spots and if one measurement is lower than the other one of the motors to spin faster than the other one to turn the robot to get the balance between the measurements back.
It would be really nice to help me out.
Thank you.
your fellow robotisto.
I want the robot to keep a balance between the two IR spots and if one measurement is lower than the other one of the motors to spin faster than the other one to turn the robot to get the balance between the measurements back.
Well frankly, the code isn't even running. I'm just having issues on getting the code for the ir camera to interact with the motors. I never used arduino in such a way and i barely never coded.
I'm sorry though.
The first two quotes are from the official code for the IR camera i'm using.
I looked up the == and got the difference. Thank you anyway.
Sorry for the mistakes.