![]() Pos1R=map(pos1,0,180,center1-maxDeflexion-obstacle,center1+maxDeflexion-obstacle) Servo Servo1, Servo2, Servo3 // create servo object to control a servo Of course, the robot fish will work until the magnet is on his head. This explains that little bump on the head of the robots seen in the video. Place the contact on the outer edge of the robot so by approaching the magnet, you can activate the circuit. It consists of a Reed contact activated by a small magnet. Four simple AA batteries will provide a voltage compatible with the servo feed, while the Arduino board derives its tension thanks to its internal 5 volt regulator.Īs it is difficult to use a conventional switch (you can’t handle it since everything is covered in plastic) we used a small magnetic contact, such as those used to detect the windows opening. Don’t worry too about weight as in our prototype we added 460g of further weight to ensure right level of floating.Īs control we opted for an Arduino-compatible Board produced by Seeedstudio but any Arduino board will do. ![]() ![]() The profile of the fish is at your choice. Then carve out the room for control, batteries and sensors. Position the sensors on the front, tilted to 45°, one on left and one on the right. Once encased in a plastic bag, can operate in water. ![]() These components can detect objects up to 5 cm and are quite easy to manage. To create this, we used two Sharp GP2Y0D805PCB infrared sensors with digital output. Obviously Robofish needs a system to detect obstacles such as the tank edges. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |