3/27/2017 1:17 PM | |
Posts: 7 Rating: (0) |
Hello, I am currently having a problem with the I2C-bus of the SIMATIC IOT 2020. I am using the Example Image V2.1.2 and the i2c-dev driver is loaded. When I try to detect my connected I2C-device (Temperature/Humidity-Sensor HYT221) with 'i2cdetect', I am getting the following message: 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- UU UU UU -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- UU -- -- -- -- -- -- -- -- 50: -- -- -- -- UU UU UU UU -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: 70 -- -- -- -- -- -- -- It doesn't matter if the device is connected to the IOT or not. The result that I am getting stays the same. As a result I am not able to use my I2C-device. I also tried to recreate the I2C Expansion Board example, but this isn't working either. Reinstalling the complete IOT image didn't solve the problem. Maybe I need to enable the I2C-bus somehow but I couldn't find any option to do that. I hope that someone can help me on this subject. |
3/27/2017 1:26 PM | |
Posts: 71 Rating: (16) |
Hello rhorch, can you explain and/or show how you connected your sensor? Which pins did you use? From what i2cdetect shows, I2C itself seems to be working. |
3/27/2017 3:00 PM | |
Posts: 71 Rating: (16) |
Can you try if it works with Pin 9 (SDA) and Pin 10 (SDL) on X10? |
3/28/2017 7:42 AM | |
Posts: 7 Rating: (0) |
I already tried it, but this didn't work either... |
3/28/2017 7:58 AM | |
Posts: 71 Rating: (16) |
Is jumper X18 set to 5 V IO voltage level? (alternatively, you can also run your sensor off 3.3 V) |
Last edited by: AutoGen_2630904 at: 3/28/2017 7:59:06 AM |
|
3/28/2017 9:50 AM | |
Posts: 7 Rating: (0) |
Changing the X18 jumper position didn't have any effect. |
3/29/2017 5:06 PM | |
Posts: 7 Rating: (0) |
This solved my problem, thank you very much! |
Follow us on