[APP]Waterlevel 0.2 (Another waterlevel application!) - Touch Diamond, MDA Compact IV Themes and Apps

Well, there are already a couple of applications out there already, but i was playing with the SDK and just trying some stuff out in visual studio so i thought, why dont i just release it?
Its a first release, it does work, has some basic calibration and im trying to make a bit more visually appealing that just some bars
So,
version 0.2:
- Updated graphics of the "Circle" compass/meter. Now actually looks like a compass thingy
- Added the ability to actually save the calibration data, and to let you know its doing something and its done.
- Created an CAB Installer to install the addon.
- Made all pictures internal resources.
version 0.1:
shows an Water level for the X and Y Axis, an circle "meter" and an light meter. There arent any big bugs that i know off, but i didnt implement the "maximal" meter bars yet. That means the measure bars can go a bit beyond the container
Requirements:
You do need the Compact framework 2.0, it will (unfortunatly) not work without it! But seeing as everyone already has the lightsaber application i guess its not that much of an issue
Other:
If anyone has some suggestions or comments (bad or good..) just let me know..
Source:
I added the source code if anyone is interested. Its not some good code, and the calibration could be alot more detailed, but perhaps it helps someone
Oh, and if anyone reflects the application and starts to rant about how my code sucks, i didnt optimize it or plan ahead, i just started to code some

1. congrats and keep the good work! it is refreshing to see a newbie that brings something to the forum and don't start with a wining post.
2. i really hope you'll receive only positive feed back (not so common here ) and allow me to be the first one to say: no, i don't think yr code sucks
3. is the calibration function working?
4. can you explain what "lumens" are doing here. lumens is an international measure unit for light. are u trying to use the internal light sensor to measure the light? this could be a good idea and i'll be very interested.

Lumens is the light sensor =)

Awesome app, calibration works perfectly and saves the setting ok and that light sensor is a nice addon.
Would love to see this made into a .cab installation and perhaps make this app work with the AppToDate program for easy updates.
Look forward to future updates
This is going in my favourite apps

Ignore my double post

awesome it is! great app.
explain please what is with light measuring pls....only measuring or calibrating the automatic light level also?
thanks!!!

No, it measures the amount of light the light sensor receives. I will eventually add an cab installer, but seeing as its still in the "works" i am not bothering with it yet
The calibration works, its not as awesome as the BubbleLevel one yet. When you press the button let the diamond lay there for 3 seconds, and then it calibrates. I wont update the backlight.
The light sensor only shows the value, it doesnt update the backlight it self. I tried doing that, but i can only turn the backlight on very bright, very dim and off. Not somewhere in between

Calibration
Nice app! I like the light sensor also, i finally found out where the light sensor really is
It calibrates fine but does it actually saves it somewhere? the moment i close the app and start Teeter, still not calibrated.
So far non of the apps around here were able (for me) to save the calibration. Some people mentioned success though and since I have tried by now all available roms and on none the calibration works, i get this idea that there are several versions of the sensor (hardware) around...
Anyhow, good to see a new app like this and success with it!

No, the calibration it not saved yet, i will add that soon. The problem with the calibration data is that its reset on reboot. The only tool that i know of comes from a different telephone (Raphael or something) and does save the calibration. But not all roms work with this.
So the calibration from almost all applications will only work on the application itself

Wow, thats the best waterlevel prog here around! Nice graphics, but still very simple. And the lights measurment is very nice too!
Very good work! Thanks!

icon maybe?

I updated te first post with version 0.2. I added some more graphics (lightmeter still had to be done ) an saving of the calibration data for this app only.
@ KukurikU:
Well, i created a simple icon. I tend to like simple stuff that easily identifies a software app..

i put my diamond on a real level meter, bring the level meter to 0,0,0 and pressed "calibrate" and now i can use my diamond as a level meter.....until next reset..

Thanks Wiebbe, nice little app. Will be very useful with my missile launcher!

Accuracy is a little off, well a lot off, on vertical measurements, try to get it to read 90 degrees, could this be an issue with the G sensor itself?

uniqueboy said:
Accuracy is a little off, well a lot off, on vertical measurements, try to get it to read 90 degrees, could this be an issue with the G sensor itself?
Click to expand...
Click to collapse
hard to tell who is to blame. look at the experiment/calibrate method described in my previous post.
i found my diamond to be "off" by 1.4-2 degrees (am i lucky or what?!) and after calibration 0,0 it stayed this way after playing with it quite a bit.
edit: sorry, my bad, now i get it...you r right, on vertical about 7 degrees off... getting 97-96 degrees.

Well, its not that the accuracy is really off. The SDK returns a certain value and its kinda hard to precisely convert it
Ill see what i can do, working on a different way to calculate the angle now.
edit:
Its odd, when i place the diamond vertically against a flat surface (whick should be 90 degrees) the build in Angle says 98 (from the raw data) my calculated one says 92. so its hard to decide which one is correct
After some more testing, it seems that all other applications have the same "error". Bubblelevel says 97 degrees as well when i place it against an 90 degree angle object. Same goes for SpiritLevel. I made a new way to calculate it which seems to be more "accurate" with the angles. But it still wont be 100%! Well, the number of degrees isnt 100% accurate, the bar it self ofcourse does work properly!

Does the output from the G sensor give X,Y,Z or just X,Y ? That coul be a problem when measuring the vertical. If it's just X,Y then maybe when tipped past a certain threshold an error message should be given, or even an audible warning.

The SDK in rawdata form gives back the following:
Angle for X
Angle for Y
Tilt value for Y
Tilt value for X
Tilt value for Z
The angle values are really in degrees, the same as SpiritLevel. They output around the same values as i output.
The tilt values are something from 0 till 1000+, you can see these in BubbleLevel as well at the calibration. I used the angles before, but these arent very correct.
Ill see if i can get myself a watermeter and an setting where i create an real 90 degrees setting so i can calculate a bit what the real values should be
It could be my house is like 97 degrees sloping, but i doubt that ^^
dont forget that an angle of 97 is possible if you tilt it above the 90 degrees value..

I too live on a hill.

Related

Hermes up close questions

I'm new to my hermes( htc tytn )
I have a few questions
1. when your battery goes down, how does it go down? e.g in 1% at a time or about an hour later or so you'll see it jump down by 10%. in other words 10% at a time
2. how does the keyboard auto backlight sensor work? where is this sensor also?
and lastly
3. how long is a battery suppose to last using wifi?
Many Thanks,
Mr_GTI
Battery drain is only reported in 10% chunks unfortunately
Keyboard Backlight Sensor is on the keyboard just below the green phone key ( or above letter p if you prefer) Allows you to set keyboard light to come on only when darkness decends. However as it's pretty I have mine set to always on.
Mmmm. Never had it on constantly until battery goes flat. But I use it for maybe 1 to 2 hours a day and battery lasts between 1 and 2 days. Generally I charge daily.
Mike
thanks for that Mike.
is my keyboard sensor maybe faulty? it doesn't go on if I cover the sensor with my finger it doesn't go on. or at night.. I remember being outside also and it did not go on. it just went on the once I remember, but have not seen again. is there a specific way it works or functions?
I remember you mentioned somewhere in the forum's, I can't get to it right now, but you said that htc wil be having the tytn's wm6 rom update in the support section in june. is that yet to be launched on their site this month stil?
Mr_GTI said:
thanks for that Mike.
is my keyboard sensor maybe faulty? it doesn't go on if I cover the sensor with my finger it doesn't go on. or at night.. I remember being outside also and it did not go on. it just went on the once I remember, but have not seen again. is there a specific way it works or functions?
I remember you mentioned somewhere in the forum's, I can't get to it right now, but you said that htc wil be having the tytn's wm6 rom update in the support section in june. is that yet to be launched on their site this month stil?
Click to expand...
Click to collapse
Hi
Start/settings/buttons/backlight and tick the sensor box. (if it is ticked you can try unticking and coming out and then go back in and re-tick.)
If you go to the google search sticky post - near the bottom are HTC links to check from time to time for updates. The official WM6 for Hermes is now scheduled for July I believe.
Cheers
Mike
thanks mike, it working now
I just want to clearify something. When my display backlight is on dim, dim to the very end, the bar pulled over completely toward the left hand side, when ever I apply screen taps or pressing of buttons, a dim light flickers on the accept call button, is this with all the hermes? or is it mine that's just like that, some kind of fault?
Mr_GTI said:
thanks mike, it working now
I just want to clearify something. When my display backlight is on dim, dim to the very end, the bar pulled over completely toward the left hand side, when ever I apply screen taps or pressing of buttons, a dim light flickers on the accept call button, is this with all the hermes? or is it mine that's just like that, some kind of fault?
Click to expand...
Click to collapse
I think I saw someone-else say that. Mine doesn't do it. However, I get a dim glow from the camera flash from time to time that I have not seen anyone report. These little quirks, possibly caused by leakage currents are not really a problem unless it causes excessive battery drain. It might be cured by a hard reset (providing you have a full back up - lest you face re-installing everything).
Mike

software for the gym

Hey Guys..
i think this software probably doesn't exist.. but i thought let's give it a try
I recently swapped gyms and in the gym i'm now at, when i'm working out, my pulls and pushes aren't counted.. also the distance i pull/push isnt checked like in my former gym.. so i can't watch my technique..
Then i thought.. maybe there's an app wich uses the g-sensor too register the movement of the device and displays them usefull for working out, when i attach my phone to the weights..
Anyone's come across such software??
Thankyou
Well the accelerometer in the phone can only track acceleration (and direction, due to gravity), not absolute movement or distance. To do that, you need a reference point and potentially other sensors (e.g. the Nintendo Wii's IR bar, and the additional angular rate sensors in the MotionPlus accessory).
If you had a set speed, you could calculate distance based on time (which it'd know by the angle of the phone, assuming you attached it to yourself / the weights in a fixed position), but your speed's probably going to vary enough to make the output useless.
hmm.. too bad..
Thanks for the response!!

[PROJECT] G-Lenght

Hi guys!
This morning during physical time at school, i was thinking about a new app that i don't ever seen on the network.
A tool that allow to measure lenght of object by g-sensor built-in our (yours XD i've an old Kaiser, my brother has an Omnia) ppc.
So, on the X Axis, we have the time, and on the Y axis we have the speed/velocity.
We need to calculate the space having the acceleration value (taken from g-sensor) and the time.
Suppose this:
You have to measure the lenght of a tennis court.
You start the application. There is a button, press it.
Now the ppc is recording every second, the acceleration on an axis (supposed to be the z axis), and he's saving it on memory.
If you are still, the value is 0, then you have the previus speed, if you are moving in one direction, it will increase its value, but when you walk at the same speed (costant) the value is 0 again (not worry, it's working perfectly).
When you stop the app, it will stop recording the values and calculate the distance.
There is anyone that would make this application, i'm good only at web design and graphics, but not at develope apps =)
I could also help you, or would be good if we can create a team ^^
Oh ! It's a great idea man
I have a hard time believing it'd be any more accurate than measuring with the GPS.
Meaning, not very accurate.
If you tilted the device (even slightly) your measurement could be WAY off.
it's possible to delete this error of tilting the device by using sin/cosin function.
It strikes me, however, that by using the GPS coupled with the accelerometer, you could calculate the height of trees to within the nearest mile or so...
but you cannot use gps for small object, for example, rooms, or desktop =)
and in this case you could set your phone on the dest and slide from the A side to the B side.
Baly23 said:
it's possible to delete this error of tilting the device by using sin/cosin function.
Click to expand...
Click to collapse
How so?
I don't claim to be a math wizard, but I don't see how the device can tell the difference between being accelerated through space and being tilted. This ambiguity is the very basis of the stationary "roller coaster" rides that put the track on a screen and tilt you around to make you think you're moving.
if your phone is on a table (not tilted) all the g-acceleration is on an axis.
If you tilt a bit the device, the g-acceleration is divided in 2 or 3 axis. let's try with an app that tell you the info and take a look
Baly23 said:
If you tilt a bit the device, the g-acceleration is divided in 2 or 3 axis.
Click to expand...
Click to collapse
Unless it's rotated AROUND the axes in question?
Again, I could be way off here, I'm just going from my understanding...
for rotating around an axes, you have to tilt the device!
For make an accurate measure, you have to don't rotate it xD
it's like start the chronometer when a race start, and stop it when you want, not at the end of the race XD
The chronometer could be good like 1/100 of second, but if you stop it after 3 or 4 seconds, doesn't have any sense
hi
it will not work because if you move at constant velocity the acceleration will be null, so the accelerometer will be inefficient. and the distance covered will not be counted.
gjeremie said:
hi
it will not work because if you move at constant velocity the acceleration will be null, so the accelerometer will be inefficient. and the distance covered will not be counted.
Click to expand...
Click to collapse
in italian is "Legge oraria del moto uniformemente accellerato"
it's a law of the uniform accelerate motion.
space = initial speed * time + 1/2 * acceleration * time^2
so, if acceleration = 0, all the second part of the law will be 0, but not the first!
if you are at 2m/s, and there is no acceleration, you will gain 2meters erery second, until you don't change the speed
Well, hey, if the math works out, I think it'd be a neat project.
gjeremie said:
hi
it will not work because if you move at constant velocity the acceleration will be null, so the accelerometer will be inefficient. and the distance covered will not be counted.
Click to expand...
Click to collapse
The real question is, "can the accelerometer be used to accurately determine speed (given a known starting state, i.e. zero velocity)". I don't know the answer to that question, but if it's "yes", then the project is feasible.
i don't know the exact sample rate of the g sensor, but if it takes value at 5Hz (5 times per second), could be good.
i'm quite sure that the value is at least 10Hz
http://www.maspware.com/products/gpsmeterpe/index.php
not exactely the same, but we have also a gps...
bbonzz said:
http://www.maspware.com/products/gpsmeterpe/index.php
not exactely the same, but we have also a gps...
Click to expand...
Click to collapse
yes, but it's gps!
You cannot measure indoor object smaller then 1 meter!
The error of the gps it's about +-1/m for x and y axis, you cannot use it to meausure 1m object... you have 100% of relative error!
I think I understand what he is getting at. What he is saying is that using the accelerometer, this app would start when the phone starts to move recording the velocity at that moment. If you swing your arm while walking to measure something it would constantly be changing velocity and both positively an negatively. Now all we have to do is record those velocities do a little math and we will have a ft/sec or in/sec, now factor in the time from start to finish and you have a measurement. GPS is nice for outside and large objects, it will get you within 5 to 10 feet. But this could be much more accurate than GPS and also used for smaller items such as rooms.
One thing I would recommend is that the time starts and stops automatically when the phone starts and stops. This would provide the most accuracy. Sure have a "Start to Measure" button but that would be more of an initiate button.
Excellent Idea! Any developers want a shot?
if you start the timer manually, and don't move your phone, it's ok, cause acceleration is 0 and initial speed is 0, so for the partial time, it doesn't move and it's ok
You are correct. So it really would not matter.

Does compass really tell the truth?

We have a few HD2's in the office and just playing around with all the apps. The compass seems to be either plain wrong or flaky at best. Mind you we are in a building so that is unlikely to help.
Just wondered if someone has test it's accuracy.
It's accurate.
But remember that electrostaticity will make your sensor to not work accurately!
Tried it
rphillip said:
We have a few HD2's in the office and just playing around with all the apps. The compass seems to be either plain wrong or flaky at best. Mind you we are in a building so that is unlikely to help.
Just wondered if someone has test it's accuracy.
Click to expand...
Click to collapse
in several places, and even after re-calibration.
was off by up to 90 degrees.
It can be .. in car for example. But in on outside, no way. The error should be in degrees.
Electronic compasses tend to be very sensitive to any metal around, so watch out. But generally HD2 compass should work very, very well.
Here is video how to calibrate:
http://www.youtube.com/watch?v=sP3d00Hr14o
I recommend doing it a bit slower. But this move. I totally didn't get it from the HTC description.
That's totally different from how I tried to calibrate it!
Any idea how I can recalibrate it? It's showing something crazy here...
for me it asks for calib every time i start it, maybe a soft reset?
But ye, i also did a way different calibration at first (bscly drawing a figure 8 in the air as if the bottom of the device was a pen) but doing the one shown in vid its now spot on compared to a analog compass, thx for the tip!

Any devs here know any way to calibrate the gyro?

Anyone know of any hidden menus or settings or anything to calibrate the gyro/accelerometer whatever permanently?
This is my second N7 and I have to hold it pretty much vertically before it will rotate and games such as Asphalt 7 veer off to the right, I have to tilt about 45 degrees left to get it straight.
I have set in motion an RMA but judging by the amount of problems I'm loathed to send it back and get another duff.
The screen has a tiny amount of lift and barely noticeable so if there is a way to fix the gyro I would rather do it myself.
Tried many different compass/spirit level calibration apps but they only sort it out temporarily.
shaneydroid said:
Anyone know of any hidden menus or settings or anything to calibrate the gyro/accelerometer whatever permanently?
This is my second N7 and I have to hold it pretty much vertically before it will rotate and games such as Asphalt 7 veer off to the right, I have to tilt about 45 degrees left to get it straight.
I have set in motion an RMA but judging by the amount of problems I'm loathed to send it back and get another duff.
The screen has a tiny amount of lift and barely noticeable so if there is a way to fix the gyro I would rather do it myself.
Tried many different compass/spirit level calibration apps but they only sort it out temporarily.
Click to expand...
Click to collapse
There isnt a option in the device to do that.
Though:
I have made a quick tutorial on how to calibrate your nexus 7.
I hope this helps many of you guy's.
Video: How to calibrate your Nexus 7
Site/Text based tut:VALKYRIE|Android Blogpost.
Click to expand...
Click to collapse
I did try that app at the time and it would sort of fix it for a while, even after turning off the device but the problem came back.
I went ahead with the RMA and the replacement was and still is perfect.

Categories

Resources