Vibrobot Made with obniz
Contents
Make things
The Vibrobot can be now operated from anywhere in the world.
A Vibrobot is a robot to which brushes are attached instead of tires, and when vibrates the brushes, it proceeds in a specific direction due to the asymmetry of the coat.
This robot can go straight ahead, turn right, and turn left by PWM controlling two vibration motors and operating the left and right brushes respectively. In addition, a distance sensor is mounted on the front and you can confirm in real time on the screen of the smartphone whether there is an obstacle ahead.
Materials
- obniz x1
- power supply for obniz x1
- GP2Y0A21YK0F(IR distance sensor) x1
- Vibration Motor x2
- toothbrush head x2
- Smartphone x1
How to make
Hardware connection
Connect parts to an obniz like the table and the image below. Then, put two Vibration Motors at the toothbrush heads and put the GP2Y0A21YK0F(IR distance sensor) at the front of the toothbrush heads.
obniz | parts |
---|---|
0 | [GP2Y0A21YK0F] Vcc |
1 | [GP2Y0A21YK0F] GND |
2 | [GP2Y0A21YK0F] signal |
4 | [Vibration Motor1] GND |
5 | [Vibration Motor1] Vcc |
6 | [Vibration Motor2] GND |
7 | [Vibration Motor2] Vcc |
Program
Execute
After that, supply power to the obniz and run the program below. You can control the Vibrobot on this manipulation screen.
Depending on the distance to the obstacle ahead, the color of the area on the screen changes. It gets green when the obstacle is far, and it gets red when the obstacle is near. In Manual mode, you can freely control the robot to go straight ahead, turn right and left by adjusting the strength of left and right vibrations with the slider in the Control area on the screen. It may be interesting to control the robot from where you can’t see it but seeing only the color of the screen. If you set Power to Low, Middle, or High, it will be in Auto mode, usually continue going straight ahead and automatically turn right when approaching to an obstacle, which allows it to keep moving semipermanently.
When you make this, it is necessary to form a habit such that the tips of the brushes turn diagonally backward. You can also manipulate many obniz at the same time from one smartphone, so if you make a lot of such robots and move them at the same time, they may work interestingly with each other.