Post Created date
Parallel analogue traces and return paths
I don't know what kind of DAC that is, but generally the first thing I do with DAC outputs is stuff them into an op-amp buffer.  ESPECIALLY if they're going through a...
Wednesday, 7 November 2018 - 03:53
Rotary Encoder (ATmega 328)
I actually did want to run mine at 20MHz, 'cause that's what the 2313s would do (and get the bus transmissions over faster) but there was also a 32u4 on the board, and they really...
Saturday, 3 November 2018 - 15:54
Rotary Encoder (ATmega 328)
Light sources for optical encoders are LEDs.  Roughly speaking, they're round.  Move a slot across a circle and integrate the light you see.  It's a sine wave....
Saturday, 3 November 2018 - 03:28
Rotary Encoder (ATmega 328)
Technically it's sinusoidal, because the source is circular.  S.
Friday, 2 November 2018 - 23:50
Rotary Encoder (ATmega 328)
I dunno if this is unclear, but in case it is have some fun logic pseudo-code:   IF ((Falling Edge A) AND (B == 0)) THEN counter++ IF ((Falling Edge A) AND (B == 1)) THEN...
Friday, 2 November 2018 - 21:01
Rotary Encoder (ATmega 328)
m.majid wrote: processing all four edges of two pulses inside one ISR is wrong, since two different pulses are binded to one ISR.   Which does cut to the heart of the whole...
Friday, 2 November 2018 - 20:48
Rotary Encoder (ATmega 328)
Never tried the pendulum test.  Tempted to!   Mine are used as 'monitors' for fast motion-control systems, and the idea is you give the motor a command to move, say, 25,...
Friday, 2 November 2018 - 18:10
Rotary Encoder (ATmega 328)
Processing all four edges of a quadrature encoder is a near-free way to quadruple your encoder's resolution.  Direction is just a matter of logic.   Using interrupts is...
Friday, 2 November 2018 - 16:44
Rotary Encoder (ATmega 328)
Kartman wrote: No need for resistors or capacitors or external interrupts. How many pulses per second can these human operated devices generate? Not many methinks. Can be polled...
Tuesday, 30 October 2018 - 05:20
Rotary Encoder (ATmega 328)
ERK!!  You're putting an RC delay into a uC pin?  Hello, dithering...   Don't Do That.    Or at the very least, insist upon multiple sampling the results...
Tuesday, 30 October 2018 - 02:47
What drive/buffer can be used for controlling 100 DP1903 by a MCU
If you want high-power push-pulls you can get everything from a 75153 to an LMD1820.  S.
Wednesday, 12 September 2018 - 21:45
What drive/buffer can be used for controlling 100 DP1903 by a MCU
Yep.  Needs pullups.
Wednesday, 12 September 2018 - 09:14