bsiever / microbit-dstemp

Micro:bit DS18B20 Temp Sensor Blocks
https://bsiever.github.io/microbit-dstemp/
MIT License
4 stars 9 forks source link

ds18b20 tempsensor #4

Open Juuos opened 2 years ago

Juuos commented 2 years ago

I have used ds18b20 tempsensor with Micro:bit V1 and it has work well with a dstemp extension. The plot bar graph of temp p0 shows a temperature. But now I try to use Micro:bit V2 and can't get it works. Only value is "Infinity". No temperature. How can I make V2 works as well as V1? Used code xx.

bsiever commented 2 years ago

Hi --- The sensors are very sensitive to timing. There are many fakes sold as DS18B20s that work inconsistently. Originally this extension was only tested (and probably only worked) with genuine DS18B20s. I've just updated it to try to make it work with some of the fake DS18B20s. Please try it again.

Juuos commented 2 years ago

Hi.

Thank you for an answer. DS18B20 still not working with Micro:bit v2 but work fine with V1. Here is video examples. https://youtu.be/WoDCPhbMmnk https://youtu.be/WoDCPhbMmnk https://youtu.be/lhTbjyZw1vk https://youtu.be/lhTbjyZw1vk

Kind regards Juuso Lymy

Bill Siever @.***> kirjoitti 3.11.2021 kello 5.24:

Hi --- The sensors are very sensitive to timing. There are many fakes sold as DS18B20s that work inconsistently. Originally this extension was only tested (and probably only worked) with genuine DS18B20s. I've just updated it to try to make it work with some of the fake DS18B20s. Please try it again.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bsiever/microbit-dstemp/issues/4#issuecomment-958629310, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVSPITFI66MFH3KWAKSCVL3UKC2QDANCNFSM5D2X36HA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

bsiever commented 2 years ago

@Juuos Ah...That's a bluetooth error. I hadn't tried it with bluetooth. I've added support for bluetooth now (v0.1.26). If you have time, try it again and let me know what you find.

Juuos commented 2 years ago

Hi. Sorry it tooks time to reply. I tried again DS18B20 with the temp block. Micro:bit V1 worked fine but V2 didn't worked. Now V2 gives "-infinitely" on the display panel. I had used three different Micro:bit V2 with same results. Regars Juuso Lymy

ma 8. marrask. 2021 klo 4.56 Bill Siever @.***) kirjoitti:

@Juuos https://github.com/Juuos Ah...That's a bluetooth error. I hadn't tried it with bluetooth. I've added support for bluetooth now (v0.1.26). If you have time, try it again and let me know what you find.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bsiever/microbit-dstemp/issues/4#issuecomment-962766529, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVSPITFIQY62HIM2C2JZ2OTUK435RANCNFSM5D2X36HA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

bsiever commented 2 years ago

@Juuos That error is usually about timing problems. Without more info. I'm not sure I'll be able to figure out the problem.

If you are willing to provide a sensor for me to use for testing, I can try to look into it.
My current testing is based on genuine DS18B20 and one of the many "counterfeits" that was also sold as a DS18B20.

Juuos commented 2 years ago

Sensors we are using are VMA324 ( https://www.velleman.eu/products/view/?id=439184) and I don't think those are "counterfeits". But I'm willing to provide the sensor for testing for you.

su 14. marrask. 2021 klo 20.47 Bill Siever @.***) kirjoitti:

@Juuos https://github.com/Juuos That error is usually about timing problems. Without more info. I'm not sure I'll be able to figure out the problem.

If you are willing to provide a sensor for me to use for testing, I can try to look into it. My current testing is based on genuine DS18B20 and one of the many "counterfeits" that was also sold as a DS18B20.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bsiever/microbit-dstemp/issues/4#issuecomment-968343482, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVSPITD5N26VXAOPLDPHN5LUL773BANCNFSM5D2X36HA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

bsiever commented 2 years ago

You could test it yourself if you have an Arduino available using the code here: https://github.com/cpetrich/counterfeit_DS18B20.

(I'm looking to see if I can find a source for these in the U.S.)

bsiever commented 2 years ago

@Juuos Quick updates:

Again, if you have an easy way to do so, please test your sensor with an Arduino using https://github.com/cpetrich/counterfeit_DS18B20.

It looks like I can get either the VMA324 or WPSE324 via eBay in the U.S. Your link was the VMA324, but it looks like it's replaced by the WPSE324. I'm not sure if anything has actually changed. I'll order one WPSE324.