A ball that lights up when change in orientation or tilt

Hi everyone,

I am a newbie. I have never created a project but like to program in Python.

Here it goes...I would like to create a saucer that has LEDs that show the direction of a tilt (some angle variance) and movement in a direction if it moves beyond it's starting position.

Basically a visual (or audible) indication that we have moved or tilted too much.

I have read about 3 axis and accelerometers (sp?)

How do I easily create this project?

Thanks

How about reading about how they work?

As you are new to this then it will not be "easy".

One application here.....

curious18:
I have never created a project but like to program in Python.

So now is your chance to learn C and C++. :slight_smile:

curious18:
I would like to create a saucer that has LEDs that show the direction of a tilt (some angle variance)

That part is relatively easy. As the accelerometer tilts, the portion of the force of gravity acting on each of the three axes will shift. Some math will tell youhow far and in which direction the saucer has tilted.

curious18:
and movement in a direction if it moves beyond it's starting position.

That's going to be harder. The accelerometer will tell you how quickly your speed is changing. It won't tell you speed or position. Knowing your position is a very difficult problem.

https://www.dfrobot.com/wiki/index.php/How_to_Use_a_Three-Axis_Accelerometer_for_Tilt_Sensing

Thanks everyone for your kind words. Except for bluejets of course who apparently has social issues. Bluejets, try to be a little nicer to newbies next time and not pretend that you are more clever than you actually are. Just a note for the next time you are scolding people, it may help if the link you attached actually worked! Try clicking on source code among others and you will find it is long, long expired.

curious18:
Try clicking on source code among others and you will find it is long, long expired.

Just did and it came up fine.
https://code.google.com/archive/p/open-headtracker/downloads
I think you are the one with social issues. You come across as a bit of an overly sensitive spoiled brat.

If you are looking to program in Python, take a look at the Adafruit CircuitPython boards such as the following. You get a lot of hardware (SAMD, RGB LEDs, accel, DAC+speaker, etc.) on one board. And it can be programmed using Arduino as well. It is designed for anyone new to electronics and embedded software.

curious18:
Thanks everyone for your kind words. Except for bluejets of course who apparently has social issues. Bluejets, try to be a little nicer to newbies next time and not pretend that you are more clever than you actually are. Just a note for the next time you are scolding people, it may help if the link you attached actually worked! Try clicking on source code among others and you will find it is long, long expired.

No, on the contrary, I'm known for my good social skills as well as my knowledge which I try to pass on.
In this instance I stated the obvious, short and sweet and moved on.

As for the link, I always try it before and after I post and it worked fine.
If you have problems then it's not from this end I can assure you.

@curious18 is currently enjoying a brief forum timeout.