Please help me about my servo motor

Gud day to everyone.

Im programming a simple Line guided vehicle using photoresistors as it’s eyes. My problem is that I cannot program my photoresistor to my servo motor.

Im trying to program my servomotor that when my photoresistors are offset, the servomotor would rotate and find its path. Can anyone help me with the syntax for the servomotor and the photoresistor. Im using 4 photoresistor, 2 in the front and 2 in the back. Im also using a microcontroller using PBASIC as its programming language… Please HELP ME… DESPERATELY NEED IT FOR OUR THESIS :frowning: :frowning: PLEASE HELP ME ANYONE!!!

It would actualy be like easier to do that like a BEAM robot. Use premade chips, no programing required. I don’t know if you can do taht though.

umm pre made chips??? what does it do???

You probably need to be doing some heavy google searches for similar projects and the associated coding. I assume you have all the hardware working as you have designed. Are you using a variable analog value from the sensor, or is it just on/off? You probably can start by writing down the logic steps for the line following, then work on developing the specific code to perform the logic action.