G-Sensor emulated by camera - Windows Mobile Development and Hacking General

I thing that everybody wants to have a g-sensor in their mobile . I have one idea . Is there any chance to develop a driver or software that can emulate g-sensor by rear or front camera ? Camera can catch "move" maybe in the same way like a g-sensor... Please think about it ...

I believe it was at least done on the Kaiser. The only issue I can see [apart from shoddy accuracy!] is, imagine the battery life being eaten!
Still, I'd like to see it, because it's the only thing I really want on my KS20

Function can be assigned to a hardware button, so it will start only if you want and then safe your battery

Ive asked about this a couple time and really got no where. I do know that the instinct uses this feature for scrolling web pages up and down

EurEye said:
Function can be assigned to a hardware button, so it will start only if you want and then safe your battery
Click to expand...
Click to collapse
Then why not have the hardware button rotate the screen?
I see your point. I'd prefer to just have it running in the background. Drop the accuracy of it, and we could keep battery drain to a minimum perhaps.

Girvo said:
Then why not have the hardware button rotate the screen?
I see your point. I'd prefer to just have it running in the background. Drop the accuracy of it, and we could keep battery drain to a minimum perhaps.
Click to expand...
Click to collapse
that, and emulating the g-sensor would mean better games

...I didn't think of that. Good point

kidnamedAlbert said:
that, and emulating the g-sensor would mean better games
Click to expand...
Click to collapse
No it wouldn't, because as others have said the accuracy would be horrible.

mattcoz said:
No it wouldn't, because as others have said the accuracy would be horrible.
Click to expand...
Click to collapse
but im sure that the great devlopers here could probably makes work better.
it makes me feel so bad not having a g-sensor.
today my friend was playing pocketgravity and he tried making things move by tilting my phone and it made me realize i need me a g-sensor.

kidnamedAlbert said:
but im sure that the great devlopers here could probably makes work better.
it makes me feel so bad not having a g-sensor.
today my friend was playing pocketgravity and he tried making things move by tilting my phone and it made me realize i need me a g-sensor.
Click to expand...
Click to collapse
Well, doesn't the game lack that feature or does it not need that implemented?

The thing is, there has to be a comprimise.
Get some serious accuracy, but to do that you'd need to sample a hell of a lot, thus killing battery life.
Or, sample less, less accuracy [but still good enough for screen rotation I'd wager], but less drain on your battery.

kareem9nba said:
Well, doesn't the game lack that feature or does it not need that implemented?
Click to expand...
Click to collapse
nope, someone just implemented it because it sounded like a good idea.

Will never work
Cameras have been used in the past for robotics and simply didnt work since they dont understand depth very well

What about combining the Camera and letting it work with the Infrared on the device? I know not all phones support both, but for the ones that do, its a step in the right direction.

External gsensor
Lets go back to the year 2000 where everything was external. remember the external camera on the sony ericssons? lets get an external gsensor

Maybe build in the battery like the fibration in the old Nokia 5100!

This thing must be possible.
I remember the game for Nokia phones, where you were controlling the ball in the maze. It was controlled by camera but it behaves like a g-sensor.

i dont know if this has been done but when you think about it many questions come to mind. first n foremost is depth. the softwares going to sense motion by motion in pictures from the cam. now if you have a white wall sufficiently lit and you shake your phone in front of it, hows a camera gonna judge motion from it? second, imagine a dot on the wall. now if ur close to it, theres gonna be alot more "motion" for the cam than if ur far away. i dont know the technicalities of the concept and if these problems will exist in a potential implementation, but, building on problems like these, i dont think its feasible or useful.

I think the theory behind it is fairly simple (and using the camera as a game input works as in Fishopolis http://rivia.net/Fishopolis.aspx Works on the Wizard). Take a pic A from camera at time x then take pic B from camera at time x + interval y then compare the two pics (get list of positions of same objects from both pix). If the objects in pic A are to the left of the same objects in pic B then you're moving right, left otherwise and a similar calc to determine up and down.
I think it is (actually know evidenced by the game previously mentioned) very doable and should take just as much battery power as using the video camera except for the storage since only a few images would need to be kept in memory at any one time and nothing needs to be stored on "disk".
Some matrix transformations and linear algerbra should do the trick... I'm sure someone has already done this in some form or another by now... Guess I'll see what I can dig up on the old internet.

why doesnt someone just work on internal accelerometers rather then trying to use the camera?

Related

Simulate G-Sensor using camera

Hi all, have somebody thought about simulating the accelerometer using the phone camera? It's possible?
I couldn't find anything about this, sorry, but i'd be really happy to know that there's someone coding something like this...
PS: sorry for my poor english
i dont see this happening at all... i mean a image is produced by using light... how would that information tell u which way or which angle the phone is on :S
CashMoney18 said:
i dont see this happening at all... i mean a image is produced by using light... how would that information tell u which way or which angle the phone is on :S
Click to expand...
Click to collapse
Ok, but as the image moves the phone could know how am i moving it
Theoretically, it is possible. It would just be a huge battery sucker and not too accurate. I came across this game a long time ago, back when I still had my Titan (no accelerometer). It is called 3D Lawn Darts. It uses the camera to control your throws. Check it out:
http://www.brothersoft.com/3d-lawn-darts-for-pocket-pc-133547.html
dwizzy130
CashMoney18 said:
i dont see this happening at all... i mean a image is produced by using light... how would that information tell u which way or which angle the phone is on :S
Click to expand...
Click to collapse
It could work but only in a room covered with reference points all over the walls and floors like they use in 3D capture! LOL
I think the phone proccessor would choke on the proccessing! lol
there's a free app (i think) called CCSnake. Search for it. If you can't find it. Then search for Camera Controlled Snake. I tried it but the controls are not that good.
Asphyx said:
It could work but only in a room covered with reference points all over the walls and floors like they use in 3D capture! LOL
I think the phone proccessor would choke on the proccessing! lol
Click to expand...
Click to collapse
well not really.
Camera take as picture, then asks the user to set a referance point. somthing that stands out. It takes detaisl of that area (color shape, etc)
all further images are taken and referanced to that point. and the program then knows which way the PPC was turned. if you want rotaion then you just need two points.
For all movements just 3 referance points are needed.
This is very basic movemnets and your limited to the area you are in as the camera must see the original points. but it would work.
i saerched for this a long time and tought: maybe you can do it with an other part of the phone.
or maybe you can make a program to use this as a normal g-sensor with new accelerometer software.
erik
There was a game that I had on my old Motorola E815 that did just this. I think it was like a marble tilt game...it worked fairly well as long as you didn't move too fast and it wasn't too dark (or light for that matter, as the camera on the E815 was really mediocre).

Own a HTC Snap?

Currently on my X1 and i am sick of it. It keeps breaking and want something simpler and with a nicer feel and the snap seems perfect but i have a few questions...
1)Can it play videos on WMP or Coreplayer if so are they smooth or what not?
2)How long does the battery last?
3)What sort of GPS programs are available like TomTom?
4)Is the camera decent and does it take the pictures fast?
5)You know there is a track ball in the middle? around it there is a circle, does that circle act as four seperate buttons (up,down,left,right) because i dont want to use the ball to navigate all the time
Thanks
That's a downgrade of a phone, so why are you switching?
X1: Too many problems, its annoying and has broken too many times - sending off to sony is so long and want a reliable phone that works - plus i want a cheaper option like this one.
Can you answer any of my Q's?
comeradealexi said:
Currently on my X1 and i am sick of it. It keeps breaking and want something simpler and with a nicer feel and the snap seems perfect but i have a few questions...
1)Can it play videos on WMP or Coreplayer if so are they smooth or what not?
2)How long does the battery last?
3)What sort of GPS programs are available like TomTom?
4)Is the camera decent and does it take the pictures fast?
5)You know there is a track ball in the middle? around it there is a circle, does that circle act as four seperate buttons (up,down,left,right) because i dont want to use the ball to navigate all the time
Thanks
Click to expand...
Click to collapse
1)coreplayer works great. there is one version that works well. others dont at all. thread about that as well.
2) day and a half or 2 for battery life. decent use. activesync always on and heavy texting.
3)sygic mobile maps works well for me, there is a thread with all of them that work well in this forum
4)camera is decent if light is good. nothing to brag about but it does the job
5) the trackballl is the only way to navigate. if there is another way i would be happy to know. i personally liked the d-pad type control. but you get used to the trackball pretty quickly.
soclean said:
1)coreplayer works great. there is one version that works well. others dont at all. thread about that as well.
2) day and a half or 2 for battery life. decent use. activesync always on and heavy texting.
3)sygic mobile maps works well for me, there is a thread with all of them that work well in this forum
4)camera is decent if light is good. nothing to brag about but it does the job
5) the trackballl is the only way to navigate. if there is another way i would be happy to know. i personally liked the d-pad type control. but you get used to the trackball pretty quickly.
Click to expand...
Click to collapse
Awesome! thanks for the info!
I have tomtom installed and it works very well. PM me if you want me to direct you to it.
I´m a proud owner of a Snap shipping next week!!!

Froyo Touch Screen Fix?

I suppose the rumors weren't true, then?
halorin said:
I suppose the rumors weren't true, then?
Click to expand...
Click to collapse
I saw someone on here posting a quote about the multi-touch fix... lemme find it
by Paul22000:
Also "A scale gesture detector API provides improved definition of multi-touch events."
I wonder if that means the N1's multitouch axes will be fixed for gaming!
halorin said:
I suppose the rumors weren't true, then?
Click to expand...
Click to collapse
since nobody has froyo yet, we dont know if it was fixed or not. i really hope they did though.
Thanks for the responses, guys. I guess in hindsight it might have been good to leave out any negative things in such a positive conference.
But still, some mention would have been comforting.
halorin said:
Thanks for the responses, guys. I guess in hindsight it might have been good to leave out any negative things in such a positive conference.
But still, some mention would have been comforting.
Click to expand...
Click to collapse
I feel the same way halorin. It's natural to voice displeasure over something important missed in an update (I would have loved 360* rotation, colored trackball, fm radio, etc) but I know your happy about the update when it does occur and a great guy to have on the forum
All progress is still progress toward perfection, no matter how small.
Thing is, they were just demoing the OS, not device specific things like the N1's trackball & whether it has working FM etc.
Very valid point, Rusty.
Yup, each device will have their own seperate updates with device exclusive things.
Rusty! said:
Thing is, they were just demoing the OS, not device specific things like the N1's trackball & whether it has working FM etc.
Click to expand...
Click to collapse
*in Kramer voice* ........ you just blew my mind...
ap3604 said:
I saw someone on here posting a quote about the multi-touch fix... lemme find it
by Paul22000:
Also "A scale gesture detector API provides improved definition of multi-touch events."
I wonder if that means the N1's multitouch axes will be fixed for gaming!
Click to expand...
Click to collapse
That quote is from the highlights web page:
http://developer.android.com/sdk/android-2.2-highlights.html
The axis problem can never be fixed 100% because the hardware doesn't report enough info to do it for all cases, but currently it is pretty bad and I think better drivers/software could get it close. I believe that Cyanogen's ROMs have had some tweaks that have greatly improved its responsiveness for some time now so perhaps the Android engineers adopted similar fixes. It will hopefully get good enough over time that you'd have to know exactly how the sensors work and deliberately try to fool the drivers in order to get it confused.
I tested a nexus one on froyo today at google i/o, some things that were absent, colored track ball, touch screen wise they didn't have any multi touch analysis program installed, but just pinching around I don't detect any notable differences, so i'm guessing no to those 2 features on nexus, at least on their current build
I was also at I/O and while I did play with a few different Nexus Ones that were loaded with FroYo, I was unable to determine if any screen fixes were applied.
I asked a few times and each time I was politely told that they could not talk about anything that was not already made public (fair enough btw).
However, pinching and zooming on maps seemed to be smoother (not sure if it just my impression or some actual change) and it seemed to respond overall to my finger movements more smoothly.
Also, some games that I demoed on a few different Nexus Ones did employ finger gestures and those games functioned flawlessly from the touch perspective.
I am not sure that translates into any real fix or just my biases, but I am putting it out here for whatever it is worth.
Dan
dan1431 said:
I was also at I/O and while I did play with a few different Nexus Ones that were loaded with FroYo...
Click to expand...
Click to collapse
Did you notice if there was 360 rotation? ie could you flip it from 12 to 3 O'Clock clockwise and get it to rotate to landscape when in a rotating app like Maps?
logger said:
Did you notice if there was 360 rotation? ie could you flip it from 12 to 3 O'Clock clockwise and get it to rotate to landscape when in a rotating app like Maps?
Click to expand...
Click to collapse
I hate to admit this, but I did not even think about testing that feature.
Dan
Dorick said:
I tested a nexus one on froyo today at google i/o, some things that were absent, colored track ball, touch screen wise they didn't have any multi touch analysis program installed, but just pinching around I don't detect any notable differences, so i'm guessing no to those 2 features on nexus, at least on their current build
Click to expand...
Click to collapse
Dorick, by any chance have you noticed wifi-n connection?
I'm almost certain from the API improvement and UI modifications listed on the Android SDK site that we have a software fix for the crazy multitouch issue.
Having said that, it means the screen won't go crazy when the paths "swap". But, it's still limited to two touchpoints and not 10 like the 3000 series screen.
A fix is a fix though. =)
Personally if the have fixed up pinch zooming somewhat and made it smoother that will cover me 99% of the way as I use the device so that will be pretty much a fix assuming we actually see it in the official N1 rom.

Most needed features for android development

So I'm writing this list in full understanding that it is still in development for the HD2. I just want to bring to the developers' attention about what I believe to be really desired features by many. And many of which I don't think will be hard development changes. If anyone else thinks of any, feel free to reply with your ideas and Ill update this post so developers don't have to search or "fetch" the for the ideas. Oh by the way, these features are ideally from the HD2 windows mobile side of things and I feel that if we can get these features on the Android side, it won't be hard for me to let go of WM. Hey, it's the truth.
LIST OF FEATURES:
Boost from 5mp to 8mp camera
Touch focusing on camera
Fixed led notifications [being worked on]
Auto backlight [being worked on]
audio routing through bluetooth?
Other things not directed towards developers:
CoPilot (Although Google Nav is doing it for me )
Office Mobile 2010 or close
Sent from my HTC HD2 using XDA App
For safe measure
avemn1 said:
So I'm writing this list in full understanding that it is still in development for the HD2. I just want to bring to the developers' attention about what I believe to be really desired features by many. And many of which I don't think will be hard development changes. If anyone else thinks of any, feel free to reply with your ideas and Ill update this post so developers don't have to search or "fetch" the for the ideas. Oh by the way, these features are ideally from the HD2 windows mobile side of things and I feel that if we can get these features on the Android side, it won't be hard for me to let go of WM. Hey, it's the truth.
LIST OF FEATURES:
Boost from 5mp to 8mp camera
Touch focusing on camera
Fixed led notifications
Auto backlight
Other things not directed towards developers:
CoPilot (Although Google Nav is doing it for me )
Office Mobile 2010 or close
Sent from my HTC HD2 using XDA App
Click to expand...
Click to collapse
Um we have a 5mp camera not a 8mp camera its a physical limit.
Ill have a play but I think we can already do touch focus and there are plenty of other camera apps out there.(upon a quick check i found auto focus but not touch to focus)
Led notifications "are" being worked on as we speak.
I believe the auto backlight works(kinda sorta) I believe I saw cotulla say it was working but the polling delay was high so you might not see a change right away. Not sure if they incorportated that yet.
I have not looked into these threads but I know that android has copilot.
and I know we have documents to go. There is a free version and a paid version.
hazard99 said:
Um we have a 5mp camera not a 8mp camera its a physical limit.
Ill have a play but I think we can already do touch focus and there are plenty of other camera apps out there.(upon a quick check i found auto focus but not touch to focus)
Led notifications "are" being worked on as we speak.
I believe the auto backlight works(kinda sorta) I believe I saw cotulla say it was working but the polling delay was high so you might not see a change right away. Not sure if they incorportated that yet.
I have not looked into these threads but I know that android has copilot.
and I know we have documents to go. There is a free version and a paid version.
Click to expand...
Click to collapse
I understand that we have a physical 5mp camera but why do we have that tweaking app for wm that tweaks it to 7/8mp?
There is a difference between touch and auto focus. Touch focus allows you to touch the screen and wherever you tap will come into focus. Huge difference when taking close-ups of an object.
Wonderful news about the led and backlight. Thanks for the update!
Only info i could find as far as the camera and android is 720p recording. It might be best to ask the camera question in the nexus1 forums. I am not sure the tweaks are legit.
A wise man once said your images will still look like crap no matter how many mp's you have if your image processor sucks.
hazard99 said:
Only info i could find as far as the camera and android is 720p recording. It might be best to ask the camera question in the nexus1 forums. I am not sure the tweaks are legit.
A wise man once said your images will still look like crap no matter how many mp's you have if your image processor sucks.
Click to expand...
Click to collapse
Wow, that's funny!
whats funny
copilot does work, just make sure your version works with froyo...
hazard99 said:
whats funny
Click to expand...
Click to collapse
"A wise man once said your images will still look like crap no matter how many mp's you have if your image processor sucks."
I wish the HD2 recorded in 720. Amazing.
thanks azzzz
I want touch to focus while shooting video like iphone 4.
Sent from my HTC HD2 using XDA App
quick wake up out of stand by
The "lazy" wakeup out of standby to one of the reasons why I switched back to WinMo (elegancia series).
There is a thread out there concerning this issue, but no solution.
the wake problem is being addressed. So there wont be a solution till the dev's figure it out. A lot have stated that using the evo kernal makes it a lot better but Ive seen higher than normal drainage.
Most Needed features
How about audio routing through bluetooth? Its 1 useful feature of Winmo that ive been unable to get on Android.
posse786 said:
How about audio routing through bluetooth? Its 1 useful feature of Winmo that ive been unable to get on Android.
Click to expand...
Click to collapse
Got it Posse786. Check first post.
avemn1 said:
I understand that we have a physical 5mp camera but why do we have that tweaking app for wm that tweaks it to 7/8mp?
There is a difference between touch and auto focus. Touch focus allows you to touch the screen and wherever you tap will come into focus. Huge difference when taking close-ups of an object.
Wonderful news about the led and backlight. Thanks for the update!
Click to expand...
Click to collapse
No we do not have a tweek for higher MP cameras.
The sensor in the camera is simply only able to register a photo size of 5mp!
Even with that tweek, the photo size is still 5megapixel. (i.e. 2580 by 2048 pixels in size). 5 megapixel will print at about 8 by 10 inch, do you really want a bigger print from your phone?!
Megapixels have nothing, at all to do with image quality (unless your printing large, even then they are sort of pointless!)
That tweek, as far as I know changed the DPI of the photos.
720p video would be nice though,lol
I wish I could listen FM radio through my bluetooth headset
Well personally for me the biggest issue is stable 3G/HSPDA performance. At the moment it is the single biggest limitation of Android on the HD2. All those other issues just pale into insignificance by comparison.
The next biggest is the poor GPS pickup speed. If these were sorted I'd be very happy.
maybe a louder volume hack... since meltus stopped updating for 2.1+
music speaker and speaker phone volume is too soft. The same song plays louder when i bluetooth to another phone.

[Q] Flashlight-App for dual-LED (ultra-bright mode!)

Hi there...
I am searching for hours now...
I want a Flashlight-App that uses the "ultra bright" mode..
all apps I found only were "medium bright"...
if you ever used a Flashlight-App on HD2 on Windows-Mobile, you should know, what I am talking about.
Only App I found was nexus-one-torch.
I think it "takes photos" to make the dual-LEDs go maximum brightness, but the disadvantage is: it flickeres alot..
Anyone knows a Flashlight-App that uses maximum brightness of the dual-LED-Flash on the HD2 with Android?
Thank you!!
Greetings from Germany!
I like Tesla led. it seems pretty good...
But Tesla LED is not as bright as Windows-Mobile or "Nexus One Torch".
It does not utilize the maximum led-brightness. :/
Why would you need the Max LED flashlight?
Are you gonna setup a party xD!
I think that.. its useless.. the "one" (referred to the settings/drivers) we got now is awesome.. i can clearly see everything in my room when the lights are off.
Because the device is capable of such a brightness..
aaaand...
BECAUSE ITS COOL!
and you risk damaging your led lights...
burpingboy said:
and you risk damaging your led lights...
Click to expand...
Click to collapse
I ve runner N1 torch with High brightness for 40 minutes without any problem!
I to want to find an app like this, I miss the torch from WinMo.
burpingboy said:
and you risk damaging your led lights...
Click to expand...
Click to collapse
Uhm.. NO? Windows Mobile runs the maximum brightness with the standart HTC-Flashlight-App.. so definately: no!
=> Still searching an app!
have anybody found app? i also searched it for ages ....
Kralle said:
Uhm.. NO? Windows Mobile runs the maximum brightness with the standart HTC-Flashlight-App.. so definately: no!
=> Still searching an app!
Click to expand...
Click to collapse
asphaltkiller said:
I ve runner N1 torch with High brightness for 40 minutes without any problem!
Click to expand...
Click to collapse
You risk destroying the LED's, they will burn out.
It doesn't matter what your own personal experiences are, they will break. Think of it like staring into a laser and not seeing instant visual disruption. It'll happen, just give it time and it'll mess things up.
dkl_uk said:
You risk destroying the LED's, they will burn out.
It doesn't matter what your own personal experiences are, they will break. Think of it like staring into a laser and not seeing instant visual disruption. It'll happen, just give it time and it'll mess things up.
Click to expand...
Click to collapse
Everything breaks eventually my friend. I admit it may shorten the leds life span but some might not care because they wont use their phone for years and years. I personally have been using high mode on my nexus one for over a year and its still going
If you need something brighter than tesla, wouldn't it make sense to just use a maglite? Phones are great for minor conveniences, but just like the cameras, if i wanted top quality photos, i'd buy a digital camera not try to squeeze quality out of an inferior cel phone cam. Same with the flashlight, great if u drop ur keys at night, not so much if you're trying to light up your whole backyard or something.
-HD2 Android-
i dont think the torch app really uses the brightest setting.
i think its a matter of being properly programmed/optimized for hd2.
You could try Mag Flashlight, it has two brightness levels, but I'm not sure if it can use dual LED
yeah i remember the stock Hd2 flashight was WAY brighter, it puts the ones on android to shame, i want it back!
Yes, I've downloaded all available flashlight apps on the android market for my htc hd2, and NONE of them have matched to the htc hd2's windows mobile version. That particular version had 3 settings, low medium and high. All of the android flashlight apps seem to match the MEDIUM setting that the windowsmobile version was able to output.
Can someone port or write an android app that's nearly identical to the stock htc hd2's flashlight app that had 3 settings, without the annoying 5 second demo animation at the beginning on how to use it? That third setting (high) was KILLER, and impressed all of my friends as to the htc hd2's dual led true potential!
Same here, anyone have found any program with full bright?
HERE IT IS! (well i think its it. IDK)
okay so i pulled this off my typhoon CM7. its the "Torch" app. it has a high brightness setting as well as a strobe feature. (i have my mini raves XD)
its in apk format.
put it in sdcard, use a file explorer to locate it and install it. it should work.
btw i forgot. if it works hit the thanks button have a good day.
Unfortunately, like everyone is saying even the one that you pulled from the typhoon (althought it says it is the highest possible setting) is not the brightest setting that WM was able to achieve. Anyone else still looking for this like me? If someone who knows what they are doing could do this, it would be awesome!
For those that don't understand why we want this, you haven't used the WM LED flashlight long enought. I actually have great stories that goes along with the brightness of HD2 flashlight in WM (from everyone envying me at concerts to saving a bunch of us in the middle of the woods after the sun went down in the middle of a hike that went wrong =P).

Categories

Resources