Multilevel iOS app

RainAndStorm

Junior Member
Joined
Jul 1, 2024
Posts
19
Reaction score
0
Location
Curious Cat
I've initially created this app for myself (repairs, installing new equipment, standing rigging, etc), but later put it on the App Store, in case anyone else might need it.

‎Multilevel: Relative Angle https://apps.apple.com/us/app/multilevel-relative-angle/id6467743326
You can search for "Multilevel relative angle" in the App Store, you should see it right away. Currently only works on Apple devices (iOS 15+, iPhone, iPad). You'll need at least two devices in order to see the relative orientation between the two.
You can also scan this QR Code to get it installed:
Screen-Shot-2025-01-15-at-1-59-41-PM.png


In a few words, the app shows you the precise delta (difference) between angles of one (or more) devices, in real time. Bubble level meets Bluetooth — that's all there's to it. You can be on the water, or even in motion, and e.g. perfectly align furniture, stanchions, make things parallel and horizontal, or quickly figure out the existing angle of something like a prop shaft, davits, hatches, etc. It might even be helpful in hull manufacturing — I know many people today still use weights on strings to align bulkheads.

You can also use your macOS machine (Apple MacBook, iMac, etc) and monitor the nearby devices that have Multilevel running on them — might be helpful in manufacturing. An old iPod might work, but I think it needs to be iOS 15.0+, no idea if they can run that.

Anyway, I hope you find it useful. Any ideas or suggestions on how to improve it are very welcome, you're not gonna offend me.

multilevel_1.jpg
 
Do you zero it to a reference and then it meaures from there?
 
Great question! Short answer: not yet.

I'm trying to wrap my head around how to do that. It's more about calibration, since "zeroing" something could be confusing to the user.
Currently, the app is extremely simple, no settings at all — you just open it on both devices, and it works. You can drag the devices around on the screen to rearrange them, but that's about it. I didn't want to make it confusing to the user (well, myself really). And as for my personal experience using it, there's been no need to zero anything, since measurements are usually performed one-by-one, and it's easy to see the initial difference between devices by laying them next to each other as the first step. If the pitch delta is 1.23º when they're side-to-side, then it's easy to see that it needs to be 91.23º to make one perpendicular to the other, but I totally agree that doing so automatically would be much better.
 
So you need two phones to make it work?
 
Correct: two iPhones, iPhone+iPad, or two iPads... that's how the angles are calculated relatively to one another, instead of being just relative to the Earth's surface. Typical bubble levels are useless on things like boats and cars, since vehicles aren't attached to the ground.
 
Are you actually measuring to .01 degree? How do you mount a phone to maintain that level of precission? As an engineer and a mechanic, significant figures are critical.
 
Smartphones can measure much more precise numbers coming from the gyroscope, but vibration and temperature usually affect those fine values.
It's a 64-bit floating point ("Double") type in Swift programming language, up to 17 decimal places (depending on the value to the left of the point). It's so good that it's bad — various malware is known to utilize gyroscopes as microphones, to eavesdrop on conversations.

I limited the displayed values to just two decimal places — otherwise the text takes up too much space, and it becomes a bit hard to read. I think we're used to reading floating point numbers with two decimal places because of price tags. You can lay two phones running Multilevel down and see that it'll show no change in delta values, but once you tap on one of them, you'll then observe that the delta values change a bit and then go back to where they were.

I'm as OCD as the next guy, but more than .01 is unlikely needed when it comes to boats. I thought of making a setting where it's configurable (none to .00001), maybe I'll do that at some point.

And it's a very good question regarding mounting. I'd say just laying things flat should be enough in most cases. Probably most of the time you can lay the reference device flat (e.g. in the cockpit, where you know it's 100% parallel to the waterline), and then lean another device against whatever you need to measure. a bunch of tape or a phone case with a clamp could help (if you need to do it all the time).
 
Last edited:
I'm as OCD as the next guy, but more than .01 is unlikely needed when it comes to boats. I thought of making a setting where it's configurable (none to .00001), maybe I'll do that at some point.
You would need a flatness that is not achievable on phone. Also, the mount even for a .01 would have to be very stiff; more that what the housing allows. The difference between the ends of a phone at that angle is .036"
 
How does it manage a compound?

How far apart can the devices be?

I used my phone to set rod holders and even the phone case was a wonky, uneven surface. Of course, not needing two phones for that…just pointing out challenges.
 
How does it manage a compound?
Not sure I understand the question. If you mean zeroing, you can tap on the orb, it'll "zero" the difference from that point. Tap it again, and the math will go back to normal.

How far apart can the devices be?
Bluetooth Low Energy (BLE), should be roughly the same distance as Bluetooth speakers. You can see the beacon light in the top-right corner of every device will turn from green to orange, from orange to red, as you increase the distance. Steel/carbon walls don't exactly help the signal to travel, but it's enough for working on any 50' boat.

I used my phone to set rod holders and even the phone case was a wonky, uneven surface. Of course, not needing two phones for that…just pointing out challenges.
Zeroing (tapping on the orb) helps, you can lay the devices side-by-side, tap on the orb, and then move one of the devices and lean it against the rod holder with its surface. I have no control over what case who may have, or how many cameras stick out the back, so it's really up to the user to make sure they lean the device straight against the surface(s). You can lean the screen against the rod holder, if it's in a case, it should be pretty flat and not get scratched, but I'd recommend getting an old (rugged) smartphone and use it on a boat, you don't wanna drop in the water something you use everyday; this app works with iOS 15 and some ancient Android version, so nearly anything that's alive today should be able to run it.
 
The issue is not the app, but the physical equipment. The accuracy claim has to be realistic. For example, to measure the angle of stanchions there has to be a bracket that aligns the phones to the axis of the tube. The hardware determines the accuracy, which is orders of magnitude less than your claim. Holding two phones by hand would have even less accuracy.
 
I'd like to express this again, I have no control over the shape of the device or its sensors' calibration. If you need to flatten the back of the device or attach a bracket, that's something you'd have to figure out for yourself — e.g. by putting it in a case, or glueing something to the back.

My accuracy claim is realistic. The app is capable of communicating data with a resolution of 0.022° per axis, but whatever device you have, that obviously determines the precision — some cheap Android from 10 years ago likely won't be as precise as the latest iPhone, but who knows, YMMV. Resolution isn't accuracy. In modern devices equipped with sensor-fusion filters, the raw pitch/roll sensor precision is incredibly high, 0.001°–0.005°. But two devices assembled one right after another, won't have the same readings due to: the sensors being analog, uneven solder cooling, torque of the screws, heat, pressure, etc. On the operating system level, those values are generally rounded up to two decimal places (0.01º), and pitch and roll of a statically positioned device deviates between 0.02º to 0.05º due to thermal drift and sensor noise (again, depends on the device make and model), but it's still more precise than 0.1º which the app shows. So it's not orders of magnitude less than my claim, and you can see it for yourself by laying two devices on a rigid surface, tapping on the delta orb to zero them, and tilting that flat surface by putting something underneath its edges and corners, to see that the delta values stay at 0.0º (adjusted for the lag of Bluetooth, of course).

And that is very true, extremely good point, holding two devices in hands has less accuracy than leaning them against hard surfaces.
 
Ok, so to make it work you need two new up to date phones. That is about $2,500 cost. At 0.1 degree you are competing with $30 digital levels.
 
Wow, $2,500 sounds splurgy... I've tested my software, it works flawlessly on relatively old (~1 decade) Androids and iPhones, people have drawers full of them, or they can be bought for peanuts on eBay. Accelerometers have been in those devices since day one (2007), they've improved a lot, and will only get better going forward.

And I'm not trying to compete with anything here, it's a tool with unique capabilities that absolutely nothing else can provide today. I've created it for myself, shared with the world for free, so I'm not trying to sell anything or force anyone to use it.

Digital levels are useless on vehicles, they measure the angle relative to the planet's surface, not the deck. And even that $30 can be saved if you opt for plumb bobs, I believe that's what most boat builders use to build those almost symmetrical boats today. Don't think they're 0.1º precise though, but who knows, as long as there's no wind...
 
Forum posts represent the experience, opinion, and view of individual users. Boat Design Net does not necessarily endorse nor share the view of each individual post.
When making any potentially dangerous or financial decision, always employ and consult appropriate professionals. Your circumstances or experience may be different.

  • Back
    Top