Post Created date
Multiple AVR in a single circuit
Brian Fairchild wrote: I have a design here, just waiting for someone to push the GO button, that has 14 (!) microcontrollers on the same PCB.   I will go find my hat and...
Saturday, 23 April 2016 - 06:16
Implementing PID control
PID loop tuning, in theory, involves quite a lot of elaborate math.  As as been pointed out before, it depends on a lot of things.  It is often very much easier to...
Thursday, 21 April 2016 - 08:43
Dividing the ADC value with an integer or a float
kk6gm wrote: Scroungre wrote: Waitaminutehere....  He REALLY wants to divide by, get this, "20.48".   2048.   So quit it with the dividing entirely.  Multiply...
Thursday, 21 April 2016 - 06:43
Dividing the ADC value with an integer or a float
Rezer wrote: Problem is division isn't his problem, it's just causing unexpected behavior elsewhere in the program.  I highly doubt an optimized division routine will help at...
Thursday, 21 April 2016 - 00:22
Dividing the ADC value with an integer or a float
Waitaminutehere....  He REALLY wants to divide by, get this, "20.48".   2048.   So quit it with the dividing entirely.  Multiply by 100, shift right 11, and...
Wednesday, 20 April 2016 - 22:08
Dividing the ADC value with an integer or a float
It seems to me that your division by 10 works even with a remainder.  Therefore the problem is not in your division. Is is possible that you've not declared 'voltage' as '...
Wednesday, 20 April 2016 - 08:23
External clock requirements and XTAL2 output.
I'd strongly recommend you drop this idea, and get a full-canned oscillator.  Saves you a pin on the AVR, if nothing else, and will provide a reliable clock to everything...
Monday, 18 April 2016 - 02:28
Multiple AVR in a single circuit
I'm still fairly proud of a board I made some years ago with seven AVRs on board, six of them (tiny2313s) in parallel for speed (the board was fundamentally six channels. ...
Monday, 18 April 2016 - 02:22
Need help in interfacing an incremental optical rotary encoder
PS - I was charged with interfacing some Chinese handwheel encoders once, and by abusing them I could get 2kHz out of them.  By twiddling them as I was supposed to I could...
Thursday, 24 March 2016 - 23:52
Need help in interfacing an incremental optical rotary encoder
The motion controllers I work with are spec'd for 50,000 steps per second on six axes, although they can do better than 60,000 on eight.  The motor drives themselves multiply...
Thursday, 24 March 2016 - 23:47
Need help in interfacing an incremental optical rotary encoder
Quadrature encoders are one of those odd gadgets that seem simple, but can have fascinating little details that make them highly obnoxious.   I would like to direct your...
Wednesday, 23 March 2016 - 09:40
How to use TWI in atmega32A in assembler?
I beat my head against the AVR's TWI for awhile, and found this thread after a quick search.  Note that this thread is five years old, I'm just lighting it up again now....
Saturday, 16 January 2016 - 16:52