Search results

  1. S

    Raft of Teensy 4 pin\port parallel read questions

    Thanks! This is very useful, ordering some T_4s right away :)
  2. S

    Raft of Teensy 4 pin\port parallel read questions

    I would be also very interested to know if such a code works with Teensy 4.0. I am using Teensy 3.6 with the similar code as above to read a CMOS imaging sensor at about 10 msps. The larger RAM of Teensy 4.0 would be nice to use for my application.
  3. S

    Feasability of using Teensy 3.1 for a telescope autoguider (processing small images)

    Thanks to the unfortunate current situation and having more time at home I have managed to complete this project. Well..kind of, it still has bugs and my self-learned coding skills are probably the most inefficient :) To sum up what the telescope autoguider does: I am taking images from a...
  4. S

    Feasability of using Teensy 3.1 for a telescope autoguider (processing small images)

    Unfortunately, due to not enough time for the hobby I was not able to finish this project. I have the device in a box with all the hardware to communicate with the telescope, but would need time to develop the calibration and the application of the measurements that the above code is giving me...
  5. S

    Feasability of using Teensy 3.1 for a telescope autoguider (processing small images)

    Arsenio, I am calculating the center of mass of pixels of a subimage (e.g. i take 12x12 pixels). Basically it is a simple mathematical formula (second equation here): https://en.wikipedia.org/wiki/Center_of_mass#A_system_of_particles Each pixel is treated as a particle of a certain distance...
  6. S

    Feasability of using Teensy 3.1 for a telescope autoguider (processing small images)

    Thanks Paul! I found a typo (one input had a wrong pin assigned). Now it works perfectly! Even better like that (data is valid already from 1 ns after rising edge of pixel clock), less likely to run out of time and skip a read: uint16_t data [240][320] = {0}; cli(); for (int n=0; n < 240...
  7. S

    High speed (10Mhz) parallel transfers from a 10MSPS ADC on a Teensy 3.6?

    Your problem seems to be quite similar than mine, check https://forum.pjrc.com/threads/31029-Feasability-of-using-Teensy-3-1-for-a-telescope-autoguider-(processing-small-images)?goto=newpost I managed to get only 4 MHz out of Teensy 3.2 with a bit less sophisticated code (with zero jitter) -...
  8. S

    Feasability of using Teensy 3.1 for a telescope autoguider (processing small images)

    This project has been put aside for quite some time (not enough free time...), but I was really happy when Teensy 3.6 was announced, since it meant that I could buffer whole LCD frame with 16bit pixel data. So far I was unsuccessful in porting the code that worked for Teensy 3.2 to Teensy 3.6...
  9. S

    Feasability of using Teensy 3.1 for a telescope autoguider (processing small images)

    Yes, only MT9M001, Teensy 3.2 and LCD! Capabilities of Teensy are impressive, it just lacks RAM if I would like to do more. 256k would be perfect to have to work with 320x240 images! and...as I mentioned earlier hot pixels are indeed a problem when I need exposures of a few seconds. So now I...
  10. S

    Feasability of using Teensy 3.1 for a telescope autoguider (processing small images)

    Another update here...progressing slowly with the project since there is a general lack of free time :) I added more functions to the Teensy - CMOS camera project, such as auto exposure, four different modes (8x8 binning, 4x4 binning, 2x2 binning, no binning), auto select of the highest signal...
  11. S

    Feasability of using Teensy 3.1 for a telescope autoguider (processing small images)

    I tried overclocking the Teensy. 96 MHz works at 4 MHz very nicely, and at 120 MHz I could run it stable at 5.5 MHz. FASTRUN didn't seem to help much, and I haven't tried unfolding the loops. Here is an oscilloscope snapshot of the clock from Teensy and the pixel clock from the CMOS camera at...
  12. S

    Feasability of using Teensy 3.1 for a telescope autoguider (processing small images)

    It's very hard to find some material about DMA, that would be understandable to us that are not such experts in MCUs. What I found interesting was this: http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4627.pdf Although I have no idea whatsoever how to implement stuff written...
  13. S

    Feasability of using Teensy 3.1 for a telescope autoguider (processing small images)

    Thank you so much for very useful feedback! 1) I was already thinking in this way, but I have no clue whatsoever how to buffer parallel data with DMA, triggered by an external clock. As you see I could not figure out better triggering than using digitalReadFast until pin is changed. :) 2)...
  14. S

    Feasability of using Teensy 3.1 for a telescope autoguider (processing small images)

    Figured out, that some interrupts occur in regular intervals and cause Teensy to skip reading parrallel data. Disabling global interrupts during frame readout from the CMOS solves the problem. With this improvement I get stable operation reading pixels at 3 MHz. Is it really bad if I disable...
  15. S

    Feasability of using Teensy 3.1 for a telescope autoguider (processing small images)

    I am slowly progressing on this project. I managed to get a hold of the settings registers in the CMOS detector (two wire serial), so I can set gain, exposure, region of interest, etc. It is also possible to set a very useful "test pattern" mode, where pixels are put out alternately with...
  16. S

    Feasability of using Teensy 3.1 for a telescope autoguider (processing small images)

    Photo of the displayed "video". Note that high intensities had overflow, so there some bands in the image, because I divided the data with 4 (instead of 64 {8x8 pixels}). With normal levels, only the light bulb could be seen on the LCD. Image is linear, so gamma correction would be needed to...
  17. S

    Feasability of using Teensy 3.1 for a telescope autoguider (processing small images)

    So, good news! My idea is working! I managed to display the image from the CMOS on an 128x160 LCD! 1280x1024 image was binned 8x8 as it was read out to 160x128. Maximum clock frequency that worked was 4 MHz (One whole image is ~1,600,000 clock counts). I operated LCD at 24 MHz, but displaying...
  18. S

    Teensy LC + I2C SSD1306 Oled + Xbee

    I have the same problem. For me works perfectly with Arduino (at 5V or 3.3V module work with both), but I can't get it to work with Teensy LC. I tried with the pullup resistors, doesn't help. Display stays blank all the time. Any new solutions here for this problem?
  19. S

    Feasability of using Teensy 3.1 for a telescope autoguider (processing small images)

    Just a short update. This is slow, 475ms to process 1310700 pixels: uint8_t data [160][128] = {0}; for (int i=0; i < 1310700; i++) { data[(i%1280)/8][i/8192] += GPIOD_PDIR & 0xFF; } Much faster, just under 200ms: uint8_t data [160][128] = {0}; for (int n=0; n < 1024; n++) {...
  20. S

    Feasability of using Teensy 3.1 for a telescope autoguider (processing small images)

    Thank you for the suggestion, but this wouldn't work out of practical reasons. I still need to see the image in some form for focusing and centering. I need differentiated treatment of the luminosity at least for the 16x16 pixels around the star, since I plan to deconvolute the data to achieve...
  21. S

    Feasability of using Teensy 3.1 for a telescope autoguider (processing small images)

    This is not what I meant. The camera reads out pixels in lines, but if I want to bin the pixels together I need to bin pixels that are physically close. This means in the case of a 512x256 frame, data points 1-8(line1), 513-521(line2), 1024-1032, 1536-1544, ... ...., 8192-8200 (64 points in...
  22. S

    Feasability of using Teensy 3.1 for a telescope autoguider (processing small images)

    Thanks a lot for the reply. I suspected that this would be at the limit of what is possible. I guess that the devices that do this usually include FPGA to handle the image data....but they cost ~500 USD as well. I did a quick test on my Arduino Mega 2560 to see how long this averaging data to...
  23. S

    Feasability of using Teensy 3.1 for a telescope autoguider (processing small images)

    Hello everyone, I have some experience with arduino but I am new to Teensy, just ordered some boards to play around :) What I have in my mind for a project is a stand alone telescope autoguider (this means it should be small and light and battery has to last at least a few hours - so no...
Back
Top