Announcement

REXYGEN forum has been moved. This one is closed.
Head over to the new REXYGEN Community Forum at https://forum.rexygen.com.

Looking forward to meeting you there!
 

#1 2018-05-29 05:51:26

mikeyh
Member
From: New Zealand
Registered: 2016-04-28
Posts: 44

Frequency Control

Hi All,

How do I use the Monarco Hat to frequency control an inverter drive for a motor?

- I require a fixed a duty cycle of 30 to 70%
- maximum voltage of 15Vdc
- minimum on state voltage of 4Vdc
- maximum off state voltage of 0.7Vdc

The inverter drive uses a control frequency of 0 - 150Hz (0 - 4500 rpm)

I have used duty cycle on the Monarco before, fixed at 1Hz. How do I do variable frequency?

Thanks

Mike

Offline

#2 2018-05-29 09:24:52

jaroslav_sobota
Administrator
Registered: 2015-10-27
Posts: 535

Re: Frequency Control

Hi Mike,
thanks for your question. You should be able to connect the Monarco HAT DOUT directly to the inverter drive. The internal pull-up to 5V will do the job. As for controlling frequency, see the example project 0121-05 on using Monarco HAT PWM outputs. You can find it in our GitHub repository of example projects.

Please let me know if the example covers the topic well and if it works for you.

Kind regards,
Jaroslav

Offline

#3 2018-05-29 10:14:59

mikeyh
Member
From: New Zealand
Registered: 2016-04-28
Posts: 44

Re: Frequency Control

Hi Jaroslav,

Thanks for the reply.

So correct me if I'm wrong! (MNR__PWM1_Frequency) sets the required, 0 - 150Hz and (MNR__PWM1A) will set the fixed duty cycle for the same output channel?

I assume if using a PID controller the output scale just needs to match the required frequency?

Thanks

Mike

Offline

#4 2018-05-29 11:27:40

jaroslav_sobota
Administrator
Registered: 2015-10-27
Posts: 535

Re: Frequency Control

Yes exactly. Just keep in mind that the PWM1_Frequency is common for DOUT1, DOUT2 and DOUT3. Therefore you can only control 2 such drives using a single Monarco HAT.

Also keep in mind that the lower limit for frequency is 1 Hz. To turn off the output completely, you'll need to set duty cycle to 0.

If necessary, use the GAIN, LIN or CNDR blocks to scale the PID controller output (e.g. 0-100%) to frequency (0-150Hz).

Jaroslav

Offline

#5 2018-06-07 20:32:53

mikeyh
Member
From: New Zealand
Registered: 2016-04-28
Posts: 44

Re: Frequency Control

Thanks Jaroslav, works like a charm.

Offline

#6 2018-06-08 11:38:38

jaroslav_sobota
Administrator
Registered: 2015-10-27
Posts: 535

Re: Frequency Control

Hi Mike,
glad I could help. To be honest, I discovered several issues when preparing the PWM example. These are now fixed and the new version v2.007 of the Monarco HAT firmware has been released. See https://github.com/monarco/monarco-hat-firmware-bin

I highly recommend upgrading your Monarco HAT to this version.

Kind regards,
Jaroslav

Offline

Board footer

Powered by FluxBB