Pixy2 Camera Specs:
-
140mA operating
-
Power input: USB input (5V) or unregulated input (6V to 10V)
-
USB connection
-
Serial UART connection
-
I2C bus connection
-
SPI Bus connection
-
Analog output
-
Digital output
-
50 Frames/s
-
Detects lines, intersections and simple barcodes
-
Tracking algorithms that allows ability to track objects
-
Lens field-of-view: 60 degrees horizontal, 40 degrees vertical
-
Processor: NXP LPC4330, 204 MHz, dual core.
-
Dimensions: 1.5” x 1.65” x 0.6”

In this diagram, you can see the general flow chart for the camera. When the line is to far from the center of the camera in either direction, the go kart will steering to correct.

In this video you can see the RC car following an orange ball I have attached to a post.
In this video the RC car is being pushed along under my force to show the steering capabilities with no control system.
This video shows the Pixy2 detecting an object, then using a servo motor powered by an Arduino to "follow" the desired object.
This video shows control system working on the go-kart, steering the wheels with a linear actuator.
Interrupt loop for control system


This is the section of code where the PWM value calculated from the interrupt loop and control system is sent to the motor driver and linear actuator.