First post, mostly out of curiosity. I’ve currently got a pair of the ADXL345 Accelerometers and I’m trying to tinker with a python script that can read data from both at the same time. I know they both work as I can swap them out in any of the IC2 Ports and they work flawlessly. I’m a bit at a loss though on how I would go about reading in from both at the same time?
I have three ideas about it, but I’d love the communities input.
- Adjust the Address in the python script i.e def init(self, address = 0x52): vs def init(self, address = 0x54):
- Purchase A Second GrovePi+ Shield and Run the Second Accelerometer off that.
- Purchase or cobble together some sort of jumper cable that will allow me to daisy chain the accelerometers.
As for my code at this point I am simply attempting to tinker with the provide .py files before I build my own to gain an understanding of their operation.
Thanks for the help!