Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temperature doesn't change while program is running #11

Closed
mattmole opened this issue Aug 10, 2017 · 11 comments
Closed

Temperature doesn't change while program is running #11

mattmole opened this issue Aug 10, 2017 · 11 comments
Labels

Comments

@mattmole
Copy link

Hi,

While in a forever loop, I cannot get the temperature to change from the weather:bit board. If I hold my finger over the sensor, the temperature remains constant until I reset the board.

I've tried the "Start Weather Monitoring" in a Start block and Forever block. I've tried the Start weather monitoring in the same forever block and set up. I've tried delays between the setup and reading section...

This is my latest attempt...

image

Thanks

@ADataDate
Copy link
Contributor

I won't be able to review this until Tuesday, Aug 15 but one thing I noticed (and I'm not sure if you have all the blocks showing) is that the RX and TX pins of the weather bit are connected to 14 and 15 respectively- so you need a serial redirect block as well.

I will get this sorted ASAP when I get back.

Thanks for bringing the issue to my attention.

@mattmole
Copy link
Author

mattmole commented Aug 10, 2017 via email

@ADataDate
Copy link
Contributor

Sorry, I thought you were using the serial port on the weather:bit.

@mattmole
Copy link
Author

mattmole commented Aug 10, 2017 via email

@mattmole
Copy link
Author

Hi,

Any thoughts on this please? I'm keen to use the library to send data to a raspberry pi and then process it elsewhere.

Thanks

@ADataDate
Copy link
Contributor

ADataDate commented Aug 28, 2017

Hi,

We found the issues you were having. We have been working on the fix and the newpackage should be published tomorrow - if not tonight.

Turns out the weather monitoring mode was set up as "forced" so the values were being stored and not updated without another write the control meas register.

Thanks for bringing this to our attention - I apologize it took some time but you've helped out so Thanks! I'll let you know as soon as the updated package is published and some beta testing would be great!

@ADataDate
Copy link
Contributor

New package is published and ready for use! Once I've got your confirmation I'll close this out.

@mattmole
Copy link
Author

mattmole commented Aug 28, 2017 via email

@ADataDate
Copy link
Contributor

Hi Matt, the new site is makecode.microbit.org and the package is ready to be added and used.

@mattmole
Copy link
Author

Thank you. This works perfectly now

@bboyho bboyho added the bug label Jun 4, 2018
@bboyho
Copy link

bboyho commented Jun 4, 2018

Looks like this is fixed. Thanks @ADataDate !!!! I just tested it out with all three variables. By re-adding the Weatherbit package to the example and replacing the code blocks, the temperature, humidity, and pressure started updating in real time so you do not have to keep hitting the micro:bit's reset button. I'll update the code in the tutorial. =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants