I2C device detection (Interfacing with kx022 magnetometer)

50 views
Skip to first unread message

mamane...@gmail.com

unread,
May 28, 2018, 1:41:14 PM5/28/18
to BeagleBoard
Good day,

i'm having an issue with my beaglebone black.  When I run the "i2cdetect -y -r 2", it shows the address map without detecting the device and if I run "i2cget -y 2 0x1e 0x0f b"
I get an error: "Error: Read Failed" as shown in the following picture (https://photos.app.goo.gl/DYA4Pa7ySyA4CGMk1). Note that I'm interfacing the beaglebone black with the Kx022 magnetometer. This is what the Kernel log shows (https://photos.app.goo.gl/owkR1CrGRTLrcD1K3).
Please note that I'm fairly new with this.

Thanks In advance,
Christ

Graham

unread,
May 28, 2018, 2:14:40 PM5/28/18
to BeagleBoard
Well, until you can see it with i2cdetect, you don't have a chance of running software successfully.

Are there any other I2C devices on the bus that you can see, so that you know the bus is working correctly?
Where (which pins) is the bus connected?
What value of pull-up resistors are you using?
Do you have another i2c device you can hook to the bus to test it?

--- Graham

==

christ christ

unread,
Jun 1, 2018, 8:14:32 PM6/1/18
to BeagleBoard
Good day Graham,
Got it working thanks for the intention to help.


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/MqG_KYFhFN4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/4dd07a28-7c47-4eb3-a7e9-43a60b87e183%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages