Six - Distance Sensor

Created on 12/15/2014 4:42:36 PM
Last Modified at 1/9/2015 2:26:48 AM

This project uses a distance sensor, extension cube and rotation servo to give Six the ability to avoid objects. Avoiding objects is done by using the Ultrasonic Radar Scan control. Configuring the control to increment a servo between a Min and Max position. The distance is received by the Radar Scan from the Ultrasonic sensor. If the distance is less than the specified distance, the Radar Scan control will initiate the REVERSE direction for the selected movement panel. In this case, the movement panel is an Auto Position.

Introduction

EZ-Robot Revolution Software Apps include assembly instructions for your robot. When you load a project, the EZ-Builder software will download the required EZ-Bits and ask if you would like to view the assembly instructions. In this lesson, we will explain how the assembly instructions work and teach you to become an expert robot builder! Click here to view the software tutorial.

*Note: When connecting servos to the EZ-B, pay attention to match the colors. Just like your home theater, the BLACK wire of the servo connects to the BLACK side of the EZ-B pins. Here is a video.


Servo Orientation

Keep a close eye on the EZ-Bit's physical features so you can identify the orientation. In this example, notice the direction of the servo with recognizable features of the real physical EZ-Bit in your hand. If you connect an EZ-Bit backward, your robot will behave funny and not work as expected - but might be worth the laugh!


Step 1

Add Hexapod Body


Step 2

Add Lever Servo - 90 Degrees as 1 OClock Inside
  1. Connect Servo to Servo port D0


Step 3

Add Lever Servo - 90 Degrees as 1 OClock Outside
  1. Connect Servo to Servo port D1


Step 4

Add Hexapod Foot


Step 5

Add Lever Servo - 90 Degrees as 11 OClock Inside
  1. Connect Servo to Servo port D3


Step 6

Add Lever Servo - 90 Degrees as 11 OClock Outside
  1. Connect Servo to Servo port D4


Step 7

Add Hexapod Foot


Step 8

Add Lever Servo - 90 Degrees as 9 OClock Inside
  1. Connect Servo to Servo port D6


Step 9

Add Lever Servo - 90 Degrees as 9 OClock Outside
  1. Connect Servo to Servo port D7


Step 10

Add Hexapod Foot


Step 11

Add Lever Servo - 90 Degrees as 7 OClock Inside
  1. Connect Servo to Servo port D9


Step 12

Add Lever Servo - 90 Degrees as 7 OClock Outside
  1. Connect Servo to Servo port D10


Step 13

Add Hexapod Foot


Step 14

Add Lever Servo - 90 Degrees as 5 OClock Inside
  1. Connect Servo to Servo port D12


Step 15

Add Lever Servo - 90 Degrees as 5 OClock Outside
  1. Connect Servo to Servo port D13


Step 16

Add Hexapod Foot


Step 17

Add Lever Servo - 90 Degrees as 3 OClock Inside
  1. Connect Servo to Servo port D15


Step 18

Add Lever Servo - 90 Degrees as 3 OClock Outside
  1. Connect Servo to Servo port D16


Step 19

Add Hexapod Foot


Step 20

Add Hexapod Dome


Step 21

Add Rotation Servo as Sensor
  1. Connect to Servo port D19


Step 22

Add Extension Cube


Step 23

Add Ultrasonic Distance Sensor
  1. Connect Trigger to Digital port D20
  2. Connect Echo to Digital port D21


Step 24

Add EZ-B v4 Camera
  1. Connect Camera to Camera port NA