compass pdf link expired: VTC AF8133J help
#1
I'm working on a custom OS in Zig for the PinePhone v1.2b.  I am struggling to find some documentation on various parts of the hardware.  Today the compass.  I tried the I2C address for the AKM compass, and no response, so I am hoping I have the VTC compass, otherwise my TWI1 code is doing something very wrong Smile

But I dont have the I2C address, and the documentation linked from the component page on the wiki has expired.  Can anyone shed some light on this please.  A good start would be the I2C address, but a copy of the data sheet would be best please.  I am unable to decode linux source tree structure to find this.

Also, are the PinePhone sensors always powered, since DLD01 seems to be used everywhere.  For the LCD and touch I had to switch on some pio pins, but I dont see that on schematics, only EINT pins.  Iḿ worried about power usage from unused sensors.
I am used to following @lupyuen  amazing tutorials, but I think he focuses more on new devices and didnt cover the sensors Sad
  Reply
#2
https://web.archive.org/web/202010311224...3J V03.pdf
  Reply
#3
Thanks Kevin! The data sheet is perfect. I did have a bug in my I2C code, but anyway now I get a response from device 0x1C, albeit not quite what I expected. work-in-progress Smile

I also wrote an I2C probe, and found a couple more sensors, so I may be back! Smile
  Reply
#4
(11-07-2025, 12:33 PM)WhiteHexagon Wrote: Thanks Kevin! The data sheet is perfect.  I did have a bug in my I2C code, but anyway now I get a response from device 0x1C, albeit not quite what I expected.  work-in-progress Smile 

I also wrote an I2C probe, and found a couple more sensors, so I may be back! Smile

It would be cool to get even the crudest of compass apps(just needle and digital degrees/mils) for the PP linux distros.
  Reply
#5
I think the PinePhone still has a lot to offer, but I dont understand the Linux development process. Plus having a custom OS gives me much more flexibility in design and language choice (Zig).

Once I get compass working, I want to look at GPS and see if I can cobble together a small utility for hiking. Although I just got sidetracked drawing .svg compass and wondering if I can get OpenGL ES working to render it, ie check back in 12 months Wink
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Ubports link for Pinephone OS colin hodsdon 2 5,658 02-14-2020, 06:28 PM
Last Post: Goddard

Forum Jump:


Users browsing this thread: 1 Guest(s)