OCTOBIO STUDIO

CONNECT · SCRIPT · RUN ON REAL HARDWARE

Docs ↗ Flash firmware ↗
Octopus 16Bluetooth LE OFF
Paired EEG service Data flowing 16 channels
Power it from the power bank, then press Connect.
Starter kitUSB · 115200 OFF
Port open OctoBio firmware Readings flowing
Plug it in with a USB data cable, then press Connect.

Live kit MIRRORS THE REAL HARDWARE

EEG · CH 1 · LAST 3 S—
Drag to pan · Q / E to rotate · Scroll to zoom

Lessons 0/14 DONE

Script SAVED IN THIS BROWSER

STOPPED
Output from log() and errors appear here.
Ctrl + Enter runs · Esc stops · Scripts are JavaScript. See the reference below for kit and eeg.

Script reference

Starter kit: read

kit.knobslide potentiometer, raw 0–1023
kit.lightlight in lux (BH1750)
kit.distanceultrasonic, cm (negative = no echo)
kit.temperature · kit.humidity°C · % (DHT20)
kit.sound · kit.moistureraw 0–1023
kit.button · kit.motiontrue / false (button D7, PIR)
kit.irlast IR remote code, or null
kit.tilt'left' 'right' 'forward' 'back' 'flat' or null
kit.accel{ x, y, z } raw accelerometer
kit.connectedtrue when the firmware answered

Starter kit: act

kit.led(on | 'flash')red LED D10: true, false or 'flash'
kit.led2(on)second light (D8)
kit.servo(deg)0–180
kit.buzzer(on) · kit.relay(on)true / false. Never put mains on the relay.
kit.lcd(line1, line2)16×2 screen, 16 characters per line
kit.send('LED ON')raw OctoBio command line

Octopus 16 (EEG)

eeg.alpha … eeg.gammarelative band power 0–1 (delta theta alpha beta gamma)
eeg.focus · eeg.relax0–1, uncalibrated indicators
eeg.rms · eeg.okµV · true when 2–200 µV
eeg.domstrongest band name
eeg.sampleslatest 16 raw channels, µV
eeg.connected · eeg.hzdata flowing · packets per second

Helpers

forever(async () => { … })repeat until Stop
await wait(ms)pause (Stop interrupts it)
map(v, inLo, inHi, outLo, outHi)rescale a number (clamped)
log(…) · show(name, value)print to the console · pin a value in “Your values”
onStop(fn)run code when you press Stop

Kit readings — /s

EEG · Octopus 16 NO SIGNAL

SERIAL LOG 0 lines

        

Safety: wear the Octopus 16 on a power bank only, never while it's plugged into a computer or charger. Never connect the relay to mains. Focus and relax are uncalibrated learning indicators, not a diagnosis. Starter board: Elecrow All-in-One Starter Kit for Arduino. Octopus 16, OctoBio firmware and this studio: PiEEG.