Sketch Drive Car V2

About the project

An intelligent drive.

Items used in this project

Hardware components

USB Li-Ion Power Bank with 2 x 5V Outputs a. 2.1A - 5000mAh USB Li-Ion Power Bank with 2 x 5V Outputs a. 2.1A - 5000mAh x 1
Pimoroni Micro Dot pHAT w/Red LEDs Pimoroni Micro Dot pHAT w/Red LEDs x 2
Transistor NPN (2N3904) Transistor NPN (2N3904) x 1
NXP 32-bit MCU, Power Arch core, 512KB Flash, 64MHz, -40/+105degC, Automotive Grade, QFP 64 NXP 32-bit MCU, Power Arch core, 512KB Flash, 64MHz, -40/+105degC, Automotive Grade, QFP 64 x 1
RC Car RC Car x 1

Software apps and online services

Android Studio Android Studio

Hand tools and fabrication machines

Sketch Drive Car App Sketch Drive Car App x 1

Story

This project is based on another one of my earlier project called "Sketch Drive Car" (project). I could say this is a new version of that "Sketch Drive Car V2."

Here the story starts!

After seeing the hackster autonomous challenge mail and dockey kit, I decided to Sketch Drive Car project once-again with new features. I received the RC car by late due to delay in shipment so I have got 15 days to finish. Due to short time I had to cut down some features and sensors. I almost done everything but in the end hackster extended the project deadline. I got relaxed and made some improvements mostly on Android application.

What Is Sketch Drive Car?

The concept is drawing routes/path on a mobile device and the car following the same track/road in real-time.

Sketch Drive Car V2

In this version I have upgraded the FRDM board to KW40z which has BLE 4.1 connectivity. Also the board comes with level shifter which I used for LED lamp and driving servos.

The car received with Raspberry Pi, power bank and Donkey Car 3D modules. Unfortunately the 3d models does not fit into this type RC car anyway that's not required for my concept. After that I have done some experiments to understand the control signals and finally simulated the same from KW40z MCU and works. Next step is building android app to communicate with KW40z. I used NXP's IoTToolBox app to test initially then later I developed my own android with joystick control on it.

Basic Testing with NXP IoT Toolbox

Basic Testing with NXP IoT Toolbox

Basic Testing with NXP IoT Toolbox

Here is the basic testing video of steering and speed control.

After all finally the car ready head lights.

1 / 2

The KW40z board has push buttons, Button S2 is used to arming the car. Button S1 is used to advertise the BLE. If BLE connection is not made the car will go to power off mode. power bank supplies the power for Freedom Board, headlights and steering servo.

Pin Details

PTC4 - Throttle PWM, PTC5 - Steering PWM, PTC18 - LIGHT (with 2n390 Transistor)

Finally the video demo of sketch drive was shot in Goa.

Demo Video

Schematics, diagrams and documents

FRDM-KW40Z Schematic

Code

Main.c

Use FRDM-KW40Z SDK for Drivers

Credits

Photo of ashokr

ashokr

Hello! I’m Ashok. I’m currently working as software engineer. passionate about doing Hobbies Projects and Animations works.

   

Leave your feedback...