I`ll try to be as short as I can.
When I bought my robotkit it did not come with the microcontroller, so I bought an arduino, since I basically had a robot platform and nothing to controll it with.
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 = backwards
values between 128 to 255 = forwards
Value 128 = drive stopMotor_POWER(left as byte, right as byte)
Speed, values between 1 and 255
You 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 = forwards
0 = backwardsMOTOR_STOP()
Motor is stopped, PWM is set to 128.
and here is a overview of the schmitt trigger: http://circuits.datasheetdir.com/109/BU4093B-pinout.jpg
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.
Thank you and have a nice day
***The robot kit is called ProBot128, its not very well known***