Connecting Multiple Arduinos together to play a game


hey forum,

i'm new arduino , have googled past couple of weeks try , find more information out how connect 2 or more arduinos together. have seen i2c examples nothing gives me clue how can project.

the project
the project multiplayer game modular has buttons , leds attached each module. reason why id modular if player wanted play on own could, if want play multiplayer can plug in module same first , player against other module. have read believe need host arduino , connect amount of modules (players) want this. problem host needs send code players of button press , player replies first wins. modules 2 metres away each other , power wall adapters.

everything have seen requires master , slaves 1 way communication unless poll slaves master. lead missing player responded first? can recommend way of accomplishing setup better have research. more of can shout first approach.

i grateful responses

many thanks

hey forum,

i'm new arduino , have googled past couple of weeks try , find more information out how connect 2 or more arduinos together. have seen i2c examples nothing gives me clue how can project.

the project
the project multiplayer game modular has buttons , leds attached each module. reason why id modular if player wanted play on own could, if want play multiplayer can plug in module same first , player against other module. have read believe need host arduino , connect amount of modules (players) want this. problem host needs send code players of button press , player replies first wins. modules 2 metres away each other , power wall adapters.

everything have seen requires master , slaves 1 way communication unless poll slaves master. lead missing player responded first? can recommend way of accomplishing setup better have research. more of can shout first approach.

i grateful responses

many thanks
set shared comms, i'd go rs485.
have 1 device 'master'.
when game starts, have master synchronize of slaves millis() timers.
have 'slaves' record when button pressed.
the 'master' can poll each 'slave' comparing activation times.

the 'master' function 'slave'.

chuck.


Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > Connecting Multiple Arduinos together to play a game


arduino

Comments