Click here to Skip to main content
15,881,781 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: CCC Next week? Update #1 Pin
Craig Robbins22-Dec-22 5:35
Craig Robbins22-Dec-22 5:35 
GeneralCCC-22-12-2022 Pin
pkfox21-Dec-22 21:30
professionalpkfox21-Dec-22 21:30 
GeneralRe: CCC-22-12-2022 Pin
OriginalGriff21-Dec-22 21:42
mveOriginalGriff21-Dec-22 21:42 
GeneralRe: CCC-22-12-2022 Pin
DerekT-P22-Dec-22 0:03
professionalDerekT-P22-Dec-22 0:03 
GeneralRe: CCC-22-12-2022 - Winner Pin
pkfox22-Dec-22 0:15
professionalpkfox22-Dec-22 0:15 
GeneralFor want of a 12v wall wart Pin
honey the codewitch21-Dec-22 21:29
mvahoney the codewitch21-Dec-22 21:29 
QuestionRe: For want of a 12v wall wart Pin
Randor 21-Dec-22 22:12
professional Randor 21-Dec-22 22:12 
AnswerRe: For want of a 12v wall wart Pin
honey the codewitch21-Dec-22 22:26
mvahoney the codewitch21-Dec-22 22:26 
It's shockingly simple.

I give it a change delay - say 500ms (acceptable for my specs)

It can measure the RPM at any given point.

So what it does is there is a state machine and as soon as you change the RPM it stores the new target, and kicks the state machine off in one or two states depending if it's moving up or down.

Once you entered the new target RPM it continues to increase or decrease the PWM duty by one "tick"** each change delay until just after the RPM passes the target RPM mark, at which point it draws it back a tick and then stops changing.

** what a tick is depends on the resolution of the PWM.

The only downsides I can see to this method is probably taking more time to do the change, and potentially passing the mark for an instant before correcting itself.
To err is human. Fortune favors the monsters.

GeneralRe: For want of a 12v wall wart Pin
Randor 21-Dec-22 23:16
professional Randor 21-Dec-22 23:16 
GeneralRe: For want of a 12v wall wart Pin
honey the codewitch21-Dec-22 23:30
mvahoney the codewitch21-Dec-22 23:30 
GeneralRe: For want of a 12v wall wart Pin
Randor 21-Dec-22 23:54
professional Randor 21-Dec-22 23:54 
GeneralRe: For want of a 12v wall wart Pin
Gary R. Wheeler22-Dec-22 3:32
Gary R. Wheeler22-Dec-22 3:32 
GeneralRe: For want of a 12v wall wart Pin
Gary R. Wheeler22-Dec-22 4:37
Gary R. Wheeler22-Dec-22 4:37 
GeneralRe: For want of a 12v wall wart Pin
honey the codewitch22-Dec-22 6:47
mvahoney the codewitch22-Dec-22 6:47 
GeneralRe: For want of a 12v wall wart Pin
OriginalGriff21-Dec-22 22:35
mveOriginalGriff21-Dec-22 22:35 
GeneralRe: For want of a 12v wall wart Pin
honey the codewitch21-Dec-22 23:04
mvahoney the codewitch21-Dec-22 23:04 
GeneralRe: For want of a 12v wall wart Pin
OriginalGriff21-Dec-22 23:37
mveOriginalGriff21-Dec-22 23:37 
GeneralRe: For want of a 12v wall wart Pin
Mike Hankey21-Dec-22 23:12
mveMike Hankey21-Dec-22 23:12 
GeneralRe: For want of a 12v wall wart Pin
jmaida22-Dec-22 14:18
jmaida22-Dec-22 14:18 
GeneralRe: For want of a 12v wall wart Pin
Mike Hankey22-Dec-22 16:11
mveMike Hankey22-Dec-22 16:11 
GeneralRe: For want of a 12v wall wart Pin
jmaida22-Dec-22 17:42
jmaida22-Dec-22 17:42 
GeneralWhats the Exact name of Console screen logging which comes with Visual Studio 2022 Pin
Laiju k21-Dec-22 17:52
professionalLaiju k21-Dec-22 17:52 
GeneralRe: Whats the Exact name of Console screen logging which comes with Visual Studio 2022 Pin
OriginalGriff21-Dec-22 19:49
mveOriginalGriff21-Dec-22 19:49 
GeneralAI ChatBot (ChatGPT) that might performs better than StackOverFlow.com? Pin
adriancs21-Dec-22 17:16
mvaadriancs21-Dec-22 17:16 
GeneralRe: AI ChatBot (ChatGPT) that might performs better than StackOverFlow.com? Pin
Randor 21-Dec-22 18:22
professional Randor 21-Dec-22 18:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.