Message boards : Science : Detector bugs
Author | Message |
---|---|
First of all I appreciate your continous effort to build an open sensor network. Please continue your work. | |
ID: 1030 | Rating: 0 | rate: / Reply Quote | |
Thank you for pointing out the issues with the detector. It is through member feedback that the project grows and the devices are debugged and become more useful. | |
ID: 1032 | Rating: 0 | rate: / Reply Quote | |
I respect your input but encourage you to study the source code prior a reply. | |
ID: 1034 | Rating: 0 | rate: / Reply Quote | |
Thats why all this fancy graphics in your signature are pretty useless for a background monitoring. We have heard that before. Some of us didn't believe it then, some of us won't believe it now. I believe. @ the R@H developers: Can the problem be fixed with a firmware update? If so, is there a bootloader in the ATtiny or are we going to have to purchase a programmer or send our ATtinys to someone who has a programmer. ____________ | |
ID: 1035 | Rating: 0 | rate: / Reply Quote | |
Are you sure about this ? The v2 prototype (early version of the first batch) was tested up to 50kHz, that's 10 times more pulses than the tube can produce (in theory). Even far above 50kHz the detector itself worked, however as the test frequency was approaching 30-40kHz the USB transfer became problematic. | |
ID: 1036 | Rating: 0 | rate: / Reply Quote | |
We do not use an interrupt, but counter. Buzzer is turned on only when value of the counter changes. As TJM writes detector was tested with square wave generator to few kHz and it works well. | |
ID: 1038 | Rating: 0 | rate: / Reply Quote | |
I cant't test it as I do not own a detector yet (The sale was over before I found this project). But from your posted firmware ISR(INT1_vect) { counter++; if (beep_on) beep(5); } your beep function inline void beep(int t) { sbi(PORTD, BUZZER); _delay_ms(t); cbi(PORTD, BUZZER); } You see it? I think one of the developers was aware of it, because you call the beep_if_change() function every now and then. That is useless, as you beep in the interrupt routine everytime. What was the design consideration to limit the USB current to 50mA? | |
ID: 1039 | Rating: 0 | rate: / Reply Quote | |
I've just checked source code I have at my computer and there is ISR(INT1_vect) { counter++; // if (beep_on) beep(5); } So it should be OK, because 100% of a first batch of detectors I am had done (If we can, we will verify a hex from ATTiny and this at my HDD). About the USB... We don't know why USB connection hangs. But the 50mA limitation shouldn't be a problem... BUT I'm not sure! There is a question: Are there any problems with USB connection (it hangs after few minutes or hours of normal operation) when buzzer (and even LCD backlight) is turned off? | |
ID: 1041 | Rating: 0 | rate: / Reply Quote | |
The 5ms dead time would limit the max working freq to 200Hz in ideal conditions. | |
ID: 1042 | Rating: 0 | rate: / Reply Quote | |
Thank you for your quick experiment. Do you know the frequency of your waveform generator? So you are using firmware v2.51 on a 1.0 platform, interesting. What are the exact differences between sensors version 1, 2, 2.5, 3 and how many subversions are there? | |
ID: 1043 | Rating: 0 | rate: / Reply Quote | |
Thank you for your quick experiment. Do you know the frequency of your waveform generator? This can be roughly estimated using the shown values, I set random frequencies just for tests. Few months ago I ran another test, where the sensor's pulse input and the frequency meter (in pulse counter mode) were connected to the generator, I compared the readings after long periods of time, the sensor didn't miss a single pulse at frequency higher than theoretical maximum of what the tube can read. I think it started to miss single pulses every now and then around 30-35kHz.
Not really, the board is physically 1.0 however it's patched to v2.5 specs - lots of cut pathes replaced with wires. Any v2 software won't work with v1 due to huge design changes between those boards.
v1 was the first batch, only a couple were made, it's no longer in use (except maybe 1 detector), it had a couple of major design flaws in both hardware and firmware (as the bug you mentioned above, which was found the hard way - at Chernobyl as far as I remember). It was used for initial tests and lots of things were changed as the result (including operating frequency, CPU (2313->4313) and USB wiring. v2 was the first batch sent, the hardware between v2.5 and v2 is mostly the same, except the 2.5 had some (mostly) minor glitches fixed and a couple of new features introduced. v3 is completely different detector, it's at prototype stage.
I'm not sure what's in the package, perhaps someone put the older sources there by mistake. It's also possible that beep_on was actually undefined and therefore the old function was disabled. | |
ID: 1044 | Rating: 0 | rate: / Reply Quote | |
So v2.01 is the detector from the first patch. But what is the difference between v2.01 and the v2.5 branch exactly? What features are introduced between v2.51, v2.52 and v2.53? | |
ID: 1045 | Rating: 0 | rate: / Reply Quote | |
I don't have a full list of changes here. | |
ID: 1047 | Rating: 0 | rate: / Reply Quote | |
I think your device hangs because of the watchdog timer. You never clear it before initialization. The watchdog flag is saved after reset, but the timer is reset to 16ms. So when there is a warm reset you are probably in an endless loop. http://www.nongnu.org/avr-libc/user-manual/group__avr__watchdog.html The backlight and other devices are switched on before USB initialization. So you drain the current before you request it from the operating system. There are no current limiting resistors in your MOSFET driver. It's just limited by the characteristic curve of the transistor. 50mA are maybe drawn from the backlight alone. | |
ID: 1049 | Rating: 0 | rate: / Reply Quote | |
Actually, the LCD itself with backlight on draws less than 10mA. | |
ID: 1050 | Rating: 0 | rate: / Reply Quote | |
I don't want to blame anyone, as this is a nice hobby project and a wonderful public science experiment. But I don't want to take your homework either: | |
ID: 1051 | Rating: 0 | rate: / Reply Quote | |
The buzzer uses 30mA only when it beeps, thats like 1s total every 5 minutes during normal operation, if I ever hear continuous beep, the last thing I'll worry about will be the USB power consumption. | |
ID: 1052 | Rating: 0 | rate: / Reply Quote | |
A quick survey on the device hangs up / USB connection gets lost problem: | |
ID: 1058 | Rating: 0 | rate: / Reply Quote | |
A quick survey on the device hangs up / USB connection gets lost problem: 1. random 2. lcd values changes like at normal operation 3. no 4. backlight - static, text - like at normal operation 5. yes 6. no matter Only USB connection hangs... | |
ID: 1059 | Rating: 0 | rate: / Reply Quote | |
Thank you! | |
ID: 1061 | Rating: 0 | rate: / Reply Quote | |
I have my backlight on all the time. | |
ID: 1062 | Rating: 0 | rate: / Reply Quote | |
Just want to share my observations in a real radiation field. | |
ID: 1063 | Rating: 0 | rate: / Reply Quote | |
My detector never hangs, the buzzer is always off, the backlight is always on. I asked the manufacturer of my motherboard, it does not restrict USB devices to the current they request. | |
ID: 1064 | Rating: 0 | rate: / Reply Quote | |
exsafs - Big thanks! It's great to know something like this. | |
ID: 1066 | Rating: 0 | rate: / Reply Quote | |
The problem with LCD brightness is mostly caused by contrast voltage, which is set by voltage divider connected directly to +5V supply. Unfortunately the LCD display is very sensitive to slighest changes, as a result minor change on +5V changes also the contrast. | |
ID: 1067 | Rating: 0 | rate: / Reply Quote | |
A quick survey on the device hangs up / USB connection gets lost problem: 1. 24/7 2. lcd values changes like at normal operation 3. yes 4. backlight - static, text - like at normal operation 5. have not checked 6. 2.51 (from http://radioactiveathome.org/boinc/test123a.php) this refer to only 1 event using sensor on a very old PIII and unused USB port that has problems in the past with optical mouse and others devices, now works fine on a new Q9400 | |
ID: 1068 | Rating: 0 | rate: / Reply Quote | |
My hangs tend to be on an older pentium class machine running xp. ehh. probably 7 or so years old. Beat to hell old laptop. The others rarely hang if at all. | |
ID: 1069 | Rating: 0 | rate: / Reply Quote | |
So let's combine the things. | |
ID: 1070 | Rating: 0 | rate: / Reply Quote | |
I tested both the STS-5 and SBM-20 with (weak) radiation sources, the readings do not differ more than 2-3%. One of the russian sites (can't remember which, I'd have to google around a bit) states that these tubes have the same characteristics.
The sensor returns raw data (pulse count and it's internal timer) so the actual sample time does not matter. I'm not a fan of short sample times myself, as it just fills the database with tons of records which do not represent anything anyway, just make parsing the data harder. The /171.2 divider is for a full minute and the actual sample time (which differs sligthly between samples) is taken into account as well. The 171.2 comes from converting our older (more complicated) formula to simplier form, whether the formula was 100% accurate I have no idea. Even if all the formulas are bugged, it does no permanent harm, as the DB stores raw values.
Well, lets face it - unless the host has very sh!tty USB, there is no way that device consuming even 100-150mA can actually cause voltage drops. Mostly the 2.01 sensor is affected by this dimming effect, due to the unfortunate 10R resistor. | |
ID: 1071 | Rating: 0 | rate: / Reply Quote | |
The sensor returns raw data (pulse count and it's internal timer) so the actual sample time does not matter. I'm not a fan of short sample times myself, as it just fills the database with tons of records which do not represent anything anyway, just make parsing the data harder. There was another poster who seemed to understand the complexity of gathering meaningful radiation samples who mentioned the short sample times are a bad idea. I don't remember the poster's name and can't find the thread he posted to but I think probably we all recall his advice. Which was promptly ignored. I've discussed the problem with a Ph.D. in math from our local university and he agrees that it is a classic Poisson process and that a sample time of 400 seconds is required for meaningful samples. Maybe the problem with too short sample times can be fixed even if R@H refuses to fix it. The raw data is available using the easy to use method described in this thread. @phys, Would it make sense to take the raw data from a given detector, add the pulse count and sample time from successive samples until the total pulse count reaches 400 then store that total along with the total sample time as a single sample in a database independent of the R@H database? Then the next 20 or so samples would be merged into 1 sample, repeat for all the raw data and for each detector (312 detectors reporting now!). From that database meaningful graphs could be plotted, etc. (Long term funding for the database is already in place, website established) ____________ | |
ID: 1072 | Rating: 0 | rate: / Reply Quote | |
Actually there is no need to recalculate anything from the DB, as the samples can be scaled up easily - just take a number of subsequent samples, sum their pulses and divide by the sum of sample_time - what you get is exactly the same result as if it was one longer sample. | |
ID: 1073 | Rating: 0 | rate: / Reply Quote | |
Yes, you could reduce the database to at least 1/10 its current size and provide some room for growth. Is there a disadvantage to that? | |
ID: 1074 | Rating: 0 | rate: / Reply Quote | |
There was another idea - to get every single pulse with his strict GPS position & time. Then if we do many of the detectors isolated from Earth coming gamma radiation we will have huge gamma rays eye! Every of the tube will acts as a pixel in digital camera. But computing power and storage need to this is HUGE and we will need more military GPSes ;) | |
ID: 1075 | Rating: 0 | rate: / Reply Quote | |
Yes, you could reduce the database to at least 1/10 its current size and provide some room for growth. Is there a disadvantage to that? Short samples are not meaningless. They have one huge advantage over longer samples, which is data resolution. With short samples it is *always* possible to get accurate readings over longer periods, it just requires specifying start/end timestamps + a little math (mysql does that with single query). Where's the problem ? The selected period has a tolerance of sample_time on both ends, which might be useful when looking for radiation spikes. Need smooth graphs ? Running average does the job, combined with some weighting can even react quickly for large changes. I'm not saying that the sample_time won't be changed in the future, as the 40s is an overkill and it's mostly a leftover from one of the first apps. | |
ID: 1076 | Rating: 0 | rate: / Reply Quote | |
Short samples are not meaningless. They have one huge advantage over longer samples, which is data resolution. Data resolution in this case is an illusion and phys's lesson in the other thread demonstrates why that is so. it just requires specifying start/end timestamps + a little math (mysql does that with single query). Of course! But you don't make that clear anywhere on your website. Sure it's revealed in this thread but a year from now, after this thread sinks to the bottom of the thread list, that info becomes invisible. So will you make that advice more visible? I don't think any warning you put anywhere can possibly be as effective and reliable as simply providing statistically reliable raw data. Furthermore, statistically reliable raw data requires a fraction of the storage space you're using now and it would take you about 5 minutes to make the changes. Where's the problem ? I already explained that but I'm happy to explain one more time. You either get it then or you don't. The problem is naive people will use your raw data without correcting (summing) the meaningless low pulse counts and count period and arrive at erroneous conclusions. If it required a huge effort on your part to avoid that then I could understand why you wouldn't want to correct it. However, it seems pretty obvious a correction would take only a few minutes of your time so I really have to question what you guys are doing and why you're doing it. If your goal is to provide white noise then you've succeeded. If your goal is to provide random numbers then you have probably succeeded at that too (though the randomness is arguable). However, if your goal is to provide meaningful data from the detector network then you have failed. Indeed that is my opinion but if you seek expert guidance on the matter they will confirm my opinion. I'm not saying that the sample_time won't be changed in the future, as the 40s is an overkill and it's mostly a leftover from one of the first apps. That's a good sign but you should use pulse count rather than an arbitrary time to determine the sample duration. In other words, read the pulse counter on the detector as often as you want, 4s, 40s, 400s, it doesn't matter. What does matter is that you accumulate the pulse count until you have at least 400 pulses. If that takes 2s or 20000s it doesn't matter. Phys and the math professor I talked to at our local university agree on the need for 400 pulses minimum. Please verify that through discussions with whatever math/physics experts you choose in your own locality. ____________ | |
ID: 1091 | Rating: 0 | rate: / Reply Quote | |
Dagorath, I'm really confused... | |
ID: 1092 | Rating: 0 | rate: / Reply Quote | |
There was another idea - to get every single pulse with his strict GPS position & time. Counting single pulses serves no purpose. It would be a bad waste of resources and nothing more. You need a minimum of 400 pulse counts to have 1 reliable sample. Maybe you don't like that fact but it is fact of Poisson processes whether we like it or not. Then if we do many of the detectors isolated from Earth coming gamma radiation we will have huge gamma rays eye! Maybe I don't understand what you mean by "Earth coming gamma radiation" but I think if you isolate a detector from that source you effectively isolate it from all sources. Am I missing something? Every of the tube will acts as a pixel in digital camera. But computing power and storage need to this is HUGE I don't think you can afford the storage and I doubt volunteers will donate money for the storage when they learn that your idea just won't work. and we will need more military GPSes ;) According to http://en.wikipedia.org/wiki/GPS, civilian GPS units are just as accurate as military units because US President Bill Clinton passed a law in 2000 requiring the US Department of Defense to provide the same satellite signal to civilian receivers as is provided to military receivers. The only difference between civilian and military GPS is that civilain GPS receivers are not allowed to function above 18 km altitude and at speeds exceeding 515 metres per second which makes civilian GPS useless for guiding an ICBM or other weapons. Civilian and military GPS is accurate to only 20 metres. You can mark your detector's position on the Google map with 5 metre accuracy or better. Since most detectors will be attached to a desktop computer and move very little, GPS won't provide much of an advantage and will in many cases be less accurate than simply pining your location on the map. A moving detector is a different matter, of course. Another thing about GPS.... it requires the receiver to have line of sight to 4 or more satellites. If there are buildings or even trees between the receiver and the satellites it either won't work or it becomes inaccurate and unreliable. Land surveyors get around that problem to some extent by locating hubs in line of sight to the satellites and "triangulating" their portable survey instruments to the hubs but it requires very expensive instruments. In some locations they can't use GPS at all because the hubs cannot be located in line of sight to the satellites due to mountains or trees. Radiation detectors equipped with GPS will fail under those circumstances too. ____________ | |
ID: 1094 | Rating: 0 | rate: / Reply Quote | |
Well, I'd like to see where exactly did you find the info about 20m precision. | |
ID: 1137 | Rating: 0 | rate: / Reply Quote | |
I got a GPS on my boat, just your standard that's accurate to a bout 2 to 3 M. Even my 5 year old handheld is good to 3M. Getting a signal inside a building depends on structure etc, however I am finding that the newer devices can lock on a LOT faster than the older ones. My old handheld used to take about a minute to wind up, the new one in maybe 20 seconds it's already locked and honing in on accuracy. | |
ID: 1139 | Rating: 0 | rate: / Reply Quote | |
Sorry, I should have given a citation. I got the 20 meter number from this wikipedia article . See the 10th paragraph in the section titled History, partially quoted below. Initially, the highest quality signal was reserved for military use, and the signal available for civilian use was intentionally degraded (Selective Availability). This changed with President Bill Clinton ordering Selective Availability to be turned off at midnight May 1, 2000, improving the precision of civilian GPS from 100 meters (330 ft) to 20 meters (66 ft). Further down in the article in the Accuracy Enhancement and Surveying section it speaks of 2 mm accuracy with use of the expensive kind of equipment surveyors use which I was aware of because my friend is a surveyor and owns that type of equipment. He also had a Garmin handheld unit back in the 90's and it was definitely limited to 100 meter accuracy. He used it for "getting close". I think the proper way to interpret the wiki article is to say 20 meter precision was probably what the average civilian could expect from affordable handheld units in 2000 though work was already underway at that time to improve precision. Sorry if I misinterpreted in my previous post on the topic. Now tell me, what a 50m jump means while creating radiation map ? I don't understand the question. Can you rephrase it please? I don't know what you mean by "a 50 meter jump". I'm not sure if you noticed, but even our data export has no such accuracy, as the last digits are removed to protect privacy (still, the map and test123 both report exact position I believe). No, I didn't notice that about the data export. I don't know what test123 is, please explain. ____________ | |
ID: 1141 | Rating: 0 | rate: / Reply Quote | |
I thought everyone knows our first page which displayed some basic data: http://radioactiveathome.org/boinc/test123a.php :P | |
ID: 1149 | Rating: 0 | rate: / Reply Quote | |
So...where do we stand? Is this project going to change its stance and allow meaningful background radiation noise measurements (according to Dagorath/Phys and others), or should I contribute money towards another radiation project that has a better understanding of radiation decay? | |
ID: 1214 | Rating: 0 | rate: / Reply Quote | |
So are you saying, that our data is meaningless ? | |
ID: 1215 | Rating: 0 | rate: / Reply Quote | |
I'm not a radiation expert, but from what I've read so far from Phys/Dagorath and others, the way this project is set up, it does not allow meaningful background radiation measurements as the sensor does not take reliable samples to make out the whole picture. I don't know how to try to explain it to you, as others have already put it more eloquently than I can. | |
ID: 1218 | Rating: 0 | rate: / Reply Quote | |
Interesting thread. I find the comments from phys very constructive and the developers should use his expertise to improve the project. Were those bugs corrected in the software? | |
ID: 1458 | Rating: 0 | rate: / Reply Quote | |
On the other hand, Dagorath's loud mouth is very offensive You are offended too easily. and I'm frankly surprised he was not banned form here. Frankly, you are surprised too easily too. His comments are totally off mark Nonsense. and he scared some potential volunteers away (Tino Ruiz). Nonsense and exaggerations on your part. You said "volunteers" which means more than one yet you mention only one name. You purposely plant a suggestion of something much worse than the real situation. In other words you tried a sneaky lie. Nice try but it doesn't wash anywhere outside the USA where, as was noted in the London Times, they're stupid enough to vote Bush in twice. Furthermore, Tino Ruiz's reason(s) for not joining are all about the way the data is analyzed/presented here and I really don't see how I can be blamed for that. I think you have a problem with speaking/hearing the truth and I predict that your loathing for the truth will drive you to say even more very foolish things on this matter. ____________ | |
ID: 1465 | Rating: 0 | rate: / Reply Quote | |
I'm no going to tolerate being caller lier and being insulted as an American. | |
ID: 1468 | Rating: 0 | rate: / Reply Quote | |
Bingo! You insult me first then whine about me insulting you. ROFLMAO! | |
ID: 1469 | Rating: 0 | rate: / Reply Quote | |
Hello, I'm new here trying to get up to speed quickly. | |
ID: 1532 | Rating: 0 | rate: / Reply Quote | |
USB is a complicated specification and I am far from being an expert on it so I could be wrong but since nobody else seems willing to take a crack at the answer I'll give it a try on the condition that if you quote me I'll deny everything ;-) | |
ID: 1545 | Rating: 0 | rate: / Reply Quote | |
Message boards :
Science :
Detector bugs