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

Search:

Type: Posts; User: mborgerson

Page 1 of 5 1 2 3 4

Search: Search took 0.00 seconds.

  1. 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...
  2. Replies
    2
    Views
    157

    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...
  3. 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...
  4. 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...
  5. 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...
  6. Replies
    65
    Views
    2,903

    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...
  7. Replies
    65
    Views
    2,903

    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...
  8. 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...
  9. 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...
  10. 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...
  11. My new OV7670 library includes a SetCSIClock()...

    My new OV7670 library includes a SetCSIClock() function with an enum csispeed{CIS12, CSI24} input parameter.

    I ran into the same weird color issue with CSI clock at 24MHz. At this speed, the CSI...
  12. Replies
    2
    Views
    157

    OV7670 library

    Here is a first attempt at an OV7670 library. It has a very simple API and I am looking for suggestions on additions. I will look at the Arduino_OV7670_Master code for possible additions.

    There...
  13. Replies
    90
    Views
    3,954

    The instrument involved is called a Chi-Pod. ...

    The instrument involved is called a Chi-Pod. You can find a description here: http://mixing.coas.oregonstate.edu/research/moored_mixing/

    The first of these instruments were deployed in about...
  14. It's even more complex on the T4.x. Many of the...

    It's even more complex on the T4.x. Many of the pin interrupts use a single vector in the default fast mode. That means that the interrupt handler has to cycle through all the pin flags to find...
  15. Replies
    5
    Views
    182

    I've seen RF interference synchronized to SD...

    I've seen RF interference synchronized to SD writes on systems with sensitive high-impedance sensors such as peizoelectric shear sensors. There are two possible sources for this interference: the...
  16. Are your T4, the laptop, and signal generator...

    Are your T4, the laptop, and signal generator connected continuously while you collect data? If so, I suppose your laptop is connected to its charger while collecting. If that is the case, make...
  17. Replies
    90
    Views
    3,954

    I suspect that the Sparkfun library isn't really...

    I suspect that the Sparkfun library isn't really the problem. I think the wire library also runs at a 400KHz clock---which means an absolute maximum of 50Kbytes/second, or 20 microseconds per byte. ...
  18. Replies
    475
    Views
    48,871

    While playing around with the MTP responder today...

    While playing around with the MTP responder today I think I've found a way to notify a connected PC that the Teensy directory needs to be updated.\



    void CMRB(void){

    LEDON
    usb_init();...
  19. The test program does require that you have the...

    The test program does require that you have the SDFAT 2.0beta in your Arduino library folder. As others have pointed out, the functionality of the SDFat 2.0 is being integrated into SD in the new...
  20. Replies
    475
    Views
    48,871

    I'll be trying this out today--installing the TD...

    I'll be trying this out today--installing the TD 1.54 Beta #4 seems to break my earlier MTP responder.

    Regarding the T4.1 implementation is the following still true:


    An index record occupies...
  21. Replies
    65
    Views
    2,903

    A question about the SD wrapper for SDFat: Will...

    A question about the SD wrapper for SDFat: Will I be able to use the sync() function if I use only SD.h? I've found that the sync() function is very helpful in long data logging sessions for two...
  22. KurtE: Nice to see you got it working. I...

    KurtE: Nice to see you got it working. I ran up against the same Pin 41 issue when using the CSI pins in polled mode testing with my soldered breadboard. I added a jumper to pin 37 also. ...
  23. I saw lots of flashing with my PC app also. In...

    I saw lots of flashing with my PC app also. In that case, it required a lot of investigation of how C++ Builder handles the display of offscreen bitmaps. I was able to fixt the PC part to...
  24. That is a lot like the SCI demo in the MCU...

    That is a lot like the SCI demo in the MCU Expresso. I had to download 1.5GB of IDE and other stuff to get the source for the NXP SCI demo for the RT1050, but it was worth it to look over their...
  25. KurtE: It looks like the header near the SD...

    KurtE: It looks like the header near the SD card socket might prevent removal of the SD card. It the T4.1 is elevated on a socket strip, you might be OK, especially if you use a right-angle...
  26. Note to those having problems with the Wire...

    Note to those having problems with the Wire scanner and the OV7670: I don't think the camera will respond to wire communications unless it has a proper XCLK input to sequence the internal logic...
  27. Solving the HSTART puzzle

    One of the most puzzling aspects of setting up the OV7670 is picking the proper set of values for registers HSTART, HSTOP, VSTART and VSTOP. The puzzling part is that HSTOP is usually smaller...
  28. LOL! Just because the software works on my board...

    LOL! Just because the software works on my board doesn't mean it will work on your board! As a point of reference, here is the board I'm using:
    ...
  29. Replies
    5
    Views
    298

    TLI (the opposite of Too Much Information)! ...

    TLI (the opposite of Too Much Information)! Sampling 4 channels at 40KHz is no big issue--the T4.1 can easily sample at up to 1 million samples per second. The details in which the devil resides...
  30. Replies
    2
    Views
    157

    CSI Camera Library

    In a thread on the technical support forum https://forum.pjrc.com/threads/63195-Problem-trying-to-read-OV7670-camera-under-IRQ-Teensy-4-0
    I've been working with the OV7670 camera and a number of...
  31. If you have byte reversal, the image will look...

    If you have byte reversal, the image will look like a thermal sensor image with lots of bright red and green, but with the expected shapes.

    You can fix that by starting your bitmap upload offset...
  32. Replies
    5
    Views
    217

    Is it possible that the T3.2 and the Arduino Mega...

    Is it possible that the T3.2 and the Arduino Mega have different default settings for SPI clock phase and polarity?
  33. I'm using Arduino 1.8.13 on Win10x64. I've...

    I'm using Arduino 1.8.13 on Win10x64.

    I've added some code to save the bitmap to a .bmp file on the SD card so you can plug it in to your PC to view the image.



    // t4.1 PIN input and image...
  34. I think the pin definitions in OV7670_MB are...

    I think the pin definitions in OV7670_MB are commented out. They should have been removed as they are not used.

    The output is an 640 x 480 array of 16-bit RGB565 values. My PC host converts...
  35. Sorry about that. When I posted the CSI and...

    Sorry about that. When I posted the CSI and Camera stuff, I forgot that those elements referred to some global variables in the interrupt routine for the CSI.

    This simple front end should build...
  36. The pullups on SCL and SDA are 4.02K

    The pullups on SCL and SDA are 4.02K
  37. Workable CSI code

    I just noted that on my capture of the Excel sheet, I had CSI_PIXCLK on pin 35-----which will work if you adjust the IOMux setup. However. after I captured that picture, I decided to move PIXCLK to...
  38. OK, I've finally got the T4.1 and the OV7670...

    OK, I've finally got the T4.1 and the OV7670 talking nicely. I spent most of the day tracking down one misconfigured register in the CSI. I kept having problems with the picture wandering around...
  39. I'm about 90% of the way to getting the T4.1 to...

    I'm about 90% of the way to getting the T4.1 to read the OV7670 using the CSI. It's pretty neat in that it just cranks away under the hood, collecting buffers of VGA images using DMA. You don't...
  40. You could also us the ADC timer of the ADC...

    You could also us the ADC timer of the ADC library to set the sampling interval. If you do that properly, you can avoid the sampling jitter that can happen with an external timer that can have its'...
  41. Five or ten years ago, I would have bid on this...

    Five or ten years ago, I would have bid on this project at a price that would send my wife and me to Europe for a month of travel in Switzerland and along the Rhine river in Germany. However, I'm...
  42. DOH! (Slapping self upside the head!) So in...

    DOH! (Slapping self upside the head!) So in this application, it should be able to crank right along as it is reading linearly increasing contiguous bytes. The PSRam should only require an initial...
  43. I've tuned up my TA4.1 code and my PC image host...

    I've tuned up my TA4.1 code and my PC image host program to speed up transfer of images from the PSRam image buffer to the PC. In fact, it seems to be working impossibly well! I'm getting a...
  44. I've gotten my soldered breadboard working with...

    I've gotten my soldered breadboard working with the t4.1 wired for the pins needed to use the SCI. The current version of my code follows Cyrille's plan (interrupts for VSync and HSync and polled...
  45. Replies
    8
    Views
    391

    Once you figure out how to get part-per-million...

    Once you figure out how to get part-per-million timing resolution, you can start to worry about stability. Since the crystals on the Teensy probably have temperature coefficients of up to 25PPM/deg...
  46. To modify the bottom part of the Arduino IDE, ...

    To modify the bottom part of the Arduino IDE, you need to edit the Theme.txt file which is at:

    C:\arduino-1.8.13\lib\theme\theme.txt (Arduino was placed at C:\ on my machine)

    Here is the...
  47. This code from BrainGram seems to connect signals...

    This code from BrainGram seems to connect signals 2-9 by manipulating the IOMUX (which, like the XBARs is still a mystery to me):



    // VSYNC
    IOMUXC_SW_MUX_CTL_PAD_GPIO_AD_B1_06 = 0x4U;
    ...
  48. In some ways, the analog capabilities of the T4.X...

    In some ways, the analog capabilities of the T4.X fall behind the T3.X. The T4.X has no internal DAC. They are also limited to using the 3.3V power supply as the ADC reference voltage. This...
  49. Replies
    23
    Views
    1,023

    I just noted that you asked for a chirp ranging...

    I just noted that you asked for a chirp ranging from 1Hz to 60KHz to play 6 times per second. You need to rethink that frequency range, since you can't play a 1Hz signal 6 times per second!
  50. Replies
    23
    Views
    1,023

    Since the T4.1 doesn't have an internal DAC, you...

    Since the T4.1 doesn't have an internal DAC, you would need to add an external DAC to get a sine-wave output.

    Here is the code I used to make a chirp table:


    // chirp data float from -1.9 to...
Results 1 to 50 of 243
Page 1 of 5 1 2 3 4