2019-08-13, 05:17 PM
(This post was last modified: 2019-08-13, 05:25 PM by jamos.tan@gmail.com.)
Hi,
I'm having trouble with the L298N motor driver. I realize it is very weak (rated 2A) and not supported, but I just want to use it to be able to test a concept.
All info about the board is here: https://produktinfo.conrad.com/datenblae...L298N_.pdf
I was hoping someone could help me with the following:
- Which adjustments do I need to make in motor.ino to drive the motor in both directions
- Which pins from Arduino do I need to use
Now I have it setup like this:
- Pins 9 and 10 from Arduino Nano --> pins 1 and 2 on motor controller
- Motor.ino is configured for h-bridge mode
Sync in Pypilot is OK, and when pressing AP or << / >> there is movement. Only problem is:
- Motor spins in only one direction
- No matter what I configure, it rotates very slow (with about 2 watts and less dan 1 amp)
When testing the motor controller and electromotor by 'fooling' the connection by 'thinking' it receives a signal (did that with rs485) it is able to spin quickly, so I know it is capable of more power.
I've attached my motor.ino also.
motornosensors.txt (Size: 36.95 KB / Downloads: 246)
Hope somebody can help.
I'm having trouble with the L298N motor driver. I realize it is very weak (rated 2A) and not supported, but I just want to use it to be able to test a concept.
All info about the board is here: https://produktinfo.conrad.com/datenblae...L298N_.pdf
I was hoping someone could help me with the following:
- Which adjustments do I need to make in motor.ino to drive the motor in both directions
- Which pins from Arduino do I need to use
Now I have it setup like this:
- Pins 9 and 10 from Arduino Nano --> pins 1 and 2 on motor controller
- Motor.ino is configured for h-bridge mode
Sync in Pypilot is OK, and when pressing AP or << / >> there is movement. Only problem is:
- Motor spins in only one direction
- No matter what I configure, it rotates very slow (with about 2 watts and less dan 1 amp)
When testing the motor controller and electromotor by 'fooling' the connection by 'thinking' it receives a signal (did that with rs485) it is able to spin quickly, so I know it is capable of more power.
I've attached my motor.ino also.
motornosensors.txt (Size: 36.95 KB / Downloads: 246)
Hope somebody can help.