Skip to content
Parallax Learn

Parallax Learn

  • Welcome
  • Tutorials
        • Tutorial Series head tag

          Tutorial Series
        • Tutorial Series

          The special, classroom-ready series pages are organized collections of tutorials for our most popular hardware and/or languages. The tutorials for each topic are conveniently accessible from a single page, shown in the order it is recommended that they be completed.
        • Robotics Series Head tag

          Robotics Series
        • Robotics Series

          • Artificial Intelligence
          • Cybersecurity: Radio Data tutorialCybersecurity
          • cyber:bot + Python
          • cyber:bot + MakeCode
          • Boe-Bot Tutorial SeriesBoe-Bot
          • Arduino Shield-Bot
          • ActivityBot with C TutorialsActivityBot + C
          • ActivityBot with BlocklyProp Tutorial SeriesActivityBot + BlocklyProp
          • Scribbler 3 Tutorial SeriesScribbler 3
        • Electronics & Programming Series Head tag

          Electronics & Programming Series
          • BS2 Board of Education Tutorial SeriesBS2 Board of Education
          • Propeller C-Language BasicsPropeller C Basics
          • FLiP Try-It Kit C Tutorial SeriesFLiP Try-It Kit + C
          • FLiP Try-It Kit BlocklyProp TutorialsFLiP Try-It Kit + BlocklyProp
          • Badge WX Tutorial SeriesBadge WX
          • Propeller BlocklyProp Basics and ProjectsPropeller BlocklyProp Basics
          • View All Tutorial Series »
        • Browse Tutorials
        • Browse Tutorials

          Individual tutorials sorted by robot or kit, and language.
        • By Robot or Kit
          • ActivityBot
          • SumoBot WX
          • Boe-Bot
          • Shield-Bot
          • cyber:bot
          • Badge WX
          • ELEV-8
          • ARLO
        • By Language
        • By Language

          • Propeller C
          • Arduino
          • BlocklyProp
          • PBASIC
          • Python
          • MakeCode
          • View All Tutorials »
  • Educators
  • Reference
  • Downloads
  • Home
  • All Courses
  • Arlo with an Activity Board Brain

Arlo with an Activity Board Brain

Control Arlo with the SimpleIDE Terminal

Control Arlo with the SimpleIDE Terminal

You can also communicate with the Arlo through the SimpleIDE Terminal, and perform the same serial communication tasks the Propeller has been programmed to do.  For example, here is the sequence of commands and replies from Test Encoder Connections example.

In this example, the rst command clears the encoder counts stored by the DHB-10.  Next, gospd 32 32 makes the Arlo move forward at 32 counts per second with each wheel.  Of course, gospd 0 0 stops the wheels, and dist asks how many encoder counts have passed since the last rst command.  Last, but not least, exit takes the program out of command mode and allows the program to continue.

NOTE: For a full list of serial commands you can use, check the DHB-10 Motor Controller Firmware Guide.

  • Make sure your SimpleIDE Terminal’s Echo On box is unchecked.
  • Put the Arlo up on blocks so that its wheels can spin freely without touching your work surface.
  • Set Main, Motors, and Activity Board power to on.
  • Load Arlo Terminal Communication into the Propeller with the Run with Terminal button.
  • Click the text input pane in your SimpleIDE Terminal.  It’s just above the pane that displays Debug messages from the Propeller.
  • Type rst, and then press the Enter Key.
  • Type gospd 32 32, and then press the Enter Key.
  • Wait for a few seconds, then type gospd 0 0, and then press the Enter Key.
  • Type dist, and then press the Enter Key.
  • Verify that the DHB-10’s reply is displayed in the terminal.  Keep in mind that the reply values to your DIST command will depend on how long you let the wheels run.
/*
  Arlo - SimpleIDE Terminal Command Mode.c
  Communicate with Arlo through the SimpleIDE Terminal.
*/

#include "simpletools.h"
#include "arlodrive.h"

int main()
{
  dhb10_terminal(SIDE_TERM);
  print("Back in main program.");
}

Printer-friendly version
Try & Tune Some ActivityBot Code
Prev
Connect & Test Activity Board Arlo Ping))) Sensors
Next

DISCUSSION FORUMS | PARALLAX INC. STORE

About | Terms of Use | Feedback: learn@parallax.com | Copyright©Parallax Inc. 2024

© 2025 Parallax Learn • Built with GeneratePress