Search found 119 matches

by IHOXOHI
Fri Jul 03, 2020 10:08 am
Forum: Drivers for External Components
Topic: PMS5003 air quality sensor library
Replies: 33
Views: 25546

Re: PMS5003 air quality sensor library

Yo,

Same result with :
"if self._uart.any():
self._uart.read(self._uart.any())"
for replacing the flush's command...

Finally, It works, the frame contains values wich looks rights... No?

I have just to keep them in variables like "pms2.5 = frame[1]"

No?
by IHOXOHI
Fri Jul 03, 2020 8:35 am
Forum: Drivers for External Components
Topic: PMS5003 air quality sensor library
Replies: 33
Views: 25546

Re: PMS5003 air quality sensor library

OK, Sorry, A simple mistake of me. I haven't change the pin correctly in my file... Now I have this error: >>> import pms5003_test None wakeUp wakeUp got lock Sending command: 228,1,False,16000 waiting 40.0s readFrame False False __read_frame readFrame got: (2, 2, 3, 2, 2, 3, 687, 187, 20, 2, 0, 0, ...
by IHOXOHI
Fri Jul 03, 2020 8:15 am
Forum: Drivers for External Components
Topic: PMS5003 air quality sensor library
Replies: 33
Views: 25546

Re: PMS5003 air quality sensor library

I have connected : rx-pms to tx-pyboard(X1) tx-pms to rx-pyboard(X2) gnd to gnd vcc to v+ The "uart.read()"'s command return None. I have placed it just after the "uart = machine.UART(1, baudrate=9600)"'s command I have reversed rx and tx connection without success. I will test to change the flush c...
by IHOXOHI
Fri Jul 03, 2020 7:27 am
Forum: Drivers for External Components
Topic: PMS5003 air quality sensor library
Replies: 33
Views: 25546

Re: PMS5003 air quality sensor library

Yes, a lot! first one: " Got no available bytes No response to wakeup command wakeUp wakeUp got lock Sending command: 228,1,False,16000 waiting 40.0s " 2nd one: " ---------------------------------------------------------- Setting to active mode while sleeping ----------------------------------------...
by IHOXOHI
Fri Jul 03, 2020 6:55 am
Forum: Drivers for External Components
Topic: PMS5003 air quality sensor library
Replies: 33
Views: 25546

Re: PMS5003 air quality sensor library

Maybe I have to wait this afternoon? 8-)
by IHOXOHI
Fri Jul 03, 2020 6:21 am
Forum: Drivers for External Components
Topic: PMS5003 air quality sensor library
Replies: 33
Views: 25546

Re: PMS5003 air quality sensor library

Hi Kevin, Thanks for your support. Thanks for sharing your knowledge. After test alls yours recommandations, the pms looks initiate correctly. But I have had an error about the debug line "pms5003.set_debug(True)" So I have changed it by "pms.pms5003.set_debug(True)" and "imported the module like " ...
by IHOXOHI
Wed Jul 01, 2020 10:48 am
Forum: Drivers for External Components
Topic: PMS5003 air quality sensor library
Replies: 33
Views: 25546

Re: PMS5003 air quality sensor library

Hi, I'm trying to use pms5003 with pyboard. The line "uart = machine.UART(4, tx='X1', rx='X2', baudrate=9600)" return an error "extra-argument" So I have changed this by " uart = machine.UART(4, baudrate=9600)" I have error : " module has no PMS5003 attribute" With "uart = machine.UART(4, baudrate=9...
by IHOXOHI
Tue Jun 30, 2020 10:58 am
Forum: Drivers for External Components
Topic: bme680 adafruit on pyboard
Replies: 16
Views: 42237

Re: bme680 adafruit on pyboard

Sorry Roberthh, I have tested until now with the bme680 from seeed... Until now, I have never seen difference between the bme680 from seed and the bme680 from adafruit. But Now, I have tested, and the g.gas works with the bme680 from adafruit... Others values are the same. The bme.altitude works too...
by IHOXOHI
Tue Jun 30, 2020 10:39 am
Forum: Drivers for External Components
Topic: bme680 adafruit on pyboard
Replies: 16
Views: 42237

Re: bme680 adafruit on pyboard

Nice. Thanks Roberthh for this perfect job. There is only one difference in the bme.gaz value construction between this lib and the adafruit-lib... In the adafruit : "self._last_reading = time.monotonic()" In this lib : "self._last_reading = time.ticks_ms()" The value of bme.gas stay the same so may...
by IHOXOHI
Tue Jun 30, 2020 9:18 am
Forum: Drivers for External Components
Topic: bme680 adafruit on pyboard
Replies: 16
Views: 42237

Re: bme680 adafruit on pyboard

Goood. github's references have stranges behaviours on the net...with my system too? For me, the humidity value is upper of 10 with reality. It's easy to correct it. Temperature and pressure are goods. I have tried the bme.gas value... always the same result : 2938733 ... Calcul of bme.gas is comple...