DFRobot ROB0117 Quick Start Manual Download Page 1

2015/11/4

Basic Kit for Cherokey 4WD SKU:ROB0117 - Robot Wiki

https://www.dfrobot.com/wiki/index.php?title=Basic_Kit_for_Cherokey_4WD_SKU:ROB0117

1/13

Basic Kit for Cherokey 4WD SKU:ROB0117

From Robot Wiki

Contents

1 Function Introduction

1.1 STEP 1: Assemble Robot
1.2 STEP2:Debug Motor
1.3 STEP3:Install Cherokey expansion plate
1.4 STEP4: Debug Ultrasonic Sensor and Servo
1.5 STEP 5: Debugging Robot

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
(http://www.dfrobot.com.cn/image/data/ROB0102/Assembly%20tutorial.pdf)

Precautions:

Romeo need to fix to the Cherokey.

Summary of Contents for ROB0117

Page 1: ...stall Cherokey expansion plate 1 4 STEP4 Debug Ultrasonic Sensor and Servo 1 5 STEP 5 Debugging Robot Function Introduction This Kit will teach you how to build a automatic obstacle avoidance robot wh...

Page 2: ...2015 11 4 Basic Kit for Cherokey 4WD SKU ROB0117 Robot Wiki https www dfrobot com wiki index php title Basic_Kit_for_Cherokey_4WD_SKU ROB0117 2 13 fix Romeo BLE STEP2 Debug Motor 1 Connect Motor...

Page 3: ...ection Control void setup void loop carAdvance 100 100 delay 1000 carBack 100 100 delay 1000 carTurnLeft 250 250 delay 1000 carTurnRight 250 250 delay 1000 void carStop Motor Stop digitalWrite speedPi...

Page 4: ..._M1 rightSpeed digitalWrite directionPin_M2 LOW void carTurnLeft int leftSpeed int rightSpeed Turn Left analogWrite speedPin_M2 leftSpeed digitalWrite directionPin_M1 LOW analogWrite speedPin_M1 right...

Page 5: ...www dfrobot com wiki index php title Basic_Kit_for_Cherokey_4WD_SKU ROB0117 5 13 1 Prepare the Materials 2 Fixed Ultrasonic Sensor Position Please see the Installation Manual http www dfrobot com cn i...

Page 6: ...2015 11 4 Basic Kit for Cherokey 4WD SKU ROB0117 Robot Wiki https www dfrobot com wiki index php title Basic_Kit_for_Cherokey_4WD_SKU ROB0117 6 13...

Page 7: ...11 4 Basic Kit for Cherokey 4WD SKU ROB0117 Robot Wiki https www dfrobot com wiki index php title Basic_Kit_for_Cherokey_4WD_SKU ROB0117 7 13 STEP4 Debug Ultrasonic Sensor and Servo 1 Hardware Connec...

Page 8: ...2015 11 4 Basic Kit for Cherokey 4WD SKU ROB0117 Robot Wiki https www dfrobot com wiki index php title Basic_Kit_for_Cherokey_4WD_SKU ROB0117 8 13...

Page 9: ...etro sweepServo Metro 20 unsigned long actualDistance 0 Servo myservo create servo object to control a servo int pos 60 int sweepFlag 1 int URPWM 3 PWM Output 0 25000US Every 50US represent 1cm int UR...

Page 10: ...ing a sensor reading digitalWrite URTRIG LOW digitalWrite URTRIG HIGH reading Pin PWM will output pulses unsigned long distance pulseIn URPWM LOW if distance 50000 the reading is invalid Serial print...

Page 11: ...Speed Control int directionPin_M1 4 M1 Direction Control int directionPin_M2 7 M1 Direction Control unsigned long actualDistance 0 Servo myservo create servo object to control a servo int pos 60 int...

Page 12: ...d for int i 0 i 4 i Serial write EnPwmCmd i int MeasureDistance a low pull on pin COMP TRIG triggering a sensor reading digitalWrite URTRIG LOW digitalWrite URTRIG HIGH reading Pin PWM will output pul...

Page 13: ...in_M2 leftSpeed digitalWrite directionPin_M1 HIGH analogWrite speedPin_M1 rightSpeed digitalWrite directionPin_M2 LOW void servoSweep if sweepFlag if pos 60 pos 120 pos pos 1 in steps of 1 degree myse...

Reviews: