Forum Rule: Always post complete source code & details to reproduce any issue!
Page 8 of 36 FirstFirst ... 6 7 8 9 10 18 ... LastLast
Results 176 to 200 of 889

Thread: MicroMod Beta Testing

  1. #176
    Senior Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    1,450
    Quote Originally Posted by PaulStoffregen View Post
    I started a quick carrier board design which brings out the pins and attempts an alternate 4 bit camera connection which should leave all the audio pins available.
    Does anyone know the correct distance from the M.2 standoff from the edge of the PCB?
    This worked for me (measurement from the connector index hole which is better defined than the card edge...)

    Click image for larger version. 

Name:	Screenshot 2021-04-06 153217.jpg 
Views:	6 
Size:	82.5 KB 
ID:	24332

    If gerbers help: https://github.com/luni64/mmStep/tree/main/Production
    Last edited by luni; 04-06-2021 at 01:45 PM.

  2. #177
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    9,027
    Paul, I assume you have seen all of their stuff on Sparkfun, like the M.2 connectors: https://www.sparkfun.com/products/16549
    With their datasheet https://cdn.sparkfun.com/assets/9/c/..._2199230-4.pdf

    But I have played around and imported some of their libraries into Diptrace as I don't like Eagle...
    I just imported their ATP board and then did a measure... This is in mils

    Is this what you are looking for?
    Click image for larger version. 

Name:	screenshot.jpg 
Views:	8 
Size:	116.3 KB 
ID:	24333

    P.S Would be great if it had SDIO and USB Host

    Edit here is from their pattern, I did this one in millimeters
    Click image for larger version. 

Name:	screenshot2.jpg 
Views:	10 
Size:	298.9 KB 
ID:	24337

  3. #178
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    6,973
    Quote Originally Posted by Frank B View Post
    If I can trust Eagle and the Sparkfun library, it is 7mm to the center of the circle
    Not paying attention to the ?. I get about 6.96. As you say as long as we can trust the layout.

  4. #179
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    8,289
    The library says the circle is at x=4 mm (90 turned), the edge of the board at 11mm. 11-4 = 7mm

    Normally, dimensions are in mm and this is the case here, too. Some crooked value makes no sense, so 7mm looks reasonable.

  5. #180
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    6,973
    Quote Originally Posted by KurtE View Post
    This afternoon I started playing with the ATP board with the MicroMod... I first hooked up an ST7735 display along with its SD card reader. Got that to work, with the non standard pins. Left pin 10 for CD so it would work with the MTP stuff...

    I then added a OV7670 and started hacking on the OV7670 code I have in a hacked up library doing GPIO reads...

    Making some progress, Here is a picture. Hopefully I obscured the MMOD module sufficiently...
    ..
    It is grabbing some data, does not look correct, could be timing or wrong pin order or....
    One thing I had to remember that was using GPIO6 on T4 or T4.1, but now using GPIO7... Will need to remember that when I change the DMA code.

    I have not updated the code on github, but if curious,
    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 reading the modelId. Using Paul's version worked so that is now what I am using. I also figured out the simple way to display grayscale so have it somewhat working but still no descent image:
    Click image for larger version. 

Name:	IMG-0341.png 
Views:	9 
Size:	348.0 KB 
ID:	24338

    Am attaching the zip of the corrections I made
    Attached Files Attached Files

  6. #181
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    9,027
    @mjs513 Good morning to you as well. I think my clock was doing OK like colors are wrong. I probably need/want to solder on male pins on the outside of the ATP to make it easier to hookup logic analyzer and then I can see the signals.

    Also to double check my wiring, that I did not connect wrong pins and/or again double check that the Pins map to the correct GPIO 7 numbers...

  7. #182
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    6,973
    Quote Originally Posted by KurtE View Post
    @mjs513 Good morning to you as well. I think my clock was doing OK like colors are wrong. I probably need/want to solder on male pins on the outside of the ATP to make it easier to hookup logic analyzer and then I can see the signals.

    Also to double check my wiring, that I did not connect wrong pins and/or again double check that the Pins map to the correct GPIO 7 numbers...
    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 thing and another breaks

  8. #183
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    9,027
    I should mention, that I had sort of dropped working on the OV7670 code that was GPIO based and was earlier then spending more times on the CSI version for the T4.1... So may also want to look back at the CSI code to see if I am missing something.

    As for Color versus Monochrome, depends on what I want to do. At least to me, very few photos catch my eye as much as a good Ansel Adams Monochrome photo... And for our own stuff we have nice Color camera which is great and also a nice Monochrome one as well. But now back to breaking more things

  9. #184
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    24,111
    Ok, 7mm it is!

    Here's roughly what I have for a breakout board with alternate camera pins.

    Click image for larger version. 

Name:	micromod_breakout.jpg 
Views:	41 
Size:	108.6 KB 
ID:	24340

    As you can see, I also routed pins 0-23 to a Teensy 4 layout so we can plug in shields for testing.

    The 24 pin FFC camera connector is on the bottom side, underneath the SD socket.

    Did I miss any pins or other important things?

  10. #185
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    9,027
    @Paul - looks good. For my own debug stuff I often like the two USB Host pins with spots that I can solder in pins... Makes it easier to hook up LA to see what new devices are doing.

  11. #186
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    6,973
    @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 pins.

  12. #187
    Senior Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    1,450
    Did I miss any pins or other important things?
    Looks like a usb-micro connector? Any chance to change it to a USB-C one?

  13. #188
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    13,943
    Quote Originally Posted by PaulStoffregen View Post
    Use INPUT_DISABLE
    Thanks for that.

    Busy morning here - the PJRC Carrier board looks good.

    Having USB-C would be okay - or better. Assuming using that connector is how the SFun ATP board presents more power to the board?

    Using the ATP Carrier the USB_Host can power an external HDD or an unplugged powerable USB HUB/HDD with a Flash device. On a T_4.1 USB_Host neither HDD powers up - though on the HUB/HDD only the connected Flash does show.

    Though maybe that complicates the carrier build with some extra part for the higher USB-C current?


    Pullups on i2c? ATP doesn't seem to have them but other carriers tend to.

  14. #189
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    9,027
    @defragster I am guessing, that yes if you went to USB-C you would probably need/want to change what the USB Host power circuit might be.
    That is I think the T4.1 and probably this one is using https://www.digikey.com/en/products/...14DBVR/5138394

    I think this one outputs .5amp...

    With the display pins, I am guessing that you are probably looking to have the display go off the end of the board in in your case probable use some mounting board where you would then put stand offs? Alternative is it goes on the backside of this board... In which case you might want holes for standoffs. Assuming it does end up right in the middle of the shield.

  15. #190
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    13,943
    Suppose SFun ATP docs would show the circuit for their USB-C and power to the board and HOST connect. Maybe too much for a quick/simple board - but it would be nice to have that power - especially with display and HOST capabilities - camera draw likely low ( at least the SFUn cam is low ).
    Also previous post noted the ATP layout prevents power feedback from that 'powered hub'.

    Yes, quick glance seemed to have Display on MCU side over hanging the PCB - or if on bottom with the Camera connector it would be like opposite the MCU SFun display Carrier - except SFun cabled and taped the display to the PCB, so having a way to stabilize the display would be a nice addition.

  16. #191
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    24,111
    Quote Originally Posted by defragster View Post
    Suppose SFun ATP docs would show the circuit for their USB-C and power to the board and HOST connect.
    Looks like Sparkfun's ATP carrier board lacks any sort of USB host current limiting or even a 100 or 150 uF capacitor.

    As far as I can tell none of their other boards do USB host, so they're probably not yet familiar with the requirements for hot plugging USB.

  17. #192
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    13,943
    Quote Originally Posted by PaulStoffregen View Post
    Looks like Sparkfun's ATP carrier board lacks any sort of USB host current limiting or even a 100 or 150 uF capacitor.

    As far as I can tell none of their other boards do USB host, so they're probably not yet familiar with the requirements for hot plugging USB.
    On a 'good' day "unlimited" power is nice
    > Sounds like your attention will be good for having it made right, as usual.

  18. #193
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    9,027
    @Paul @mjs...

    I am playing now with OV7670 and I know I ran into this also earlier where the VSYNC line is glitchy... If I turn on the glitch filter in LA it does not show it, but turned off I do... I think I need to add that sort of filter into the camera reading code.

    Soldered on outside pins on ATP, hooked up LA and I can see first issue:
    Click image for larger version. 

Name:	screenshot.jpg 
Views:	14 
Size:	104.2 KB 
ID:	24341
    This image shows maybe a few frames. The top line should be an indicator of where frames start. Notice the glitches. The last line is a digitalWriteFast around the call to read frame... When called the code should synchronize up to start of a frame and start pulling it in. it should have gone through to most likely the end of a frame... So it is not in sync.

    Closer up you can see the simple Parallel analyzer converting the 8 signals to values using the pixel clock as the clock.

    Click image for larger version. 

Name:	screenshot2.jpg 
Views:	10 
Size:	91.7 KB 
ID:	24342

    Will add in my own glitch filter on the Vsync...

  19. #194
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    6,973
    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 example sketch. It failed almost immediately on calibrating Auto Exposure.
    Code:
    Turned on camera regulator
    Camera started successfully
    Calibrating Auto Exposure...
    seems like I am not the only one as there is an issue in the Github library. @Paul you might want to check this post out about the 1.8v regulator: https://github.com/sparkfun/SparkFun...ment-786766783

  20. #195
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    9,027
    Sounds like a pain.

    I just pushed up my changes to OV7670 for reading parallel... Still not 100% correct, but fixed the sync to the start of frame...
    https://github.com/KurtE/Arduino_OV7...eensy_micromod

    Have not tried the DMA stuff yet.
    Click image for larger version. 

Name:	IMG_1357.jpg 
Views:	8 
Size:	108.3 KB 
ID:	24348

  21. #196
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    6,973
    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 regulator on it. On well.

    Going have to give you new lib a try tomorrow. Way past my bed time

  22. #197
    Senior Member
    Join Date
    Apr 2020
    Location
    DFW area in Texas
    Posts
    247
    NM . . . bad stuff posted earler . . .

    Mark J Culross
    KD5RXT
    Last edited by kd5rxt-mark; 04-07-2021 at 03:41 AM. Reason: removed bad info posted earlier

  23. #198
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    9,027
    I wonder if their camera connector was setup for ov7670 like https://smile.amazon.com/Quickbuying...dp/B07H3QXZH9/

    The other sparkfun board that mentions the camera... https://www.sparkfun.com/products/15170

    their schematic shows ov7670

  24. #199
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    24,111
    Quote Originally Posted by KurtE View Post
    The other sparkfun board that mentions the camera... https://www.sparkfun.com/products/15170

    their schematic shows ov7670
    That probably explains why the ML carrier board schematic has the wrong I2C address. The Himax camera is address 0x24. OV7670 uses 0x21, according to a couple pages I could find.
    Last edited by PaulStoffregen; 04-07-2021 at 09:41 AM.

  25. #200
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    8,289
    Quote Originally Posted by KurtE View Post
    The other sparkfun board that mentions the camera... https://www.sparkfun.com/products/15170
    Oh... the comments are not very enthusiastic.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •