690 likes | 707 Views
Build an Arduino-based robot that can avoid obstacles using 2 geared motors, an ultrasonic distance sensor, and a universal ball bearing module. When an obstacle is detected, the robot moves back and rotates randomly before continuing forward.
E N D
Creative Innovation Series NGT-503 : 2-in-1 Remote Bot Obstacle Avoiding Bot
NGT-503 : 2-in-1 Remote Bot • Objective: • Using Arduino, Geared Motor, Ultrasonic Distance Sensor, and Universal Ball Bearing to create a obstacle avoiding robot. • Description: • An Arduino based obstacle avoiding bot is created with 2 Geared Motor, an Ultrasonic Distance Sensor, and an Universal Ball Bearing module. When the bot detects any object 20 cm in front of the Ultrasonic Distance Sensor, the bot moves back and rotates random side to avoid the obstacle before moving forward. • Module List: • 1. fayabrickNano x 1 • 2. Geared Motor x 2 • 3.Ultrasonic Distance Sensor x 1 • 4. Universal Ball Bearing Module x 1
Hardware List faya brickNano Universal Ball Bearing Geared Motor Ultrasonic Distance Sensor Bluetooth Module (not using here) micriUSB Cable Brick Set Brick Post Extra bricks Power Wire Set Signal Wire Set
1. faya brickNano • Compatible to Arduino Nano • Includes 4 brick holes to connect to bricks. • Includes 2 power heads to supply power to other faya modules • Use microUSB interface
2. Universal BallBearing Face up side Face down side Use Universal Ball Bearing Module to support other wheels and reduce moving friction.
3. Geared Motor Side A Side B • Input analog signal (DC voltage) at SIG port to control motor speed. • Input digital signal (HIGH) at DIR port to rotate motor counter-clockwisely. • Input digital signal (LOW) at DIR port to rotate motor clockwisely. • You can input signal at either side (A or B) of the module.
4. Ultrasonic Distance Sensor Trig Pin Echo Pin distancetoleave distancetoreturn wall • 3 steps to calculate distance • (1) Sending 10us HIGH at Trig Pin • (2) Detect HIGH TIME at ECHO pin • (3) Distance (meater) • =HIGH time × velocity of sound / 2 • =HIGH time x (340M/S) / 2
6. micro USB cable • Use micro USB cable to connect between faya brickNano and computer.
7. Brick Set • Normal Type • 1x1 : 12 pcs • 1x2 : 12 pcs • 1x3 : 12 pcs • 1x4 : 12 pcs • 2x2 : 8 pcs • 2x3 : 12 pcs • 2x4 : 24 pcs • (at least) Plate Type 2x6 : 6 pcs 2x10 : 2 pcs 6x8 : 1 pcs 90 degree Type 1x1 : 10 pcs • LEGO brick compatible • Random color for each type • Abigger normal type brick maybe replaced by smaller brick • for example, a 2x4 brick maybe replaced by 2pcs of 2x2
8. Brick Post • Use brick post to interface faya modules with bricks. • Brick post is stackable, as shown in above pictures.
9. Extra Bricks 6x8 : 1 pcs 2x6 : 2 pcs • Use extra bricks to create a stronger bot • LEGO brick compatible • Random color
10. Power Wire Type A : Connector-to-Pins Type B : Connector-to-Connector Type B Type B Type A • Power Wire is used to supply the power from one to another faya modules. Red Wire connects to Vcc and Black Wire connects to Gnd. • Above example shows that the power from Arduino is delivered to DC motor via Type A wire and delivered to other two modules via Type B wires.
11. Signal Wires • Signal Wire is used to connect signals between Arduino and faya module pins. • The size of the signal wire is AWG22
Assembling This section introduce the assemble of bricks and faya modules
Assemble Brick Post (1) Assemble Brick Post at board corners of each module.
Assemble Brick Post (2) For Universal Ball Bearing Module, stack the brick post at another side.
Assemble Bot Body (1) Create a structure as shown above. Note that you need to use a 2x10 plate and four 90-degree bricks.
Assemble Bot Body (2) Put two 2x3 bricks on the top of body
Assemble Bot Body (3) Put another two 2x4 bricks on the top of the body.
Assemble Bot Body (4) Cover the body with a 2x10 plate and use four 90-degree, one 2x2, and one 2x4 bricks on the top of this plate.
Test Bot Body (5) With this Bot Body, you may connect two Geared Motor Modules to each side through 90-degree bricks. Please use a Geared Motor Module to make sure that it fits the Bot Body. When pass, remove the Geared Motor Module.
Assemble Bot Body (6) Use 1 2x3 plate at the front of the Bot Body, as shown above.
Assemble Bot Body (7) Put two 2x4 bricks on the top of the 2x3 plate.
Assemble Bot Body (8) Cover the two 2x4 bricks with another 2x3 plate.
Assemble Bot Body (9) Put two 2x6 plate on the brick post of Universal Ball Bearing Module.
Assemble Bot Body (10) = + Refer to the location in above picture, connect the Universal Ball Bearing Module to the Bot Body.
Assemble Wheels Connect two Geared Motor Modules to each side of the Bot Body.
Assemble Bot Body (11) Place a 6x8 brick plate on the top of the Bot Body. Please refer to the position shown above.
Assemble Bot Body (12) Put a 2x6 brick plate at the end of the Bot Body. Please refer to the position shown above.
Assemble Bot Body (13) Put a 2x3 brick next to two 90-degree bricks.
Assemble Bot Body (14) Cover the end of the body with a 2x6 brick plate.
Assemble Bot Body (15) Put a 2x6 and a 6x8 brick plate on the top of the Bot Body. See above for exact location.
Assemble Bot Body (16) Cover another 2x6 brick plate as shown in above location.
Assemble brickNano Assemble the brickNano at the top center of Bot Body.
Create a Room for Mobile Power (1) Next few steps will show an example to create a room at the end of the Bot for Mobile Power. You may adjust the structure of the room based on the shape / size of your Mobile Power.
Create a Room for Mobile Power (2) 1st Floor
Create a Room for Mobile Power (3) 2nd Floor
Create a Room for Mobile Power (4) 3rd Floor
Create a Room for Mobile Power (5) 4th Floor
Create a Room for Mobile Power (6) Complete
Assemble Ultrasonic Distance Sensor Assemble the Ultrasonic Distance Sensor at the front of the Bot. Note that only two brick posts are required.
Bot Body Complete Photo after completing Bot Body
Wire Connection This section introduce the connections of power and signal wires
Power Wire Connection Type B Power Wire Use one type B Power Wire to connect the power jack between brickNano and Ultrasonic Distance Sensor, as shown in above picture.
Power Wire Connection Use another type B Power Wire to connect the power jack between Ultrasonic Distance Sensor and LEFT Geared Motor Module, as shown in above picture.
Power Wire Connection Use another type B Power Wire to connect the power jack between brickNano and Right Geared Motor Module, as shown in above picture.
Power Wire Connection Arrange power wires to make it more neatly. You may hide power wires under modules as shown above.
Signal Wire Connection (Right Wheel) brickNano_D11 Geared Motor_SIG brickNano_D12 Geared Motor_DIR
Signal Wire Connection (Left Wheel) brickNano_D6 Geared Motor_SIG brickNano_D7 Geared Motor_DIR
Signal Wire Connection (Ultrasonic) brickNano_D2 Ultrasonic Distance_Trig brickNano_D3 Ultrasonic Distance_Echo