TimerPWMCheatsheet

I'm not really interested in playing 20 questions with you, maybe someone else can help better.

You said:

Now since changing timer 0 affects the arduinos timings as part of my testing i thought i could leave timer 0 at the stock timings and change timer 2. Now this wouldn't give me 62khz it would give me 31khz but that's still 32 times faster than the 1khz i have now.

I said why? (Why does it not give 62 kHz?)

You reply:

why what?


Then you say:

i could leave timer 0 at the stock timings and change timer 2

Well, show this code, the code that does not give you 62 KHz.


You say:

it starts giving incorrect numbers

I say:

What incorrect numbers?

You reply:

it stops producing the correct humidity number

Yes, I know the incorrect number is not the correct number.

You need to put in debugging prints. You need to show your code, not just say "I tried X and it didn't work". If the numbers are incorrect you need to show the incorrect number (copy and paste) and what you think the correct numbers are, and why.