To move the head, send the characters 'j', 'l', 'i' or 'k' to tilt the head left or right and the eyes upwards or downwards.To control the movement of the robot, send the characters 'w', 'a', 's' or 'd' to move forward, left, back or right respectively.Open the Serial Monitor (button in top-right of Arduino IDE).Once the sketch has been uploaded to the Arduino, power on the 12V battery while the micro-controller is still connected to the computer.Upload the sketch to the micro-controller.ĭiagram showing the wiring of the robot's electronic components.Ensure that the correct Board and Port are selected in the Tools menu. Connect to the computer to the micro-controller with a USB cable.Go to Sketch -> Include Library -> Manage Libraries.Install the Adafruit_PWMServoDriver.h library.Open wall-e.ino in the Arduino IDE the files animations.ino, MotorController.hpp and Queue.hpp should automatically open on separate tabs of the IDE as well.Download/clone the folder "wall-e" from the GitHub repository.Ensure that the wiring of the electronics matches the diagram shown below.A simple login page to prevent everyone from having access to the controls (note: this is not a full access control system, please don't use this web interface on untrusted/public networks).Gamepad support on any modern browsers, you can use a connected Xbox of PlayStation controller to control the robot.Settings page, where motor parameters, sound volume, and video options can be modified.A list of movement animations which can be performed by the robot.Manual control of all the servo motors.A JavaScript joystick, with which the movement of the robot can easily be controller.The Raspberry Pi is connected via USB to the Arduino micro-controller. ![]() The web interface is programmed in Python and uses Flask to generate a server. Battery level monitoring using a potential divider circuit.Ģ.Non-blocking serial parsing, allowing the movements of the robot to be remote controlled.Velocity control of all servo motors, facilitating smooth accelerations and decelerations.A random movement generator, allowing the robot to autonomously move and appear animated.An animation queue, keeping track of the next servo movements the robot needs to perform.Main program to control the motors and servos of the robot. For more information about the robot, visit Robot and controller code for a Wall-E replica robot.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |