# Internet of Things

### Hypothesis

I could seperate the **face control** from the **object** using the internet of things.

### Process

This meant choosing a wifi enabled, arduino compatible board – which lead me to the ESP32 Dev boards since that are super compatible with both Arduino and Shiftr.io.

![ESP32 Development Board](https://josephdavelyons.files.wordpress.com/2020/05/esp32-dev-board-studio-pic.png?w=556)

These boards were fairly difficult to setup, but I document the full process of converting the Pinball game to an ESP32 Enabled, WiFi connected version here: \
<https://josephlyons.gitbook.io/face-control-digital-toolkit/esp32-ebc-pinball>&#x20;

I also discovered the service Shifr.io which I used to allow me to setup MQTT messaging between processing and the arduino sketch uploaded to the ESP32s.

![Shift.rio homepage.](https://25884570-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9ZCAE4Fk58kW-nctmX%2F-M9ixJ_98tye_6asvi90%2F-M9j0NZAN4Tib4ssA26t%2Fshiftr.io.png?alt=media\&token=98d4c0aa-bc31-44ce-9930-74f362c31ed6)

I also document the process of setting up a shiftr.io namespace here:\
<https://github.com/josephlyons/FACE_CONTROL_DIGITAL_TOOLKIT/tree/master/IDEAS%20BOOK/PHYSICAL/1.%20PINBALL/ESP32%20Enabled/Creating%20a%20Shiftr.io%20Namespace>&#x20;

*All of the documention under the 'face control digital toolkit' gitbook and "FACE\_CONTROL\_DIGITAL\_TOOLKIT" github repo is a part of the digital toolkit and is considered part of the product.*

### Outcome

The outcome was successful and allowed me to control the servo mounted projects through shiftr.io.

![ESP32 Enabled Pinball](https://25884570-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9ZCAE4Fk58kW-nctmX%2F-M9ZO88QiDgwSREc2lDm%2F-M9ZSCsH9WseO-sIPOhD%2Ftop%20down%20pinball.gif?alt=media\&token=a6844f0f-4a61-4bcd-bf6e-c1102fdb7749)

Here you can see the microcontroller is not connected to the computer and is recieving the messages via WiFi - this means whoever is running the 'Eyebrow\_Send' sketch on processing can control the object from anywhere in the world with internet.&#x20;
