I have a problem with my codes, i was wondering if someone could help me....
I'm using an OV6620 camera with a PIC 16F877A microcontroller. I am trying to have my camera identify lines on the road (specifically, highways). This camera will be mounted on a toy car and will be demonstrated using a black bristolboard with 2 white lines. When the left line is out of sight, the LEFT LED will go on and when the right Line is out of sight, the Right LED will go on. When neither lines show, the 2 LED's along with a buzzer will go on. {The LED's and Buzzer are connected on a circuit board to Port D of the PIC}
The camera will be communicating with the PIC through 8 bit parallel communication. The PIC will be receiving the information through port B. In order for the camera to be initialized, I need to send command(s) through the I2C from the PIC to the camera. My biggest problem is writing the code to initialize the camera through I2C, and set the ports in the PIC as inputs and outputs. I'm using C programming and a high tech PIC C compiler through MPLAB to compile my codes.
Start Free Trial