My project idea is for a robot car (MEGA 2560) that can accept gesture commands ( from nano 33 ble sense) while Mastering over an arduino NANO for peripheral sound effects.
In a nutshell I believe I need the MEGA 2560 to act as a slave and a master at different times while coexisting with BLE sense chip configured as permanent master but how?
So MEGA 2560 should always be a slave except when it needs to play a voice( send 5 bytes command to NANO ; no need to explain what the bytes are for), it should then revert back to a slave mode, awaiting 'receive_event()' while controlling the car inside its own program.
Different events during program excecution will need different voices so periodically MEGA 2560 needs to Master it up and somehow deal with BLE sense.
NANO is a permanent slave and will respond to an incoming 5 bytes on the bus.
The low level data exchange is already tested and verified for
MEGA 2560 to NANO as well as
BLE sense to NANO
The 33 ble sense chip is master only. master only, gosh darnit!
I guess I need to somehow isolate SDA SCL on the BLE sense chip during the time MEGA 2560 is mastering. This does not sound like a good solution.