Octopus 16Bluetooth LE OFF
Paired
EEG service
Data flowing
16 channels
Power it from the power bank, then press Connect.
CONNECT · SCRIPT · RUN ON REAL HARDWARE
Output from log() and errors appear here.
kit and eeg.| kit.knob | slide potentiometer, raw 0–1023 |
| kit.light | light in lux (BH1750) |
| kit.distance | ultrasonic, cm (negative = no echo) |
| kit.temperature · kit.humidity | °C · % (DHT20) |
| kit.sound · kit.moisture | raw 0–1023 |
| kit.button · kit.motion | true / false (button D7, PIR) |
| kit.ir | last IR remote code, or null |
| kit.tilt | 'left' 'right' 'forward' 'back' 'flat' or null |
| kit.accel | { x, y, z } raw accelerometer |
| kit.connected | true when the firmware answered |
| 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 |
| eeg.alpha … eeg.gamma | relative band power 0–1 (delta theta alpha beta gamma) |
| eeg.focus · eeg.relax | 0–1, uncalibrated indicators |
| eeg.rms · eeg.ok | µV · true when 2–200 µV |
| eeg.dom | strongest band name |
| eeg.samples | latest 16 raw channels, µV |
| eeg.connected · eeg.hz | data flowing · packets per second |
| 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 |
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.