Place the Piezospeaker

It is time to add a piezospeaker to your cyber:bot board.

Parts Required

(1) piezospeaker from the Small Robot Electronics Component Pack.  (Just peel off the “Remove the seal after washing” sticker if it has one).

The picture above shows the schematic for the piezospeaker connected to P22. Notice that the cyber:bot board has two slots that fit the piezospeaker, and will connect it to P22. But you must orient it the right way or it won't make sound!

  • Look for the (+) symbol on the top of the piezospeaker case. The positive leg of the speaker is approximately underneath.
  • Gently insert the positive leg into the cyber:bot board hole by the P22 label. The other leg goes into the hole near the GND label.  The pins will go through the board and into sockets underneath.
  • Put the cyber:bot board power switch in position 1 (or 2) when you want to run a program that uses the piezospeaker.

The speaker should stay in place for the rest of the activities as it does not interfere with any other circuits since it’s not positioned on the breadboard.

Note: Some piezospeakers sold individually by Parallax (#900-00001) have short legs.

The legs of some older sold-alone piezospeakers are just a tiny bit too short for the cyber:bot board pass-thru header. However, it will fit in the breadboard.  To use a piezospeaker on the breadboard, make sure its legs go in different breadboard rows. Using jumper wires, connect its (+) leg to an I/O pin socket (P4 for example) and connect its other leg to a GND socket. In your scripts, you will need to change bot (22) to bot (4) or the number for whichever pin you used.