Vector-Pinball icon indicating copy to clipboard operation
Vector-Pinball copied to clipboard

Addition of a motion detector (accelerometer)

Open Jacques-Olivier-Farcy opened this issue 1 year ago • 7 comments

Hi,

I am planning to make another physical pinball with vector pinball. My fisrt was: photo_2024-10-12_10-11-22 (2) photo_2024-10-12_10-11-22

I wil use a Raspberry PI 4 and a neovo glass protected screen. I will use the https://konstakang.com/devices/rpi4/ Android light OS with an autosdtart to launch Vector Pinball. On the Raspberry PI i could use an accelerometer sensor.

Is it possible that the pinball is affected by the accelerometer data?

Jacques-Olivier-Farcy avatar Oct 12 '24 08:10 Jacques-Olivier-Farcy

There's some disabled code to support the accelerometer, at some point I'd like to see if it can be made to work well.

dozingcat avatar Oct 27 '24 17:10 dozingcat

I'm up for testing, could you build a specific version ?

Jacques-Olivier-Farcy avatar Oct 29 '24 10:10 Jacques-Olivier-Farcy

Hi, I have a MPU3050 3-axis gyroscope with an embedded Digital Motion Processor.

To make tests i wonder if a version for RaspBerry PI OS could be build? (I really lack of skills on this, could be a silly question)

Jacques-Olivier-Farcy avatar Nov 03 '24 11:11 Jacques-Olivier-Farcy

Aren't this and #100 the same?

maverick74 avatar Jan 03 '25 15:01 maverick74

It looks-like indeed!

Jacques-Olivier-Farcy avatar Jan 04 '25 12:01 Jacques-Olivier-Farcy

To make tests i wonder if a version for RaspBerry PI OS could be build? (I really lack of skills on this, could be a silly question)

No.

    And not a silly question. Both Raspberry Pi OS and Android are both "Linux", but there's more to an operating system than just the kernel. It is non-trivial to port most Android programs to GNU/Linux (or any other OS, for that matter).

    I believe Vector-Pinball was written using libGDX which is supposed to make porting Android programs to other systems easier, but it still would require significant work from a programmer. I couldn't find anything recent about it, but it looks like over a decade ago someone created a tutorial on how to do it: http://web.archive.org/web/20150519135633/http://www.habitualcoder.com/?page_id=257

Your initial idea of using Konstakang's pi4 build of LineageOS instead of Raspberry Pi OS seems like the easiest solution.

hackerb9 avatar Jan 08 '25 22:01 hackerb9

Hi @hackerb9 and thank you for these details. Your are right, i will use android builds on my Raspberry

Jacques-Olivier-Farcy avatar Jan 09 '25 07:01 Jacques-Olivier-Farcy