It appears you have not yet registered with our community. To register for free click here
Rebreather World
       
Go Back Rebreather World Rebreather Models Other Rebreathers Home Build Rebreathers

Thoughts on voting algorythms.....



Reply
 
LinkBack Thread Tools Display Modes
Old 28th January 2006, 07:15   #1 (permalink)
Bubbless Box of Death
 
Genesis's Avatar

Current Rebreather/s:
Home Build

Other Rebreather/s:
Home Build
 
Join Date: Oct 2005
Location: Sunny Florida
Posts: 1,453
Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold
Thoughts on voting algorythms.....

Wanted to throw this out for consideration, as I mull over a few things....

On the Parallax chipset I have neither the space nor the precision to get real fancy with voting logic, nor am I sure I want to.

But on the ZX, which has a LOT more speed, floating point and code storage, I'm contemplating the following algorythm....

1. If any sensor is off more than 0.02 from the others, it is considered "non-conforming."

2. If there is no consensus among the sensors, the high value, so long as it is not "on the rail" (indicating a short or leakage from V+ somehow) is considered the valid one. This is a serious alarm condition as well.

3. If there is consensus among two of the three, they are considered valid UNLESS the other one reads HIGH. Then IT is the consensus and the other TWO are voted out. If the "odd man out" reads LOW, it is called bad and voted out.

4. A voted out sensor is an alarm condition. TWO voted out sensors constitute a critical alarm.

The logic I'm operating on here is that it is entirely possible to have either "slow" or current limited cells. A "slow" cell is an annoyance, but current-limited ones can kill you.

You COULD have two current-limited cells - if you trust those, you could die by voting out the one good cell and injecting when the PO2 is in fact dangerously high. If you have two slow and one good cell, you will overshoot if you compute injection intervals based on the slow ones.

If you trust the high one, the only way you get in trouble is if the high cell has leakage from somewhere. Since we're already looking for that condition and will disregard the cell if this is the case, this appears "safe".

I am also implementing a "validation" (which is in the Parallax code already) - the controller will not permit a setpoint to be selected which exceeds the maximum validated value within the previous week. If no value has been stored within 7 days, the maximum validated value is reset to 0.5. The maximum allowed PO2 to be set is 0.1 below the validation value.

Thus, when you first dive the unit, you must validate a high setpoint if you wish to set one that is greater than 0.5. If you validate on the surface (maximum PO2 of 1.0) you can dive at 0.9. If you validate at 20' (PO2 = 1.6) you can then have the controller maintain a setpoint of anything up to 1.5 (providing you're deep enough to be able to do so.) The controller knows its depth so it will not attempt to maintain a setpoint that is impossible.

You can always manually increase the PO2 over the setpoint without an alarm (provided you don't go over 1.6, wihch is the high PO2 warning limit) but the controller will not assist you in killing yourself by allowing you to ask it to rely on sensors it does not know can reach the output necessary to indicate the desired PO2.

Thoughts?
__________________
"A venturesome minority will always be eager to get off on their own, and no obstacles should be placed in their path; let them take risks for Godsake, let them get lost, sunburnt, stranded, drowned, eaten by bears, buried alive under avalanches - that is the right and privilege of any free American."
http://www.denninger.net
http://www.diversunion.org/liability.htm - Fix the Diving Cert racket
(Offline)
 
Digg this Post!Add Post to del.icio.us
Reply With Quote
Old 28th January 2006, 07:36   #2 (permalink)
Steve Collard
 
UKSteve's Avatar

Current Rebreather/s:
Inspiration Vision

Other Rebreather/s:
 
Join Date: Jul 2005
Location: Weymouth, UK
Posts: 601
UKSteve is a splendid one to behold UKSteve is a splendid one to behold UKSteve is a splendid one to behold UKSteve is a splendid one to behold UKSteve is a splendid one to behold UKSteve is a splendid one to behold UKSteve is a splendid one to behold UKSteve is a splendid one to behold UKSteve is a splendid one to behold UKSteve is a splendid one to behold UKSteve is a splendid one to behold
Re: Thoughts on voting algorythms.....

Another consideration in the voting logic in an eCCR is the response of the cells to the soleniod firing. If one or more cells is seen not to react upwards just after the solenoid in opened by the controller then this in itself will be a strong indication of current limited / faulty cells (or no O2 - at which point none of the cells react!).

I believe this logic is used in the AP Vision electronics.

Steve
(Offline)
 
Digg this Post!Add Post to del.icio.us
Reply With Quote
Old 28th January 2006, 07:47   #3 (permalink)
Bubbless Box of Death
 
Genesis's Avatar

Current Rebreather/s:
Home Build

Other Rebreather/s:
Home Build
 
Join Date: Oct 2005
Location: Sunny Florida
Posts: 1,453
Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold
Re: Thoughts on voting algorythms.....

That's already in there (in both versions of the code) - if the solenoid fires and the system does not see the upward spike that this should produce, that is an alarm condition as well.
__________________
"A venturesome minority will always be eager to get off on their own, and no obstacles should be placed in their path; let them take risks for Godsake, let them get lost, sunburnt, stranded, drowned, eaten by bears, buried alive under avalanches - that is the right and privilege of any free American."
http://www.denninger.net
http://www.diversunion.org/liability.htm - Fix the Diving Cert racket
(Offline)
 
Digg this Post!Add Post to del.icio.us
Reply With Quote
Old 28th January 2006, 08:04   #4 (permalink)
Submerge Productions
 
PCDiver's Avatar

Current Rebreather/s:
Inspiration Vision

Other Rebreather/s:
Inspiration Classic
 
Join Date: Feb 2005
Location: Belgium
Posts: 1,003
PCDiver is a name known to all PCDiver is a name known to all PCDiver is a name known to all PCDiver is a name known to all PCDiver is a name known to all PCDiver is a name known to all PCDiver is a name known to all PCDiver is a name known to all PCDiver is a name known to all PCDiver is a name known to all PCDiver is a name known to all
Send a message via Skype™ to PCDiver
Re: Thoughts on voting algorythms.....

Quote: (Originally Posted by Genesis)
Thus, when you first dive the unit, you must validate a high setpoint if you wish to set one that is greater than 0.5. If you validate on the surface (maximum PO2 of 1.0) you can dive at 0.9. If you validate at 20' (PO2 = 1.6) you can then have the controller maintain a setpoint of anything up to 1.5 (providing you're deep enough to be able to do so.) The controller knows its depth so it will not attempt to maintain a setpoint that is impossible.

You can always manually increase the PO2 over the setpoint without an alarm (provided you don't go over 1.6, wihch is the high PO2 warning limit) but the controller will not assist you in killing yourself by allowing you to ask it to rely on sensors it does not know can reach the output necessary to indicate the desired PO2.

Thoughts?
Sounds annoying. Let's say my first dive is a 30 meter dive from a rib where you have to descend quickly because of current without shot line. You don't have the time to calibrate at 20 feet because that would make you drift to far. With your controller that would mean a setpoint of 0.9. Not good.
(Offline)
 
Digg this Post!Add Post to del.icio.us
Reply With Quote
Old 28th January 2006, 17:38   #5 (permalink)
Bubbless Box of Death
 
Genesis's Avatar

Current Rebreather/s:
Home Build

Other Rebreather/s:
Home Build
 
Join Date: Oct 2005
Location: Sunny Florida
Posts: 1,453
Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold
Re: Thoughts on voting algorythms.....

No, you calibrate on atmospheric air. You can validate at any time, and validation is good for longer than calibration is (you must calibrate daily or the unit will not go into dive mode.) If you FORCE it down (e.g. you ignore the screaming warning about calibration being required) it will display PO2s but refuse to inject oxygen - forcing you to fly manually.

The purpose of validating is to prove that your cells are not current-limited. There is no way to know this WITHOUT validation. This is basic engineering stuff - and it irritates me to no end that none of the existing manufacturers think its important.

Yeah, yeah, I know, everyone else does it differently. That doesn't make it right - remember, I'm coming at this not from the perspective of a Rebreather diver with 1,000 hours underwater on one, but rather from a systems engineering standpoint.

IMHO sometimes there are advantages in NOT having drilled into you "how everyone does it" before you design and implement something....

You can always fly the unit as a manual injection unit with PO2 monitor. What you can't do is ask it to kill you by accident because the electronics have not verified that the sensors can actually deliver enough current to reach the setpoint desired (any Rebreather can kill you on PURPOSE)

I'm willing to eat the inconvenience of not having the unit run a hyperbaric PO2 until the controller is satisfied that it can measure that PO2 accurately.
__________________
"A venturesome minority will always be eager to get off on their own, and no obstacles should be placed in their path; let them take risks for Godsake, let them get lost, sunburnt, stranded, drowned, eaten by bears, buried alive under avalanches - that is the right and privilege of any free American."
http://www.denninger.net
http://www.diversunion.org/liability.htm - Fix the Diving Cert racket
(Offline)
 
Digg this Post!Add Post to del.icio.us
Reply With Quote
Old 28th January 2006, 19:40   #6 (permalink)
Crash Test Dummy
 
decoweenie's Avatar

Current Rebreather/s:
Other CCR

Other Rebreather/s:
Other CCR
 
Join Date: Feb 2005
Location: Cairo
Posts: 5,487
decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute
Re: Thoughts on voting algorythms.....

I iterate Peter's comment.

You live/dive in Florida where the practive of "dive-bomb" a wreck (descend as fast as possible up current to drift into a wreck) is popular, this would mean that you would have to dive in manual most of the time.
__________________
"...after a while you get bored offering advice to a bull that like to keep butting the fence with its head rather than walking through the open gate..."

- Rebreather World PM
(Offline)
 
Digg this Post!Add Post to del.icio.us
Reply With Quote
Old 28th January 2006, 20:02   #7 (permalink)
Bubbless Box of Death
 
Genesis's Avatar

Current Rebreather/s:
Home Build

Other Rebreather/s:
Home Build
 
Join Date: Oct 2005
Location: Sunny Florida
Posts: 1,453
Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold
Re: Thoughts on voting algorythms.....

No it doesn't; I think you're misinterpreting how it works.

I live and dive here too (Florida) and do hot drops from time to time.

Validation means you have to validate once a week. Every time you are on deco, select validate. As long as it does not expire you are not in any way limited. If you dive at least once a week, validation will never expire (except when the sensors don't work right any longer!)

If it does expire, your first dive after that is PO2 limited. However, if you have a working PO2 on the bottom (e.g. 1.4) manually attained you can validate there if you're comfortable that what you're seeing is "real" (e.g. if you're at the mod then a DIL flush works.) If you "believe it", then that's your call (e.g. you're way off the MOD and have injected O2 to bring up the PO2 manually - but you decide to tell the unit that its ok to go ahead and "trust" the sensor readings.)

What validation does is verify that the sensors can exceed the selected PO2 and that at the time you validated they were all within reasonable linearity at higher than the PO2 you wish to select for automatic maintenance.

Your use (or abuse) of it is entirely at your discretion - but it requires an affirmative action on your part of SEEING a valid PO2 reading from all three sensors and acknowledging that you're happy with it before the controller will allow a hyperbaric PO2 to be selected.

Its not an attempt to keep you from killing yourself by doing something stupid, but does eliminate one of the ways you can kill yourself through lack of attention to detail.
__________________
"A venturesome minority will always be eager to get off on their own, and no obstacles should be placed in their path; let them take risks for Godsake, let them get lost, sunburnt, stranded, drowned, eaten by bears, buried alive under avalanches - that is the right and privilege of any free American."
http://www.denninger.net
http://www.diversunion.org/liability.htm - Fix the Diving Cert racket
(Offline)
 
Digg this Post!Add Post to del.icio.us
Reply With Quote
Old 28th January 2006, 20:09   #8 (permalink)
Crash Test Dummy
 
decoweenie's Avatar

Current Rebreather/s:
Other CCR

Other Rebreather/s:
Other CCR
 
Join Date: Feb 2005
Location: Cairo
Posts: 5,487
decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute
Re: Thoughts on voting algorythms.....

So once a week you will have to validate by either:
  1. O2 flush at 20ft/6m, or
  2. do a diluent flush at max depth using a diluent mix that would give you ~0.1 PO2 above your normal set-point
Is that correct ?

If so then option 1 is more practical since most people would standardize on a diluent mix for most depths (i.e. 10/50 for me).
__________________
"...after a while you get bored offering advice to a bull that like to keep butting the fence with its head rather than walking through the open gate..."

- Rebreather World PM
(Offline)
 
Digg this Post!Add Post to del.icio.us
Reply With Quote
Old 28th January 2006, 20:24   #9 (permalink)
Bubbless Box of Death
 
Genesis's Avatar

Current Rebreather/s:
Home Build

Other Rebreather/s:
Home Build
 
Join Date: Oct 2005
Location: Sunny Florida
Posts: 1,453
Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold Genesis is a splendid one to behold
Re: Thoughts on voting algorythms.....

Quote: (Originally Posted by decoweenie)
So once a week you will have to validate by either:
  1. O2 flush at 20ft/6m, or
  2. do a diluent flush at max depth using a diluent mix that would give you ~0.1 PO2 above your normal set-point
Is that correct ?

If so then option 1 is more practical since most people would standardize on a diluent mix for most depths (i.e. 10/50 for me).
Close - your options are:
  1. Do an O2 flush at 20ft (if you want a max setpoint of 1.5) - the obvious convenient time to do that is during deco.
  2. Do a dil flush at the MOD (if you want a max setpoint of 1.3, assuming MOD is defined in your world at 1.4)
  3. Manually attain 0.1 over the setpoint you want to be able to set as maximum at any time during the dive, and tell the controller to validate. If the cells are all within linearity (none are voted out) it will accept that.
Note that (3) is not as safe as (1) or (2), as (3) doesn't prove that you really had 1.4 in the loop - just that you could read it, and all three sensors agreed - but you're the pilot.

You are warned on power-up if validation has expired and the setpoints have been cut back to 0.5. On the surface you can also validate to 1.0 (in practice, I can only reach 0.95ish) which will give you an 0.8 setpoint maximum - unless you "cheat" and do it during a positive pressure test (in which case you can read somewhat over 1.0, and get an 0.9)

This is sufficient to get you to the bottom with a decent PO2 (e.g. 0.8 ro 0.9) on automatic at which point you can validate if you wish to raise the setpoint further and believe what you're seeing.
__________________
"A venturesome minority will always be eager to get off on their own, and no obstacles should be placed in their path; let them take risks for Godsake, let them get lost, sunburnt, stranded, drowned, eaten by bears, buried alive under avalanches - that is the right and privilege of any free American."
http://www.denninger.net
http://www.diversunion.org/liability.htm - Fix the Diving Cert racket
(Offline)
 
Digg this Post!Add Post to del.icio.us
Reply With Quote
Old 28th January 2006, 22:08   #10 (permalink)
Crash Test Dummy
 
decoweenie's Avatar

Current Rebreather/s:
Other CCR

Other Rebreather/s:
Other CCR
 
Join Date: Feb 2005
Location: Cairo
Posts: 5,487
decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute decoweenie has a reputation beyond repute
Re: Thoughts on voting algorythms.....

Nice idea, but IMHO, not practical based on my experience:
  • O2 flush at the begining of the dive isn't always possible.
  • Mixing different diluent per dive to get 1.4 MOD isn't the usual practice.
I am sure you will disagree...

Anyway, I think an alarm to remind the diver to revalidate would be a better option than to disable the solenoid. Anyway, just MHO and it is your unit.
__________________
"...after a while you get bored offering advice to a bull that like to keep butting the fence with its head rather than walking through the open gate..."

- Rebreather World PM
(Offline)
 
Digg this Post!Add Post to del.icio.us
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



RebreatherWorld.Com ©2005 - 2008
Rebreather World, RBW and the Rebreather World Logo are Trademarks
All rights reserved, no republishing of content without written permission.
By using this website you have agreed to our Terms & Conditions of Use

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423