Self-Driving R/C Car Parks Itself Just Like a Lexus

Arduino Cars Robotics Technology
Self-Driving R/C Car Parks Itself Just Like a Lexus

car

Self-driving cars are in the news almost daily, but they are not exactly in my automotive budget for this decade. Today, that has changed.

While this car might be smaller and not capable of giving me a ride, it’s still autonomous and, best of all, it is a project that I absolutely want to build!

Most of the parts used should be familiar to fans of Arduino
Most of the parts used should be familiar to fans of Arduino.

The vehicle is a creation of University of Gothenburg student Dimitris Platis and his team of Makers — Yilmaz Caglar, Aurélien Hontabat, David Jensen, Simeon Ivanov, Ibtissam Karouach, Jiaxin Li, and Petroula Theodoridou — who collectively go by the name Team Pegasus. The team’s work is impressive, they’re GPLv3 licensed, and their documentation is quite good. The project is ripe to enable other interested Makers to jump right in and create their own fork of the project.

YouTube player

Originally, Platis’ class assignment directions suggested using a single-board computer, webcam, elaborate simulation software package called OpenDaVinci, and an aesthetically unattractive chassis, all of which he wasn’t too excited about. So, he and the team decided to dump the suggested components and solve the problem set using their own approach.

Here’s an overview of the project.

Layout of the car's electronics system
Layout of the car’s electronics system sans drive system

The electronics layout inside the car should look pretty familiar to anyone who has used Arduino to prototype a project. The Arduino MEGA connects with three ultrasonic sensors, two of which are mounted on the front of the car and one on the rear bumper. Three IR sensors also wire to the MEGA and are deployed in a similar fashion. A gyroscope and 9 degree-of-freedom inertial measurement boards round out the sensor package, but are placed within the chassis of the vehicle.

Android phone mounted to the car handles computation of sensor data passed to it via Bluetooth
An Android phone, mounted to the car, handles computation of sensor data passed to it via Bluetooth.

Steering directions are transmitted from an onboard Android phone running vision processing and transmitted over Bluetooth, and the electronic speed control (ESC) and Adafruit motor shield handle the car’s acceleration (not shown).

Correction: Originally I wrote that an Adafruit motor control shield was used in the project, it was not. Dimitris Platis corrected me and has this to add. “This vehicle does *not* use a motor shield (just an ESC) or the Smartcar Core library. The Smartcar Core library, was used in different vehicle (which in turn indeed uses a motor shield), from another group of students, who also made something really interesting, that I should write about soon.”

Finally, and also not shown in the layout, is an ATtiny85 microcontroller that is programmed with its own sketch to handle LEDs control for such are things as breaking, turning, and illuminating the roadway.

YouTube player

The code leverages AndroidCar.h, a custom library built by Team Pegasus, and polls sensor data on the car, which is then sent via Bluetooth to the onboard cellular phone.

Then, the API handles the transmission of steering commands from the phone’s computations and alters the servo position. To learn more about the API, check out the Smartcar Core example sketches. For documentation on the code that glues the Arduino code with the Android phone, you want to check out the Android-Car-duino repository. And for an overall approach to adapting this set of libraries to your own vehicle this wiki is for you.

YouTube player

11 thoughts on “Self-Driving R/C Car Parks Itself Just Like a Lexus

  1. Dimitris Platis says:

    Thanks for your really nice article David! It means a lot to us to have our work featured in Makezine! :D

    By the way, some minor corrections: This vehicle does *not* use a motor shield (just an ESC) or the Smartcar Core library. The Smartcar Core library, was used in different vehicle (which in turn indeed uses a motor shield), from another group of students, who also made something really interesting, that I should write about soon.
    This Android – based vehicle, uses the “AndroidCar” library (https://github.com/platisd/AndroidCar) where the AndroidCar.h is found. You will find its documentation at: https://github.com/platisd/AndroidCar/wiki

    So, thanks again for your article, you made my day and i really hope more research is done on the subject! :)

    PS. If anyone needs more information, help regarding the setup etc, feel free to contact me/us.

    1. Zaid Pirwani says:

      how is the car doing LANE following..???

      1. Dimitris Platis says:

        Yeap, precisely. If you click on the link in the beginning of the article, you can read a few more details on the image processing. :)

  2. CharlesSWilson says:

    Some New Features with makezine….. Go To Next Page

  3. RachelTHarris says:

    Available Real place jobs makezine Next Tip Here

  4. Throffes1992 says:

    < ??????.+ zeldadungeon+ *********<-Part-time working I Saw at the draft which said $19958@mk11 < Now Go R­e­­a­d M­o­r­e

    <???????????????????????????????

    22

  5. JessicaGMahoney says:

    1212121@Available Real place jobs makezine…. Next Tip Here

  6. EarnestMMoreland says:

    ====Reset your job with makezine hunda jobs …………..

  7. WilliamBParkhill says:

    *******Big time hit th e makezine ……..Find Here

  8. StephenKWilliams says:

    121@Available Real place kezine…. Next Tip

  9. gakkergter says:

    Nation Of Love With Peoples by make < Make It Easy

Comments are closed.

Discuss this article with the rest of the community on our Discord server!
Tagged

I love to tinker and write about electronics. My days are spent building projects and working as a Technical Editor for MAKE.

View more articles by David Scheltema

ADVERTISEMENT

Maker Faire Bay Area 2023 - Mare Island, CA

Escape to an island of imagination + innovation as Maker Faire Bay Area returns for its 15th iteration!

Buy Tickets today! SAVE 15% and lock-in your preferred date(s).

FEEDBACK