Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: mborgerson

Page 1 of 6 1 2 3 4

Search: Search took 0.00 seconds.

  1. Replies
    57
    Views
    3,106

    I assume that you are driving the sensor with 5V...

    I assume that you are driving the sensor with 5V and ground for your power. The outputs should be at about 2.5V each. The T4.1 ADC has an input limit of about 3.3Volts, so you probably need a...
  2. Replies
    57
    Views
    3,106

    The output data from the 1MSample logger is a...

    The output data from the 1MSample logger is a binary file with a sequence of 16-bit unsigned integers. Each integer can have a value between 0 and 4095, which represents the range of values output...
  3. Thread: Video test

    by mborgerson
    Replies
    2
    Views
    101

    I think Google is the only one where I have an...

    I think Google is the only one where I have an account. I'll see what I need to do for that. I wonder if I could put the video on my GitHub account, along with the code and demo .BMP files. ...
  4. Thread: Video test

    by mborgerson
    Replies
    2
    Views
    101

    Video test

    I have a video file (MP4) that I want to post to show PXP usage in slide show transitions on an ILI9341 display.

    How can I add this video to a forum post. The .mp4 fie is about 2.5MB.

    The...
  5. Replies
    57
    Views
    3,106

    Unfortunately, your circuit diagram illustrates a...

    Unfortunately, your circuit diagram illustrates a major problem with direct connection of Wheatstone bridges. They often present several K Ohms of impedance at the ADC inputs. This can slow the...
  6. Replies
    1
    Views
    72

    TimeStamping images

    For a few weeks now, I've been working on a motion-triggered OV7670 camera application to collect and save camera images to the Teensy 4.1 SD card. Quite often, I transfer the images to the PC using...
  7. Converting my T4.1 photo transfer app required...

    Converting my T4.1 photo transfer app required changing two lines of code and adding another to open SerialUSB1. It took a lot more lines to open a second serial port on the PC and to separate out...
  8. DOH! (Forehead Slap). I should have seen that...

    DOH! (Forehead Slap). I should have seen that when I was adding MTP to the USB descriptions file. I'll try it out on my C++ Builder host. After that, I hope to get a processing sketch with the...
  9. Two Serial Links on one USB Serial cable

    I would like to know if there is a way to have the Teensy USB cable support two separate serial communications links. At present, my host program handles text I/O and high-speed binary transfers on...
  10. Replies
    2
    Views
    175

    After a bit more research on JPEG encoders, I...

    After a bit more research on JPEG encoders, I found tooJpeg by Stephan Brumme. This encoder offered some significant advantages over the earlier version:

    1. No requirement for 256KB of...
  11. I have used the PXP for several functions to...

    I have used the PXP for several functions to support the ILI9341:

    1. Convert YUV422 data from an OV7670 camera to RGB565 for the ILI9341.
    2. Rotate the camera data to match the ILI9341 rotation...
  12. Replies
    2
    Views
    175

    JPEG Compression for OV7670 images

    I've downloaded a JPEG compression program and adapted it to run on the T4.1 to which I've connected my OV7670 camera. The original code used malloc() to allocate 256KB of buffers that hold...
  13. Replies
    0
    Views
    90

    Library Error and Status

    I am cleaning up my library code for the CSI camera interface and the Pixel pipeline. One thing that I want to do is to have the ability to notify users of status and errors. Presently, that is...
  14. Replies
    16
    Views
    887

    Nice to see you have things working for your...

    Nice to see you have things working for your application. I didn't run into the glitch with CSCOEFn restoration as my scheme for saving and restoring a Next_PXP array pulls all the data from the PXP...
  15. Replies
    631
    Views
    57,553

    Using MTP to fetch files written by a data logger...

    Using MTP to fetch files written by a data logger seems to fit within the MTP usage scheme. The data logger firmware is responsible for handling the file system and the Storage portion of the MTP...
  16. I would go even further and move those I and Q...

    I would go even further and move those I and Q arrays into DTCM to avoid any possibility of cache interference with the collection. As defragster points out, it is only 33K of memory, but that is...
  17. Replies
    631
    Views
    57,553

    I agree that sending a command via serial to...

    I agree that sending a command via serial to cause the MTP responder to update its database seems weird. There are some cases where it can be useful:

    1. If the Teensy is in the middle of a data...
  18. Also make sure that your software doesn't rely on...

    Also make sure that your software doesn't rely on comparisons with millis() for timing. The millis() count will overflow in 49.7 days. Of course, micros() overflows even more quickly.
  19. Replies
    1
    Views
    113

    You are correct that the external and USB5V are...

    You are correct that the external and USB5V are in parallel in that they both connect to the input of the Teensy regulator that provides 3.3V. You need to disconnect the USB5V by cutting the jumper...
  20. Replies
    631
    Views
    57,553

    Note that it is not necessary to physically...

    Note that it is not necessary to physically unplug the USB or use the Windows device manager to get the PC to update the MTP status. A call to usb_init() will reset the usb link and windows will...
  21. Not only plausible, but likely. The T4.x USB...

    Not only plausible, but likely. The T4.x USB serial interface is capable of transmitting about 18-20MBytes/second, while the T3.X interfaces are limited to about 1MByte/second. I was able to...
  22. I agree with rcarr that having NUMLAMPS = 7 and...

    I agree with rcarr that having NUMLAMPS = 7 and incomplete initialization of the pwmPins array is a problem waiting to happen.

    I wrote a short sketch to check out the values in the pwmPins array...
  23. Replies
    16
    Views
    887

    A follow up note with some PXP conversion...

    A follow up note with some PXP conversion timings:

    VGA YUV422 to QVGA RGB565 70.43mSec
    QVGA YUV422 to QVGA RGB565 22.15mSec
    QQVGA YUV422 to QVGA RGB565 10.13mSec
    ...
  24. Replies
    16
    Views
    887

    I've made good progress on one of my goals:...

    I've made good progress on one of my goals: having the PXP convert incoming YUV422 image buffers from the OV7670 camera to QVGA RGB565 buffers for display on an ILI9341 board. I have a test program...
  25. After a couple of days of programming that seemed...

    After a couple of days of programming that seemed way too close to working for a living, I have the OV7670 sending YUV data to my PC host program. A lot of the programming was in the addition YUV...
  26. I faced similar issues about 5 years ago when I...

    I faced similar issues about 5 years ago when I built a Robo-Boat to do depth surveys of lakes with an onboard depth sounder. I eventually developed software to have the boat do a raster scan with...
  27. Replies
    16
    Views
    887

    Here are two demo programs that set up the pixel...

    Here are two demo programs that set up the pixel pipeline to do rotations.

    The first program does the actual PXP setup, with OV7670 Camera output rotated and displayed on an ILI9341 TFT module. ...
  28. My first guess would be that the second ILI9488...

    My first guess would be that the second ILI9488 board isn't properly tri-stating the MISO line. Looks like a problem needing an oscilloscope.
  29. The first thing to realize is that a GPS doesn't...

    The first thing to realize is that a GPS doesn't do direction of motion well unless it is moving at a significant speed. If your system is an aircraft, that is usually not a problem because if it...
  30. Replies
    16
    Views
    887

    I also have a couple of projects that will...

    I also have a couple of projects that will benefit from dynamic changes in the PXP operation with the NEXT_PXP capabilities. For example:

    1. Set up the OV7670 camera to produce a VGA image in...
  31. Replies
    16
    Views
    887

    There seems to be a bunch of mental overhead in...

    There seems to be a bunch of mental overhead in the updating of the next_PXP structure for what I see to be slight gain. I see it as necessary only if you are going to do two different things in...
  32. Replies
    16
    Views
    887

    I did a simple test to measure the time needed to...

    I did a simple test to measure the time needed to rotate a QVGA image by 90 degrees using either a programmed rotation or a PXP rotation. Here are the results:


    Rotation times as a function of...
  33. The ability to capture and store a full VGA...

    The ability to capture and store a full VGA image, while displaying a QVGA or similar smaller image on an LCD display is one of the reasons that I'm looking at the Pixel Pipeline. If I could set up...
  34. Replies
    16
    Views
    887

    I just started putting together some pixel...

    I just started putting together some pixel pipeline code today--aimed at comparing its rotate function with a software version in terms of speed and complexity. I haven't even started on the ...
  35. I changed the algorithm to step incrementally in...

    I changed the algorithm to step incrementally in destination addresses and got the following:


    DMAMEM EXTMEM 7919 to 8109
    DMAMEM DMAMEM 1062 to 1110


    here is the source for the modified...
  36. Replies
    7
    Views
    503

    KurtE: I see that you have avoided possible...

    KurtE:


    I see that you have avoided possible frame buffer overflows by putting all the buffers in EXTMEM where there is plenty of room for a VGA image. You have also avoided resolution changes...
  37. Since using some of Vindar's functionality...

    Since using some of Vindar's functionality prefers rotation 0 on the ILI9341, I tested the time to rotate an image 90 degrees to work with that screen rotation.
    Here are the results for rotating a...
  38. Replies
    7
    Views
    503

    I had a version early on that captured images by...

    I had a version early on that captured images by switching the CSI buffer address for one cycle. It worked fine until I forgot and changed from QVGA to VGA and switched in a QVGA-sized buffer....
  39. Unfortunately, screen rotation 0 does not play...

    Unfortunately, screen rotation 0 does not play well with the OV7670. You need to use rotation 3 to get the long axis of the display to align with the long axis of the camera window. Does the...
  40. I look forward to trying this library. I will...

    I look forward to trying this library. I will have to do a bit of rewiring to use it. I am currently running ILI9341_t3N with pin 9 wired as the D/C control. Since pin 9 is not an SPI CS pin, I...
  41. My OV7670 camera library, which just got a new...

    My OV7670 camera library, which just got a new version posted in the Project Guidance forum, is guilty of the brute force reinitialization of all camera registers on a resolution change. I need to...
  42. Replies
    7
    Views
    503

    I've posted a new version of the OV7670 library. ...

    I've posted a new version of the OV7670 library. Here are a few of the changes:

    * Fixed a bug where the .bmp file header was not properly updated when changing the camera window size.
    * Added...
  43. I suspect that it is tied to the orientation of...

    I suspect that it is tied to the orientation of the camera module to the ILI9341. My camera is mounted so that the horizontal axis (320 pixels) is aligned with the long axis of the ILI9341. If...
  44. Here's a simple piece of code that does 15FPS...

    Here's a simple piece of code that does 15FPS video with the OV7670 library (posted in Project Guidance here: https://forum.pjrc.com/threads/64132-CSI-Camera-Library) and the ILI9341_T3n library from...
  45. I extracted the setup and send_tft function from...

    I extracted the setup and send_tft function from the 201112a version of CSI_41_main and plugged it into my library test program. It worked right out of the zip file! The only change I had to make...
  46. Replies
    65
    Views
    4,357

    I think I just answered my own question. ...

    I think I just answered my own question. Recalling the difficulties with double-spaced cut and pasted Serial Monitor output that disappeared when you choose the port from "serial ports" instead of...
  47. Replies
    65
    Views
    4,357

    Is there any chance of making the text entry box...

    Is there any chance of making the text entry box and "Send" button at the bottom of the Serial Plotter actually send data to the Teensy? The plotter is occasionally useful when I want to view an...
  48. I just noticed that in your ADC initialization...

    I just noticed that in your ADC initialization code you are using

    adc->adc0->setReference(ADC_REFERENCE::REF_EXT);
    What is the source of your external reference? Any glitches in that reference...
  49. I should add that I've seen lots of glitches in...

    I should add that I've seen lots of glitches in data collection on both Naval and oceanographic research vessels. During one cruise we found a lot of glitches associated with starting and stopping a...
  50. I finally got around to taking a closer look at...

    I finally got around to taking a closer look at the code that you provided in Post #1 and a few things caught my notice:

    1. You have been very liberal in sprinkling __disable_irq() and...
Results 1 to 50 of 283
Page 1 of 6 1 2 3 4