The body

Looking…

This page builds the body: setting the robot up, its firmware, and its log for whoever's helping. Touch and Servos are the hardware as it is: which pad answers where, and how the neck is running. Its faces, and what a touch means to it, are SerenPsycheion's.

Log

What you say to it never leaves this page: each thing it heard shows as how many words, and a token as <token>. Paste what you copy anywhere you like.

…

Set up the robot

Everything that makes this robot yours: its Wi-Fi, the voice server it checks in with (this box, unless you say otherwise), the token its control API asks for, and a tailnet if you use one. Leave a box empty to leave that alone. A robot on the network takes these straight away and reboots; one that isn't yet (a new one, or one whose Wi-Fi changed) gets them from a soma.yaml on its microSD card, which it reads once at boot and deletes. No Wi-Fi password is kept here.

Wi-Fi

Voice server

Token

The robot takes it first, then this box writes it down, then the robot reboots onto it. If the robot says no, nothing changes. A Workbench or Psycheion pointed at the same token file picks it up by itself.

Tailnet (only on a build that has one)

Firmware

Fetch a release (checked against its SHA256SUMS) or stage a build of your own (stack-chan.bin), then install it: the robot is offered it once, on its next check-in, shows its progress, and reboots into it. If the new one can't check in, it goes back to the old one on the next reboot.

or a build of your own
StagedFromSize

The touch chip, live

The head has three pads in a line, back to front, on the chip's channels 1 to 3; the board's drawing shows nothing on the other nine. Each pad reads 0 to 3. The cells are the chip asked right now; the strip is the robot's own record of the last 20 seconds, a reading every 50 ms while something touches, so a tap too quick for the cells still shows there and lights its cell for a moment. An arrow on the strip is where the robot read a swipe. A touch shorter than the robot's own 50 ms between readings can be missed by the robot too, and then it is nowhere.

Sensitivity

Until the robot's next boot; it starts at low, level 3. Chart the same spots at two settings to see what a setting changes.

The screen, live

Read asDown atLifted atAgo

Runs with the watching above. The ring is where the screen's touch driver says a finger is right now, on the screen's own pixels (0,0 is the top left as you face it), with a trail behind it; the dots are the last touches the face saw, a line from where each came down to where it lifted. Put a fingertip on something you can see on the face and check the ring lands on it. Only touches on the face are kept in the list; the ring follows a finger anywhere.

Chart the pads

Click the drawing where your finger is going to be, put your finger there on the robot, and record. The point keeps what each pad did while you held it. The drawing is the head from above with the face toward you; it is only a place to put points, so use the edges for the sides of the head if you want them. Points are kept on this box (touch_map.json in the state folder).

What each pad answers to

SpotPadsSensitivity

How a touch gets from the pad to the face

  1. The chip (an Si12T, on the I2C bus at 0x68) reports each channel as 0 to 3. That number is how sure it is something is there, not how hard it's pressed: a light brush reads 3.
  2. The firmware reads channels 1 to 3 every 50 ms, as back, middle and front, and works out one position from them, -100 at the back to +100 at the front.
  3. On the robot, a touch starting is a press, lifting is a release, and the position moving 40 or more from where it started is a swipe forward or backward. Those drive the robot's own reactions.
  4. Readings taken while something is touching are kept for about a minute (/api/touch-raw). Taps on the screen join the same feed.
  5. This server reads that feed once a second and names each touch: stroke, poke (back, middle or front), scritch, a resting finger or a whole hand, then asks the robot for the face that goes with it.

The neck, live

AngleBy rawRaw ZeroLimitsReachLoadCurrent Volts°CTorqueMoving

What each servo says about itself. Angle is where the firmware takes it to be, held to its limits; By raw is the servo's own position turned into degrees, so with the head let go you can turn it by hand and read where it really is. Raw is the servo's steps (0.3125° each), Zero the step that counts as 0°. Load is how much of its drive it's using, in tenths of a percent. Bench mode stops the idle looking-around and the nod when petted; picking the robot up turns it off again. Reach is how far the servo can actually be sent each way from its zero, in degrees, once the firmware's limits, the 0 to 1000 step range and the servo's own limits have each had their say. Nothing above is saved on the robot.

Recentre

Where a servo is right now becomes its 0°. Let go, put the head where 0° should be by hand (yaw: facing straight ahead; pitch: level, looking forward), then set it. This is the one thing on this page the robot keeps: it is the same home position the robot's own setup menu sets, one servo at a time.

or back to the build's default:

Move it

Sweep

Steps one axis out and back, waits for it to stop at each step, and keeps where it was asked to go, where the servo says it got to, and the load there. Bars are how far off it landed (out one way, back the other); the line is the load. A step that lands short with the load up is the neck meeting something.

The lights, one at a time

The firmware counts 12 LEDs, 0 to 5 on one rail and 6 to 11 on the other. Click one to light only that one; Walk lights each in turn for a second. Write under each where it really sits on the robot, and it is kept with the touch chart. The dashed ones (0, 1, 10 and 11, the front two on each side) are the ones the robot keeps for the microphone, reply and camera lights; a face's own colours use the rest. The swatch is what the LED was last told to show, not what night mode lets through, and a colour stops at 168 of 255. The next pose with colours of its own takes the rails back.

Back and forth

For that long the robot keeps listening without being tapped, opening its channel again whenever it closes, and the voice is kept loaded so a reply doesn't wait for it to load (that wait was 40 seconds on 12 Nov). The microphone is open the whole time, which is why it always ends by itself. The dead-air timer doesn't hang up while this is on. Start again to run longer.

The two timers

They sound alike and do different jobs. The first decides when what you just said is finished; the second decides when the whole conversation is.

How long the room has to be quiet before what you said counts as finished and is sent to be answered. Every turn waits this long before anything else starts, so this is the one that makes a reply land sooner. Shorter is snappier, and cuts you off more when you pause to think. Takes effect on the next thing you say.

How long an open channel waits with no words at all before the robot stops listening, so a forgotten tap can't leave the microphone open. It doesn't make a reply any quicker. Keep it longer than whoever answers takes to think, or the robot hangs up while they're thinking and has to be woken again for the reply. Takes effect on the next silence.

Each turn, timed

The turns
WhenTurnWhere the time wentLast word to first sound

Each thing heard and each thing said, newest first, with how long every leg took. No words are kept here, only how many. A reply's bar starts when you stopped talking and ends at the robot's first sound: waiting for enough quiet to be sure you'd finished, transcribing, whoever answers thinking, rendering the first sentence into a voice, and opening the channel. A line is rendered a sentence at a time, so the wait is for the first sentence, not the whole line.