ICStation team share this open source of making Multi-Function automatic move smart car with all electronic DIY hobbyists.It is the third car we introduce to you and you can make a comparison with the two previous. The multi-Function automatic move smart car uses an MCU development application system and a 4-wheel driver system,the core of which is arduino Atmega-328P.It can realize multifunction,such as tracking,obstacle avoidance,remote control and some other functions.
ICStation team use the kits which contain a mass of interesting code,and extensible external circuit module to make the smart car.It is of great fun to keep away form boring theory knowledge and gain ability of development MCU system during the project making process.
—Method of Application
—Black or white line detection principle
—Code for Reference
1>.Ultrasonic obstacle avoidance mode;
2>.Automatic obstacle avoidance mode;
3>.Tracking mode(in black wire);
4>.Automatic move mode;
5>.Remote control mode.
Parameter for your reference:
1>.Gear motor reduction ratio1:48,driver voltage 6V;
2>.Motor driver module is L298N;
3>.Three tracking module,detect black and white wire;
4>.Remote control communication module.consist of remote system;
5>.It can connect to many other sensor ,so it can complete many other function as you have in your mind.
1>>.detect distance:Test white paper is about 2cm.Depending on the color of different distance is different.white is farthest
2>>.supply voltage:2.5V~12V,Not more than 12V(It is best to low voltage power supply, power supply voltage is too high will shorten the life of a sensor.5V power supply is preferred)
3>>.operating current:18-20mA when 5V.By a large number of tests, sensor hardware Settings for 18~20mA best performance when working current, main performance on anti-jamming capability
4>>.An object is detected, the output signal low level; Not detected objects, the output signal of high level.
5>>.Sensor output TTL level, can be directly connected to the 3.3 V or 5 V micro controller IO port.
1>.Gear motor x4
3>.Motor fixed part x4
4>.100*213*5mm perspex sheet x1
5>.100*213*5mm perspex sheet x1
6>.L298N motor driver module x1
7>.Arduino uno 328 x1
8>.Arduino sensor shield x1
11>.Ultrasonic module x1
12>.Three tracking module x1
13>.Infrared receive sensor x1
14>.Remote control unit x1
15>.MINI bread board x1
16>.6xAA battery holder x1
17>.Dupont cable x30
18>.1M USB cable x1
19>.Copper cylinder M3*35mm x3
20>.Copper cylinder M3*20mm x2
21>.Copper cylinder M3*6mm x6
22>.M3 screw and nut several
Step 1: Install Motor
Step 2: Install Motor Driver Module
More details about this module:http://www.icstation.com/product_info.php?products_id=2706
Step 3: Install Control Board
Step 4: Install Battery Holder
Step 5: Install Infrared Receive Module
The infrared receive module you need:http://www.icstation.com/product_info.php?products_id=1612
Step 6: Install Tracking Module
The tracking module you should prepare:http://www.icstation.com/product_info.php?products_id=2720
Step 7: Install Gear
Step 8: Fix Ultrasonic
More details anout Ultrasonic Module HC-SR04 for arduino:http://www.icstation.com/product_info.php?products_id=1389
Step 9: Fix PTZ Kits on Chassis
After finishing this step,the installation complete!
Step 10: Method of Application
1>>.There are 3 row needle sensor interfaces, is GND, VCC, OUT. VCC &gnd for power supply side, the OUT signal is output.
2>>.An object is detected, the output signal low level; Not detected objects, the output signal of high level.
3>>.Major judgment signal output is 0 or 1, will be able to determine whether an object exists.
Step 11: Black or White Line Detection Principle
1>>.Using black to light the reflectivity of the characteristics, when the surface color is not black, infrared sensors to launch out by most reflected. The sensor output low level 0.
2>>.When there is a black line plane, sensors in the black, because black reflection ability is very weak, very few reflected infrared light, short of sensor action level, so the sensor output 1.
3>>.Single chip microcomputer as long as we use to judge the sensor output is 0 or 1, will be able to detect the black line.
4>>.Detection principle of the white line and black line, the principle of the detection of the white line, white line around the color is close to black, then adjust the adjustable resistance of infrared sensor above, will lower sensitivity, has been transferred to the surrounding color just detect, it can detect the white line.
The code for reference:
Thank you for your visiting! Please feel free to share us your comments. :)
Should you meet any problem, please feel free to contact us.