top of page
SELF DRIVING CAR
We used one lego motor to turn the back wheels so that our car would move continuously. And we had a motor in front that acted as a steering wheel. The steering wheel got its value from OpenMV camera. The camera pixelated everything and connected the white lines by regression. It only created the lines if the white pixels were close to each other. Our algorithm then subtracted the x values of the ends of the line. This way if it is more than 10, it means the line goes towards right and if it is less than 10, it means the line goes towards left.
To turn the wheel, the pyboard got the delta X values from OpenMV via UART and used it to put as a value on the wheel.
This is how our hero escaped...
Self Driving Car: About
Self Driving Car: Gallery
Unfortunately, our UART connection did not work well and could not send the delta X in the speed we wanted and pyboard could not write delta X to the front wheel in the way we wanted. Also, two lego motors could not run with only one battery for some reason we could not figure out. So, we used nScope.
The source code for the Star Wars Theme: https://starwarsintrocreator.kassellabs.io/#!/BLc8Q0sPoC7hbz6Yegpr/edit
Programs that are used:
Python
nScope
OpenMV
The codes for Open MV and Pyboard can be found on this github link :
Self Driving Car: Text
bottom of page