Le dimanche 21 septembre 2014 17:55:42 UTC-4, Gökhan Tarim a écrit : > > Hello everyone, > > I have a project about earthquake and i'm using accelerometer sensors to > measure earthquake data. But I have a problem with that. > > I want to measure two accelerometer sensors that support I2C with > Beaglebone Black at the same time but these sensors will be different I2C > port and > The timing is so important for me. I have to take all data from sensors at > the same time. I readed some article about that situation and mostly people > using > MCU that support RTOS but I'm using Linux kernel. > > So is it possible with software ? and how should i do ? > > Thank you for responses. >
Hi, As Charles mentioned, you did not tell which sensors you are using. Why could not the sensors be on the same bus ? On the same bus, you could broadcast a message to start conversion. see http://www.i2c-bus.org/addressing/general-call-address/ Derek Moloy got interesting videos too : https://www.youtube.com/watch?v=8C2zk6B-eLU That said, I am also working on time critical AD conversion for accelerometers in order to measure displacement, thus integration of accelerometers data and I need to have a precise time interval. I first tried using Gpio from userland but timing was out of control. This is why I'm trying to use the PRUs units to control the ADCs Regards, Cedric -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
