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.
Hardware Connection[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.
MoveWhen you rotate Y axis like the image above, components of the web screen tilts following your movement.
What is obniz?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.
Thanks to this cloud based approach, you can program with Python, Javascript, or other languages you prefer and control hardware directly. You don't need to integrate firmware into the device side. Recording and analyzing data is also easy with obniz cloud service.
Want to control hardware things with your current Python or Javascript skill? Want to start IoT project but don't know where to start? Want to learn programming with languages you prefer?
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
Where to get obniz board? → Amazon / Official Store
Comments