Skip to main content

1_6ad9e6ecd185bf89fd71add981c28ca74d2b7546.jpg

This project is mocking a GPS system on a 2d HSV camera-based technology.

Students will be required to use PID and mathematics to avoid block.

How to do the self-driving? First, get the coordinates of the car. Then find the path from the source to the destination. The mid-point calculation could avoid blocking.

What is PID?

pid_c4ae02ca5ccefb0145f378abaac19e870c3ce4ea.jpg

A proportional–integral–derivative controller (PID controller, or three-term controller) is a control loop feedback mechanism .

The P is the direct response to the error that we have sampled.

The I is the period response to the error that we have integrated.

The D is the comparison response to the previous and current response.

The left wheel PID is to reach the right wheel counter numbers, yet the right wheel PID is to get the middle of both wheel counter numbers.

Mathematic

math_28a85be3d45e5f53cf942010c94c0d5b03a04c4b.jpg

The HSV java program gives the following information about the car location.

Picture113_01f526b8c1cebc8fb382fbc705bd1d9decc19cae.jpg

The pin diagram of the self-driving car.lock1_57a6197ed32fd859ba2b5683d34356458392aeba.jpg

This program for stmf103rbt6, is attached inside the zip file.

ENJOY :)

 

 

Downloads

Brian0925 has not written a bio yet…