0

Help with LSM303 and NeoPixel
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Help with LSM303 and NeoPixel

by Magna17 on Sun Jan 13, 2019 4:51 pm

I'm trying to create a code, that my NeoPixel lights up when my accelerometer experiences an acceleration over a certain number. I'm having trouble creating the code, and I've also tried looking around the web to see if anyone made the code or something similar to it. I either find a code that doesn't compile right, or a code that doesn't do what I want it to do. Any help would be appreciated.

Magna17
 
Posts: 3
Joined: Wed Nov 28, 2018 9:53 am

Re: Help with LSM303 and NeoPixel

by caitlinsdad on Fri Jan 18, 2019 1:47 am

Look at the bottom of the product page for links to guides for some projects using the accelerometer. The light up skirts should be similar to what you are doing. Tell us more about your setup - what kind of board you are using and how many neopixels you are using and what kind of errors you are getting to help more. https://www.adafruit.com/product/1247
Good luck.

caitlinsdad
 
Posts: 565
Joined: Fri Feb 24, 2012 4:23 pm

Re: Help with LSM303 and NeoPixel

by Magna17 on Fri Jan 25, 2019 4:02 pm

I'm using a Flora, RGB Smart NeoPixel, and a LSM303 accelerometer. Thanks for the suggestion, but I've already looked at the project you mention. I did found this https://learn.adafruit.com/3d-printed-flora-band to be more to my liking, but the first time when I was using it I set the
Code: Select all | TOGGLE FULL SIZE
#define MOVE_THRESHOLD
too high of a number. I don't know why the NeoPixel wasn't lighting up. I probably set the sensitivity too low, so I would've had to move the accelerometer a lot more. However, I did make my project work by setting the sensitivity higher than what I had it at. Thanks for the help and suggestions It was appreciated.

Magna17
 
Posts: 3
Joined: Wed Nov 28, 2018 9:53 am

Please be positive and constructive with your questions and comments.