I'd like to use both the bluetooth module and GPS module with my Flora project, but there's only one RX and TX port on the main board. If I had two Floras, would it be possible to connect one module to each of the two Flora boards, and then connect the two boards via I2C like you can do with normal Arduinos? A master-slave connection like that would allow for a single Flora to harbor the GPS information and still transmit it via Bluetooth, all while having enough ports for both modules.
I've used the Wire library in the past for an Arduino Uno. Is there any way to do this with the Flora, while also allowing room for a different RX and TX connection to happen on each board?
Thanks!
Connecting Multiple Floras via I2C
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88091
- Joined: Sat Feb 07, 2009 10:11 am
Re: Connecting Multiple Floras via I2C
Yes, it would be possible to communicate master/slave via i2c between Flora boards.
- dukeeagle
- Posts: 6
- Joined: Thu Jun 22, 2017 5:43 pm
Re: Connecting Multiple Floras via I2C
Great! Could you provide a wiring guide for that? I can't find one for Flora anywhere.
- adafruit_support_bill
- Posts: 88091
- Joined: Sat Feb 07, 2009 10:11 am
Re: Connecting Multiple Floras via I2C
Wiring is the same as for an Arduino - only the pins are in different locations.
Connect:
GND->GND
SDA->SDA
SCL->SCL
https://www.arduino.cc/en/Tutorial/MasterReader
https://www.arduino.cc/en/Tutorial/MasterWriter
Connect:
GND->GND
SDA->SDA
SCL->SCL
https://www.arduino.cc/en/Tutorial/MasterReader
https://www.arduino.cc/en/Tutorial/MasterWriter
- dukeeagle
- Posts: 6
- Joined: Thu Jun 22, 2017 5:43 pm
Re: Connecting Multiple Floras via I2C
Thank you so much! That's super helpful.
- adalloul92
- Posts: 3
- Joined: Fri Jun 23, 2017 4:01 am
Re: Connecting Multiple Floras via I2C
can I do the communication between a feather and an Arduino Mega or Uno?
- adafruit_support_bill
- Posts: 88091
- Joined: Sat Feb 07, 2009 10:11 am
Re: Connecting Multiple Floras via I2C
Yes, you can communicate between them. But keep in mind that the Floras and Feathers are 3.3v devices and the UNOs and Megas are 5v devices. Either make sure that all bus pullups are pullups to 3.3v only - or use an 'i2c-safe' level-shifter: https://www.adafruit.com/product/757
Please be positive and constructive with your questions and comments.