Control two linear actuator with Phmotor

For general discussion related FlowStone
Post Reply
yohan
Posts: 4
Joined: Sun Apr 20, 2014 6:51 pm

Control two linear actuator with Phmotor

Post by yohan »

Hello, I am a student and I use flowbotics software for a project.
I want to drive two electric actuators with card "Phidget Motor Controller 1064" but I did not succeed. I can drive a single linear actuator at a time but not both together with the Phmotor unit. I used and tried flowstone example Phidget motor controller 1064 to control the two linear actuator but i didn't successful. I'm novice and i need help, thank you.
yohan
Posts: 4
Joined: Sun Apr 20, 2014 6:51 pm

Re: Control two linear actuator with Phmotor

Post by yohan »

Please I need help, I added a picture to show the situation. I want to control the two actuators at the same time but with this module I can only control one by one.
Attachments
Phidget 1064 Motor Controller.fsm
(15.77 KiB) Downloaded 868 times
shéma verin flowstone.png
shéma verin flowstone.png (130.11 KiB) Viewed 13473 times
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: Control two linear actuator with Phmotor

Post by Nubeat7 »

hmm, maybe this would work for you?

i dont know how this phidgets module works, after you have just one vel and acc input and you need to tell the module which motor you want to control via the index you only can control one motor at the time, you can switch between the faders for each motor depending on which is moved last (look example)

just take care to select the index first and then send the values, right triggerorder is important here.

hope it helps
Attachments
Phidget 1064 Motor ControllerNB.fsm
(16.53 KiB) Downloaded 849 times
yohan
Posts: 4
Joined: Sun Apr 20, 2014 6:51 pm

Re: Control two linear actuator with Phmotor

Post by yohan »

Thanks a lot for this answer. I tried to understand the mechanism and i don't know how to change motor selected.. I may have found the index to change motor but i didn't know how to use it. When i change values, only v0 changes not v1. I didn't need slider, just floats or int to select values. Sorry i'm not conffortable with this software flowbotics, i have used it for a week. Thanks
Attachments
Cap2ture.png
Cap2ture.png (123.79 KiB) Viewed 13447 times
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: Control two linear actuator with Phmotor

Post by tester »

Flowbotics/Flowstone are easy to use. Just follow the dataflow (wires), and know there might be specific order if multiple wires meet in one place. It's very visual and modular.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: Control two linear actuator with Phmotor

Post by Nubeat7 »

like you modified the schematic it only can control v0 because you send trigger signals to 'empty last primitive so both inputs of the last primitive which should set the motorindex are 0 so the index is always 0 you need to give values to the inputs of the last primitive

i included a little example how to use a last primitive and triggers to set an index

after the phidget module is not active i also connected the vel to the output, this is just for test reason you can connect this with the pgidgets module output again when it is active
for better understanding i also used a equal to index comparsion to get the actual value change on the output

instead the sliders you can also connect an editbox or knob... or just a float primitive if you dont make any gui for it
Attachments
Phidget 1064 Motor ControllerNB2.fsm
(132.89 KiB) Downloaded 903 times
yohan
Posts: 4
Joined: Sun Apr 20, 2014 6:51 pm

Re: Control two linear actuator with Phmotor

Post by yohan »

Thank you very much, it is exactly what I needed. :D Thank for your work and your help ! ;)
Post Reply