Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • mjs513's Avatar
    Today, 10:26 PM
    As usual yes it make sense when you explain it - I just need to do some more homework on the TCD setups. Going to be a long process.
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Today, 10:23 PM
    No problem - been doing some other things as well. Just when I get back on I'm on for a while. Been spending time going down the rabbit hole. Funny that's exactly what I am seeing with FlexIO. With...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Today, 09:50 PM
    Looking the schematic I see that you have MISO/MOSI shared between the touch and LCD. Can't remember but you may have a tristate buffer issue. Take a look at step 2 of PJRC's Better SPI Bus Design in 3 Steps. You...
    9 replies | 351 view(s)
  • mjs513's Avatar
    Today, 08:47 PM
    @Paul - @KurtE The more I read the more confused I get. Was looking at AN12686, pg13 and what @KurtE was DMA stuff. On pg 13 for DMA setup the last 2 bullets: • Last destination address adjustment: 0, which means no...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Today, 05:26 PM
    @defragster Going to put the timings back in since I know what to expect now. Was driving me crazy when it FPS going down to 16 but think that was display connection issue
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Today, 05:21 PM
    Set up releases for the library and that code is permanently there as Release v1.0.0. The flexIO changes will be in v1.1 I guess. Just trying to keep what works.
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Today, 05:11 PM
    @defragster Also think the timing prints were getting me confused. Also playing with some settings for brightness and exposure. With the lights on my image tended to be basically showing glare. Went to the openmv...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Today, 04:50 PM
    @defragster Think I was running into the problems you just described plus issues with the display connections. Also I changed the "F" movie function to this if ( g_continuous_flex_mode ) { ...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Today, 02:05 PM
    As they say keep dreaming :) Just tried it on the ST7789 and seems to be working there as well. Although trying to use for video don't work too well. Works a bit better on 9341. Think maybe it will work better...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Today, 01:05 PM
    Think I agree - doesn't make sense to keep DMA using GPIO. To be honest I would hold off on trying to get it working with GPIO for the HM01b0
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Today, 01:03 PM
    @PaulStoffregen Was going through your DMA code (you guys are bringing me down another rabbit hole with DMA) :) Anyway think this is the function that controls dma h/w trigger: // Use a hardware trigger to make...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Today, 12:39 PM
    Thats strange, I only get that when my pin assignment is off - know this is going to be a silly question but did you remember (1) to change the pin assignments in the graphicstest, and (2) make sure you have ILI9341...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Today, 12:33 PM
    Here's what I am using as of this morning after your changes:
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Today, 11:53 AM
    PR was merged. Just downloaded it and see what you mean. Started reading FlexIO once :) Guess I will have to pull the manual out again. For some reason having trouble with @defragsters sketch - not sure why so...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Today, 11:36 AM
    Merge done.
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Today, 11:05 AM
    @Paul - @KurtE - @defragster Did a couple more tests with FlexIO. Test 1: Tried changing the frameRate from 30fps to 60fps. At 30 "F" (flexIO continuous) using @defragster's updated sketch, runs fine picture quality...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Today, 10:36 AM
    Morning All Merged the changes into the github repository and just start playing but my display is acting up - wire connections with jumpers Argh! Anyway ran 'f'lexio using Sparkfun and non-sparkfun configs. Both...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Today, 02:36 AM
    Was thinking that maybe need to lower the SPI Clock setting
    40 replies | 1071 view(s)
  • mjs513's Avatar
    Today, 02:33 AM
    Was just about to post - but the other one should have worked as well. Going to delete it - probably easier that figuring out the differences.
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Today, 02:23 AM
    Should just need ILI9341_t3n library. 's' is pretty standard and seems to have always worked. The latest TMM-HB01B0-Camera is set up for 324x224 but 's' works for Sparkfun or non-Sparkfun configs. I know every...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Today, 12:43 AM
    Probably not the problem but wanted to ask. In the .h file enum {DMABUFFER_SIZE=1280}; // 640x480 so 640*2*2 the 1280 probably needs to be changed to 324*2*2 = 1296
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Yesterday, 09:53 PM
    Cool. Sounds like you had fun planting - rainy and cold here so good day to stay inside.
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Yesterday, 09:46 PM
    Just tested the mods I just made and it works :) You want me to push it to you or you can just use what you have - probably the same since I just copied it from ILI9341_t3n
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Yesterday, 09:36 PM
    Just made the changes for 8 and 4 and was going to try out - should have known better :) EDIT: Is it posted - I will give it a try
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Yesterday, 08:15 PM
    @KurtE Looks like we are going to have to edit the ST7789 library to add in read8pp as well since I don't think it currently supports it.
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Yesterday, 08:14 PM
    Easy answer - yes. See page 16.
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Yesterday, 07:43 PM
    That was the change from last night and this morning. So yes first 2 pixels and last 2 pixels. Edit: Kurt's original DMA code skipped the 1st 4 pixels and what I went to this morning was using the subwriteRect that...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Yesterday, 06:53 PM
    With the change that Kurt made to the 's' decided to see if the other frameSizes would work as well: /* * FRAMESIZE_INVALID = 0, * VGA Resolutions * FRAMESIZE_QQVGA, // 160x120 * FRAMESIZE_QVGA, ...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Yesterday, 06:32 PM
    @Paul Very cool that you got some life with using FlexIO. Was looking at Kurt's lib this morning and my head hurt :). Oh just one thing the 4pixels is a 2 pixel border around the actual 320x240 image. A quick...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Yesterday, 05:01 PM
    Yeah was going way deeper originally to see what was going on so started with Vsync. Want to see what you did and see I can merge but really distracted. I did remember to update the PDE to 324/244 though. But to...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Yesterday, 04:54 PM
    @KurtE Updates are already pushed to repository, see post 342, right before yours. 99% sure that the writeSubImageRect is working correctly because I am now using it for 's'napshot and 'continuous modes and its...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Yesterday, 03:14 PM
    Just pushed the current changes using subWriteRect and QVGA = 324x244. One other thing - took setpixformat out of the sketch and called it directly from init since this camera only supports grayscale. Also added a v2...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Yesterday, 02:20 PM
    Morning @KurtE Yep - tried just making _frame_ignore_cols = 0 but the image messed up. Agree - not sure why you are multiplying by 2 since we only have grayscale. The *2 in the original readFrame was for color...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Yesterday, 12:01 PM
    @KurtE I found the issue that you were having with having to skip 4 pixels. Turns out that the actual image size for QQVGA is 324x244 and not 320x240. The extra 4 pixels seem to be just border pixels. So I tested...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Yesterday, 11:26 AM
    @KurtE - @Paul - @defragster - @all More discoveries, realizations and decisions. Doing some digging it appears that the framerate is dependent on 3 settings: 1. clock - osc_div which is done we use the function...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    Yesterday, 12:50 AM
    Just to satisfy my curiosity I put back into the loop Paul's vsych timing code and sure enough, whatever combination of settings Sparkfun is using seems off: Using the 6Mhz clock and only changing frameRate to 30 and...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-10-2021, 11:33 PM
    Did a little bit more testing and one thing I noticed is that the framerate when set to 60 seems alot slower using the Sparkfun config rather than the default config. With the default config the osc_div is set to 2B...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-10-2021, 11:12 PM
    Found it. 3, 0xb1, 0x00, 0x10, // FrameRate Control 119Hz its in both the ILI8341_t3 and _t3n libraries.
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-10-2021, 10:14 PM
    Hi all @KurtE beat me to it - was going to mention that @KurtE did a lot of work with FlexIO and he a library set up for it - not sure where the whole discussion is on the forum anymore I'll second what Kurt said...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-10-2021, 07:35 PM
    @KurtE Can't seem to push the SPI Clock over 30Mhz for the ILI9341 - just shows a white screen if I do. Just an FYI
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-10-2021, 07:26 PM
    I'll go ahead and push the changes I have so we will in synch again. then you can change the handshake. You know never thought about about how fast the screen can update. Don't remember what SPI we defaulted to in...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    3 replies | 75 view(s)
  • mjs513's Avatar
    04-10-2021, 06:36 PM
    @KurtE Changed 2 settings in the default config and DMA seems to be working without using the Sparkfun: {FS_60HZ_L, 0x85}, {FS_50HZ_L, 0xa0}, Give it a try and let me know if I am...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-10-2021, 06:05 PM
    Just merged your PR but looks like DMA mode got worse when not using Sparkfun registers.
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-10-2021, 05:34 PM
    Was actually thinking about something like that last night but seems you beat me to it:) Anyway's just did a quick experiment and think the MCLK clock has something to do with it. For the default_regs example I...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-10-2021, 04:33 PM
    @Frank B Ok - I know I can't answer this but curious since I have no idea what it means. Think you are saying that what lib is included its using software to calculate integer divisions when T4 should be doing it...
    3 replies | 75 view(s)
  • mjs513's Avatar
    04-10-2021, 04:08 PM
    Nice comparison @KurtE. From the lib I know what some of those settings are and some get changed with the function calls: INTEGRATION_H(202) 2(2) 1(1) INTEGRATION_L(203) 133(85) 2(2) ANALOG_GAIN(205) 0(0) 32(20)...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-10-2021, 01:21 PM
    Was wondering why you set it up to have its own namespace. Is there anyway to do that with in the core. Reason asking it would be simpler than have to add the files to every library or sketch? Does that make sense?
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-10-2021, 01:18 PM
    Morning @KurtE Actually thought about it but forgot. Remember what they say about assume. UPDATE: It works: Acc : 21.0 x, -37.0 y, 1055.0 z, 27.5C Acc : 21.0 x, -34.0 y, 1059.0 z, 27.3C Acc : 21.0 x, -34.0 y,...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-10-2021, 12:21 PM
    Good luck with FlexIO for the camera - assuming you mean the 4bit FlexIO? Are you trying it with the library or started it with your initial test sketch - going to assume your initial sketch? If the lib you may have a...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-10-2021, 12:12 PM
    Was testing a couple more things: 15s Restore: Works - tested both on the ATP and ML boards. Quad Encoder Library: Finally got a chance to test change I made to the T4 Quad Encoder library that adds...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-10-2021, 11:34 AM
    On a different note from the HB01B0 camera. Was looking at what @luni did and looking at the pins_arduino.h file and was wondering if it would worth it to add @luni's pinouts to the pins_arduino.h file like this: #if...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-10-2021, 02:28 AM
    @defragster - getting ready for zzzz's but it has to be something on the PC side. I have it hooked up to my powered hub and its working no problem. I did notice that there is a noticable delay between when you hit 'p'...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-10-2021, 02:21 AM
    @KurtE - @defragster - @PaulStoffregen - @All Decided to take a short break from the camera stuff and see if I could get the the ILI9341_t3n library working with the Sparkfun Display/Input board. So, I added the...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-10-2021, 01:09 AM
    Try using the sparkfun config by uncommenting the use_sparkfun at the begging of the sketch. Think I am using 4 in wires with no problem. Ps. Sent about 30 images to the processing sketch from the teensy with no...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-09-2021, 10:23 PM
    Very cool Paul that you got it wired up and its working :) I did incorporate the PR and Thanks for fixing that packed warning message - wasn't sure how to fix that one :) Incorporated your PR with the DMA stuff...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-09-2021, 09:05 PM
    That was the only thing I could think off the top of my head. Will have to test it out again soon. Think for the most part I done with changes now time to have fun with Kurt’s smart stuff and the processing sketch
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-09-2021, 08:54 PM
    @defragster You could try changing the baud rate in the processing sketch to something much larger than 9600
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-09-2021, 08:42 PM
    @defragster That comment is from the auto calibration function that I extracted from the Sparkfun library. Just tweaked the sketch a bit more after playing with some of the functions and I am not getting that not...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-09-2021, 08:40 PM
    @KurtE You are going to kill me just pushed up some minor changes: 1. fixed pfmt, 2. #define for monochrome sensor and 3. Some tweaks to the sketch Can't wait to see what you did to it :)
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-09-2021, 08:24 PM
    You may want to check this video out (Why I put a Teensy in Every Project): https://www.youtube.com/watch?v=75IvTqRwNsE
    1 replies | 159 view(s)
  • mjs513's Avatar
    04-09-2021, 08:03 PM
    Almost sure its on the processing side. Had similar problems before with processing. Thought most of it would be resolved if we used USB1.
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-09-2021, 08:01 PM
    Actually what I was thinking was to add a define: #define SensorMonochrome 1 to the .h and then wrap the test in a define. Probably will do that on the next update.
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-09-2021, 07:58 PM
    @Paul - agree with Kurt - pretty cool to see.
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-09-2021, 06:49 PM
    Not sure whats going on - on my machine it seems to be working no problem. After I finish play with the lib and sketch maybe will play with the processing code. Right now I am playing with the different functions in...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-09-2021, 06:34 PM
    @KurtE Was just playing with the fix and something hit me with readframe. The readFram function was designed to support the color version of the HB01B0 camera so once you fix the error with pixformat you wind up with...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-09-2021, 05:38 PM
    Darn it. Fixed it for framesize but forgot to change it for pixformat. Going to fix it now.
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-09-2021, 03:52 PM
    About 5minutes after I post the question I remembered that those flags are no longer in use with the SD library. Sometimes hard to remember all the changes :) See the update to the post. Thanks for reminding me. I...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-09-2021, 03:13 PM
    Morning again Running into a little problem. I the past (Buddabrot) I have used this code snippet to increment the file name if the file already existed on the SD card using the SD library: // if name exists, create...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-09-2021, 01:44 PM
    Good morning all Been at it again this morning with the camera library. Made some minor updates to the sketch and pushed them up to the repository. 1. New menu selections: Serial.println("Send the 's' character...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-08-2021, 11:51 PM
    @defragster Something weird. I just responded to this but maybe forgot to hit post. I just retested with stock ili9431 library and am sending frames to the Processing sketch without an issue. Not seeing the same...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-08-2021, 10:08 PM
    I can confirm its not working with the t3n library. On the t3n it sends several frames to the display and then after that screen updates but its all white. On the t3 version it seems to work with an issue.
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-08-2021, 09:32 PM
    Ok - video don't work very well with the Processing sketch which you are using. Only can send snapshot to the processing code. Also looks like you never change the image size in the processing sketch. ...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-08-2021, 09:20 PM
    Ok that sounds like something with the ILI9341. Not having any of those problems with the ST7789
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-08-2021, 08:39 PM
    That was the reason for using SerialUSB1. I make sure the sketch is running and the image window appears and then send the data from Arduino sketch with p command in main serial window. Did it a whole bunch of times...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-08-2021, 08:36 PM
    That was the reason for using SerialUSB1. I make sure the sketch is running and the image window appears and then send the data from Arduino sketch with p command in main serial window. Did it a whole bunch of times...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-08-2021, 08:28 PM
    thats strange. Assume you are using the _t3n library? In middle of cleaning some stuff up with the code then will hook up a ILI9341 and see whats going on. Maybe this will help you with my convoluted thinking:...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-08-2021, 08:19 PM
    That's strange. I have seen that before during my development but once I fixed the bugs it was working. Assume you define Spartfun 1? Are you using the ILI9341? Have tested with that one yet :)
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-08-2021, 08:15 PM
    @KurtE - @defragster Just created the Github repository: TMM-HB01B0 - https://github.com/mjs513/TMM-HB01B0-Camera. Have fun. Don't mind at all. My C++ isn't all that great. Going Boom happens to me all time...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-08-2021, 08:07 PM
    Never having used Processing - is that what the EXTRAS INO is for? That is balking as well - does it need pointer to Teensy on Serial? The extras folder contains CameraVisualizerRayBytes.pde sketch that you run on...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-08-2021, 08:01 PM
    Ok will set up now that I am awake. :)
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-08-2021, 06:09 PM
    @defragster On my phone so... anyways they look equivalent. Both spi and 3.3v. To run the processing sketch you need Processing app. You can get it at the Processing.org website. The processing sketch runs on the...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-08-2021, 05:32 PM
    @KurtE - @defragster Ok need a break. Using the processing sketch in your OV7670 lib and dual USB on the TMM this is what I get for a snapshot on the PC: Still have a little to do but here is what I have so far. ...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-08-2021, 05:20 PM
    @KurtE Very cool indeed. Have to add your hack :) to all my hacks in that sketch. Glad its working :) Almost done with getting it send to processing. But need to do some other less fun things
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-08-2021, 03:28 PM
    Nice timing just updated. Use the latest - change the framerate if you want smoother video. I noticed that too but haven't got to the 9341 display yet. Want to finish changes to the lib and sketch first then play...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-08-2021, 03:26 PM
    Good Morning all @defragster - glad you got it working with the ILI9341 and its working for you. @KurtE - haven't installed your latest updates to the ST7789 library. Still some stuff to do but I did incorporate...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-08-2021, 01:56 AM
    Now you know why going to update the lib to use the subimage function so it might fix on a small display with smaller resolution. Have several ILI934's, ILI9488's etc. Ready for sleep now so tomorrow have a couple...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-08-2021, 01:29 AM
    Ok - got on the computer to answer. Easier than using the iPhone. Anyway I am using a Adafruit 320x240 ST7789 display for the testing. One because it was handy and more importantly didn't require a 5v pin. For...
    405 replies | 5603 view(s)
  • mjs513's Avatar
    04-08-2021, 01:17 AM
    yep it’s just plug and play. No mods to the board necessary.
    405 replies | 5603 view(s)
More Activity
About mjs513

Basic Information

About mjs513
Location:
New York
Interests:
Robotics, Image Processing
Occupation:
Aerospace Eng (Retired)

Statistics


Total Posts
Total Posts
6,747
Posts Per Day
2.72
Last Post
MicroMod Beta Testing Today 10:26 PM
General Information
Last Activity
Today 11:01 PM
Join Date
07-01-2014