Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

example: i2c arduino master and slave communication

4 posters

Go down  Message [Page 1 of 1]

KarstenLehmann



Hello,
I need a arduino master & slave communication over i2c.
I try some examples and tutorials from the net, but I don't get it to run. I tested this with UNO, NANO, MEGA – whatever I try, the standard i2c-scan didn't find the slave.

Is there a special trick to solve this?
Has someone a running example for me, please…???

best regards and thank you in advance!

example: i2c arduino master and slave communication Nano_i10
Attachments
example: i2c arduino master and slave communication AttachmentWire_examples.zip
You don't have permission to download attachments.
(26 Kb) Downloaded 4 times

arcachofo

arcachofo

Thanks, I will have a look as soon as posible.

KarstenLehmann likes this post

Defran

Defran

I2C communications. I'm afraid it doesn't work on trunk either. I attach all the test apparatus.

Tell me ASAP, please.

Attachments
example: i2c arduino master and slave communication Attachmentmaster_slave_i2c.zip
You don't have permission to download attachments.
(8 Kb) Downloaded 5 times

KarstenLehmann likes this post

KarstenLehmann



Thank you very much, Defran!
I have tested your files here under Linux64 – make additional jobs for uno, mega, nano – with and without pullup-resistors.
All test, under rc3, sr0, R1348 didn't run.

standard-i2c-scanner did not find any slave…?!?
Attachments
example: i2c arduino master and slave communication AttachmentDefran_i2c_tests.zip
You don't have permission to download attachments.
(43 Kb) Downloaded 3 times

arcachofo

arcachofo

There is a problem with AVR I2C in slave mode.
I'm working on it but the solution is not trivial.

KarstenLehmann likes this post

KerimF

KerimF

arcachofo wrote:There is a problem with AVR I2C in slave mode.
I'm working on it but the solution is not trivial.

I guess, it was done for I2C RAM (SEEP memory as 24C512).
But, of course, implementing it, in an MCU, likely needs some other considerations.

KarstenLehmann likes this post

KarstenLehmann



Hello KerimF,
I think, the implementation is already done – but it's not running on the Arduinos at the moment…

https://wiki.mexle.org/lib/exe/fetch.php?media=microcontrollertechnik:twi_slave_master.zip

https://wiki.mexle.org/doku.php?id=microcontrollertechnik:10._i2c_schnittstelle

arcachofo

arcachofo

Issue solved at 1.0.0 R1351 and trunk R1655.

KarstenLehmann likes this post

Defran

Defran

ok, in T1657, thanks.

arcachofo and KarstenLehmann like this post

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum