0

In our project there is 1 master talking to 3 slaves, of which 1 over bluetooth and the other over a wired connection. We looked into the option of doing it over a I2C but were wondering if this can be used for 2 arduino's in parallel?

If this would not be an option, we could also try to build this prototype with 3 bluetooth connections. I already saw that the master can only communicate to 1 slave at a time forcing us to establish new connection the whole time which would be okay. Do you have any tips on how to tackle this problem? I was thinking by using pre programmed AT commands establishing/ breaking the connection when needed.

Share a link to this question (includes your user id)
| edit | | close | delete |
0

There is an example here for i2c communication between a set of 4 Arduino's.

However, for i2c cable length is an issue: the higher the speed the shorter the cables must be. So start with short cables for testing (eg. 20cm). Then increase cable lengths if necessary. You can also switch to low speed mode, eg. using Wire.setClock(10000).

Share a link to this answer (includes your user id)
| edit | delete |
  • Thanks! Would you also have some reference material for multi-bluetooth connection and thus switching between slaves? (Figured this could be done by serial printing AT commands everytime a new arduino needs to be communicated with) – Maurits Krijnsen Jun 20 at 10:07    

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.