Connect with us

Variable frequency interrupter code?

Discussion in 'Microcontrollers, Programming and IoT' started by FilipSebik, Nov 18, 2017.

  1. FilipSebik

    FilipSebik

    13
    0
    Sep 7, 2017
    Hey, I am done building my SSTC, but there is 1 thing I am missing. Its the interrupter. I would like to have one that can do 50Hz - 20KHz but I don't know *@#! about arduino timers or something to change its frequency. The duty cycle would be 50% at all the time and the frequency should be variable between 50Hz - 20KHz through a 10K multi turn pot. I have Arduino Nano and Attiny85. I would like to use the Attiny85 because it would save space and less expensive to replace. As far as I got, I have no code... Any help would be appreciated

    PS: Yeah I know I am asking someone to do it for me but I just can't understand what does the TCCRB = 0; means and other things
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-