Search found 20 matches

by Miguel
Fri Dec 09, 2016 5:37 am
Forum: Drivers for External Components
Topic: DHT22 / AM2302 library for Wipy
Replies: 21
Views: 9251

Re: DHT22 / AM2302 library for Wipy

Thanks for a tip! I didn't know about the AM2320 model. I switched to Bosch BME280 in the meantime, but AM2320 looks nice too and costs less.

Michal
by Miguel
Thu Oct 27, 2016 11:00 am
Forum: WiPy and CC3200 boards
Topic: Onewire and DS18B20
Replies: 42
Views: 27917

Re: Onewire and DS18B20

Another tip for Brunus - use Robert's firmware with disabled multithreading:

https://github.com/robert-hh/Shared-Stu ... mcuimg.bin

Otherwise it won't work (testing with stock firmwares 1.8.4 and 1.8.5 fails for me).

Michal
by Miguel
Thu Oct 27, 2016 10:56 am
Forum: ESP8266 boards
Topic: DS18B20 error
Replies: 8
Views: 5468

Re: DS18B20 error

Hello!

I have the same problem on Wipy except that modifying scan method doesn't help. Using Robert's firmware 1.8.4-16 with disabled multithreading helps:

https://github.com/robert-hh/Shared-Stu ... mcuimg.bin

Michal
by Miguel
Thu Oct 27, 2016 6:38 am
Forum: WiPy and CC3200 boards
Topic: Wipy multithreading
Replies: 2
Views: 1722

Re: Wipy multithreading

Thanks a lot for checking the code! Once I get home, I will test the stripped version.

Michal
by Miguel
Thu Oct 27, 2016 5:15 am
Forum: WiPy and CC3200 boards
Topic: Onewire and DS18B20
Replies: 42
Views: 27917

Re: Onewire and DS18B20

Hello! I use probably the same waterproof DS18B20 as you do and it works without any problems on my Wipy. I have even tried connecting two sensors at once. Wipy Sensor 3V3 -> red (VCC) G10 -> yellow (DATA) GND -> black (GND) Pull-up resistor 4k7 is connected between VCC and DATA. import onewire from...
by Miguel
Wed Oct 26, 2016 7:43 pm
Forum: WiPy and CC3200 boards
Topic: Wipy multithreading
Replies: 2
Views: 1722

Wipy multithreading

Hello! I would like to switch LCD backlight with a button. I tried to do it this way: 1. Setup IRQ handler that toggles value of global variable lcd_backlight between 0 and 1 everytime the button is pressed. 2. Start a separate thread, that checks the value of the lcd_backlight variable and switches...
by Miguel
Thu Sep 22, 2016 6:34 am
Forum: Drivers for External Components
Topic: DHT22 / AM2302 library for Wipy
Replies: 21
Views: 9251

Re: DHT22 / AM2302 library for Wipy

Thanks a lot for your effort! It's a pitty that such driver works on Pyboard but doesn't work on Wipy. Do you think that Wipy 2.0 (based on ESP32) will do better in this particular case? I have just noticed your latest post in former DHT thread https://forum.micropython.org/viewtopic.php?f=14&t=1392...
by Miguel
Tue Sep 20, 2016 11:53 am
Forum: Drivers for External Components
Topic: DHT22 / AM2302 library for Wipy
Replies: 21
Views: 9251

Re: DHT22 / AM2302 library for Wipy

You are welcome. I am glad that you will help me with the driver because I don't have much experience with neither Python nor electronics.

Warning: I realized that having working sensor with BME280 is a strong demotivating factor for my effort to debug the DHT22 driver:-)

Michal
by Miguel
Tue Sep 20, 2016 11:08 am
Forum: Drivers for External Components
Topic: DHT22 / AM2302 library for Wipy
Replies: 21
Views: 9251

Re: DHT22 / AM2302 library for Wipy

Now I store in times list just simple timestamps - the number of microseconds from the moment, when the whole communication started to the actual moment, when the edge function is called. Then in process_data, I just count the difference between two consecutive values thus getting the number of micr...
by Miguel
Tue Sep 20, 2016 9:42 am
Forum: Drivers for External Components
Topic: DHT22 / AM2302 library for Wipy
Replies: 21
Views: 9251

Re: DHT22 / AM2302 library for Wipy

I think both ways are correct. We can use ticks_diff in edge function or later in process_data. But using it in process_data might be better becuase it will make edge function faster.

Michal