• What OS is the computer running? If it's a Mac, Linux or Android then you can get the Espruino Pico to pretend to be a USB keyboard or mouse, which makes getting input in easy: http://www.espruino.com/USB

    Otherwise, you can talk over USB Serial, but webpages (unless they're Chrome Web Apps) aren't allowed to do that.

    The other super-hacky solution is to use the headphone/mic jack and the Web Audio API to get data into the PC: http://www.espruino.com/Headphone

    Potentially you could do that without a Pico at all, but it's quite likely the Webpage could glitch and miss the 'edge' created by the motion sensor - it might be easier to use an Espruino to create a square wave on the input pin when motion was detected - then it's far less likely that it'll get missed.

About

Avatar for Gordon @Gordon started