Welcome to Roboduino V2 repository
04.Car Rotational Movement
Car Rotational Movement
Car Rotational MovementDevice connectionHardware connectionSoftware connectionMotion analysisControl the motorControl PrincipleCommon parametersControl pinsCode analysisExperimental results
Control the car's rotation by pressing the KEY key.
Device connection
Hardware connection
Use the Type-B data cable to connect Arduino Uno and the computer.
Software connection
Open the "Arduino IDE" software and select the model and serial port number corresponding to the development board.
Motion analysis
Yellow arrow: motor rotation direction (upward means forward-motor forward rotation, downward means backward-motor reverse rotation)
Red arrow: actual movement direction of the car
Green arrow: speed decomposition direction (where the dotted arrow is the offset speed component, and the red arrow is the actual speed component)

Control the motor
The motor is directly driven b