Search found 116 matches

by Rissy
Wed Dec 07, 2022 5:42 pm
Forum: Raspberry Pi microcontroller boards
Topic: Pico W Micro Python for SHT30 Temp/Humidity HELP!
Replies: 74
Views: 3227034

Re: Pico W Micro Python for SHT30 Temp/Humidity HELP!

I couldn't resist it. Although everything was still working this evening as I left it this morning before work (still running from last nights mods etc), I wanted to see what had been happening behind the scenes as it were, by referring to my errorlog.txt file. Not a single error in 24hrs! I've NEVE...
by Rissy
Tue Dec 06, 2022 6:22 pm
Forum: Raspberry Pi microcontroller boards
Topic: Pico W Micro Python for SHT30 Temp/Humidity HELP!
Replies: 74
Views: 3227034

Re: Pico W Micro Python for SHT30 Temp/Humidity HELP!

So i'm home, and I've just been investigating my inbuilt pull up resistance values from my SHT-30 outdoor sensor (built in, so can't get at them locally). I measured between Vcc (3v3) and SDA, followed by Vcc (3v3) and SCL at the Pico W end of my cabling (indoors). Between Vcc (3v3) and SDA I measur...
by Rissy
Tue Dec 06, 2022 8:28 am
Forum: Raspberry Pi microcontroller boards
Topic: Pico W Micro Python for SHT30 Temp/Humidity HELP!
Replies: 74
Views: 3227034

Re: Pico W Micro Python for SHT30 Temp/Humidity HELP!

You can measure the existing pull-up resistors between a data line and Vcc, if the sensor is not powered. And you can always connect additional resistors fomr SDA to Vcc and SCL to Vcc. They would be simply in parallel to the existing resistor. Let's assume, the existing value is 4700, and you add ...
by Rissy
Tue Nov 22, 2022 6:11 pm
Forum: Raspberry Pi microcontroller boards
Topic: Pico W Micro Python for SHT30 Temp/Humidity HELP!
Replies: 74
Views: 3227034

Re: Pico W Micro Python for SHT30 Temp/Humidity HELP!

I couldn't help myself this evening. Even though everything was still working as normal when i got home from work, I wanted to check out my errorlog.txt file to see what's been ocurring. This is what I found: IP is bad for MQTT connection! Rebooting...command SHT Error: CRC error SHT30 resetcommand ...
by Rissy
Mon Nov 21, 2022 6:19 pm
Forum: Raspberry Pi microcontroller boards
Topic: Pico W Micro Python for SHT30 Temp/Humidity HELP!
Replies: 74
Views: 3227034

Re: Pico W Micro Python for SHT30 Temp/Humidity HELP!

Well, now that it's been raining quite heavily during the past 16hrs or so, it was inevitable that my SHT30 device would eventually fail because of it. It seems actually that it's failed on quite a few occassions, and it seems that my program is not as hardy against this as I'd thought. I now have a...
by Rissy
Fri Nov 18, 2022 12:50 pm
Forum: Raspberry Pi microcontroller boards
Topic: Pico W Micro Python for SHT30 Temp/Humidity HELP!
Replies: 74
Views: 3227034

Re: Pico W Micro Python for SHT30 Temp/Humidity HELP!

Rissy, another snippet of code for you in case you are still wanting to get the correct time on the rpi-picoW. There is an alternative to ntptime and thats to use worldtime. If you want to go down that route then I suggest you copy the code to your picoW and run it. Then examine the code relating t...
by Rissy
Wed Nov 16, 2022 8:41 pm
Forum: Raspberry Pi microcontroller boards
Topic: Pico W Micro Python for SHT30 Temp/Humidity HELP!
Replies: 74
Views: 3227034

Re: Pico W Micro Python for SHT30 Temp/Humidity HELP!

It works, but not so fast, lets tidy things up. I believe the 'error' you pass to your funtion is a string so you dont need errorstring=str(error) file.write(errorstring) all you need is file.write(error) But in case I'm wrong you can find out the type of any variable with the type() function. chec...
by Rissy
Wed Nov 16, 2022 6:32 pm
Forum: Raspberry Pi microcontroller boards
Topic: Pico W Micro Python for SHT30 Temp/Humidity HELP!
Replies: 74
Views: 3227034

Re: Pico W Micro Python for SHT30 Temp/Humidity HELP!

Scratch that. I got it! For whatever reason, it doesn't like it unless I put each segment of the overall error log content on individual lines. So i now have this, and it finally works! def sht_error(ex): print("something went wrong reading the SHT-30!") print('Error:', ex) message = 'SHT Error: ' a...
by Rissy
Wed Nov 16, 2022 6:11 pm
Forum: Raspberry Pi microcontroller boards
Topic: Pico W Micro Python for SHT30 Temp/Humidity HELP!
Replies: 74
Views: 3227034

Re: Pico W Micro Python for SHT30 Temp/Humidity HELP!

Thank you. I'll check it out.....once i'm successfully writing an error message to a simple text file. This still isn't working. This is what I have now, based on your input: def appendfile(message, error): print(message,",",error) with open('errorlog.txt', 'a') as file: file.write(message) file.wri...
by Rissy
Wed Nov 16, 2022 4:43 pm
Forum: Raspberry Pi microcontroller boards
Topic: Pico W Micro Python for SHT30 Temp/Humidity HELP!
Replies: 74
Views: 3227034

Re: Pico W Micro Python for SHT30 Temp/Humidity HELP!

Rissy, I'm happy to read that I may have helped you, but I do not concur with your remarks that some people are using you as 'sport' to keep you stuck down. On their behalf I find this attitude a bit offensive. Some advice may prove more beneficial than others but I'm sure any responder is simply t...