Air-drumming allows drumming without a drum-set. Then let's connect your air-drumming into a real mini drum! If you play air drum, the real drum will be played physically, detecting your hand position, looking like a drum played without a player!
Materials- obniz x3(for distance sensor x1, for Servo Motor x2)
- power supply for obniz x3
- Servo Motor x2
- GP2Y0A21YK0F(IR distance sensor) x2
- mini drum and sticks x1
- sticks for fixing x2
- plastic tape x1
- sheet drum positions are painted x1
Connect two distance sensors to one obniz like the table and the image below. Then, supply power to the obniz.
Put distance sensors side by side like the image below. (They are put a little diagonally in this image.)
If you place your hand close to left sensor, the left drum is beaten, and if you move your hand a little further away, the center drum is beaten.
If you place your hand close to right sensor, the cymbal is beaten, and if you move your hand a little further away, the right drum is beaten.
If you place your hand much further away from these sensor, none of these drums are beaten.
Step2: DrumConnect one servo motor to one obniz like the table and the image below. Make two sets of this. Please prepare two power supplies for each.
Put sticks to servo motors, and put these to the drums. One is for the left drum and the cymbal, the other is for the center drum and the right drum.
If you run the program(code) below, the drums are beaten following your hand position. (The program is written in node.js. Not runnable on browser.)
What is obniz?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 has 12 IO and WiFi-BLE module. It can be controlled through the APIs – REST or WebSocket API – on obniz cloud. Not only simple IO on/off but also UART, I2C, BLE etc can be used by remotely controlling obniz via internet. All you need to do to connect obniz is to input unique ID by scanning QR code. Complicated processes are done by obniz and its cloud. You can just start programming in HTML, browser and circuit have already been integrated. If you write a program to collect sensor values, you can make a chart of the values easily.
For more information, please visit our website! https://obniz.io/
You can buy obniz board on Amazon too! https://www.amazon.com/obniz-IoT-Gateway-circuit-Web/dp/B07DD6FK8G
You can find a variety of projects made with obniz board! https://blog.obniz.io/example/
Comments