Hi guys!
I've got an Arduino Micro on which I am running a gardening project for school.
The fan however makes a high pitch sound when using pwm to control it's duty cycle and I'd like to get rid of that, but need help as this is my first Arduino project
Currently I am using pin 6 for pwm and I'd like to be able to still continue to change duty cycle with analogWrite(6, duty_cycle) as I already do throughout my program, but I also don't want to risk messing with the delay() function in any way.
I saw there was a lot of similar topics but I am just not capable of understanding a processor datasheet and how to approach this...
I did see something like this in another post though
TCCR1A = bit (COM1A1) | bit (WGM11);
TCCR1B = bit (WGM13) | bit (WGM12) | bit (CS10);
that looked easy enough. Is that something that works on pin 6 without messing with delay() function?