Help me please T_T

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 PLEASE HELP ME ANYONE!!!

Hi welcome,

I believe that you posted this in multiple forums. You will find that there are many people who read through all of the posts and so it is not needed to post in multiple places.

There is not enough information in these posts to give you much help. For example it would help to know a lot more about your vehicle and what you have already tried. Taking a guess are you using servos that have been modified for continuous rotation? How is it connected to to microcontroller? Which Microcontroller. How are the photoresistors connected to your vehicle? How are they connected to the microcontroller? Have you tried a PBASIC program to read the values of the photoresistors? When you said Line guided vechicle, are you trying to follow a line on the ground. For example a black line on a light background? If you move one of your sensors over the dark line, can you PBASIC program detect a difference in the values?

If you are doing a simple line following robot, there are several examples up on the web. For example if you look up on the main Lynxmotion website under Old Programs, you will find some programs you can download for the old carpet rover (ltrack1, ltrack2), which may help you.

Good Luck

Thank t\you very much… i really appreciate all the help i can get… thx for the info ^^)