ROB0118

ROB0118 Datasheet


Basic Kit for Turtle 2WD SKU:ROB0118

Part Datasheet
ROB0118 ROB0118 ROB0118 (pdf)
PDF Datasheet Preview
Basic Kit for Turtle 2WD SKU:ROB0118

Function Introduction

This Kit will teach you how to build a automatic obstacle - avoidance robot which is achieved on the platform of the Turtle Robot,based on ultrasonic sensor as distance measuring device,and combined with servo.

STEP 1 Assemble Robot

Refer to Instruction Manual

Precautions Instruction Manual says nothing about how to deal with motor wire. The next pictrue tells it.

Finished the robot chassis.Then following the connection diagram to wire the hardware. Motor Connection Physical map

STEP 2 Debug Motor

Download the Code
int speedPin_M1 = 5;
//M1 Speed Control
int speedPin_M2 = 6;
//M2 Speed Control
int directionPin_M1 = 4;
//M1 Direction Control
int directionPin_M2 = 7;
//M1 Direction Control
void
void carAdvance 100,100 delay 1000 carBack 100,100 delay 1000 carTurnLeft 250,250 delay 1000 carTurnRight 250,250 delay 1000 ;
void
// Motor Stop
digitalWrite speedPin_M2,0 ;
digitalWrite directionPin_M1,LOW ;
digitalWrite speedPin_M1,0 ;
digitalWrite directionPin_M2,LOW ;
void carAdvance int leftSpeed,int analogWrite speedPin_M2,leftSpeed ;
//Move forward //PWM Speed Control
digitalWrite directionPin_M1,HIGH analogWrite speedPin_M1,rightSpeed digitalWrite directionPin_M2,HIGH ;
void carBack int leftSpeed,int analogWrite speedPin_M2,leftSpeed digitalWrite directionPin_M1,LOW analogWrite speedPin_M1,rightSpeed digitalWrite directionPin_M2,LOW ;
//Move backward
void carTurnRight int leftSpeed,int analogWrite speedPin_M2,leftSpeed digitalWrite directionPin_M1,LOW analogWrite speedPin_M1,rightSpeed digitalWrite directionPin_M2,HIGH ;
void carTurnLeft int leftSpeed,int
analogWrite speedPin_M2,leftSpeed digitalWrite directionPin_M1,HIGH analogWrite speedPin_M1,rightSpeed digitalWrite directionPin_M2,LOW ;
//Turn Right //Turn Left

STEP Upper Plate

Prepare the Materials

Fixed Ultrasonic Sensor Position Please see the Installation Manual Fixed Servo Position

STEP4 Debug Ultrasonic Sensor and Servo

Hardware Connection

Ultrasonic Sensor and Servo Controll

Download Code Install the library firstly. Metro libray
More datasheets: 1569-22-1-0500-002-1-TS | 1569-22-1-0500-010-1-TS | 1569-22-1-0500-011-1-TS | 1569-22-1-0500-007-1-TS | 1569-22-1-0500-003-1-TS | FIT0531-R | A000073 | DM74LS534N | 19-21/GHC-YR1S2/3T | 3019


Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived ROB0118 Datasheet file may be downloaded here without warranties.

Datasheet ID: ROB0118 509037