mjs513
Reaction score
224

Latest activity Postings About

    • mjs513
      mjs513 reacted to KurtE's post in the thread T4 Pixel Pipeline Library with Like Like.
      @mjs513 - glad you have it working! Will have to play with it some more. (All) But I am wondering how/where I might use it on a normal Teensy, where I don't have external memory and I am not using eLCD? That is are there examples on how one...
    • mjs513
      mjs513 replied to the thread T4 Pixel Pipeline Library.
      @KurtE - @Rezo here is a working sketch using a OV5640 or OV2640. Tested with QVGA, QQVGA and 240x240 framesizes
    • mjs513
      mjs513 replied to the thread T4 Pixel Pipeline Library.
      Have to swap the values for the OUT_LRC register - didn;t register (pardon the pun) that this was different than PXP_OUT_PS_LRC. PXP_OUT_LRC appears to set the display LRC, hence the need for: if(r == 0 || r == 2) {...
    • mjs513
      mjs513 replied to the thread T4 Pixel Pipeline Library.
      Got it !!! Found it by accident: solution: void pxp_rotation(int r) { if(!pxpStarted) { Serial.println("You forgot to start PXP, use 's' to start....."); } else { memset((uint8_t *)d_fb, 0, sizeof_d_fb); PXP_rotate_position(0)...
      • Screenshot 2024-05-04 202055.png
    • mjs513
      mjs513 replied to the thread T4 Pixel Pipeline Library.
      Will give it a try - but question on lrc/ulc - do these change with rotation
    • mjs513
      mjs513 replied to the thread T4 Pixel Pipeline Library.
      Thanks for joining the fray here. Right now I am using QVGA with a ILI9341 so using 2 full size buffers: DMAMEM uint16_t s_fb[320*240] __attribute__ ((aligned (64))); uint16_t d_fb[320*240] __attribute__ ((aligned (64))); Right now I have just...
    • mjs513
      mjs513 replied to the thread T4 Pixel Pipeline Library.
      Not an expert on this by far - was torture just trying to get rotation semi working. I do know that you can set up the source input buffer as RG565 and then setup the out buffer to RGB888 and it should convert. No clue how to actually try it...
    • mjs513
      mjs513 replied to the thread T4 Pixel Pipeline Library.
      Made a little progress - but out image is always a square. Kind of giving up on rotations - ps it easier to set the display to do the rotation if thats all you are doing on an image - probably not good to do it with video unless display doesn't...
      • Screenshot 2024-05-04 094118.jpg
    • mjs513
      Trying to figure out how PXP works but it is giving me a headache - I posted something on the PXP thread. Trying to figure out how scaling works to say downsize an image. But all in good time - examples are few and far in between
    • mjs513
      Glad you got it working :) and yep thats pretty much what you had to do to make it generic.
    • mjs513
      mjs513 reacted to ajreijn's post in the thread Using 2 I2C compass chips simultaneously with Like Like.
      Followed instructions in topic underneath and now have two compass sensors running simultaneously on two I2C busses on a Teensy 4.1 https://forum.arduino.cc/t/how-to-use-i2c-sda2-and-scl2-on-stm32f103c8tb-with-my-compass-hmc5883l/1001527/8
    • mjs513
      mjs513 replied to the thread T4 Pixel Pipeline Library.
      Here's the problem For Rotation 0 - seems to be working but image is not centering as specified in the writeRect function Rotation 1 - notice it draws it on the top have of the screen as what looks like a wrapped image: Rotation 2 - see...
      • Rotation0..png
      • Rotation1.jpg
      • Rotation2.jpg
      • rotation3.jpg
    • mjs513
      mjs513 replied to the thread T4 Pixel Pipeline Library.
      Know this is more than a year later but started playing with the PXP library using a OV5640 camera. The basic setup is: 1. ILI9488 on SPI using ILI9488_t3 library 2. Framesize = 480x320 (HXGA) yes this works. 3. Framebuffers setup in the...
    • mjs513
      Try setting Tools > CPU Speed for slower, like 150 MHz or even 24 MHz. Quick and easy way to test if running too quickly for signals to stabilize.
    • mjs513
      mjs513 reacted to jmarsh's post in the thread Call to arms | Teensy + SDRAM = true with Like Like.
      Just realized pin AD_B1_03 isn't routed so the board doesn't have SPDIF_IN... could we add that to the list for gen5? With Kurt's additions that would complete all of the AD_B1_XX pins which make up consecutive halves of GPIO1 / FlexIO3.
    • mjs513
      mjs513 reacted to wwatson's post in the thread Call to arms | Teensy + SDRAM = true with Like Like.
      Well it's pretty much finished. Modified the SDRAM Dev board /RD signal to use manual pulse generation. Bus speeds are about the same as the T4.1:D The FlexIO /RD signal generation seems to have been the main issue for stability. It kind of makes...
    • mjs513
      You are going to probably have to use 2 separate Wire buses since both share the same I2C address unless your specific module has a way to change its address. As for a library you are going to have to point to the exact library you are using...
    • mjs513
      @KurtE Been playing with your latest changes and testing on with the 2640 and 5640. With the 2640 jpeg seems to be problematic maybe will get a good image 1 in 10 times or so. With the Adafrut 5640 seems to be working like a charm - even able...
      • Image_20240430_142326.png
    • mjs513
      mjs513 reacted to KurtE's post in the thread New Camera Library for Teensy Micromod/4.1 with Like Like.
      Quick update on using the CSI setup to try to read in Jpeg images in from OV2640 and later OV5640 on Teensy 4.1. I tried several different ways to make it work within CSI subsystem. I was tried several different ways to turn off using their DMA...
    • mjs513
      mjs513 reacted to KurtE's post in the thread New Camera Library for Teensy Micromod/4.1 with Like Like.
      Question/Wondering: Currently with our JPEG input code, we are using some pretty primitive code to detect the end of the JPEG stream (0xff followed by 0xd9). That is we are working without DMA, and manually scan the new data coming in for this...
    • mjs513
      Simplest would be to connect the PWM pin to another pin and attach the interrupt to this.
    • mjs513
      mjs513 reacted to cheeft's post in the thread Connecting Teensy 4.0 to HC-05 module with Like Like.
      Thanks! I eventually got it working using this code here. Now I need to try and pair the two modules and allow for data communication, I will let you know how this goes. #include <SoftwareSerial.h> SoftwareSerial BT(0, 1); // RX (pin 0) | TX...
    • mjs513
      Sounds like you need to add the debounce function to setup. From the keypad library. // Minimum debounceTime is 1 mS. Any lower *will* slow down the loop(). void Keypad::setDebounceTime(uint debounce) { debounce<1 ? debounceTime=1 ...
    • mjs513
      Found this lib to determing peaks in sensor data https://github.com/leandcesar/PeakDetection Disclaimer - never used it. They do reference this stackflow question/response...
    • mjs513
      You could try using attaching an interrupt to pin A9 - never tried it. https://www.arduino.cc/reference/en/language/functions/external-interrupts/attachinterrupt/ or...
    • mjs513
      Its hard to tell without seeing your code, best thing to do is try a simple sketch with just bluetooth attached and test. One gotcha in the past is baudrate. The baudrate of the HC module should match what you have set for the serial port you...
    • mjs513
      mjs513 reacted to MarkzP's post in the thread uploading hex file via teensy loader with Like Like.
      C:\Users\Marc>echo portlabel=hid#vid_16c0&pid_0478 portlabel=hid#vid_16c0 'pid_0478' is not recognized as an internal or external command, operable program or batch file. You will need to escape that string before running it as a Windows command...
    • mjs513
      mjs513 reacted to KurtE's post in the thread New Camera Library for Teensy Micromod/4.1 with Like Like.
      Thanks @jmarsh and @mjs513 Quick note on the main CSI pins, (AD_B1_xx) pins, that are used on Teensy 4.1. They are also FlexIO pins but on FlexIO3, which does not have DMA, so we have not tried using it... But could especially, if we do it...
    • mjs513
      I haven't done it with CSI, I used FlexIO instead with a shifter register in match store mode to detect the ending sequence. It sounds like the same situation as with LCDIF: the reference doc says you can perform the DMA "manually" but gives no...
    • mjs513
      mjs513 reacted to KurtE's post in the thread New Camera Library for Teensy Micromod/4.1 with Like Like.
      Wondering has anyone tried using the CSI subsystem without using their built in DMA? Two different ways, I might find it interesting: a) Reading in JPEG. Yesterday I was sort of able to get it to maybe read in one JPEG using DMA, I think I...
    • mjs513
      mjs513 reacted to KurtE's post in the thread Call to arms | Teensy + SDRAM = true with Like Like.
      I think which new pins could/should be added to support has been shown now in a few threads including: Question, what do you mean by complete? That is I have not seen what I would consider a complete one for DB4 or DB4.5. That is one that...
    • mjs513
      I agree - would be nice to a +5v on the side headers instead of all the 3.3v and gnd pins. Probably could reduce that number.
    • mjs513
      I really wish the MTP support libraries would get folded into the Teensy base. You need to download KurtE or WMXZ's MTP support libraries from: https://github.com/WMXZ-EU/MTP_t4 https://github.com/KurtE/MTP_Teensy Then you need to build your...
    • mjs513
      mjs513 reacted to KurtE's post in the thread How to put a file to extern Flash? with Like Like.
      Me too
    • mjs513
      mjs513 reacted to wwatson's post in the thread Call to arms | Teensy + SDRAM = true with Like Like.
      I received my 74LVC245 chips and had some fun wiring this rat's nest up: This took care of the bad image when loading from FLASHMEM. Both FLASHMEM and SDRAM are working using 8-bit DMA. The image is correct and repeatable at 20MHz. I only...
    • mjs513
      Was playing around jpegdec library and did a comparison of using PROGMEM vs SDRAM (running at 198Mhz) FLash TEST full sized decode in 28350 us half sized decode in 21260 us quarter sized decode in 7320 us eighth sized decode in 6104 us SDRAM...
    • mjs513
      mjs513 reacted to KurtE's post in the thread New Camera Library for Teensy Micromod/4.1 with Like Like.
      Quick updates on CSI code: I now have more of it working with T4.1 and CSI running in VGA size, with PSRAM for frame buffer. I have more of it working now. With the VGA sketch, using OV7675 camera PSRAM, where f command is working, as is m and...
    • mjs513
      mjs513 reacted to wwatson's post in the thread Call to arms | Teensy + SDRAM = true with Like Like.
      Have the SDRAM board wired up to the ER-TFT101-1 display. DMA is working on it as well as the MicroMod, sort of! This is the test sketch I am using modified to include SDRAM usage: #include "RA8876_t3.h" #include "SDRAM_t4.h" #include...
    • mjs513
      mjs513 reacted to KurtE's post in the thread Call to arms | Teensy + SDRAM = true with Like Like.
      Sorry, I did not go all the way up on the SS to those pins... I have now... Exactly. Pushed up current version to fork of defragsters github project and issued PR https://github.com/Defragster/EVKB_1060/pull/1
    • mjs513
      mjs513 reacted to defragster's post in the thread Call to arms | Teensy + SDRAM = true with Like Like.
      Merged: https://github.com/Defragster/EVKB_1060/blob/main/docs/DogBoneSDRAMv1.xlsx
    • mjs513
      mjs513 reacted to Rezo's post in the thread Call to arms | Teensy + SDRAM = true with Like Like.
      @KurtE here is the full list. Need to update B0_00 through B0_03 accordingly
    • mjs513
      mjs513 reacted to KurtE's post in the thread Call to arms | Teensy + SDRAM = true with Like Like.
      Thanks, @mjs513 (and others), I updated again the dogbone... excel document all of the LCD pins on the right hand side of the board were filled in. I think it should look like: Will send the document back to you and/or could try to do PR with...
    • mjs513
      mjs513 reacted to Rezo's post in the thread Call to arms | Teensy + SDRAM = true with Like Like.
      Right, and the EVK board has the display wired at 16 bits to free up the rest of GPIO_B1
    • mjs513
      mjs513 reacted to KurtE's post in the thread Call to arms | Teensy + SDRAM = true with Like Like.
      I wonder if there are any hints on this on how they use SDRAM with CSI in the 1050 document https://www.nxp.com/docs/en/application-note/AN12110.pdf
    • mjs513
      mjs513 reacted to Rezo's post in the thread Call to arms | Teensy + SDRAM = true with Like Like.
      @KurtE the dev board has all the eCLDIF pins exposed. Starting from B0_00 to B1_13 I believe. I posted here a few weeks back that I got it working on a 24 bit display with SDRAM.
    • mjs513
      mjs513 reacted to KurtE's post in the thread Call to arms | Teensy + SDRAM = true with Like Like.
      True, I have not really studied the LCDIF as I don't think we have had any boards that have enough pins exported to use. I might take a look and see if we added the 3 or 5 pins mentioned in yesterdays post about CSI... If both would be covered...
    • mjs513
      That was an interesting forum post especially if you read all the way through it. The fix they recommended was basically to change both BCMRX registers to 0x81...
      • IMG_1160.jpg
    • mjs513
      mjs513 reacted to KurtE's post in the thread Call to arms | Teensy + SDRAM = true with Like Like.
      @mjs513, looks interesting. Wonder what the differences are from the DMA and non-dma? Other than the obvious. Like when we are not using DMA operation, the new data is written to the cache, and only later, when necessary, it flushes it out to...
    • mjs513
      mjs513 reacted to Rezo's post in the thread Call to arms | Teensy + SDRAM = true with Like Like.
      I find it odd that SDRAM is not working well with FlexIO & DMA.. On the original version of the devboard, @Dogbone06 has just standard T4.1 PSRAM, and I was able to use a frame buffer in there with my Micromod 8080 library without any issues...
    • mjs513
      mjs513 reacted to wwatson's post in the thread Call to arms | Teensy + SDRAM = true with Like Like.
      We finally have DMA working properly on the MicroMod and presumably the SDRAM Dev Board (not tested yet). My MicroMod quit while testing the 8080 mode for the ER-TFTM101-1 display. Had to reposition the MCU board in the connector. It's working...
  • Loading…
  • Loading…
Back
Top