MPU6050 connected to NANO (Salve) sending data to UNO(Master) through SPI!


hi all
i have connected mpu6050 arduino nano i2c (jeff rowberg) , want send sensor readings of nano uno (master) using spi!

my master(uno) , slave(nano) can't communicate while want report sensor values in slave using spdr ''http://www.gammon.com.au/forum/?id=10892'' explains !!!
(sensor readings are'nt transfered in master)

i have serial.begin(...) in both master , slave (in master run slave communication , in slave read mpu6050 data) problem?!

thanks in advance

this nick gammon's webpage on spi under topic "slave select".
quote
thus, slaves should let each of lines float (as inputs) unless slave select taken low. then, , then, should configure miso line (master in, slave out) output, can send data master.
however, under "how make spi slave", example not follow that. sets miso line output in setup function , never changes input. mean 1 slave work on spi bus.

nick gammon have explain you.




Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > MPU6050 connected to NANO (Salve) sending data to UNO(Master) through SPI!


arduino

Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code