I want to know the motor driving of crowbot bolt in letscode.
I found some examples but did not understand them clearly.
I only want to know about
Forward, Backward, turn left and right.
CrowBot's motor is driven by an L9110.
According to the datasheet of L9110, when IA is high and IB is low, the motor rotates forward. Conversely, when IA is low and IB is high, the motor rotates in reverse. If IA and IB have the same level, the motor stops.
CrowBot is equipped with two wheels on the left and right sides. When both wheels rotate forward, the car moves forward. Conversely, when both wheels rotate in reverse, the car moves backward.
If the left wheel's speed is slower than that of the right wheel, CrowBot turns left; if the left wheel's speed is faster than that of the right wheel, CrowBot turns right. To achieve a left turn, the sample code provided in the third lesson sets the left wheel to rotate backward and the right wheel to rotate forward. Conversely, to achieve a right turn, the code sets the right wheel to rotate backward and the left wheel to rotate forward.
Hope this will be helpful.