+ All Categories
Home > Documents > The Bump Sensor - Kid Spark Education · In Ardublock, review the sketch and Click: Upload to...

The Bump Sensor - Kid Spark Education · In Ardublock, review the sketch and Click: Upload to...

Date post: 13-May-2020
Category:
Upload: others
View: 3 times
Download: 0 times
Share this document with a friend
8
1 Team Members: 1. ________________________ 3. ________________________ 2. ________________________ 4. ________________________ Click here to explore the entire Kid Spark Curriculum Library. Assemble Cog-Runner Place a check in each box as each step is completed. 1. Assemble: Cog-Runner Build (Build Plans on pages 4-7). 2. Connect: ROKduino to a computer using the USB cable. Example Sketch 1: Send and Return Place a check in each box as each step is completed. 1. On your computer, Open: Arduino, and then Ardublock (In the tools folder). 2. In Ardublock, Click: Open. 3. Find and Select: Example Sketch #1: Send and Return. (It will be in the downloaded folder) 4. In Ardublock, review the sketch and Click: Upload to Arduino. 5. Navigate and Select: the Arduino IDE Window. 6. Power ON: the ROKduino. 7. Press: the Bump Sensor. 8. Observe: the Cog-Runner. Every time the bump sensor is pressed, the cog-runner will move from left to right for 2.5 seconds. Then, it will reverse direction and move from right to left for 2.5 seconds. In this example, two delays are being used to pause the program for 2.5 seconds when the cog-runner is moving in either direction. Systems of Technology: Robotics & Coding - Sensor Deep Dive Instructions & Build Plans The Bump Sensor v2.3
Transcript
Page 1: The Bump Sensor - Kid Spark Education · In Ardublock, review the sketch and Click: Upload to Arduino. 7. Power ON: the ROKduino. 6. Press: the Bump sensor, wait for the cog-runner

1

Team Members:

1. ________________________ 3. ________________________

2. ________________________ 4. ________________________

Click here to explore the entire Kid Spark Curriculum Library.

Assemble Cog-RunnerPlace a check in each box as each step is completed.

1. Assemble: Cog-Runner Build (Build Plans on pages 4-7).

2. Connect: ROKduino to a computer using the USB cable.

Example Sketch 1: Send and ReturnPlace a check in each box as each step is completed.

1. On your computer, Open: Arduino, and then Ardublock (In the tools folder).

2. In Ardublock, Click: Open.

3. Find and Select: Example Sketch #1: Send and Return. (It will be in the downloaded folder)

4. In Ardublock, review the sketch and Click: Upload to Arduino.

5. Navigate and Select: the Arduino IDE Window.

6. Power ON: the ROKduino.

7. Press: the Bump Sensor.

8. Observe: the Cog-Runner. Every time the bump sensor is pressed, the cog-runner will move from left to right for 2.5 seconds. Then, it will reverse direction and move from right to left for 2.5 seconds. In this example, two delays are being used to pause the program for 2.5 seconds when the cog-runner is moving in either direction.

Systems of Technology: Robotics & Coding - Sensor Deep Dive Instructions & Build Plans

The Bump Sensorv2.3

Page 2: The Bump Sensor - Kid Spark Education · In Ardublock, review the sketch and Click: Upload to Arduino. 7. Power ON: the ROKduino. 6. Press: the Bump sensor, wait for the cog-runner

2

Example Sketch 2: Reverse DirectionPlace a check in each box as each step is completed.

1. Power OFF: the ROKduino.

2. Connect: a second bump sensor to input # 2 on the ROKduino.

3. Position: bump sensors on cog-runner as shown in the cog-runner video.

4. In Ardublock, Click: Open.

5. Find and Select: Example Sketch #2: Reverse Direction. (It will be in the downloaded folder)

6. In Ardublock, review the sketch and Click: Upload to Arduino.

7. Power ON: the ROKduino.

8. Press: one of the Bump Sensors.

9. Observe: the Cog-Runner.

In this example, two bump sensors are being used to reverse the direction of the cog-runner. Every time one of the sensors is “bumped”, the cog-runner will reverse direction.

Example Sketch 3: Toggle SwitchPlace a check in each box as each step is completed.

1. Power OFF: the ROKduino.

2. Disconnect: the bump sensor connected to input #2 on the ROKduino.

3. In Ardublock, Click: Open.

4. Find and Select: Example Sketch #3: Toggle Switch. (It will be in the downloaded folder)

5. In Ardublock, review the sketch and Click: Upload to Arduino.

7. Power ON: the ROKduino.

6. Press: the Bump sensor, wait for the cog-runner to stop, then press the Bump Sensor again.

Inthisexample,thebumpsensorhasbeenprogrammedtoactasatoggleswitch.Thismeansthefirst time that it is pressed, the cog-runner will move in one direction for 3 seconds and then stop. The second time the bump sensor is pressed, the cog-runner will move in the opposite direction for 3 seconds and then stop.

Page 3: The Bump Sensor - Kid Spark Education · In Ardublock, review the sketch and Click: Upload to Arduino. 7. Power ON: the ROKduino. 6. Press: the Bump sensor, wait for the cog-runner

3

Disassembly & CleanupPlace a check in each box as each step is completed.

1. Close out: Arduino & Ardublock.

2. Disassemble: Cog-Runner Build.

3. Organize: Engineering materials back correctly into the Engineering Pathways Lab.

Page 4: The Bump Sensor - Kid Spark Education · In Ardublock, review the sketch and Click: Upload to Arduino. 7. Power ON: the ROKduino. 6. Press: the Bump sensor, wait for the cog-runner

4

InstructionsFollow the step-by-step instructions to build a cog-runner.

1 2

4x Beam

6x Block

2x Half Beam

1x Block

3 4

2x Beam

7x Riser

4x Single Snap Block

2x Single Snap Block

1xROK-duino SmartBlock

1x Bump Sensor

1x Double Snap Block

Page 5: The Bump Sensor - Kid Spark Education · In Ardublock, review the sketch and Click: Upload to Arduino. 7. Power ON: the ROKduino. 6. Press: the Bump sensor, wait for the cog-runner

5

Distance Gauge Markers

7

65

1x Half Beam

2x Double Snap Block

Motor Cable Port

1x Motor Module

2x Riser

4x Single Snap Block

2x Pulley

4x Block

4x Single Snap Block

2x Single Snap Block

8

Place Motor Assembly on track as shown.

Page 6: The Bump Sensor - Kid Spark Education · In Ardublock, review the sketch and Click: Upload to Arduino. 7. Power ON: the ROKduino. 6. Press: the Bump sensor, wait for the cog-runner

6

Distance Gauge Markers

109

2x Single Snap Block

1x Single Snap Block

1x Block

2x Beam

1x Axle Block

1x Cog

Page 7: The Bump Sensor - Kid Spark Education · In Ardublock, review the sketch and Click: Upload to Arduino. 7. Power ON: the ROKduino. 6. Press: the Bump sensor, wait for the cog-runner

7

Cable DiagramUse the diagram below to connect sensor and motor/output cables to the cog-runner.

Inputs

Outputs

Inputs

Outputs

Page 8: The Bump Sensor - Kid Spark Education · In Ardublock, review the sketch and Click: Upload to Arduino. 7. Power ON: the ROKduino. 6. Press: the Bump sensor, wait for the cog-runner

855-02033-203

ROKduino BasicsTo download all necessary ROKduino software, visit: KidSparkEducation.org/Downloads

ROKduino SmartBlock:

The ROKduino is a programmable smartblock that can be used to create different types of robots. It is powered by (3) AA batteries that can be replaced by removing the cover on the bottom of the block. A bright green LED on the top of the block indicates if the ROKduino is ON or OFF. Make sure to power OFF the ROKduino when finished using it to prevent the batteries from running out of power.

Power Indicator

ON/OFF Switch

Sensors:

There are a variety of sensors that can be connected to the input ports on the ROKduino. The ROKduino can be programmed to read information from sensors connected to input ports, process that information into relevant commands, and send those commands to modules connected to the output ports.

Light Sensor

Quantity Included: 1(Input Ports 1-8)

Bump Sensor

Quantity Included: 2(Input Ports 1-8)

Angle Sensor

Quantity Included: 1(Input Ports 1-8)

Low PowerIR Transmitter

Quantity Included: 1(Input Ports 1-8)

High PowerIR Transmitter

Quantity Included: 2(Input Ports 1-8)

IR ReceiverSensor

Quantity Included: 2(Input Ports 1-8)

ROK-StarSensor

Quantity Included: 1(Input Port 8)

8 Input Ports

Modules:

There are two modules that can be connected to the output ports on the ROKduino. The ROKduino can be programmed to send out specificcommandstothemodulestoperform different functions. Light Module

Quantity Included: 2(Output Ports 1-4)

Motor Module

Quantity Included: 4(Output Ports 1-4)

Cables:

There are six types of cables that are included with the ROKduino. These cables are used to connect sensors and modules, as well as to connect the ROKduino to a computer so it can be programmed. Make sure cables are pressed all theway into connecting ports to ensure a good connection.

USB Cable

Quantity Included: 1Length: 18”

Sensor Cable

Quantity Included: 8Length: 18”

Sensor Cable Extender

Quantity Included: 2Length: 18”

Motor/Output Cable

Quantity Included: 2Length: 12”

Motor/Output Cable

Quantity Included: 3Length: 18”

Motor/Output Cable Extender

Quantity Included: 2Length: 12”

4 Output Ports

Inputs

Outputs

USB Port

Batteries


Recommended