Comments: Triple Axis Accelerometer Breakout - KX13x (Qwiic) Hookup Guide
Looking for answers to technical questions?
We welcome your comments and suggestions below. However, if you are looking for solutions to technical questions please see our Technical Assistance page.
If you've found an issue with this tutorial content, please send us your feedback!
It looks like there is a mistake in the following paragraph:
The SDO pin should be connected to the CIPO pin on the microcontroller. It would be helpful to have an SPI example sketch. To get SPI working, I added the following line to the sketch to set up the CS pin (and use the default pins otherwise):
I also changed the kxAccel.begin() call to:
Good catch, we've updated that section with the correct pin labels. Thanks for sharing your code snippets for using the sensor(s) with SPI.
Defective unit?
Hey gals n' guys, neither the 132 nor the 134 solder jumper is closed in the SEN-17589 (KX134) I received from mouser.ca yesterday.
Is this an undocumented hardware change? Or possibly a manufacturing error? The Hardware Overview states that one or the other should be bridged.
I'm thinking the lack of a solder bridge on the 134 jumper is the reason I cannot get any data from my board. I'm using the example1_basic_readings sketch.
I can provide a good photo if it would help.
Thanks for your great work. I absolutely love your content and style. And the tech, too, of course. :-)
Some further investigation has me convinced that the 132 and 134 solder jumpers are simply visual indicators. I'm pretty sure they have no functional impact.
It seems the problem I'm having with the example1_basic_readings sketch is actually that on line 73 the check for data returns false:
I also noticed that some of the documentation on the Website may be out of date. For example, has
been replaced with
The example sketch actually sets the range to 0x18. I couldn't figure out where that value was documented.
I'm pretty green at this stuff and don't rule out errors or misunderstandings on my part. ;-)
Best, Andrew
Hi there Vancouver Umbrella,
You are correct that the 132 & 134 jumpers are visual indicators and have no effect on functionality. As for the code documentation, we did a significant overhaul to the KX13X Arduino library last year that isn't reflected in this guide yet. We'll work on getting that updated. For now, refer to the Arduino Library's GitHub repository for the most recent code.
A quick suggestion that may help you with your board is to make sure you are initializing the correct version since Example 1 defaults to the KX132. These comments aren't intended for in-depth troubleshooting so if you need further help with your KX134 board, our Tech Support team can help you out in the SparkFun Forums. Our Troubleshooting Page will get you pointed in the right direction to get started on the Forums.
Thanks for this feedback and happy hacking!
Hey @El Duderino,
Many thanks for your helpful response. It's great to get direct feedback from someone like yourself who knows the product and documentation inside out. Thanks too for you response via email. I should have figured all channels would eventually lead to the same person (i.e. you).
I think I'll take your suggestion to try the forums. I have initialized the device as KX134 but there must something I've missed. Plausible data is received the accelerometer even though dataReady() always returns false.
Keep up the great work!
Andrew