el_supremo
Well-known member
I compiled and installed your code. Works here.
Pete
Pete
T3.6:
5000006
5000005
5000006
5000005
T4.0
4000008
3999998
4000009
3999997
4000002
With T3.6 sending 50Mhz to the the T4:
4999994
4999994
4999995
4999994
4999994
with t3.6 sending 75Mhz
7499993
7499992
7499992
7499991
7499992
7499993
How do you get T3.6 to generate 75 mhz? max PWM is F_BUS/2 ?@manitou - @defragster
Just did a test where I am using a T3.6 to generate a 40, 50 and 75Mhz using analogWriteFreq(8, xxx) to the T4 that generates a 50Mhz on its pin8. Measured values look good on the T4 and still not sure what the issue is going from T4 to T4. BTW I am using long wires going from the T3.6 to the T4 (240mm)
@manitou
Ok I didn't notice that - did it at about 8am this morning. Anyway, not sure what the heck I did now. I just tried to repeat it with the T3.6 and couldn't. Losing my mind now.
When you re-ran the tests on the production T4 with the clock gen did you use the library or you stand alone sketch.
@manitou
Resetting up the clock gen with the production T4 as a retest. Have to remember with one of breakout boards to see the delta - then going to retry with @defragster's sketch. Etc.
BTW. Whats the max I can get out of the T3.6?
ArduCAM for T4
With an assist from @KurtE (Thanks Kurt) I managed to get ArduCAM working on the T3.x's (tested 3.2 and T3.6) and the T4 as well. I tested with the ArduCAM Mini 2MP and the ArduCAM Shield V2 (w/LCD on it). Both are streaming to the desktop and the shield now displays to the LCD as well. Posted here since this is still a WIP and code needs clean up. But if you want to give it a try the library is posted here: https://github.com/mjs513/WIP/tree/master/ArduCAM_t4
Hello mjs513:
Is this the model you tested with?
https://www.robotshop.com/en/arducam-mini-camera-module-shield-2-mp-ov2640-arduino.html
Can you share what libraries can be used to get a snapshot from the camera and do simple image processing?
Thanks in advance.
I've committed a fix for simultaneous I2S audio input & output.
https://github.com/PaulStoffregen/Audio/commit/bd5332f9d9a6c3095c0563dacafd086b37474443
Looks like input was working, and output was working, but not both at the same time. Now they both work if used together.
@manitou - @defragster
Could there be a problem timers for pwm/analogwritefreq conflicting with the freq count timers?
Note pin 10 (and all quadtimer PWM pins) can't do 75mhz, see my post
https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=212043&viewfull=1#post212043
the core PWM quadtimer driver should be extended to support 75mhz, since the timer can in fact produce 75mhz PWM (50% duty)
pins 8 and 23 are flexPWM and they can do 75mhz
static boolean eyeInMotion = false;
static int16_t eyeOldX = 512, eyeOldY = 512, eyeNewX = 512, eyeNewY = 512;
static uint32_t eyeMoveStartTime = 0L;
static int32_t eyeMoveDuration = 0L;
boolean eyeInMotion = false;
int16_t eyeOldX = 512, eyeOldY = 512, eyeNewX = 512, eyeNewY = 512;
uint32_t eyeMoveStartTime = 0L;
int32_t eyeMoveDuration = 0L;
To be honest - forgot about those two posts. Sorry. Now the reason for deltas between 30-50 Mhz (stuck at 37.5 Mhz) and between 60-65 Mhz? Know we talked about this when we working with your standalone. Does that still apply.