Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

MLX90640 Breakout Board Connection to PyBadge
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

MLX90640 Breakout Board Connection to PyBadge

by Jeff_T2 on Mon Jul 13, 2020 8:57 am

I recently bought the MLX90640 to work with the pybadge controller to reproduce the recent thermal camera project to show students.
I received the 110 degree MLX90640 breakout board and need to solder a header to connect it (as apposed to the simply plug and play approach shown in your
project). Given there are 5 pin on the camera module and only 4 on the i2c connector, my question is how do I wire this up to work
(do I just leave the int pin open circuit)? I could guess and
possibly damage something, but your help would be appreciated.

Jeff_T2
 
Posts: 4
Joined: Mon Jul 13, 2020 8:53 am

Re: MLX90640 Breakout Board Connection to PyBadge

by adafruit_support_carter on Mon Jul 13, 2020 12:43 pm

Use the STEMMA connector as shown here:
https://learn.adafruit.com/pybadge-ther ... l-mlx90640
That guide should also have details and links to the cable used.

You can ignore the 5 pins for what you are trying to do. Those are essentially duplicates of what is on the STEMMA connector. They are there for using in non-STEMMA setups, or just available for general use. But the STEMMA connector has all of the pins you need for basic use.

By using the STEMMA cable and connector, the MLX90640 can be connected to the PyBadge without soldering.

adafruit_support_carter
 
Posts: 16938
Joined: Tue Nov 29, 2016 2:45 pm

Re: MLX90640 Breakout Board Connection to PyBadge

by Jeff_T2 on Mon Jul 13, 2020 8:37 pm

mlx90640_110_breakout.jpg
mlx90640_110_breakout.jpg (168.49 KiB) Viewed 70 times


The MLX90640 breakout board does not have the suggested connector, only the 5-pin header (see figure).
Hence the need to identify a new wiring configuration.

Jeff_T2
 
Posts: 4
Joined: Mon Jul 13, 2020 8:53 am

Re: MLX90640 Breakout Board Connection to PyBadge

by adafruit_support_carter on Mon Jul 13, 2020 9:54 pm

Oh, different breakout. OK, for that one, yes, ignore the INT pin and use the other four.

Use this guide for general info on the STEMMA connector, like pinout:
https://learn.adafruit.com/introducing- ... -stemma-qt
and here are cables options:
https://www.adafruit.com/category/619

And here is the info on the connector on the PyBadge:
https://learn.adafruit.com/adafruit-pyb ... 3028457-19

Do you have some kind of preference for what to do with the header pins on the MLX breakout? Is soldering OK? etc.

adafruit_support_carter
 
Posts: 16938
Joined: Tue Nov 29, 2016 2:45 pm

Re: MLX90640 Breakout Board Connection to PyBadge

by Jeff_T2 on Mon Jul 13, 2020 11:26 pm

Probably install a SIL header and connector.

Now trying to get the Arduino IDE (upgraded to 1.8.13) to recognise the pyBadge board and compile the demo (MLX90640_arcadaCam.ino) on my iMac.
I ran board manager and installed all options, however after restarting, only get the playground express option (unlike the example in your on-line instructions).

Similarly the software fails to compile.
/Users/user/Desktop/Arduino Temp/Arduino.1.8.13.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Users/user/Desktop/Arduino Temp/Arduino.1.8.13.app/Contents/Java/hardware -hardware /Users/user/Library/Arduino15/packages -tools /Users/user/Desktop/Arduino Temp/Arduino.1.8.13.app/Contents/Java/tools-builder -tools /Users/user/Desktop/Arduino Temp/Arduino.1.8.13.app/Contents/Java/hardware/tools/avr -tools
...
Compiling sketch...
"/Users/user/Desktop/Arduino Temp/Arduino.1.8.13.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega32u4 -DF_CPU=8000000L -DARDUINO=10813 -DARDUINO_AVR_CIRCUITPLAY -DARDUINO_ARCH_AVR -DUSB_VID=0x239A -DUSB_PID=0x8011 "-DUSB_MANUFACTURER=\"Adafruit\"" "-DUSB_PRODUCT=\"Circuit Playground\"" "-I/Users/user/Desktop/Arduino Temp/Arduino.1.8.13.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/Users/user/Desktop/Arduino Temp/Arduino.1.8.13.app/Contents/Java/hardware/arduino/avr/variants/circuitplay32u4" -I/Users/user/Documents/Arduino/libraries/Adafruit_MLX90640 -I/Users/user/Documents/Arduino/libraries/Adafruit_BusIO "-I/Users/user/Desktop/Arduino Temp/Arduino.1.8.13.app/Contents/Java/hardware/arduino/avr/libraries/Wire/src" -I/Users/user/Documents/Arduino/libraries/Adafruit_Arcada_Library -I/Users/user/Documents/Arduino/libraries/Adafruit_GFX_Library -I/Users/user/Documents/Arduino/libraries/Adafruit_NeoPixel "-I/Users/user/Desktop/Arduino Temp/Arduino.1.8.13.app/Contents/Java/hardware/arduino/avr/libraries/SPI/src" -I/Users/user/Documents/Arduino/libraries/Adafruit_TouchScreen /var/folders/kd/69_hhs4j0r3987rjvws7jxn00000gt/T/arduino_build_828170/sketch/MLX90640_arcadaCam.ino.cpp -o /var/folders/kd/69_hhs4j0r3987rjvws7jxn00000gt/T/arduino_build_828170/sketch/MLX90640_arcadaCam.ino.cpp.o
MLX90640_arcadaCam:3:1: error: 'Adafruit_Arcada' does not name a type; did you mean 'Adafruit_SPITFT'?
Adafruit_Arcada arcada;
^~~~~~~~~~~~~~~
Adafruit_SPITFT
...
exit status 1
'Adafruit_Arcada' does not name a type; did you mean 'Adafruit_SPITFT'?

Has something changed?

Jeff_T2
 
Posts: 4
Joined: Mon Jul 13, 2020 8:53 am

Re: MLX90640 Breakout Board Connection to PyBadge

by adafruit_support_carter on Tue Jul 14, 2020 11:55 am

I ran board manager and installed all options, however after restarting, only get the playground express option (unlike the example in your on-line instructions).


Did you install the Adafruit SAMD Board Support Package?
https://learn.adafruit.com/adafruit-pybadge/setup

adafruit_support_carter
 
Posts: 16938
Joined: Tue Nov 29, 2016 2:45 pm

Re: MLX90640 Breakout Board Connection to PyBadge

by Jeff_T2 on Tue Jul 14, 2020 8:40 pm

Follow those instructions and then clicked on the bottom right to follow the Arduino IDE instructions.
Installed all the SAMD options (including M0, M3 etc.), still my issue seems to be associated with library versioning and the ability to build prior to uploading.

Jeff_T2
 
Posts: 4
Joined: Mon Jul 13, 2020 8:53 am

Re: MLX90640 Breakout Board Connection to PyBadge

by adafruit_support_carter on Wed Jul 15, 2020 12:09 pm

If you are not seeing an option for PyBadge in your Boards menu, then something hasn't been installed correctly:
boards.jpg
boards.jpg (79.06 KiB) Viewed 60 times


If you look in your Board Manager, what versions are shown for the Arduino SAMD and the Adafruit SAMD Boards?
bman.jpg
bman.jpg (60.72 KiB) Viewed 60 times

adafruit_support_carter
 
Posts: 16938
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.