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

Test Propeller to DHB-10 Communication

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

  • Turn on the rocker switch labeled Motors.
  • Make sure your programming cable is connected, the Arlo’s Main power rocker switch is on, and the Activity Board’s power switch is set to 1.
  • 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 Activity Board and DHB-10 Communication.c.
    • If the SimpleIDE Terminal displays an error message, recheck the cables connecting the Activity Board servo ports to the DHB-10’s Ch1 and Ch2 ports.
    • If the SimpleIDE 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 Activity Board and DHB-10 Communication.c

  Run this program to verify that your Activity Board 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.
*/

#include "simpletools.h"                      // Include simple tools
#include "arlodrive.h"                        // Include arlo drive

char *s;

int main()                                    // Main function
{
  freqout(4, 2000, 3000);                     // Beep -> program starting
  print("Program running...\n");              // Program running msg
  s = dhb10_com("HWVER\r");                   // Request hardware version
  print("Hardware\n  HWVER = %s", s);         // Display reply
  s = dhb10_com("VER\r");                     // Request firmware version
  print("Firmware\n  VER = %s", s);           // Display reply
}

Printer-friendly version
Clear the Propeller Program
Prev
Test Activity Board Arlo’s Motor Connections
Next

DISCUSSION FORUMS | PARALLAX INC. STORE

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

© 2025 Parallax Learn • Built with GeneratePress