accelerometer / gyro programming
#1
I'm experimenting with writing some programs that use the accelerometer & gyro and I'm wondering if anyone here knows if there are "Unix-y" interfaces for these devices (/dev/something) or if they need to be accessed via some other mechanism like the SPI bus, etc.?

The programs I'm writing are in C but if you have an example in another language I might be able to translate.

Thank-you!


Jason
#2
They have kernel drivers and "Unix-y" interfaces - see for example:
https://wiki.postmarketos.org/wiki/PINE6...e)#Sensors

Note that the device number might not be consistent - on mobian the mpu6050 is on iio:device2


Possibly Related Threads…
Thread Author Replies Views Last Post
  Hardware Security Switch for Speakers and Gyro whysperer 3 3,386 10-20-2020, 09:42 PM
Last Post: daniel

Forum Jump:


Users browsing this thread: 1 Guest(s)