SPI port/ I2C port pins on a mini metro

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Robzzz
 
Posts: 2
Joined: Tue Apr 11, 2017 2:34 am

SPI port/ I2C port pins on a mini metro

Post by Robzzz »

Hi,
according to the data on Metro Mini description, (https://www.adafruit.com/product/2590) there should be a hardware SPI port, hardware I2C port pins on a mini metro board. But I'm unable to figure out which pins these would be. Is the description page incorrect?

User avatar
adafruit_support_bill
 
Posts: 88087
Joined: Sat Feb 07, 2009 10:11 am

Re: SPI port/ I2C port pins on a mini metro

Post by adafruit_support_bill »

The i2c and SPI pinouts on the Metro Mini are the same as an UNO or any other Atmega328-based processor.

SPI is on pins: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK).
i2c is on pins A4 (SDA) and A5 (SCL)

User avatar
Robzzz
 
Posts: 2
Joined: Tue Apr 11, 2017 2:34 am

Re: SPI port/ I2C port pins on a mini metro

Post by Robzzz »

Thank you for your quick help. Everything is working well.

User avatar
Marshall0
 
Posts: 2
Joined: Fri Nov 24, 2017 9:46 pm

Re: SPI port/ I2C port pins on a mini metro

Post by Marshall0 »

Hello, My Name is Marshall,
I am an electrical engineering student student building a project with a 5V
metro mini, a SparkFun 6 Degrees of Freedom Breakout - LSM6DS3, and a logic
converter. So far all attempts to communicate with the sensor over I2C have
failed with both the included library and standard I2C protocal with just the wire.h library. When I measured the voltage of the clock line before passing
through the logic converter with a digital Analogue Discovery board using a
base of 1 ms, the clock line is stuck at 1.8 to 1.9V. I ordered through the
amazon link
https://www.amazon.com/gp/product/B016R ... UTF8&psc=1.
I went ahead and ordered a replacement just the other day and it has the same problem.
Help me please,
Marshall.

User avatar
adafruit_support_bill
 
Posts: 88087
Joined: Sat Feb 07, 2009 10:11 am

Re: SPI port/ I2C port pins on a mini metro

Post by adafruit_support_bill »

... and a logic converter.
What kind of 'logic converter'? Not all can handle bidirectional i2c signals.

User avatar
Marshall0
 
Posts: 2
Joined: Fri Nov 24, 2017 9:46 pm

Re: SPI port/ I2C port pins on a mini metro

Post by Marshall0 »

I was using the SparkFun Logic Level Converter - Bi-Directional, but when removed, the voltage of the data and clock line hang around 3.5 to 4 V, so it works with the sensors, but is noisy, I am probably going to order a 3.3V zener diode, place it on the circuit or make a voltage divider.

User avatar
adafruit_support_bill
 
Posts: 88087
Joined: Sat Feb 07, 2009 10:11 am

Re: SPI port/ I2C port pins on a mini metro

Post by adafruit_support_bill »

You should use a level converter specifically designed for i2c: https://www.adafruit.com/product/757

User avatar
lisleman
 
Posts: 117
Joined: Wed Aug 06, 2014 5:53 pm

Re: SPI port/ I2C port pins on a mini metro

Post by lisleman »

SPI is on pins: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK).
i2c is on pins A4 (SDA) and A5 (SCL)
this is good info I'm glad I found it but I would have found it quicker if you included it on the pin-out page of the tutorial about this board.

User avatar
adafruit_support_bill
 
Posts: 88087
Joined: Sat Feb 07, 2009 10:11 am

Re: SPI port/ I2C port pins on a mini metro

Post by adafruit_support_bill »

Thanks for the feedback. I will forward it to the author of the guide.

User avatar
adafruit2
 
Posts: 22144
Joined: Fri Mar 11, 2005 7:36 pm

Re: SPI port/ I2C port pins on a mini metro

Post by adafruit2 »

good idea! added :)

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”