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?
SPI port/ I2C port pins on a mini metro
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88087
- Joined: Sat Feb 07, 2009 10:11 am
Re: SPI port/ I2C port pins on a mini metro
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)
SPI is on pins: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK).
i2c is on pins A4 (SDA) and A5 (SCL)
- Robzzz
- Posts: 2
- Joined: Tue Apr 11, 2017 2:34 am
Re: SPI port/ I2C port pins on a mini metro
Thank you for your quick help. Everything is working well.
- Marshall0
- Posts: 2
- Joined: Fri Nov 24, 2017 9:46 pm
Re: SPI port/ I2C port pins on a mini metro
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.
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.
- adafruit_support_bill
- Posts: 88087
- Joined: Sat Feb 07, 2009 10:11 am
Re: SPI port/ I2C port pins on a mini metro
What kind of 'logic converter'? Not all can handle bidirectional i2c signals.... and a logic converter.
- Marshall0
- Posts: 2
- Joined: Fri Nov 24, 2017 9:46 pm
Re: SPI port/ I2C port pins on a mini metro
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.
- adafruit_support_bill
- Posts: 88087
- Joined: Sat Feb 07, 2009 10:11 am
Re: SPI port/ I2C port pins on a mini metro
You should use a level converter specifically designed for i2c: https://www.adafruit.com/product/757
- lisleman
- Posts: 117
- Joined: Wed Aug 06, 2014 5:53 pm
Re: SPI port/ I2C port pins on a mini metro
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.SPI is on pins: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK).
i2c is on pins A4 (SDA) and A5 (SCL)
- adafruit_support_bill
- Posts: 88087
- Joined: Sat Feb 07, 2009 10:11 am
Re: SPI port/ I2C port pins on a mini metro
Thanks for the feedback. I will forward it to the author of the guide.
- adafruit2
- Posts: 22144
- Joined: Fri Mar 11, 2005 7:36 pm
Re: SPI port/ I2C port pins on a mini metro
good idea! added :)
Please be positive and constructive with your questions and comments.