Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Arduino Nano not recognized after power on with >6 devices. #49

@fopinski

Description

@fopinski

As there is no reply I edited that issue:

Describe the bug
When there are more than 6 slave devices the system will not recognize these in 1 out of 10 (or more) power on cycles. The device list is then just empty [ ].
There is a problem with the i2c initialization when such a large number of devices connects.

To Reproduce
Steps to reproduce the behavior:
I use an ESP8266-01S as Master device and 10 Arduino Nano as Slaves.
Use more than 6 Arduinos.
Check the device liste.
If it stays empty reset the Arduinos one by one and all of them should connect after a few seconds.
--Or--
Add a random delay to DoinoCoin_Arduino_Slave.ino before DuinoCoin_setup();

  randomSeed(analogRead(0));
  delay(8000+random(2000,3000)+random(2000,3000));
  DuinoCoin_setup();

The delay must be longer than the time it takes to get wifi and the pool.

Expected behavior
While I had only 6 Nano the rig worked immediately after power on.
When I added 4 additional Nano devices it should all work as with 6 of them.

Arduino (please complete the following information):

  • Arduino IDE Version 2 Beta
  • lates code from this github

Additional context
The wiring is correct. If it works it just works right after the power on, no issue then with the single Arduinos.
I deactivated the pull-up resistors on the Arduinos as they are deactivated by default in this code on the ESP.
The reason is that I use a bidirectional level shifter that already has 10k resistors on each line on each side.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions