
Dumbot Revision 2
thingiverse
This is a C program designed to control a robot's movements using various functions. The program uses the Arduino framework and takes advantage of its built-in delay function (`__delay_ms`). Here's a breakdown of how it works: 1. **Initialization**: In the `main()` function, the program initializes the robot by calling the `init()` function. 2. **Movements**: It then performs a series of movements using various functions: * `RobotFd(time, speed)`: Moves forward. * `RobotBk(time, speed)`: Moves backward. * `RobotRt(time, speed)`: Turns right. * `RobotLt(time, speed)`: Turns left. * `RobotSt(time)`: Stops. 3. **Random Movement**: After a series of predetermined movements, it enters an infinite loop where it randomly selects a movement mode (`rmode`) and performs that movement for a specified time (`rtime`) at a specified speed (`rspeed`). 4. **Voltage Check**: If the voltage is above a certain threshold (50), it increments a counter (`nactions`) to track how many times this condition has been met. 5. **Blinking**: The program also includes a commented-out section that would blink an LED based on the voltage level, but this functionality is not currently active. 6. **Default Behavior**: If any other case is encountered in the `switch` statement, it simply stops for 10 seconds before continuing with the next iteration of the loop. 7. **Random Number Generation**: The program uses the `rand()` function to generate random numbers for movement mode and speed.
With this file you will be able to print Dumbot Revision 2 with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Dumbot Revision 2.