I'm having an idea about making universal test bench for motors, encoders, analog outputs and so on.
I have breadboard at work, but sometimes it sickens to connect all circuit for simple test.
My test bench would be really simple: few basic sketches to upload in arduino for unipolar, bipolar steppers. Some digital I/O's, 8: 0-5V, 4: 0-10V, and 4: 4-20mA analog inputs.
Probably I will have to design my own stepper drivers. Probably in a few days I will probably display concept design of whole bench.
At first I ask for help to design bipolar/ unipolar stepper driver. I have connected them separately, but does anyone have idea how to make universal one? I would like just to replace few jumpers is it possible?
What is the purpose of the test bench?
Is it a platform for testing software?
OR
Is it a platform for testing hardware to ensure that the hardware works properly?
If the purpose is just to test potentially faulty hardware I see no problem using DIY interfaces and test software as long as they properly match the hardware under test.
If the purpose of the platform is for testing software then I think you should NOT use DIY interfaces because they may not behave exactly like the interfaces that are generally used by Arduino users.
For example a "universal" (unipolar / bipolar) stepper driver will not have the normal facilities that a specialized bipolar driver will have and will not represent a proper basis for provide stepper software.
Very good point. At first I thought only about testing hardware, but when you mentioned maybe in the future me or maybe my colleagues will have a need to test software. So in that case probably there should be 2 prepared slots for steppers.
Robin2:
For example a "universal" (unipolar / bipolar) stepper driver will not have the normal facilities that a specialized bipolar driver will have and will not represent a proper basis for provide stepper software.
KarolisL:
Newt question would be, how can arduino read 24V encoder signals?
If your encoder produces a 24v output signal (i.e. a signal that is between 0v and 24v) just use a pair of resistors as a voltage divider to reduce it below 5v for the Arduino.
I haven't done anything with them by myself, but as I understand there are 2 factors. Diode forward voltage, and current through transistor. My local vendor supplies optocouplers with different forward voltage. As I understand with different voltage I would have to adjust different resistor value, thats all.