Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • mjs513's Avatar
    Today, 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, ...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    Today, 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...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    Today, 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...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    Today, 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...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    Today, 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...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    Today, 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...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    Today, 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...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    Today, 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...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    Today, 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...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    Yesterday, 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...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    Yesterday, 11:12 PM
    Found it. 3, 0xb1, 0x00, 0x10, // FrameRate Control 119Hz its in both the ILI8341_t3 and _t3n libraries.
    351 replies | 4941 view(s)
  • mjs513's Avatar
    Yesterday, 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...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    Yesterday, 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
    351 replies | 4941 view(s)
  • mjs513's Avatar
    Yesterday, 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...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    3 replies | 67 view(s)
  • mjs513's Avatar
    Yesterday, 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...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    Yesterday, 06:05 PM
    Just merged your PR but looks like DMA mode got worse when not using Sparkfun registers.
    351 replies | 4941 view(s)
  • mjs513's Avatar
    Yesterday, 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...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    Yesterday, 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 | 67 view(s)
  • mjs513's Avatar
    Yesterday, 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)...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    Yesterday, 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?
    351 replies | 4941 view(s)
  • mjs513's Avatar
    Yesterday, 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,...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    Yesterday, 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...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    Yesterday, 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...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    Yesterday, 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...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    Yesterday, 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'...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    Yesterday, 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...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    Yesterday, 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...
    351 replies | 4941 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...
    351 replies | 4941 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
    351 replies | 4941 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
    351 replies | 4941 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...
    351 replies | 4941 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 :)
    351 replies | 4941 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 | 138 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.
    351 replies | 4941 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.
    351 replies | 4941 view(s)
  • mjs513's Avatar
    04-09-2021, 07:58 PM
    @Paul - agree with Kurt - pretty cool to see.
    351 replies | 4941 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...
    351 replies | 4941 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...
    351 replies | 4941 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.
    351 replies | 4941 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...
    351 replies | 4941 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...
    351 replies | 4941 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...
    351 replies | 4941 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...
    351 replies | 4941 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.
    351 replies | 4941 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. ...
    351 replies | 4941 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
    351 replies | 4941 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...
    351 replies | 4941 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...
    351 replies | 4941 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:...
    351 replies | 4941 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 :)
    351 replies | 4941 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...
    351 replies | 4941 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...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    04-08-2021, 08:01 PM
    Ok will set up now that I am awake. :)
    351 replies | 4941 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...
    351 replies | 4941 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. ...
    351 replies | 4941 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
    351 replies | 4941 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...
    351 replies | 4941 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...
    351 replies | 4941 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...
    351 replies | 4941 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...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    04-08-2021, 01:17 AM
    yep it’s just plug and play. No mods to the board necessary.
    351 replies | 4941 view(s)
  • mjs513's Avatar
    04-08-2021, 12:10 AM
    Sounds like you have been busy and making progress as well. Anyway's got the lib cleaned up, still more to do, and have a cleaned up sketch that allows you do do a screen capture and put it in continuous mode. Takes...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    04-07-2021, 10:25 PM
    All Looks like I got it partially working. I now can get a picture on startup but if I try and take another snapshot in the loop nothing shows? Have to figure that one. Here is the initial screen shot: Not...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    04-07-2021, 08:38 PM
    Changed the bus to input but did not change enough to get a signal. Was just going to go through your code to see how you handled vsynch etc. With monochrome images if I read the spec right it should only be 1 byte...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    04-07-2021, 07:32 PM
    @luni Was pretty sure about the bit order but never hurts to double check when debugging. I'll changing to input and see what happens.
    351 replies | 4941 view(s)
  • mjs513's Avatar
    04-07-2021, 06:19 PM
    Thanks for the info @luni. Just made the change made a little difference but not much. It almost looks like the start or the line gets shifted on every read. Have to get my head sorted out out this one. EDIT: ...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    04-07-2021, 04:18 PM
    @KurtE Just pulled down the updated library with that function will give it a try later. Planning on attaching the SDCard as well but have to find more jumpers :)
    351 replies | 4941 view(s)
  • mjs513's Avatar
    04-07-2021, 03:32 PM
    All -- think its need a sanity check at this point on what I am doing so here goes the first sanity check. In the HMB01B0 function I set up the VSYNC/HREF/PCLK/Databus pins as: pinMode(VSYNC_PIN, INPUT_PULLDOWN);...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    04-07-2021, 02:42 PM
    Had a feeling - thank you. Going crazy with that HB01B0. I need a sanity check on the data capture at some point but going to keep playing. Maybe I will post what I see. Think I have a strand or 2 of hair left :) I...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    04-07-2021, 01:55 PM
    Yep - I agree with the debugging aspect. Figured what the heck its going to take forever anyway. I did download your latest OV767x changes and hooked it up to the ATP with a ILI9341. And it worked rather nicely. ...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    04-07-2021, 12:22 PM
    Morning all. Downloaded your updated version and ran it on the TMM. 1. No problem recognizing the hub with the SSD and thumb drive attached. MTP_test SDIO Storage 0 254 sdio failed or missing SD Storage 1 10 sd1...
    475 replies | 5593 view(s)
  • mjs513's Avatar
    04-07-2021, 11:11 AM
    Good morning all. Not 100% sure the HB01B0 has a different pinout on the cable than the OV7670. Took a glance at the schematic and it does bring the 1.8v to camera connector/ Ordered one out of curiosity - but takes...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    04-07-2021, 03:25 AM
    Yeah tell me about. Seems like I'm doing good since at least I get something. I can't even put a LA on the board to see whats going. And before you ask I can't hook it up to the ATP board since there is no 1.8v...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    04-07-2021, 03:01 AM
    Just about ready to give on this camera but you know me I wont Anyway just to see if the camera really works or not I installed a Sparkfun Artemis Processor Board into the Machine Learning board and loaded up there...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    04-06-2021, 03:04 PM
    @Paul As @KurtE said looking good. I especially like that you ditched the COPI/CIPO for MOSI/MISO and brought out a 5v pin. Adding the display connector was a great idea. Looks like the SDCard is using the SDIO...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    04-06-2021, 02:01 PM
    Well thats good news about the clock. Not sure its a clock problem with me either - I have adjusted the clock frequency up and down and does seem to help. Also tried playing with frame rates. Seems like I fix one...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    04-06-2021, 01:46 PM
    Morning all See you been busy while I was sleeping :) Think we may be having a similar problem with the clock. Playing around with the HB01 I found the cameraReadRegister function was working right when I tried...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    04-06-2021, 01:37 PM
    Not paying attention to the ?. I get about 6.96. As you say as long as we can trust the layout.
    351 replies | 4941 view(s)
  • mjs513's Avatar
    04-06-2021, 01:34 PM
    I have Eagle installed but not 100% sure how to use it. But using the dimension tool looks like about 21.59mm from the center of the mounting to the middle of the M.2 connector and 17.78 from the middle to the outline...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    04-06-2021, 02:34 AM
    My guess is that it might not be ready since the card was inserted when I loaded the sketch and later power-cycled the T4.1. But think you got enough on your plate.
    475 replies | 5593 view(s)
  • mjs513's Avatar
    04-06-2021, 12:32 AM
    @wwatson - I know the feeling - take a break and play with something that you know is going to work for awhile or something not as complicated as lwet4.
    475 replies | 5593 view(s)
  • mjs513's Avatar
    04-06-2021, 12:31 AM
    @KurtE I just downloaded your latest changes to UsbMscFat and MTP_t4 and am trying it on a T4.1 with SD Card, SSD (2 volumes and a 64GB thumb drive. Uploaded the latest MTP-test sketch and see 2 problems right off the...
    475 replies | 5593 view(s)
  • mjs513's Avatar
    04-05-2021, 06:07 PM
    Have some errands to run then want to play with MTP for awhile - out of ideas on the HB01. I know we are getting data and I can print it but not sure how to get it into display format :)
    351 replies | 4941 view(s)
  • mjs513's Avatar
    04-05-2021, 06:06 PM
    Pin 10 is shown on ATP board as CS and not as card insert detect? Not sure how that is getting picked up. I have not seen card insert detect on any pinout's. Confused
    351 replies | 4941 view(s)
  • mjs513's Avatar
    04-05-2021, 04:21 PM
    Think we cross posted. The interesting thing with the Adafruit one is that it can be run as SPI or SDIO depending on your wiring.
    351 replies | 4941 view(s)
  • mjs513's Avatar
    04-05-2021, 04:13 PM
    @KurtE - @luni - all Just hooked up a Adafruit Micro SD SPI or SDIO Card Breakout Board to SDIO pins on the ATP carrier board. Ran the listfiles example in the SD library and it worked by specifying BUILTIN_SDCARD:...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    04-05-2021, 02:09 PM
    It looks like on the ATP board which has all the pins broken out you might get away with it. On the Machine learning board they only brought out a subset of all the pins - probably since most are tied up the camera...
    351 replies | 4941 view(s)
  • mjs513's Avatar
    04-05-2021, 02:04 PM
    Just downloaded and Norton didn't like them - gives me some reputation errors. Norton is good it gave me the option to exclude and restore the files so was able to run your new version of Tycommander :)
    351 replies | 4941 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,720
Posts Per Day
2.71
Last Post
MicroMod Beta Testing Today 06:53 PM
General Information
Last Activity
Today 07:18 PM
Join Date
07-01-2014