bsiever / microbit-dstemp Goto Github PK
View Code? Open in Web Editor NEWMicro:bit DS18B20 Temp Sensor Blocks
Home Page: https://bsiever.github.io/microbit-dstemp/
License: MIT License
Micro:bit DS18B20 Temp Sensor Blocks
Home Page: https://bsiever.github.io/microbit-dstemp/
License: MIT License
Hi.
Thanks for the useful code.
By the way, cheap sensors made in China are still being sold. The problem is that I don't know which factory the sensors I buy from the internet mall come from.
Among them, the worst one returns a temperature value about once in 10 times, and the rest returnㄴ an infinite number.
So, I am using my own algorithm. That is, it takes only the numbers in the range that the DS18B20 can measure and discards the rest.
Please refer to https://javalab.org/microbit_ds18b20/ when upgrading the code later.
This extension is awesome!
One thing I noticed is that if you flash code made with it to a micro:bit that doesn't have a temperature sensor connected to the appropriate pin, I get a micro:bit 980 error. Would it be possible for the extension to trap that?
Thank you again for this, I've added a link to my blogpost at http://www.suppertime.co.uk/blogmywiki/2019/04/microbit-ds18b20-temperature-sensor/
best wishes
Giles
The dstemp extension does not work on the micro:bit V2. It returns an error code 3 "Read Timeout".
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.