Quantcast
Channel: Reprap Forum - Controllers
Viewing all articles
Browse latest Browse all 10211

Need some help with writing code for PWM

$
0
0
I'm looking for someone who can write a clever PWM control based on Atmel Timer1 (Arduino Uno / Nano)

My coding skills are as good as non existing when it comes to this. I Have had a look at this several times but never got the code to do what i had in mind.

What I like to accomplish is to have a way to have 2 controls One for the Frequency and one for the Pulse Width and if in any way possible they should not influence eachother

When I for instance set a pulse width of 10uS then I should be able to change the frequency withouth the width changes and vice versa.

As input 2 analog input would be fine though 2 rotary encoders are also ok.

Pulse width should be as short as possible and the frequency as high as possible.

And if possible written and commented in a way that is easy to understand so that I eventually may discover the mistakes I made in the past. And also that others have an easy way to build uponth this base functionality.

Viewing all articles
Browse latest Browse all 10211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>