I have a circuit I need to build...
basically I need to turn on an output
outputting pwm at 128hz and 65% duty cycle
I've read a few help articles, and dont quite understand how I can get it to output at 128hz...
128hz is the required pwm frequency for the device I am sending a signal to
potentially I would end up varying the output based on another input, changing the duty cycle depending on another variable, but I'm not at that point yet
I've read a few tutorials on setting the pwm frequency base, but none of the values match what I need it to do
like, I understand I could just use microseconds and turn it on and off based on that... but it would require 7812.5 microseconds total.....so I could do on for 5078 on and 2734 off as an example...and then just do a second run of it with 5079 on and 2734 off to make up the 0.5 that gets dropped off the first one
is there a more exact way to tell it to output 128hz pwm
I am using a nano board
Just looking for the best way to create the signal I need to send
I dont really have any code yet as I juts simply want to figure out and get the pwm frequency right before I wrote the other code I need as this is the only part I am unsure about at the moment