TONYPITASTIC / TONYPI PRO

Install the shoulder touch sensor

Mount the pad beside the head, facing upward so it is easy to tap. Keep the connector toward the neck or rear, with the round pad accessible at the outside edge.

Real Hiwonder photo: touch pad facing up on a black shoulder bracket beside the robot's head
The finished shoulder mount. Photo: Hiwonder.

1. Gather the parts and switch off

Support the robot, shut down the Raspberry Pi, and turn off its power before fitting the bracket or plugging in the sensor.

The bracket steps below adapt Hiwonder's shared shoulder mount. Its exploded drawing shows a temperature sensor. Dry-fit your touch board against the bracket first; use matching mounting holes and the supplied hardware. If the holes do not align, use the matching adapter rather than forcing a screw through the board.

2. Attach the shoulder bracket

Remove the two short shoulder screws

Choose the shoulder you want to use. Identify the two top screws shown in the picture and keep them for the bracket.

Hiwonder drawing showing the two M2 by 6 screws above the top shoulder plate
Shared shoulder bracket reference: remove two M2 × 6 screws. Hiwonder §11.6.1.

Fit the bracket, then the touch board

  1. Place the black bracket over the matching shoulder holes and refit the two M2 × 6 screws.
  2. Fasten the two standoffs into the matching bracket holes. Where the studs pass through the bracket, secure them underneath with the matching M4 nuts.
  3. Place the touch board on the standoffs, with the pad upward. Attach it through its mounting holes with the two short M4 × 6 screws. Tighten just enough to stop it moving.
Exploded view of the black shoulder bracket, two standoffs, M4 screws and nuts; the example board is a temperature sensor
Shared bracket assembly, shown with a temperature sensor. The source text specifies nylon standoffs, although the image says “copper.” Use your kit's matching insulating standoffs. This is a mounting reference; use the touch wiring below.

3. Connect the touch cable

Plug one end into the touch board and the other into the expansion-board socket labeled GPIO21/GPIO22. Hiwonder uses GPIO22 for the touch signal. Match the connector's key; do not move it to an I2C or servo socket.

Hiwonder wiring picture of RasAdapter5B V1.0 highlighting the touch sensor socket with a green rectangle
Touch socket: the upper-right connector in the group of four large horizontal sockets, outlined in green. Check the GPIO21/GPIO22 label on your board; use the label if your board layout differs.

Route the cable back toward the body, leaving a little slack beside the head. Keep it clear of the pan/tilt joint, shoulder servo and arm sweep. Secure slack to a fixed bracket without pulling on the plug. Inspect clearance with power off; do not force the servos to turn.

4. Check it in TonyPiTastic

  1. Power on and connect to the robot in TonyPiTastic. Keep movement disabled for this check.
  2. Open Saved Actions → Touch sensor, then click Check touch sensor.
  3. Tap and release the round pad. Look for Touched and an increasing tap count. Hold it briefly: one continuous hold should count once. Release, then repeat three times.
  4. Click Stop check when finished.

The check reads the input and counts taps. It does not assign a robot action. A released input alone cannot confirm that the cable is connected; verify a tap response. Simulate a tap tests the app only.

This feature needs the updated TonyPiTastic robot-side controller. An older controller will show an update message. The check closes when you leave this workspace or hide the page; if the browser disappears, it expires after 12 seconds. It uses the factory gpiod library and does not require the separate Hiwonder buzzer demo to run.

If the check does not respond

Sources

Hiwonder: touch sensor wiring and factory program
Hiwonder: common shoulder bracket assembly, §11.6.1
Pictures reproduced from Hiwonder for this installation reference. Shoulder instructions are an adaptation for the touch board; actual fit depends on the bracket supplied with your kit.