I tried to run the dynamo with bts7960 motor driver with this code. When I use it with Arduino UNO, the coding works well. but when I use Arduino Mega 2560, the opposite happens. I simplified my coding by only moving the dynamo in one direction and it worked on Arduino Mega. can you help tell me what error caused it?