Real 'mind-to-machine' communication today is a brain-computer interface: imagining a hand movement weakens a 10 Hz brain rhythm over the opposite motor cortex, and a decoder compares the two sides. Make the signal weaker or the noise bigger and watch accuracy and information rate fall toward chance. There is no mind-to-mind link through the air; this is a simplified, synthetic EEG model.
The science
Each channel is simulated at 128 Hz as a 10 Hz mu rhythm of amplitude A plus Gaussian noise of rms sigma. During imagery of one hand, event-related desynchronisation (ERD) lowers the amplitude by the chosen percentage over the opposite hemisphere (left hand -> C4, right hand -> C3). The decoder computes band power at 10 Hz with the Goertzel algorithm on the imagery window and uses the feature f = ln(PC3/PC4); f > 0 means left. Longer windows average more noise, so the spread of f shrinks roughly as 1/sqrt(T) and accuracy rises.
Communication rate is measured with the Wolpaw formula for N = 2 equally likely classes: B = 1 + P log2P + (1-P) log2(1-P) bits per trial, times trials per minute. Typical non-invasive EEG interfaces reach tens of bits per minute at best, far below speech. Checks on the page: (1) Goertzel power against a separately coded direct DFT; (2) accuracy predicted from the Gaussian spread of the two feature distributions against the counted accuracy.
Simplifications: one frequency, white noise (real EEG has 1/f noise, artefacts, drift and inter-person variability), perfectly timed trials, no calibration or training phase. Educational model, not medical or clinical advice.