Show Posts
|
|
Pages: 1 [2] 3 4 5
|
|
17
|
Products / Arduino Due / Quadrature encoder
|
on: December 12, 2012, 01:16:58 am
|
|
Anyone got a Quadrature encoder up and running on the Due ? Can you share the setup ? The tables and the timer (TC) are somewhat bewildering to me and I cannot find any examples on Atmels website for the SAM3X chip that shows any source code
Cheers K
|
|
|
|
|
19
|
Products / Arduino Due / Re: Due External Interrupts
|
on: December 06, 2012, 07:41:07 pm
|
|
You properly should not do anything like serial.print inside the ISR. Just set a flag and print elsewhere. I think print is buffered or something as the code locks up on a mega when triggering the interrupt.
|
|
|
|
|
20
|
Products / Arduino Due / Re: Due External Interrupts
|
on: December 05, 2012, 01:50:51 pm
|
|
On the 8bit Arduino boards I have, the firmware appears to be doing something strange at each startup, so could be tied up with that. I will try to run your code on another board when I get home tonight.
|
|
|
|
|
21
|
Products / Arduino Due / Re: Due External Interrupts
|
on: December 05, 2012, 01:36:33 am
|
|
I haven't got a Due board, so Im guessing.
Is the 2.5V well within the specs for a high ?, maybe try 3V
Are the other pins floating, try tying high or low
Have you tried on another board, ie 8 bit, whats the result ?
Also on the output shown, is that without pressing the button at all ? like never pressing the button
|
|
|
|
|
24
|
Using Arduino / Programming Questions / How to fit a variable in a fixed position in ram
|
on: December 05, 2012, 12:03:15 am
|
|
How do I assign variables to a fixed location in ram in C ?
I have a quite a few variables declared as static and what I would like to do is to place these variables in a set order and then later send these via serial in a set order by starting a ram address xx
Or should I just let the compiler take care of this ?
Ta
Kim
|
|
|
|
|
30
|
Using Arduino / Motors, Mechanics, and Power / Re: Motor/encoder calculations - Accell, Decell and Stopping Distance
|
on: October 30, 2012, 01:34:18 pm
|
Well, from what I can gather, I properly need to update speed/count/corrections every 1mS or so. It seems that generally a PI function is used, instead of a PID, when it comes to motor control. I'll spend some time trolling through PIC, Freescale, etc website looking for papers. Some of the specific motor control chips may have some S/W that I can look at. Thanks for the AccelStepper suggestion. Their site has some good stuff and the forum is usefull :-) in case someone else is looking, here is the link http://www.open.com.au/mikem/arduino/AccelStepper/K
|
|
|
|
|