tag:blogger.com,1999:blog-6100511197805579796.post410200022440056794..comments2024-02-14T18:43:36.096+01:00Comments on Davide Gironi blog: UV Sensor ML8511 AVR Atmega libraryDavide Gironihttp://www.blogger.com/profile/16366076989473118278noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-6100511197805579796.post-39913215707652802952019-06-28T21:33:58.434+02:002019-06-28T21:33:58.434+02:00Hello, remember that if you enable the ema filter,...Hello, remember that if you enable the ema filter, voltage takes a few step to "stabilize". Check it disabling the EMA, #define ML8511_EMAFILTERENABLED 0Davide Gironihttps://www.blogger.com/profile/16366076989473118278noreply@blogger.comtag:blogger.com,1999:blog-6100511197805579796.post-9837525785832349302019-06-28T17:32:43.597+02:002019-06-28T17:32:43.597+02:00... for 25° these values
intensity=0.060000 ...... for 25° these values<br /><br />intensity=0.060000 <br />uvindex=0.078828 <br /> <br />intensity=4.370118 <br />uvindex=5.741461 Alessandro B.https://www.blogger.com/profile/15497418430059883049noreply@blogger.comtag:blogger.com,1999:blog-6100511197805579796.post-48583876861684149632019-06-28T17:30:37.092+02:002019-06-28T17:30:37.092+02:00I "converted" your code for the Arduino ...I "converted" your code for the Arduino IDE... but I get the same result converting your code for a non MCU environment, that is converting the PROGMEM variable modifier to normal arrays. I can send you the code for your convenience. Substancially doing these call:<br /><br />intensity = ml8511_getintensity(1, 39, 365);<br />uvindex = ml8511_getuvindex(intensity, 0);<br /><br />intensity = ml8511_getintensity(2.8, 39, 365);<br />uvindex = ml8511_getuvindex(intensity, 0);<br /><br />I get:<br />intensity=0.149712 <br />uvindex=0.196691 <br /> <br />intensity=4.486501 <br />uvindex=5.894365 <br />Alessandro B.https://www.blogger.com/profile/15497418430059883049noreply@blogger.comtag:blogger.com,1999:blog-6100511197805579796.post-48427660737746117922019-06-28T15:25:22.634+02:002019-06-28T15:25:22.634+02:00Hello Alessandro, supposing we are at 25degree, th...Hello Alessandro, supposing we are at 25degree, the slope and intercept parameters I've excrated from the graph are s=7.9817 and i=-7.9217, suppose not an offset of 0, o=0. UVI=1.3138*V*s+1.3138*i+o, so for the 2.8 full scale, UVI is almost 19, how did you get the 6 value. Maybe I'm wrong somewhere.<br />Davide Gironihttps://www.blogger.com/profile/16366076989473118278noreply@blogger.comtag:blogger.com,1999:blog-6100511197805579796.post-69231276404398772362019-06-27T18:51:10.280+02:002019-06-27T18:51:10.280+02:00Hi Davide,
with an offset of zero, the max UV Ind...Hi Davide,<br /><br />with an offset of zero, the max UV Index returned with 2.8V (full-scale) is 6. Can you explain me why it isn't near 9 at least?Alessandro B.https://www.blogger.com/profile/15497418430059883049noreply@blogger.comtag:blogger.com,1999:blog-6100511197805579796.post-40865071619680857252019-06-23T22:40:56.602+02:002019-06-23T22:40:56.602+02:00This comment has been removed by a blog administrator.tonyonhttps://www.blogger.com/profile/08253501266473243514noreply@blogger.comtag:blogger.com,1999:blog-6100511197805579796.post-52979718910246435242019-06-23T22:24:04.790+02:002019-06-23T22:24:04.790+02:00This comment has been removed by a blog administrator.tonyonhttps://www.blogger.com/profile/08253501266473243514noreply@blogger.com