Beginners: please read this post and this post before posting to the forum.
0 Members and 1 Guest are viewing this topic.
The problem is that I do not understand how the motor driver works, it look simple enough until they started to mix in NAND 2-input Schmitt Triggers to controll the LM293D.
The kit DID come with schematics and some commands, but sadly no explanation of the commands, I have attached the schemetic and here is the commands they gave about motor controll: DRIVE_INIT()Initialises the drive. Prior to using the drive, you have to call up this routine.DRIVE_ON()Sets the enable input of the L293D to high. The drive is activated.DRIVE_OFF()Sets the enable input of the L293 to low. The drive is deactivated.DRIVE(left as byte, right as byte)Timer1 PWM for the drive:values between 1 to 128 = backwardsvalues between 128 to 255 = forwardsValue 128 = drive stopMotor_POWER(left as byte, right as byte)Speed, values between 1 and 255You first have to state the direction with MOTOR_DIR.MOTOR_DIR(left as byte, right as byte)States the rotation direction of the motors for the function MOTOR_POWER.1 = forwards0 = backwardsMOTOR_STOP()Motor is stopped, PWM is set to 128.My question is if you don't already suspect it; how to i controll my motors via the X1_2 and X1_3 pins (see schemetic lol).But an explanation of how the Dual input Schmitt trigger works is also greatly appreciated.