-->
Page 5 of 7

Re: Working libraries and modules.[updated-04.04.15]

PostPosted: Sun May 17, 2015 11:26 pm
by Pigs Fly
Forgot to note the need to add a 3rd timing paramether in the DHT config as specified in the example code within the library. I used 25 which is working fine, but didn't really test the limits of that.

Pigs Fly wrote:DHT11 and DHT22 complied and working, tested. Neither required a pullup resistor and have been working reliably for days. Library properties below:

Code: Select allname=DHT sensor library
version=1.0.0
author=Adafruit
maintainer=Adafruit <info@adafruit.com>
sentence=Arduino library for DHT11, DHT22, etc Temp & Humidity Sensors
paragraph=Arduino library for DHT11, DHT22, etc Temp & Humidity Sensors
category=Sensors
url=https://github.com/adafruit/DHT-sensor-library
architectures=*

Re: Working libraries and modules.[updated-04.04.15]

PostPosted: Sat May 30, 2015 7:20 pm
by rayshobby
RCSwitch library actually runs fine on ESP8266, as long as you stick with 1.6.1 version. This is due to an issue with the attachInterrupt, reported here:
https://github.com/esp8266/Arduino/issues/322
The older version 1.6.1 seems to be ok.

Re: Working libraries and modules.[updated-04.04.15]

PostPosted: Sun May 31, 2015 5:27 am
by tytower
rtenklooster wrote:Got the bpm085 working on my esp-01.

BMP085 and BMP180 are almost identical
I used Sparkfuns SFE_BMP180 library and with a small change mentioned in the git hub issues #1
Mydevice is happilly churning out temp and pressure data all day.

Same for the DHT22 module and library

EDIT -It seems the speed factor ,third argument passed to the function, may be unnecessary now as the latest library notes that it is calculated automatically.

Re: Working libraries and modules.[updated-04.04.15]

PostPosted: Fri Jun 19, 2015 7:32 pm
by Mikejstb
I just tried the rcswitch sketch but it doesn't compile.
No errors, just says "compiling sketch" with the progress bar about half way.

Changing to an Arduino Uno compiles so I don't believe there's any problem with the code.
I've tried both the NodeMCU board choice and also the Generic 8266 one - same thing.

I'm really just wanting to replicate the example that comes with the RCSwitch library - "SendDemo".

Only need three commands -
.enableTransmit(),
.setPulseLength(), and
.send(123456,24)

It works fine with an Uno or Nano just using the decimal (24) numbers to control my Elekcity outlets.
But I'd really like to not have to use an Arduino - just an ESP8266 listening for mqtt messages and sending the appropriate on or off codes to the five outlets.
Any help or clues will be appreciated!