0

EdgeBadge accelerometer always 0
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

EdgeBadge accelerometer always 0

by marnixvv on Thu Oct 01, 2020 6:34 am

Product: EdgeBadge, purchased this week from Mouser

I was trying out some of the samples on https://arcade.makecode.com/ and found that the animated sand demo wasn't working as I'd expect. All the grains get stuck in the bottom right corner of the screen.

After a bit of fiddling I found that the accelerometer always returns 0 for all three axis.

I've set up a small reproduction project ( see https://makecode.com/_Tg5hpD0cJRtR ) that just outputs the accelerometer readings to the screen and sure enough, it's all zeros.

I'm pretty sure the accelerometer itself is fine though, since I do get proper readings when using Arduino programs.
If it's a software issue I'd love to pitch in with a PR on GitHub but I have no clue where to start looking.

marnixvv
 
Posts: 1
Joined: Thu Oct 01, 2020 6:20 am

Re: EdgeBadge accelerometer always 0

by kevinjwalters on Thu Oct 01, 2020 7:45 pm

Might be worth a post to https://forum.makecode.com/ too. I've used the PyGamer's accelerometer a while ago and that was working fine at the time. Most of their tickets start off in https://github.com/microsoft/pxt-arcade/issues - a few will get moved to the other pxt repositories.

kevinjwalters
 
Posts: 963
Joined: Sun Oct 01, 2017 3:15 pm

Please be positive and constructive with your questions and comments.