Let's tilt web screen's components like buttons and letters tilting an accelerometer. It can be also used for children's museum or tricky house looking abnormal at the amusement park. By adding your own design, You can make full use of this technology and create things you've imagined so far.
[obniz] - [Accelerometer KXR94-2050]
0 - Vdd(1)
1 - GND(3)
2 - X axis(6)
3 - Y axis(7)
4 - Z axis(8)
5 - Enable(2)
6 - Self Test(5)
Code sourse is attached below.
Insert your obniz ID into "OBNIZ_ID_HERE" of
let obniz = new Obniz('OBNIZ_ID_HERE');
Prepare 2 images ("image1.jpg", "image2.jpg") and put it on the same folder with code's.
When you rotate Y axis like the image above, components of the web screen tilts following your movement.
Before we get into the project, let's look into obniz.
Here → obniz for DIY electronics
obniz is a cloud-connected IoT development board. You can program on the web browser of any smartphone or computer and the command is sent to obniz through the internet via obniz cloud. By connecting the obniz to the cloud through wifi, users can remotely control devices that are physically connected to obniz.
obniz will help you broaden your viewpoint and develop both your SW and HW skills.
For more information, please visit our official website → Official Website