I have a question about programing accelerometer. I want to make a dice that has an accelerometer built inside so when you roll the dice the number that is rolled can be sent via radio wave to a screen.
To do this I was hoping I could program the accelerometer to know that X: 100 and Y: 240 would mean that the number 6 was on top and so on and so fourth.
Am i completly mad here? Do accelerometers work this way at all?
Newbie Question: Accelerometer
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- len17
- Posts: 394
- Joined: Sat Mar 14, 2009 7:20 pm
Re: Newbie Question: Accelerometer
The 3-axis accelerometer sold by adafruit works exactly that way. If you put it in a 6-sided die with its axes parallel to the faces of the cube, any orientation will give +1g or -1g on one axis and zero on the other axes.
-
- Posts: 8
- Joined: Mon Oct 10, 2011 12:05 pm
Re: Newbie Question: Accelerometer
Thank you for that quick reply. Now all i need to do is learn how to program and learn what else i need to build this device. This will be my first electronic making endevor.
- Franklin97355
- Posts: 23910
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Newbie Question: Accelerometer
you will need a radio of some sort and probably a microcontroller to format and send the data. And batteries.and learn what else i need to build this device.
-
- Posts: 8
- Joined: Mon Oct 10, 2011 12:05 pm
Re: Newbie Question: Accelerometer
Thanks you. I am hoping to be able to make it fit within a 1inch by 1inch sized cube. But I imagin that might be a lttle hard and could increse the size of the cube but I dont want to go any larger then 2 inch by 2inch cube.
-
- Posts: 82
- Joined: Tue Aug 02, 2011 7:57 pm
Re: Newbie Question: Accelerometer
You could create a radio circuit (2.4GHz) that small, but for a project like this I would recommend that you consider using IR to communicate between dice and screen, it would save you a lot of time (from not having to deal with all the things that can go wrong using a radio circuit) as well since the circuit is much simpler and cheaper.
Plus Lady Ada wrote a really good tutorial on IR: http://www.ladyada.net/learn/sensors/ir.html and you can probably get plenty of support for it here.
Plus Lady Ada wrote a really good tutorial on IR: http://www.ladyada.net/learn/sensors/ir.html and you can probably get plenty of support for it here.
-
- Posts: 8
- Joined: Mon Oct 10, 2011 12:05 pm
Re: Newbie Question: Accelerometer
Can anyone suggest a microcontroller that could work for this project?
Please be positive and constructive with your questions and comments.