Monitor and visualize movements of virtual prayer wheel with dizmo

This project was triggered by Xaver Inglin, one of our Kickstarter Backers, who has built a ‘Prayer Wheel’ and equipped it with the WunderBar-Kit created by relayr. The main objective was to then monitor the movement of the real prayer wheel and to visualize the movements by spinning a virtual prayer wheel in dizmoViewer accordingly.

Monitor movement prayer wheel

Xaver Inglin’s prayer wheel

WunderBar is a set of sensors to track temperature, humidity, sound, light, color, proximity, movement, and even home entertainment systems with an infrared transmitter. It can be used to monitor the movement of the prayer wheel. The collected data is then sent via WiFi into relayr’s cloud.

The prayer wheel itself consists (from left to right) of a stand, a wheel, the Wunderbar gyroscope sensor and a barrel.

Building components of the prayer wheel

Building components of the prayer wheel

We have combined three dizmos to give you a convenient way to check if your prayer wheel is spinning or not. The first is Wunderbar, for fetching the data, the second is ValueSwitch, to filter noise and the last is a visualization of the prayer wheel – where it is spinning or not. Here is a detailed explanation of the three dizmos:

Wunderbar

If you have not opened your account to access your Relayr Developer Dashboard, head over to relayr and do so.

In the Developer Dashboard, you should see your sensor values posted in real time.
We only need the values of the gyroscope to see if the wheel was turned. We grab the value and display it in our Wunderbar dizmo.

The Wunderbar dizmo uses the relayr Javascript API to connect to the relayr cloud. In the Developer Dashboard, create a new API key for the Wunderbar dizmo. As well as this, create a token for the API key. You will need both the app ID and the token to configure the Wunderbar dizmo to collect your sensor data in the relayr cloud. Every sensor has it’s own device ID, you’ll need to enter the device ID of the gyroscope sensor on the back of the Wunderbar dizmo as well.

relayr wunderbar monitor movement

Wunderbar dizmo

ValueSwitch

The values collected for acceleration range between 0-300. To prevent the ValueSwitch to be triggered by accidental movements of the prayer wheel (e.g. by wind), we set the trigger point at the back of ValueSwitch to 200.

valueswitch_back

ValueSwitch dizmo

We now dock Wunderbar to the ValueSwitch which switches on the last dizmo:

Prayerwheel

When the Prayerwheel dizmo is ‘off’ it displays a still picture of the prayer wheel. Once the ValueSwitch switches the Prayerwheel on, the picture changes to an animation of the turning prayer wheel.

Of course, Prayerwheel needs to be docked to ValueSwitch (on the other side of Wunderbar), to be switched on and off.

Visualize movements prayer wheel

Turned on Prayerwheel dizmo

And there we are: the virtual Prayerwheel is spinning in synch with the real one!

Wider area of application

WunderBar of relayr opens up the undreamt of possibilities to connect the offline objects with the Internet. The prayer wheel for example can be installed somewhere remote, and in the present setup, it bridges the distance from the remote location to any dizmo-enabled device that you are using.

Use another sensor and combine it with ValueSwitch to construct an irrigation system for your garden, for example. Equip a pole with the humidity sensor of WunderBar, then connect it to the Wunderbar dizmo. Set the values at the back of ValueSwitch and dock it to Wunderbar.

With the same sensor (gyroscope) as with Prayerwheel, you can build a counter that keeps track of how many customers have entered your premises so that you can stock up or man the tills. Obviously the third dizmo in this chain is then a StockUp or ManTheTills dizmo.

As there are six other sensors and even a bridge to connect more, you can mix and match to build any application. As always, we are excited to see your ideas. Let us know how you use the Wunderbar dizmo and tweet us at #dizmonks.

4 thoughts on “Monitor and visualize movements of virtual prayer wheel with dizmo”

  1. I think dizmo is a great platform to orchestrate IoT. The Wunderbar dizmo bridges to the world of relayr sensors in an easy way. May be we should publish the Wunderbar dizmo in the dizmo store – for others to get started with their Wunderbar projects right away.

  2. Thank you for your suggestion Xaver. Indeed, we are planning to publish the Wunderbar dizmo in dizmoStore. However, we will first refine its design. Would you like to be notified?

  3. Pingback: Future Hacks

Leave a Reply

Your email address will not be published. Required fields are marked *