{"action":"closed","issue":{"url":"https://api.github.com/repos/iNavFlight/inav/issues/3892","repository_url":"https://api.github.com/repos/iNavFlight/inav","labels_url":"https://api.github.com/repos/iNavFlight/inav/issues/3892/labels{/name}","comments_url":"https://api.github.com/repos/iNavFlight/inav/issues/3892/comments","events_url":"https://api.github.com/repos/iNavFlight/inav/issues/3892/events","html_url":"https://github.com/iNavFlight/inav/issues/3892","id":365152929,"node_id":"MDU6SXNzdWUzNjUxNTI5Mjk=","number":3892,"title":"AK8975 not working over I2C","user":{"login":"Zipdox","id":42157341,"node_id":"MDQ6VXNlcjQyMTU3MzQx","avatar_url":"https://avatars1.githubusercontent.com/u/42157341?v=4","gravatar_id":"","url":"https://api.github.com/users/Zipdox","html_url":"https://github.com/Zipdox","followers_url":"https://api.github.com/users/Zipdox/followers","following_url":"https://api.github.com/users/Zipdox/following{/other_user}","gists_url":"https://api.github.com/users/Zipdox/gists{/gist_id}","starred_url":"https://api.github.com/users/Zipdox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zipdox/subscriptions","organizations_url":"https://api.github.com/users/Zipdox/orgs","repos_url":"https://api.github.com/users/Zipdox/repos","events_url":"https://api.github.com/users/Zipdox/events{/privacy}","received_events_url":"https://api.github.com/users/Zipdox/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-09-29T17:50:49Z","updated_at":"2018-11-14T18:56:00Z","closed_at":"2018-11-14T18:56:00Z","author_association":"NONE","body":"So I'm trying to connect my GPS puck's compass over SDA and SCL but it isn't really working. The chip on the board is the AK8975 and so that's what I selected. But the magnetometer symbol was red after rebooting and the status dump:\r\n\r\n```# status\r\nSystem Uptime: 171 seconds\r\nCurrent Time: 2018-09-29T17:34:11.479+00:00\r\nVoltage: 11.62V (1S battery - OK)\r\nCPU Clock=168MHz, GYRO=MPU6000, ACC=MPU6000, BARO=BMP280\r\nSTM32 system clocks:\r\n  SYSCLK = 168 MHz\r\n  HCLK   = 168 MHz\r\n  PCLK1  = 42 MHz\r\n  PCLK2  = 84 MHz\r\nSensor status: GYRO=OK, ACC=OK, MAG=UNAVAILABLE, BARO=OK, RANGEFINDER=NONE, OPFLOW=NONE, GPS=OK\r\nSD card: None inserted\r\nStack size: 6144, Stack address: 0x10010000, Heap available: 884\r\nI2C Errors: 0, config size: 4135, max available config: 131072\r\nADC channel usage:\r\n   BATTERY : configured = ADC 2, used = ADC 2\r\n      RSSI : configured = ADC 3, used = none\r\n   CURRENT : configured = ADC 1, used = none\r\n  AIRSPEED : configured = none, used = none\r\nSystem load: 1, cycle time: 1000, PID rate: 1000, RX rate: 49, System rate: 9\r\nArming disabled flags: NAV HWFAIL CLI```\r\n\r\nWhen I measured SCL and SDA with my oscilloscope it showed SDA is constantly high and SCL is constantly low. Yes, it does receive enough power, I have tried 4.7k pullups and there's nothing on UART3.\r\n\r\nNow interestingly when I set the magnetometer to HMC5883, there is _some_ traffic during startup but then it ends and SDA is constantly high and SCL is constantly low again. And sometimes, very rarely it works set to HMC5883 but then after a restart it's dead again. I'm not sure if this is a hardware or a software issue but since it behaves differently on different settings I think it's software. I'll try it with an arduino soon so'll report back later."}}
{"actor":{"display_login":"Zipdox"}}