EasyManuals Logo

pitsco TETRIX PULSE User Manual

pitsco TETRIX PULSE
146 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #98 background imageLoading...
Page #98 background image
Execute the Code
Before you can upload the sketch to the PULSE, remember to check your
connections. Upload the sketch. The green LED will light up, indicating the code
is ready to execute. When this has occurred, disconnect the USB cable and set the
Codee Bot on the floor.
Press the green Start button to execute the sketch. Observe the direction and
duration of the Codee Bot’s motion. Based on the sketch comments, did the
behavior match expectations?
Further Investigate
When you have a lot of blocks on screen, it can hard to see your whole program.
You can use the zoom in and out feature. Also, some blocks can be changed to
inline inputs. The pulse Set Motor Powers block can be changed to an inline input.
Below is an example of how this block can change appearance (Figure 51). This
does not affect your program.
This sketch has a lot to it, but it is made of functions that you have used before. You
have just combined multiple sequential behaviors to create one larger behavior – in
this case, a square.
An important thing to understand about this program is that you are using dead
reckoning to program the robot’s square driving path. Dead reckoning is simply
using time as the basis for controlling a motor. For instance, to make a right-hand
turn, you are commanding the motors to turn on in opposite directions at 50%
power and run for 1,650 milliseconds.
You estimate that if you spin the motors at a certain rpm for a certain time, you
should come close to making a 90-degree right turn. However, this is not always
accurate because the amount that your robot’s battery is charged can vary, and any
wheel slippage on the surface you are working on can cause a variation in results.
You are using dead reckoning to make a right turn.
All the functions in this sketch work together to make the Codee Bot move in a
square (Figure 52). Because you want the motors to always work together, the pulse
Invert Motor block needs to be used only in the setup part of the loop. The pulse
Set Motor Powers block tells both motors to move at different speeds in a single
function.
Figure 51
Tip: Depending on the
surface type, your bot might
not execute a perfect square.
96 Building and Coding the PULSE CodeeBot

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the pitsco TETRIX PULSE and is the answer not in the manual?

pitsco TETRIX PULSE Specifications

General IconGeneral
Brandpitsco
ModelTETRIX PULSE
CategoryRobotics
LanguageEnglish

Related product manuals