Home > other >  Consult, acquisition of dc motor current size
Consult, acquisition of dc motor current size

Time:09-26

Recently in a small device, need to reciprocating motion, I adopt synchronous wheel driving, relative screw transmission speed faster, dc gear motor,
Problems now, it is not convenient to install close to switch, automatic stop, also cannot let dc motor, I think the current of dc motor through gathering to the single-chip microcomputer, when the motor running to stroke the edge, is blocked, the motor current will increase, and then judge the size of the current program, to achieve the set value is closed motor,
I don't know such ideas can be fulfilled, for the position of the stop request is not high, as long as they can stop,
If a friend used this approach, it's convenient to communicate, you paid for the use method,

CodePudding user response:

Unreliable, or to find a way to position switch, besides, position detection with N many methods

CodePudding user response:

reference 1/f, worldy response:
, or to find a way to position switch, besides, the method of position detection more than N

Thank you, have to buy encoder, still ask, magnetic encoder, single chip microcomputer to use input interrupt, timer or the input capture function?

CodePudding user response:

refer to the second floor weixin_44626503 response:
Quote: refer to 1st floor worldy response:
, or to find a way to position switch, besides, the method of position detection more than N

Thank you, have to buy encoder, still ask, magnetic encoder, single chip microcomputer to use input interrupt, timer or the input capture function?

How many circle stop using timer number set to turn

CodePudding user response:

Ok, thank you for your guidance,,, today still think to count with interrupt handlers,,, the use of photoelectric encoder, data, whether coding with la resistance

CodePudding user response:

Ina180 can do it,

CodePudding user response:

Use scans or INT0 \ INT1

CodePudding user response:

Position detection can use photosensitive roulette, potentiometer is translated into gpio or digital input

CodePudding user response:

fog oasis reference 7 floor response:
position detection can use photosensitive roulette, potentiometer eventually converted to gpio or digital input can

Are photosensitive roulette is photoelectric encoder?

CodePudding user response:

refer to 6th floor worldy response:
use scans or INT0 \ INT1

I use the timer mode of encoder, read out the data is accurate,

CodePudding user response:

references 9 f weixin_44626503 response:
Quote: refer to the sixth floor worldy response:
use scans or INT0 \ INT1

I use the timer mode of encoder, data read out quite accurate,


references 9 f weixin_44626503 response:
Quote: refer to the sixth floor worldy response:
use scans or INT0 \ INT1

I use the timer mode of encoder, data read out quite accurate,


Timer code? Don't understand

CodePudding user response:

references to the tenth floor worldy response:
Quote: references 9 f weixin_44626503 response:

Quote: refer to the sixth floor worldy response:
use scans or INT0 \ INT1

I use the timer mode of encoder, data read out quite accurate,


references 9 f weixin_44626503 response:
Quote: refer to the sixth floor worldy response:
use scans or INT0 \ INT1

I use the timer mode of encoder, data read out quite accurate,


Timer code? Don't understand

Stm32 MCU and ordinary senior timer timer encoder mode, this function does not need to own to judge the direction of the AB pulse, the timer will be according to the direction of the pulse, to add and subtract the value of the counter, we only need to read the value of the counter use is OK,