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.

1. Gather the parts and switch off
- Hiwonder touch sensor and its keyed 4-pin cable.
- The black shoulder accessory bracket.
- Two existing M2 × 6 shoulder screws.
- Two M4 standoffs, marked M4 × 5+6, and two M4 × 6 screws.
- Matching M4 nuts if your standoffs use the through-hole arrangement shown below.
- Small screwdriver and a loose cable tie.
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.

Fit the bracket, then the touch board
- Place the black bracket over the matching shoulder holes and refit the two M2 × 6 screws.
- Fasten the two standoffs into the matching bracket holes. Where the studs pass through the bracket, secure them underneath with the matching M4 nuts.
- 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.

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.

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
- Power on and connect to the robot in TonyPiTastic. Keep movement disabled for this check.
- Open Saved Actions → Touch sensor, then click Check touch sensor.
- 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.
- 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
- No new taps: stop the check, switch off, and recheck both plugs and the GPIO21/GPIO22 socket. Keep the pad clear of screws, cable ties and metal contact.
- GPIO22 in use: close the factory touch demo or other program using that pin, then start a new check.
- Held from the start: release the pad before tapping; the check waits for a release before counting its first tap.
- GPIO library or permission error: use the factory Raspberry Pi environment and have the controller's GPIO access checked. Do not run a second servo controller just to read touch.
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.