How it works? :
direction. The line has two points “Starting” and “Destination” point it
decides to where to start and where to end. The distance to travel by
the car is decided by scale factor.
This process has 3 stages
In routing stage, the user is allowed to draw the path on the screen with preferred scale value. Once routing is done the route values are decoded into the X & Y pixel values, which are send to the MCU wirelessly (Bluetooth/ZigBee). In execution stage, the MCU converts the X, Y values into respective a PWM value which drives the DC Motor. The Accelerometer is attached to the car to calculate the acceleration and position of the car thereby helping to track the position of car in GUI screen.
The principle of Sketch Drive Car is conversion of 2D graphics into the form of PWM signals. The Windows application is designed based on Microsoft Paint, with the help of paint the path is drawn into the screen and the X & Y coordinates are stored into the 2D arrays. These values are used to calculate the path direction and motion of the vehicle. The path information is send into the micro controller through Bluetooth. The Micro understands the path information and it drives the Motor according to the changes in path direction in the form of PWM signals.
I designed my own algorithm to convert the 2d drawings into X,Y coordinates with path directions.
Xd= X (i) – X (i-1)
Yd= Y (i) – Y (i-1)
Xd > Xth -> X Direction & Xd < Xth -> -X Direction
Yd > Yth -> Y Direction & Yd < Yth -> -Y Direction
Xth – X Threshold (Sensing value)
The current design does not recognize the curve paths, so Error detection technique is used here to identify the drawn path is valid or not.
The speed of the Car is measured through accelerometer (Approximates values).It detects the motion of vehicle. 8bit fast accessing mode is used in the accelerometer.
Internal ADC is used to detect the voltage level of battery. Low voltage level can be indicated through LED.
Sketch Drive Car Application:
This application is developed using visual studio along with Measurement Studio tools. In the main tab the large white screen is used for sketching the root/path. Gauges are used to display the speed/motion. Rotatory Knob is used to setup the steering wheel power. Vertical Slide bar is used to setup the engine speed. Push buttons are used to control the lights and drive path of the car. The Setting tab contains Mode and supportive controls.
Using Easy mode user can drive the car as like normal remote control system. Drift and circuit (circular) options are included in this mode. When easy mode is enabled the Sketch driving will be disabled.
1. It would be another way to test cars in automotive industries.
2. Sketch Drive Cars can be used in gaming for entertainment (RC car Racing/ Line Follower)
3. Parking the Car in park slots