#robotics Logs

Oct 22 2020

#robotics Calendar

02:27 AM Miyu is now known as hackkitten
03:47 AM Jak_o_Shadows: Hmm
03:47 AM Jak_o_Shadows: I wonder how fast I can sensibly toggle a mosfet
04:10 AM Jak_o_Shadows: ok. So if I don't use a prescaler, that's 48 MHz
04:11 AM Jak_o_Shadows: 16 bit timer. That's 65k. So that goes down to 732 Hz
04:14 AM Jak_o_Shadows: If I want it at at least 20 kHz, that's only 2400 count.
04:14 AM Jak_o_Shadows: So that's like 11 bits
04:16 AM Jak_o_Shadows: I mean, that'll probably do
04:18 AM Jak_o_Shadows: I probably can't even see more than like, 4 bits of brightness anyway
04:22 AM Jak_o_Shadows: I may be better off slowing it down. If I only have 10 bits...
04:29 AM Jak_o_Shadows: ok. Other way around. 10 bits means 1024 steps. 1024 steps should be one 20 kHz period. So each one is about 48ns
04:31 AM Jak_o_Shadows: or a clock rate of about 20 MHz
04:31 AM Jak_o_Shadows: so bugger it, use prescaler and I'm just about done
04:48 AM Jak_o_Shadows: and for the sequence updator... realstically that's like, 100 Hz
08:32 AM Phrkd is now known as Phreaked
09:23 AM Phrkd is now known as Phreaked
01:19 PM rue_mohr: what you trying to do?
01:19 PM rue_mohr: pwm a sine wave?