2A DC MOTOR PHIDGET - error setting engaged

Technical Discussions on any InterfaceKits
Post Reply
guibot
Phidgetsian
Posts: 5
Joined: Tue May 15, 2018 5:04 pm
Contact:

2A DC MOTOR PHIDGET - error setting engaged

Post by guibot »

I am trying to control a DC Motor with Encoder, and I am using a 2A DC Motor Phidget + VINT.

I can read encoder positions when I manually spin the motor.

When I click in "engage motor" I het an Error setting engaged: PhidgetException 0x000000034 (Device not Attached).

I have a screenshot here:
https://photos.app.goo.gl/ZjBH5rKOVilaf0f72

Any help will be much appreciated, am I missing something here?

Thanks in advance
User avatar
mparadis
Site Admin
Posts: 660
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: 2A DC MOTOR PHIDGET - error setting engaged

Post by mparadis »

You can't have the Position Controller and DC Motor Controller examples open at the same time (this is why the info box for the position controller window says "Attached: Nothing"). This is because both of those windows use the DCMotor channel of the DCC1001, whereas the encoder window uses the Encoder channel. If you want to run the motor at a certain duty cycle in one direction, use the DC Motor Controller example. If you want position control with a PID control loop, use the Position Controller.
guibot
Phidgetsian
Posts: 5
Joined: Tue May 15, 2018 5:04 pm
Contact:

Re: 2A DC MOTOR PHIDGET - error setting engaged

Post by guibot »

Hi, thanks so much for helping!

When I open only the PositionController it shows the device attached (DCC1001) but then the program crash..

https://photos.app.goo.gl/YcYec8yOrYo3wXwQ2
User avatar
mparadis
Site Admin
Posts: 660
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: 2A DC MOTOR PHIDGET - error setting engaged

Post by mparadis »

We've just been made aware of this issue. There'll be a fix in the next version of the libraries. In the meantime, you may be able to get it working by downloading the C# PositionController example, which is the same program.
guibot
Phidgetsian
Posts: 5
Joined: Tue May 15, 2018 5:04 pm
Contact:

Re: 2A DC MOTOR PHIDGET - error setting engaged

Post by guibot »

There is another issue when using the DC Motor Controller program.

I've been changing the parameters (target velocity, acceleration, current limit) and the motor does not spin. I measured the voltage on M+ and M- and there is nothing there.

Already tried with two different motors..
guibot
Phidgetsian
Posts: 5
Joined: Tue May 15, 2018 5:04 pm
Contact:

Re: 2A DC MOTOR PHIDGET - error setting engaged

Post by guibot »

Any clue on what is happening here?

I've made a program in C# and still not able to actuate on the motor..
guibot
Phidgetsian
Posts: 5
Joined: Tue May 15, 2018 5:04 pm
Contact:

Re: 2A DC MOTOR PHIDGET - error setting engaged

Post by guibot »

False Alarm!! :D
I was feeding the Motor Controller with 5V. Raised voltage to 8V and works like a charm.

Thanks so much for helping!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests