Two Seconds
A browser rig for testing car touchscreen controls while you drive. It answers one design question: which way of changing the cabin temperature keeps your hand, and your head, on the road longer?
Status. A working tool. I ran it on myself to shake out the method. No study results are published here, and nothing on this page claims one control beats another.

Why two seconds
the line the rig measures against
NHTSA's distraction guidelines for in-car screens set the bar a task has to clear before a driver should be allowed to do it while moving. Temperature and fan are in scope. The guidelines are voluntary, and they judge a task on 24 drivers in a simulator with an eye tracker.
Source: Visual-Manual NHTSA Driver Distraction Guidelines for In-Vehicle Electronic Devices, 2013, Section VI.E.14. All three must hold for 21 of the 24 participants. Full text on govinfo.gov ↗
How it works
two screens, two tasks at once
- The road. A Three.js lane you keep with the arrow keys, on S-bends. A red light comes up every 3 to 5 seconds and you have 2.5 seconds to press space. That is a detection response task in the style of ISO 17488: slow or missed answers show the mental load of the screen task.
- The center screen. Temperature, fan, seat heat and rear defrost. On the laptop it sits beside the road. Pair a phone with a QR code and the controls move to the phone, so a glance becomes a real head turn.
- Two control models. A touch slider, the thumb-and-track most cars ship, against drag anywhere, a big relative gesture with no thumb to find.
- Sound on or off. A 30 ms detent per step, an 85 ms bump at the end stop and a 170 ms confirm, so you can set a value without looking.
- Head-pose glances. Optional. The camera tracks head turns on the device and keeps only start and end times. It is head pose, not eye tracking.
What it records
every number recomputes from the raw log
- Per task: task time, touches, errors (overshooting the target and coming back), hand time on the screen and the reach toward it.
- On the road: lane deviation and lane exits while the hand is on the screen.
- On the light: reaction time and misses. Anticipations under 100 ms are counted apart.
- With the camera on: each head-pose glance, its start, end and duration.
Each session keeps a raw event log in the browser and exports it as JSON and CSV. Session data is never uploaded. The only traffic is the pairing handshake between laptop and phone, plus the site’s page-view analytics.
What it can’t tell you
limits, stated up front
- A pointer on the laptop is a stand-in for a hand. It says nothing about eyes.
- Head pose is not gaze. A driver can look down without turning their head.
- There is no lead car to follow, which the guidelines' test drive uses. The rig drives lane keeping against curves instead.
- One session is one person on one laptop. Passing a line in one run is not passing the guidelines.
- Pairing is tested on one Wi-Fi network. Across networks, it may not connect.
Run a session
about 10 minutes a person
- Sit the person at a laptop with a keyboard and open their link below. Pair your phone on the same Wi-Fi with Use your phone as the screen.
- Turn on Camera glances if they agree, and calibrate. Then Sound check.
- Start Full study, four blocks. A practice block comes first. Don’t coach once the clock runs.
- At the end, export the JSON and name it after the person. Open a fresh tab for the next one.
Each link fixes the order of the four conditions, so across four people every condition comes first once and follows every other once.
| Person | Link | Block order |
|---|---|---|
| 1 | ?seed=10 | slider off, slider on, drag on, drag off |
| 2 | ?seed=4 | slider on, drag off, slider off, drag on |
| 3 | ?seed=8 | drag off, drag on, slider on, slider off |
| 4 | ?seed=24 | drag on, slider off, drag off, slider on |
"off" and "on" are sound feedback. For more people, start the four again.
How I built it
two sprints, October 2026
- The question first. I chose a test rig over a 3D car demo, so the piece would produce numbers someone could argue with.
- The critic’s flags, my calls. The review found that early results could bias the later blocks, so I hid all numbers until the study ends. It found that a pointer left on the screen skipped the hand timer, so each prompt now waits until the pointer is back on the road.
- Found by playing it. After a click, Space and Enter kept pressing that button instead of answering the light. That bug changed how the rig handles focus.
- The sounds. I picked the detent, end stop and confirm from nine synthesized candidates.
Agents in my own setup write the code. Scripted checks and an independent critic review every round before it reaches me. Svelte and Three.js.