Posts | Comments

Planet Arduino

Archive for the ‘Autonomous Car’ Category

Jeremy Ellis is a teacher, and as such, wanted a longer-term project that his students could do to learn more about microcontrollers and computer vision/machine learning, and what better way is there than a self-driving car. His idea was to take an off-the-shelf RC car which uses DC motors, add an Arduino Portenta H7 as the MCU, and train a model to recognize target objects that it should follow.

After selecting the “RC Pro Shredder” as the platform, Ellis implemented a VNH5019 Motor Driver Carrier, a servo motor to steer, and a Portenta H7 + Vision Shield along with a 1.5” OLED module. After 3D printing a small custom frame to hold the components in the correct orientation, nearly 300 images were collected of double-ringed markers on the floor. These samples were then uploaded to Edge Impulse and labeled with bounding boxes before a FOMO-based object detection model was trained.

Rather than creating a sketch from scratch, the Portenta community had already developed one that grabs new images, performs inferencing, and then steers the car’s servo accordingly while optionally displaying the processed image on the OLED screen. With some minor testing and adjustments, Ellis and his class had built a total of four autonomous cars that could drive all on their own by following a series of markers on the ground.

For more details on the project, check out Ellis’ Edge Impulse tutorial here.

The post This converted RC car uses a Portenta H7 to drive itself appeared first on Arduino Blog.

Whether we like it or not, eventually the day will come where we have to admit that we outgrew our childhood toys — unless, of course, we tech them up in the name of science. And in some cases we might get away with simply scaling things up to be more fitting for an adult size. [kenmacken] demonstrates how to do both, by building himself a full-size 1:1 RC car. No, we didn’t forget a digit here, he remodeled an actual Honda Civic into a radio controlled car, and documented every step along the way, hoping to inspire and guide others to follow in his footsteps.

To control the Civic with a standard RC transmitter, [kenmacken] equipped it with a high torque servo, some linear actuators, and an electronic power steering module to handle all the mechanical aspects for acceleration, breaking, gear selection, and steering. At the center of it all is a regular, off-the-shelf Arduino Uno. His write-up features plenty of videos demonstrating each single component, and of course, him controlling the car — which you will also find after the break.

[kenmacken]’s ultimate goal is to eventually remove the radio control to build a fully autonomous self-driving car, and you can see some initial experimenting with GPS waypoint driving at the end of his tutorial. We have seen the same concept in a regular RC car before, and we have also seen it taken further using neural networks. Considering his background in computer vision, it will be interesting to find out which path [kenmacken] will go here in the future.

If you’re tired of waiting around to get an autonomous vehicle, PolySync’s Open Source Car Control Project (OSCC) development kit can be had for under $1000.

Autonomous cars are still in their infancy, and can cost upwards of $100,000. If you’re willing to do some of the work yourself—and trust a machine you modified to drive you around—PolySync has an Arduino-based kit (nearly) available to help you build your own.

You can pre-order a kit right now for $649, and you’ll have program each Arduino module yourself when you receive it. You’ll also need a 2014-or-later Kia Soul on which to install it, chosen for its combination of drive-by-wire controls as well as relatively low price. Keep in mind, however, the project is intended for R&D and off-road use only.

The OSCC Project is built around a number of individual modules that interoperate to create a fully controllable vehicle. These modules are built from Arduinos and Arduino shields designed specifically for interfacing with various vehicle components. Once these modules have been programmed with the accompanying firmware and installed into the vehicle, the vehicle is ready to receive control commands sent over a CAN bus from a computer running a control program.

You can find the full press release for this project here and more info on its GitHub page.

(Photos: PolySync)

For less than $1,000, Keran McKenzie programmed his car to drive itself… or did he? That is the question, which has led to much debate online over the last couple of hours. (Although Hackaday has revealed the truth, it was one heck of an ad for Arduinos!)

Hoax aside, as hackers begin to see autonomous vehicles in various phases of testing, the question of “why can’t I do that?” is bound to come up. McKenzie seemingly attempted to do just that with an array of five cameras embedded in his 2012 Ford Focus where ultrasonic sensors were formerly mounted. While details of the project are slim (and now we know why), he does mention ‘using’ an Arduino for each camera, interfaced with a master board to put everything together. He also went on to ‘add’ a SparkFun MicroView inside the car for visual feedback of the supposed control system.

Impressive hacking/editing, however, as you see just after 3:00 in the video, trusting your life to a homemade vision system is probably not the greatest idea and is a build best left to professionals.

The Ford Focus that I have has an interesting feature, it has this home button on here. Now the home button doesn’t particularly do much other than tell the navigation system to turn on and show you the route home… It got me thining though, why can’t I push that button and have it take me home?

You can read the initial story about this DIY self-driving vehicle on IEEE Spectrum, and Hackaday’s follow-up here. So, we have to ask: Did you think it was real? 



  • Newsletter

    Sign up for the PlanetArduino Newsletter, which delivers the most popular articles via e-mail to your inbox every week. Just fill in the information below and submit.

  • Like Us on Facebook