![]() If you are interested in using interrupts, you must read the section on the individual interrupt pins very carefully, as they have different capabilities, especially where wake/sleep states are concerned. If there are no other possible ways of counting these encoder index pulses without using interrupts and without missing a single pulse (here comes the need for high accuracy), I'm afraid I have to go ahead with the soldering and hope for the best. The processor data sheet is the very best source of information about all aspects of the MCU. I'm seriously considering soldering extra wires to the timer input pins at the risk of damaging the board (!!). I think this would significantly affect the code execution especially since there is a lot of serial communication happening which gets affected by interrupts.Īs of this moment I'm still convinced that using internal timers (due to the constraints I mentioned before) is the cleanest option since all the counting is handled in hardware. Project description The primary purpose of this project is to demonstrate the interrupt system on the Arduino. The reason I can't use an interrupt to count these is that the motor is geared on the output side (160:1) and would lead to 160 interrupts for every output rotation which is every couple of seconds (depending upon speed). The signal I'm counting is encoder index signals from three different motors. Each microcontroller is specific because not every digital pin can be used to capture an external interrupt from. If fabricated into a single board after the current prototyping stage, it would the easiest and cleanest option. Handling the External Interrupts with Arduino. Is there any way I can assign 2 more pins (aside from the predetermined 6 on the Mega) Thanks, Jeff F. ![]() ![]() I've considered using 3 external timing chips but the project already has quite a few external chips which is now causing time (I'll have to put in a purchase order which then has to be approved and then so on and so forth which takes more time than I can afford) and space constraints. I'm in need of 8 interrupt pins to read channels A & B of four motors and do not want to invest in the DUE (since any of it's pins can allegedly be used for interrupts), as there seems to still be a lot of confusion in using it since it's relatively new.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |