I am using line following IR sensor with arduino mega. I need the sensor 2-3m away from arduino since the length of rover is 2m (sensor front & motor back). However, I cannot get accurate analog reading due to voltage drop so that is giving me a problem.
What I tried:-
1) I tried to supply 5.4V to the sensor but had no effect and it might damage the sensor so avoided it. 2) tried to keep the controller close to Arduino and let the wire between controller and BLDC motor be long but didnt work
More info about the project:- -> Using 2 BLDC motor at the back and caster wheels in front with sensor -> car length is 2m
What could be the best way to solve this problem?
Note:- if the short wire is the only way then is keeping the motor in front with sensor and caster wheels at back a good idea?