Skip to main content

SLG47105 for small motor drive and control loop.

GreenPAK and GreenFET

8 months ago

Posted by Laszloee 75 points 7 replies
0 upvotes

Hi, I'm working on a project and needed a small motor-driver and a control loop to rotate the motor's shaft in the range of 0-90° at 17Hz. My question is that something a SLG47105 would be able to do? What development platform needed(SW/HW)? Thank you.

8 months ago

Laszloee 75 points

The image is to show my plan to use a SLG47105 for a small motor driver  with control loop to rotate the shaft between 0-90° at 17Hz sinusoidal.

What platform should I purchase for the development?

Thanks,

Laszloee

accepted answer!

8 months ago

olehs

Hi Laslozee, 

That you for your appeal, 

 SLG47105 can be used for this application since it has outputs that can be configured as full-bridge to control the motor directly. It can drive up to 2A current per output. Also, ACMP can monitor the feedback from the hall sensor. But I have one question regarding the variable resistor. What should it do? SLG47105 doesn't have the ADC on board, so it will be not possible to monitor its value using just this IC. Of course, you can use in addition SLG46140 and create the solution with two chips. 

 If you are looking for the platform to create and debug your project you can use the following development tools:

1. GreenPAK Advanced Development Board;

2. SLG47105V-SKT socket adapter with 50 samples SLG47105V.  For debuging you can aslo use SLG47105V Evaluation Board, it is very suitable if you need to drive current higher than 100uA  (https://www.dialog-semiconductor.com/products/greenpak/slg47105#tab-field_tab_content_order)

3. SLG46140V-SKT socket adapter with 50 samples of SLG46140V.  (https://www.dialog-semiconductor.com/products/greenpak/slg46140#tab-field_tab_content_order)

Please let me know if you have any further question. 

Best regards, 

Oleh Sapiha

 

8 months ago

Laszloee 75 points

Hi Oleh,

 

Thank you very much responding to my post.

That would be awesome to have done all of this in a single small chip.

The analog input would be great to control the amplitude of the 17Hz swing of the shaft of that small motor.

I might can manipulate that varying the gain of the feedback from the Hall sensor.

Best,

Laszloee

accepted answer!

8 months ago

olehs

Hi Laszloee, 

You can also try to use some approaches which are described in the Cookbook (https://www.dialog-semiconductor.com/greenpak-cookbook). There are several typical applications for HVPAK (see Chapter 8: Motor Control) you can refer to. Hope it will help you to start. 

Best regards, 

Oleh Sapiha 

8 months ago

Laszloee 75 points

Hi Oleh,

 

Thank you so much for the outstanding response.

I'm very much pleased and in this "gathering all information" stage, it's very awesome to you pointing me to the right direction.

I'm excited to implement.

For the proper operation the shaft needs to stay fixed against the force(within the limit of the motor) for both rotation direction and the ± 0- 45° 17Hz

swing needs to be sinusoidal and controllable real-time.

There is one question  (probably it's too pre-mature not reading deeper into the application notes), what would be the source for a sinusoidal PWM driving the motor?

Is that sine data stored in a look-up table.

Anyway, I'm going to dive deeper in the material.

Again, Thank you for the great support.

 

Best,

Laszloee

 

accepted answer!

8 months ago

olehs

Hi Laszloee

There several ways to create sinusoidal PWM to drive the motor. The first one is using two counters which perform breathing effect (see https://www.dialog-semiconductor.com/greenpak-cookbook Chapter6 Technique: Creating a Breathing LED Pattern or Application: Breathing RGB LED Control with I2C) but one of the counter's clock must be mixed up by another signal. This approch may approximate sine PWM. The second one is to use buildin PWM block. I recommend using exactly this method. PWM0 has a Reg File setup, where you can fill in the appropriate duty cycle, which will be changed step-by-step reacting on Duty Cycle CLK rising. Actually second approach is already decribed in appnote. Check it using the link https://www.engineersgarage.com/how-to-generate-pwm-based-dual-sine-waves/ 

Best regards, 

Oleh Sapiha

Attachment Size
PWM Generator with a Duty Cycle change according to Sine Wave.zip 7.96 KB

8 months ago

Laszloee 75 points

Great!-Thank you very much Oleh.

I'll let you know my progress. :)

 

Have a great weekend!

Laszloee