Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 5 of 5

Thread: Need Teensy camera advice for streaming frames over UDP

  1. #1
    Senior Member
    Join Date
    Oct 2019
    Posts
    144

    Need Teensy camera advice for streaming frames over UDP

    I'm using an Arducam 5642 and got burned: Although I can get each frame quickly over SPI, the camera takes forever to make the data available, so I get a frame rate of about 2 seconds.

    I have the UDP JPG datapath handled, I just need to find a camera that states its specs accurately. Any advice on a simple SPI camera with good library support?

    Also, with a Teensy 4.1 with the extra PSRAM, using a parallel camera might be possible. Anyone tried this?

  2. #2
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    9,117
    You might look at some of the forum threads that talk about some cameras like the OV7670.
    Like:
    https://forum.pjrc.com/threads/63195...IRQ-Teensy-4-0
    https://forum.pjrc.com/threads/64132-CSI-Camera-Library
    https://forum.pjrc.com/threads/66771...d-Beta-Testing

    There are probably several others. Also some of us also have played some with Sparkfn HIMAX monochrome camera on beta of Teensy MicroMod.

    We played with three different ways to do parallel data including DMA.

    The first thread: shows code that uses GPIO pins and DMA to read from the camera. Note T4 there are not 8 contiguous pins in the same port so you
    have to do a little bit of massaging of the data.

    The Second thread (and some in first thread) talk about using the CSI pins on the T4.1 (we can handle 8 bit transfers) to do reading from the camera.
    Note: T4 does not bring out enough pins to do CSI.

    The third thread, specific to MicroMod it shows a way to use FLEX IO and DMA to be able to transfer images. Note: this camera supports 4 bit and 8 bit transfers.
    Only the T4 MMOD has enough pins to do 8 on FlexIO(1 or 2). Probably can do 4 bit on T4.1 and maybe 4, but not enough to do 8... Do have enough on FlexIO3, but FlexIO3 does not support DMA.

  3. #3
    Senior Member
    Join Date
    Oct 2019
    Posts
    144
    Thanks. I'm using a T4.1, so it looks like I can use an OV7670 without cost issues.
    It looks like the libraries were last worked on last year. Were they left in a mature state?

  4. #4
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    9,117
    I am not sure what state the CSI library is in... probably best for the owner of it to answer. I will be trying some of it out again at some point with the Himax monochrome, more out of curiosity.

  5. #5
    Senior Member
    Join Date
    Oct 2019
    Posts
    144
    I'm going through the OV7670 libraries and at first pass I can't find pin assignments. It seems these libraries are using the 'CMOS sensor interface'. I think I need to read about that first. I can't find much via google. Any links to Teensy pin mappings?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •