anyway i know there was a topic about this somewhere in the forum but it wasn't what i was looking for, i was given a project at school with programming a line tracking robot, the line is black. we're using a microprocessor the PIC16F628A,
I'm currently using a program call mikroC compiler programming in C code. im planning on using 3 sensors. the middle sensor is always on, and when either one of the sensors on the side goes off it would turn that direction (meaning that the robot has gone slightly off the black duct tape). what how am i going about on doing this? since, I'm very new on C coding and dont really have a clue. can someone show me a code that they've made in the past for this? or an example, or just how am i gonna get started on this. -_______-" i know im asking 2 much but i am hopless at programming.
P.S im running the program at 4.00 MHz in the clocking source for the setting of program.
_MCLRE_OFF - we do not need master reset input
_WDT_OFF - we turn off something called the "watchdog timer"
_LVP_OFF - we are NOT using "Low voltage programming"
_INTRC_OSC_NOCLKOUT - we want to use an internal Oscillator and not have this signal visible at the output pins.
all of that are the setting for my program so far