2Wire (unidirectional I2C) coms from HTML5 to hardware via blocks of light on the screen.

338 views · Published 2 February 2015 · 0:13 · Indexed 14 October 2026

Channel: James Newton · 2015 · Science & Technology

Watch on YouTube

This video shows a hardware realization via a circuit made by  Conrad Salinas of a method of transmitting data from an LCD screen to to any I2C device. 

"Here is a crazy idea for interfacing web pages to the real world. Imagine an old SmartPhone sitting in a cradle on a robot or other hardware device. On the phones browser, a web page is pulled up with a Javascript program running that is changing two blocks on the screen from black to white. One block is the clock line, the other is data, and they transmit 2wire (Unidirectional I2C) data. In the cradle, at the bottom of the phones screen, a pair of optical sensors convert the light level into voltages in two wires which then connect to any I2C device (e.g. a servo controller^, D2A, uC, whatever).

Now you have a Javascript controlled robot with wifi connection, maybe camera, screen space for faces or whatever, audio, etc... And optocoupled so there is no danger of frying the phone. No need to root the phone, no need for any apps, no development environment other than a text editor.

More from this channel