If you just need a solenoid on/off and a Temperature on/off then you might consider just sever digital I/O bits.
You might also consider SPI using the SPI V6.c Example with KFLOP as the Master and the Arduino as a Slave.
3.3V digital signals are very common. Research LVTTL signals. All the KFLOP 46 I/O pins are 3.3V LVTTL compatible. However some (8 on JP4 and JP6) have 150ohm pull down termination resistors which some LVTTL outputs may not be able to drive. 16ma is required to drive them. Basically a high level must be higher than 2.4V and a low signal must be lower then 0.4V. I'm not familiar with Arduino I/O pins.
Thank you so much for everything that you have done for me. I was able to complete must of what I needed thanks to you. I now ordered another Kstep because I will most likely need at least 7 axis, and I made sure to tell them that it was the second Kstep that I order. I put everything together, but kmotion can't move the axis for some reason (I tried activating I/O 45 and running step response to figure out the best velocity, but it doesn't move). Do you know why this might be happening? I also modify the c-program so that it recognizes all 8 axis (0 to 7). Sorry for the inconvenience and thanks in advance.
How did you connect the second KStep?
Are you jumpering the two KStep J6s together for powers and enable?
Are the 3 LEDs on?
Does the motor hold position?
How did you configure the axes?
Thanks for the quick reply!
1- I put everything together by connecting the bottom KStep to the KFLop via the JP7, and then I connected the KFlop JP5 to the other KStep JP26.
2- I don't think I am. I'm using KStep J1 for power.
3- No! For the to KStep only the right light is on (close to the screw), and for the bottom KStep the middle and the left lights are on.
4- No! Well the motor resists a little bit, I can still move them easily even after activating I/O 45. With one KStep, I couldn't move them at all after activating I/O 45.
5- Well I modified the initKStep6Axis by adding the following code.
I changed the DefineCoordSystem6() to DefineCoordSystem8(). I was looking around to see if I needed to add/change something else, but it looked to me like that was all I needed to change. Sorry for the inconvenience and thanks for everything.
I don't follow your description. You need to enable both KSteps. Normally Enable should be wired from the one KStep J6 to the other KStep J6.
You need all 3 LEDs's on both KSteps on. +5V Power, Enable, Motor power.
I don't understand why you are configuing 8 axes. I thought you had 5 axes.
Sorry for not being able to explain it well. I'm going to attach some images of my current connection. I based this connection off of a video on YouTube uploaded by Dynomotion called " Dynomotion's 6-Axis Cable-Driven Demonstration Robot". I was able to catch a good glimpse of the connection between the boards and I tried using something similar to that. I know that's not the best way to do it, but I was looking around and couldn't find any information about the connection between a KFlop and 2 KStep.
Also, I was looking through the KStep connector pinouts and I wasn't able to find a J6 for the KStep. Can you please tell me its location? Here is a image of the KStep Connector Pinouts
Okay! So I guess that only motor power was working for one KStep, while Enable and +5 Volts was working for the other KStep. It must be the connection that you were talking about then.
Well I previously had 4-axis only (a single KStep) and the 3D printer was working perfectly fine. I now need 5-axis because I want to add another extruder to the 3D printer. I want to activate all 8-axis because I will need them later on for my project. The 3D printer part of it is only half of what I need to do. Sorry for all this mess and thank you so much for your help. I really appreciate it.
J6 is the 4 pin screw terminal in the lower left corner of the image.Also, I was looking through the KStep connector pinouts and I wasn't able to find a J6 for the KStep. Can you please tell me its location? Here is a image of the KStep Connector Pinouts
You would normally wire the 4 J6 pins in parallel to supply the power and enables to the 2nd KStep.
The 2nd KStep must also be supplied Motor Power VB
It worked! The 3 lights were on and I was able to move the first 4-axis without any problem. Thank you so much for everything. I have a couple of questions though.
1- Why is it that the enable light on the KStep turns off when I Compile, Download and Run the C script on KMotion?
2- In order to properly configure the motors correctly, we must first load the axis motor on the Config & Flash screen. For the first 4 axis, I used the KStepAxis0, 1, 2 and 3, but I don't know which ones I should use for the other 4 axes. Should I use the same KStepAxis for the other 4? Sorry for these questions and thanks in advance.
Many of the KStep Initialization Examples have a loop at the end to detect no motion and to disable KStep after a period time of time by turning off Output 45. You can remove this loop if it isn't needed. If used it should be expanded to monitor all of your 5 axes.Why is it that the enable light on the KStep turns off when I Compile, Download and Run the C script on KMotion?
To control 8 motors you will need to use KFLOP Axis Channels 0-7. Each KFLOP Axis Channel will need to output to a Step/Dir Generator to drive KStep. Set the OutputChan0 parameter to values 8-15 to do this. See also:In order to properly configure the motors correctly, we must first load the axis motor on the Config & Flash screen. For the first 4 axis, I used the KStepAxis0, 1, 2 and 3, but I don't know which ones I should use for the other 4 axes. Should I use the same KStepAxis for the other 4?
Channels Channels Channels - Dynomotion