camerart
Well-Known Member
Hi M,Is the incremental encoder human driven? I assume that the GPS interrupt is a USART interrupt?
Mike.
Yes, me human
The GPS is USART INTERRUPT.
C
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Hi M,Is the incremental encoder human driven? I assume that the GPS interrupt is a USART interrupt?
Mike.
Supply voltage for 74HC164 is 2.0-6.0VHi M,
Ok, accepted!
I looked at the suggested shift register, and note that it maybe a to high voltage, this PCB is mostly 3.3v.
If this is the best way then i'll look for lower voltage types.
The QEI is conetected to an incremental encoder (360°) for aiming. There is also a GPS which has an INTERRUPT too.
C.
Hi M,Edit, are you able to switch chips?
Hi J,Supply voltage for 74HC164 is 2.0-6.0V
Hi j,Yes, it is the max output current from the pins, when Vs = 5V.
It is less, when Vs=3.3V
Hi M,C,
The 8 PWMs are simply that PWM only and no good for servos. The 4431 has 2 CCP modules that can run servos so only 2 possible without jitter. Using a 74HC164 clocked by RC1 (CCP1 output) will be able to drive 8 servos.
When you say "the other chip has the bigger brain", what do you mean? The 4431 has 8k (words) program memory and runs at 64MHz. How much bigger do you need?
Mike.
While we wait, do you want to carry on testing 'your' version, or are you expecting it ot jitter?
Hi M,A working version is above (#188). It might jitter or it might not, depends if your servos can differentiate 125uS difference or if Oshonsoft is messing with the timing.
Mike.
Hi M,The code in #226 has had some corrections to it so try that. Note PLL is not turned on so that needs adding.
Mike.
Hi M,The code in #226 has had some corrections to it so try that. Note PLL is not turned on so that needs adding.
Mike.
Hi M,C can you confirm that doing CCPR1 = 0x55AA writes 0x55 to CCPR1H and 0xaa CCPR1L?
Mike.
Edit, can Ian Rogers or ericgibbs confirm this?
Hi M,Giving up. Bye.
Mike.
Hi M,I'm happy to try with the HC164s but do believe that 1 chip can do everything you need. Time will tell.
Mike.