Arduino Code for Modified TowerPro SG90

Good day :)

I modified a Tower Pro SG90 Servo Motor to make it continuous. Please help me how can I rotate it clockwise for 5 seconds by inputting "A" string from the Serial Monitor and when I input "B" string, the motor will rotate counterclockwise for 5 seconds also.

Any comment or suggestion is highly appreciated.

Thank you! :)

i uploaded the sweep code to test the servo motor, it worked but it rotates clockwise only.

up for this

help .please :cold_sweat: