Forum

MaxMeasurableCurren...
 
Notifications
Clear all

[Solved] MaxMeasurableCurrent_SOLO_UNO Meaning

2 Posts
1 Users
0 Likes
71 Views
Forum 1
(@guesttourist)
Active Member
Joined: 1 month ago
Posts: 4
Topic starter  

Hello,

Just a quick question, I am seeing that you are using

MaxMeasurableCurrent_SOLO_UNO
 
in the calculation of 
 
// Converted value to PWM duty cycle for desired current Limit on 8 bit PWM of Arduino
desiredDutyCycle_CurrentLimit = (int)(255 - (255 * (currentLimit / MaxMeasurableCurrent_SOLO_UNO)));
 
By default, it is set to 32A.
 
For my setup, my motor has a maximum of 2.7 A current limit. I understand I need to set the current limit to 2.7A.
 
Should I also set my MaxMeasurableCurrent_SOLO_UNO to 2.7A? When it is set to 32, the motor is not at a nominal speed. I tried to set it to 2.7 and seems it is working. 
 

   
Quote
Forum 1
(@guesttourist)
Active Member
Joined: 1 month ago
Posts: 4
Topic starter  

To answer my own question,

 

It will act as the current Limit, so if the voltage applied to this
pin is 5V, it will stop the current floating to the motor ( current
Limit at zero), and if this pin is left open it will allow up to 32A
floating into your Motor, so any value between these will
define the value of current limit. You can calculate the current
limit value based on following formulas:
In case of using PWM:
The current Limit value = ((100 - duty cycle precentage of
PWM at P/F input)/100) * 32.0
In case of using Analogue Voltages:
The current Limit value = ((5.0 - the voltage at P/F input)/5.0) *
32.0

The current Limit value = ((100 - duty cycle precentage of PWM at P/F input)/100) * 32.0

(Current Limit / 32) * 100 = (100 - duty cycle precentage of PWM at P/F input)

duty cycle precentage of PWM at P/F input = 100 - (Current Limit / 32) * 100 

We treat 100% as the maximum register value 255, hence, we replace 100 with 255

desiredDutyCycle_CurrentLimit = (int)(255 - (255 * (currentLimit / MaxMeasurableCurrent_SOLO_UNO)));

 


   
ReplyQuote
Share: