Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 4 months ago.
About Motor driver SLA7026
We are making linetracer with stepping motors and IR sensors 8 (6-line sensors, 2-turn point sensors).
But we have some problems acting two stepping motors at the same time.
We use motor driver SLA7026(made in japan).
Motors are acting irreguarly with mbed codes.
(heavy vibration, out of phases.....ect)
So we found many codes. However thoses codes were AVR codes.
1. Can we use this motor driver in mbed?
2. This is main question. We need to interrupt pervious mbed command. But we can't use InterruptIn command. Is there any
useful mbed command for interrupting previous command?
(10-pin port*3[motor, sensor, button], 3-pin[LCD] )
2 Answers
11 years, 4 months ago.
A quick look at the data sheet, I ca see nothing unfriendly for 3V3 operation, except for a 5 Volt, reference, I am assuming you have a pre-built PCB ? so every thing should be OK.
Have you tried driving the motor(s) just on there own ?
Dont forget, the MBED can probably run 100 times faster than an atmel 8 bit part.
I would recommend possibly putting the motor driver code inside a dedicated Timer/Ticker routeen,
and possibly set parameters like ..
move forwards 30mm, at speed 4,
and keep detection/decision in the main loop.
Hope this helps
Ceri
11 years, 4 months ago.
1. Yes, it accepts 3.3V logic signals, so then it can be interfaced with mbed.
2. It depends completely on why you need to interrupt it and when. Does it happen at a certain time? Then you can use the Ticker/Timeout libraries.
You do use a power supply for your motors of more than 10V and a supply that can deliver sufficient current?