DonKracho / Arduino--GT-WT-02-Decoder

ESP8266 decoder for a 433MHz GT-WT-02 weather station transmitter
GNU General Public License v3.0
5 stars 3 forks source link

Port to Arduino Uno/Pro Mini (ATmega 328) #3

Open probonopd opened 5 years ago

probonopd commented 5 years ago

It would be useful to port this to/test on Arduino Uno/Pro Mini (ATmega 328).

I tried to use

// Arduino Pro Mini
#define INT_PIN 2
#define LED_PIN 13

but it looks like I can't receive anything. Possibly the interrupts work slightly differently on the ATmega 328?

DonKracho commented 5 years ago

The 3400RF or RXB6 data output has a very high restistance. Be sure there ist no pull up or down at the interrupt input. Other 433MHz receivers may not work at all or for short distance only due to a lot of active high noise resisting for longer than 500ms.

I have some Arduino Uno lieing around and will give it a try.

zoomx commented 4 years ago

I did the same. It works on Atmega328p based boards but it seems that sprintf doesn't work properly, so the data are decoded properly but not printed out.

It works with the Auriol AFT 77 A1 (Lidl) external sensor. Since it is a temperature only sensor the humidity is locked to 5%.

probonopd commented 4 years ago

It works on Atmega328p based boards but it seems that sprintf doesn't work properly, so the data are decoded properly but not printed out.

Thanks. How did you find that out? Did you get it to work?

Too bad that the Auriol AFT 77 A1 (Lidl) seems not to be available for sale at this time.

zoomx commented 4 years ago

First I wrote a dirty solution: printing values when decoding. Then I declared some public variables but this modification was non tested. In Auriol AFT 77 A1 manual I fount a web site (it is written on a label too) https://www.kompernass.com They sell this device https://www.kompernass.com/index.php?route=product/category&path=2131 you can find the outdoor sensor as spare part. Take in account that the clock has no light and the sensor is only temperature. For the same price you can buy a spare part Digoo DG-R8S on Aliexpress or Banggood It has temperature and humidity and uses Prologue protocol. I found a library that I have modified https://github.com/zoomx/PrologueDecoder

fri-K commented 3 years ago

@zoomx your sprintf problem should be fixed in #6