Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   Window Motor/Snowblower and 12v only one way (http://www.chiefdelphi.com/forums/showthread.php?t=134294)

gpetilli 11-02-2015 12:01

Re: Window Motor/Snowblower and 12v only one way
 
Quote:

Originally Posted by cusack80 (Post 1441734)
I did not change code, but when I change the power leads from the motor and flip them on the speed controller, I can flip flop the problem to show up. So one time it works going up, flip the power leads from the motor to the speed controller goes down, but it won't do both correctly at the same time using 2 buttons on joystick. You can also call me 616-527-1255

We blew half an H-Bridge on a speed controller a few years back and the resulting uni-direction behavior was very similar. We were debugging a PID loop at the time and the PID commanded full forward, overshot and then reversed direction to reduce the speed maybe 2%. Ultimately, we went to a PIDF loop so that the PID operates only on the error, and the F works on the commanded velocity.

cusack80 11-02-2015 15:54

Re: Window Motor/Snowblower and 12v only one way
 
Here is our labview code

https://docs.google.com/file/d/0B2Bk...pkaWFyczQ/edit

Alan Anderson 11-02-2015 17:55

Re: Window Motor/Snowblower and 12v only one way
 
Quote:

Originally Posted by cusack80 (Post 1441983)
Here is our labview code

You did exactly what I suspected. You're controlling the "mec2" motor in two places, and only one of them wins.

Your pair of case blocks for that motor need to be changed. You can move the reverse block inside the false case of the forward block, but I suggest that you remove the case blocks entirely and replace them with the code from the Button Control of Motor Example from Team 358.


All times are GMT -5. The time now is 06:36.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi