[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/diy/ - Do It Yourself

Search:


View post   

>> No.1918656 [View]
File: 38 KB, 825x696, Untitled-1.png [View same] [iqdb] [saucenao] [google]
1918656

I need help troubleshooting this. It's for a very simple 2 channel lamp dimmer with an encoder. It outputs 2 PWM signals and has 3 inputs for an encoder, which for now do nothing.

The problems come with the interrupts, for some reason, when any interrupt is triggered by the encoder the chip seems to reset itself, the variable b for brightness seems to go back to 0, as if the circuit lost power. This only happens when interrupts are enabled, so I'm 100% sure it's not a hardware issue.

Any ideas why are the interrupts messing up everything?

Navigation
View posts[+24][+48][+96]