how to connect 6 of ( arduino mega)s with one arduino uno wifi ?

Hello everyone , this is my first topic on arduino.cc:)

i used this https://www.arduino.cc/en/Tutorial/MasterReader to do my project but for some reason its not working with me , i will appreciate anyone would help me .

the only difference is that on this https://www.arduino.cc/en/Tutorial/MasterReader they connect to arduino mega to each other , but my project is connecting arduino mega with arduino UNO Wifi , So how can i connect 6 of ( arduino mega)s with one arduino uno wifi ?

thank you :kissing:

So how can i connect 6 of ( arduino mega)s with one arduino uno wifi ?

For what purpose? Using what communications protocol?

i'm using i2c .
i have 6 devises that i need to connect them to a website .

i'm using i2c .

So, what is the problem? The UNO is the master, and the Megas are the slaves. You can't have 6 masters and one slave, so the UNO must be the master.

i;m trying now with on mega but it still not working
the master(UNO wifi) is not receive anything and the serial monitor is not displaying things as well ?
i think the slave(Mega) dose not send anything where it should send “Hello” to the master(UNO Wifi)

what may be the cause of this problem ? and how can i solve it ?

thanks :slight_smile:
and sorry for late replay …

slave_test1.ino (433 Bytes)

Capture.PNG

There is no point in calling Wire.write() anywhere other than in the onReceive() function.

You need to post your master code, too.

Why does your slave code have no debug output?