Skip to main content
9 events
when toggle format what by license comment
Jan 3, 2020 at 8:00 comment added Dampmaskin If you're going to add a dedicated IC for PWM, you might as well look into specialized parts. Google high frequency pwm controller.
Jan 3, 2020 at 1:39 comment added Meta @Dampmaskin Yeah, that seems like the best bet! Even if it screws up I2C (can't remember if it relies on the timer or not), I could at the very least use a second 328, and use parallel IO to send it commands. Certainly beats being stuck at 960Hz!
Jan 2, 2020 at 23:48 comment added Dampmaskin You can get faster PWM by sacrificing resolution. Apparently the Atmega328 can output up to 8 MHz PWM with 1 bit resolution (and probably an external clock). Of course a 1 bit PWM is not very useful for most purposes, but if you can get 2 MHz with 4 bit resolution, maybe that will be sufficient for you? withinspecifications.30ohm.com/2014/02/20/Fast-PWM-on-AtMega328
Jan 2, 2020 at 23:24 answer added D.A.S. timeline score: 1
Jan 2, 2020 at 22:48 comment added Meta I would, but the micro I am using can only PWM at 490Hz or 960Hz, without changing registers. (Which may have unintended consequences.) Apparently it can go as high as 62kHz, but you start loosing resolution above that. I don't know what that would do to it's ability to use I2C, etc, but this definitely seems like it's worth looking into. Possibly even using another micro.
Jan 2, 2020 at 22:35 comment added D.A.S. The false spec is the low frequency, increase 100k to 2M
Jan 2, 2020 at 22:01 answer added user69795 timeline score: 0
Jan 2, 2020 at 21:45 review First posts
Jan 3, 2020 at 6:22
Jan 2, 2020 at 21:40 history asked Meta CC BY-SA 4.0