MarvinsMom
New member
I'm using a raspberry pi as a master and teensy 3.6 as slave. The SCL and SDA have 4.7 Kohm pull-up resistors to 3.3V. The teensy and RPi are powered through an external 4.9V supply. Their powers and grounds are connected.
In testing, when I power the RPi from its USB-C supply, and then the teensy off of the RPi, the program works and they talk i2c. When I power the RPi and the teensy from the external supply, they no longer talk. I am getting [Errno 5] Input/Output error from the RPi. The RPi is picking up the teensy located at the correct i2c address and it properly sends the SCL but cannot receive the SDA. I can send single bytes back and forth, but not blocks of data.
[Errno 5] Input/Output data normally means bad hardware or connections, but since the system is able to send single bytes back and forth, I do not think this is the issue. It seems the raspberry pi is improperly reading the SDA? Does it have something to do with my voltage logic?
All I am doing is telling the teensy I want to read 4 bytes, and then having the teensy send back 4 bytes to the pi.
In testing, when I power the RPi from its USB-C supply, and then the teensy off of the RPi, the program works and they talk i2c. When I power the RPi and the teensy from the external supply, they no longer talk. I am getting [Errno 5] Input/Output error from the RPi. The RPi is picking up the teensy located at the correct i2c address and it properly sends the SCL but cannot receive the SDA. I can send single bytes back and forth, but not blocks of data.
[Errno 5] Input/Output data normally means bad hardware or connections, but since the system is able to send single bytes back and forth, I do not think this is the issue. It seems the raspberry pi is improperly reading the SDA? Does it have something to do with my voltage logic?
All I am doing is telling the teensy I want to read 4 bytes, and then having the teensy send back 4 bytes to the pi.