Search found 112 matches

by IHOXOHI
Sat Jul 11, 2020 4:04 pm
Forum: Drivers for External Components
Topic: MQ sensors
Replies: 7
Views: 1766

Re: MQ sensors

Thanks Kevin for yours goods resources. I think that I understood that you can detect nearly correctly just one gas in a same time when you adjust the level of resistance for this gas and not the others. Especially if you calibrate the sensor with a mathematic relation to obtain a precise concentrat...
by IHOXOHI
Sat Jul 11, 2020 2:35 pm
Forum: Drivers for External Components
Topic: MQ sensors
Replies: 7
Views: 1766

MQ sensors

Hi, I tried to use MQ sensor... For moment the MQ-5 and the MQ-2. I need to calibrate them correctly... In datasheet appears graph with 3 or 4 gas mesurements... But, I don't understand the fact that there is only one sensor for all differents gas... It means that all time you record all gas... No w...
by IHOXOHI
Thu Jul 09, 2020 8:57 am
Forum: MicroPython pyboard
Topic: Recording Audio with a Pyboard
Replies: 2
Views: 924

Re: Recording Audio with a Pyboard

Hi Tito, I tried to find a way for recording sound.... It looks hard project. Sound is complex and involved heavy data. Furthermore, sound from beatlle is very, very low. For sure you need an amplification. After that, I think that you have to known wich frequences you need to record, because you ca...
by IHOXOHI
Tue Jul 07, 2020 5:28 pm
Forum: Drivers for External Components
Topic: good use of MICS-6814 sensor (gaz) ?
Replies: 4
Views: 1849

Re: good use of MICS-6814 sensor (gaz) ?

After calibration with 2 arduino ; one with the 3 gas sensor (I2c), and the other with an analog MQ-2 sensor ; wich doesn't have exactly same values, I obtain that... in " my normal" testing condition... adc = ADS1115(i2c = i2c, address = 72, gain = 5) value_no2 = adc.read( rate=0, channel1=0 ) valu...
by IHOXOHI
Sun Jul 05, 2020 4:52 pm
Forum: Drivers for External Components
Topic: uasyncio and display
Replies: 12
Views: 2201

Re: uasyncio and display

Yip,

Data-saving works too with uasyncio (and pms (and display)).
by IHOXOHI
Sun Jul 05, 2020 11:09 am
Forum: Drivers for External Components
Topic: uasyncio and display
Replies: 12
Views: 2201

Re: uasyncio and display

Yes! It works! So goood!!! my "main" : import machine import uasyncio as asyncio from pms.pms5003 import PMS5003 import pms.pms5003 from time import sleep import time import epaper2in9 from pyb import SPI import pyb # SPI3 on Black STM32F407VET6 spi = SPI(2, SPI.MASTER, baudrate=2000000, polarity=0,...
by IHOXOHI
Sun Jul 05, 2020 7:11 am
Forum: Drivers for External Components
Topic: uasyncio and display
Replies: 12
Views: 2201

Re: uasyncio and display

Hi,

I have the return :
"AttributeError: 'module' object has no attribute 'run' "

I will try to replace the "loop_run_forever" command by " uasyncio.get_event_loop()" in a "while True" boucle...
by IHOXOHI
Sat Jul 04, 2020 9:50 pm
Forum: Drivers for External Components
Topic: uasyncio and display
Replies: 12
Views: 2201

Re: uasyncio and display

Nice!

Thanks a lot again...

And I will study how to use uasyncio... and try the v3 version too. It looks a powerfull tool.
by IHOXOHI
Sat Jul 04, 2020 3:02 pm
Forum: Drivers for External Components
Topic: uasyncio and display
Replies: 12
Views: 2201

Re: uasyncio and display

Otherwise, When I tried to add code in my "main" file for get other data than pms data, it doesn't works. The line "loop.run_forever()" prevents further data collection. It's why I tried to add code in the pms module wich call the uasyncio module... It works 2 cycles... but no more. To simplify my a...
by IHOXOHI
Sat Jul 04, 2020 2:45 pm
Forum: Drivers for External Components
Topic: uasyncio and display
Replies: 12
Views: 2201

Re: uasyncio and display

Yes
Sorry
I have included the code in a balise code for good presentation but it dosen't happen what I was thinking...

Maybe I have to re-open a topic?
Could I destroy this?