[Get Solution] Building Bird Bot
1. The light-blue colored servo that is being used for the Bird Bot is unable to order the commands it is given; rather it runs all commands together. Therefore, if multiple “write()” commands are applied to the servo consecutively, the servo will run all the “write()” commands at the same time. To solve this, you must use a “delay()” command to have the servo wait between each “write()” command. It is acceptable to use a fixed “delay()” period, such as 2000ms. However, you may also create a dynamic delay() period, which determines the delay time based on the input. In short, this is done by finding the time it takes for the servo to rotate 180 degrees, then creating a mathematical equation to determine the time for a specific degree. If you are interested in this, please feel free to send me an email. 2. To reiterate the project manual, the servo must begin at a 90 degree position, and rotate between the angles of 90+Input and 90-Input. To make the servo run continuously, create a function that contains the servo commands; call the function when the input conditions are met. Please note that the servos may run with a delay with this solution, and that if a function is called directly in the loop() function (and not called within an if() or while() statement), it will continuously execute.