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 a BASIC Stamp Boe-Bot Brain

Curriculum

  • 1 Section
  • 13 Lessons
  • Lifetime
Expand all sectionsCollapse all sections
  • Arlo with a BASIC Stamp Boe-Bot Brain
    13
    • 1.1
      Connect Your BOE to the DHB-10
    • 1.2
      Test and Correct BoE Electrical Connections
    • 1.3
      Clear the BS2 Program
    • 1.4
      Test BS2 to DHB-10 Communication
    • 1.5
      Test BOE Arlo Motor Connections
    • 1.6
      Test BOE Arlo Encoder Connections
    • 1.7
      Try & Tune Some Boe-Bot Code
    • 1.8
      Increase BOE Arlo’s Top Speed in Pulse Mode
    • 1.9
      Control BOE Arlo with the Debug Terminal
    • 1.10
      More Precise BOE Arlo Maneuvers with Encoders
    • 1.11
      Connect and Test the Arlo + BOE Ping))) Sensors
    • 1.12
      Arlo + BOE Control System Adjustments
    • 1.13
      Troubleshooting Your Arlo + BOE

Test BS2 to DHB-10 Communication

Test BASIC Stamp to DHB-10 Communication

This next program asks the DHB-10 for its hardware and firmware versions, and displays the results in your Debug Terminal.  Here is what you’ll see if your BS2 communicates successfully with the DHB-10 (left) alongside one of the messages you might see if communication fails (right).

  • Make sure your programming cable is connected, the Arlo’s Main power is on, and the BOE’s power switch is set to 1.
  • Turn on the Arlo’s Motors power.
  • Verify that the DHB-10’s indicator lights blink on/off orange once every second.  If not, go back to the Arlo Assembly Tutorial and start checking wiring connections.
  • Open and run Test BOE and DHB-10 Communication.bs2.
    • If the Debug Terminal displays an error message, recheck the cables connecting the BOE servo ports to the DHB-10’s Ch1 and Ch2 ports. Also, make sure you set the Arlo’s Motors rocker switch to on.
    • If the Debug Terminal displays the hardware and firmware versions, make a note of the firmware version, and then proceed to the Test Motor Connections section.
' Arlo - Test BOE and DHB-10 Communication.bs2
' Run this program to verify that your BOE and DHB-10 are communicating.
' Should display:
'      Hardware
'      HWVER = 1
'      Firmware
'      VER = 10

' If it instead displays:
'     "ERROR, no reply from DHB..."
' It means there is a wiring problem.

' {$STAMP BS2}
' {$PBASIC 2.5}

val VAR Word
n   VAR Byte                                  ' Stores index of serial exchange

FREQOUT 4, 2000, 3000                         ' Beep -> program starting
DEBUG "Program running...", CR, CR            ' Display program running

n = 1                                         ' First exchange
DEBUG "PACE 1", CR                            ' Set serial pace for BS2
SEROUT 13, 32800, ["PACE 1", CR]              ' Set serial pace for BS2
SERIN  13, 32800, 50, ERR, [WAIT(CR)]         ' Get DHB-10's confirmation

n = 2                                         ' Second exchange
DEBUG "STORE PACE", CR, CR                    ' Display storing serial pace
SEROUT 13, 32800, ["STORE PACE", CR]          ' Remember serial pace settings
SERIN  13, 32800, 50, ERR, [WAIT(CR)]         ' Get DHB-10's confirmation

n = 3                                         ' Third exchange
DEBUG "Hardware", CR                          ' Display hardware heading
SEROUT 13, 32800, ["HWVER", CR]               ' Request hardware version
SERIN  13, 32800, 50, ERR, [DEC val]          ' Get DHB-10's reply
DEBUG "HWVER = ", DEC val, CR, CR             ' Display version

n = 4                                         ' Fourth exchange
DEBUG "Firmware", CR                          ' Display firmware heading
SEROUT 13, 32800, ["VER", CR]                 ' Request firmware version
SERIN  13, 32800, 50, ERR, [DEC val]          ' Get DHB-10's reply
DEBUG "VER = ", DEC val, CR                   ' Display version

END                                           ' End program

ERR:                                          ' Error routine
 DEBUG "ERROR, no reply from DHB-10.", CR    ' Error message
 DEBUG "n = ", DEC n                         ' Index of exchange that failed
 END                                         ' End program

Printer-friendly version
Clear the BS2 Program
Prev
Test BOE Arlo Motor Connections
Next

DISCUSSION FORUMS | PARALLAX INC. STORE

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

© 2026 Parallax Learn • Built with GeneratePress