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

True Colors Interactive Art Project with the LaserPING

Curriculum

  • 1 Section
  • 2 Lessons
  • Lifetime
Expand all sectionsCollapse all sections
  • True Colors Interactive Art Project with the LaserPING
    2
    • 1.0
      Constructing the Panels
    • 1.1
      Coding for Viewer Interaction

Constructing the Panels

The True Colors project was built with six servos mounted inside a 1-1/2 inch deep cradled wood panel, with a small painted canvas panel attached to each servo’s horn.  A LaserPING))) Rangefinder’s output is used to set the servos’ positions. 

Materials List

  • (1) Propeller Activity Board WX (#32912)
  • (6) Parallax Standard Servos (#900-00005)
  • (1) LaserPING 2m Rangefinder (#28041)
  • (1) 3-wire Extension Cable (#800-00120)
  • (1) 3-pin single row header with long pins (#451-00303)
  • Wall-mount power supply, 2.1mm center-positive (such as #750-00009)
  • Assorted jumper wires
  • Cradled wood panel, at least 1-1/2″ deep (I used Blick Studio #07045-1010)
  • Assorted canvas panels (I used 4 5×5, 1 6×6, and 1 4×6 inch panels)
  • Double-sided sticky foam tape
  • Paints or other art medium (I used Utrecht Studio acrylics)

To plan the canvas panel placement, I tried various compositions by just resting the canvases in place and took a quick picture when I was satisfied.  The mounting holes were laser cut here at Parallax to fit the servo case and mounting screws (shout out to Kenneth in the machine shop!)   A large hole was drilled in the bottom of the frame to run the power cord, and two smaller holes in the top frame to help with hanging. 

 

When mounting the servos, I first removed the servo horns. Then I used stacks of Nylon nuts as spacers, so the servo horns rest at different heights above the wooden front surface.  This allows the canvas panels attached to the servo horns to overlap and rotate with minimal collision.

 

Next, I removed the screw from each servo horn but left it on its spline, then topped it with a piece of foam sticky tape.  Finally I pressed each canvas in place. This allows the squares to be removable for painting and for adjusting the servo’s default rotation position. Here is the piece disassembled after the painting is complete.

 

The servos plug into the 3-pin servo ports on the Propeller Activity Board WX, which connects them to Propeller I/O pins P12–P17.  BE SURE to put the servo port power jumpers to 5V if you are using wall-mount power supply greater than 6V! The LaserPING rangefinder connects to P0, 3.3 VDC, and Ground with the extension cable, 3-pin header, and jumper wires in the prototyping area.

 

I used a wall-mount power supply to provide adequate current for all 6 servos to move at once.  The LaserPING board is taped to the power cord far down enough so that the rotating canvas squares do not intercept its laser beam and cause it to trigger itself.

CAUTION: If you are using a wall-mount power supply greater than 6 VDC, be sure to put the servo port power jumpers into the 5V position to avoid exposing the servos to more than 6 VDC.


Printer-friendly version
Coding for Viewer Interaction
Next

DISCUSSION FORUMS | PARALLAX INC. STORE

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

© 2026 Parallax Learn • Built with GeneratePress