Coder Social home page Coder Social logo

esp8266-dht22-sensor's People

Contributors

gonium avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esp8266-dht22-sensor's Issues

espressif platform depreciated

Hi,

I tried this nowadays with Windows 10....
VSC and Platformio installation worked fine.
Manually downloading the Code from Github ignores the "DHT-sensor library" in lib folder so you have to extra download and copy that one.
Same goes for Adafruit_Sensor.h which seems to be missing.

After that when you use "Platformio run" you get the message that platform=espressif doesn't exist anymore, so change that to espressif8266.

After that i get some errors:
Compiling .pio\build\esp01\lib8ee\ESP8266WiFi\ESP8266WiFiScan.cpp.o lib\DHT-sensor-library\DHT.cpp: In member function 'bool DHT::read(bool)': lib\DHT-sensor-library\DHT.cpp:29:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] #define TIMEOUT -1 /**< timeout on */ ^ lib\DHT-sensor-library\DHT.cpp:282:29: note: in expansion of macro 'TIMEOUT' if (expectPulse(LOW) == TIMEOUT) { ^ lib\DHT-sensor-library\DHT.cpp:29:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] #define TIMEOUT -1 /**< timeout on */ ^ lib\DHT-sensor-library\DHT.cpp:287:30: note: in expansion of macro 'TIMEOUT' if (expectPulse(HIGH) == TIMEOUT) { ^ lib\DHT-sensor-library\DHT.cpp:29:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] #define TIMEOUT -1 /**< timeout on */ ^ lib\DHT-sensor-library\DHT.cpp:312:23: note: in expansion of macro 'TIMEOUT' if ((lowCycles == TIMEOUT) || (highCycles == TIMEOUT)) { ^ lib\DHT-sensor-library\DHT.cpp:29:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] #define TIMEOUT -1 /**< timeout on */ ^ lib\DHT-sensor-library\DHT.cpp:312:50: note: in expansion of macro 'TIMEOUT' if ((lowCycles == TIMEOUT) || (highCycles == TIMEOUT)) { ^ Compiling .pio\build\esp01\lib8ee\ESP8266WiFi\WiFiClient.cpp.o
Full output: https://pastebin.com/qe42bqLV

When i try to connect the Serial Monitor i only get gibberish:

`> Executing task in folder esp8266-dht22-sensor-master: C:\Users\Haldi.platformio\penv\Scripts\platformio.exe device monitor <

--- Miniterm on COM5 9600,8,N,1 ---
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
0�~?�4�Ҷ␖��␔O'�␎��
--- Baudrate: 74880

--- Settings: COM5 74880,8,N,1
--- RTS: active DTR: active BREAK: inactive
--- CTS: inactive DSR: inactive RI: inactive CD: inactive
--- software flow control: inactive
--- hardware flow control: inactive
--- serial input encoding: UTF-8
--- serial output encoding: UTF-8
--- EOL: CRLF
--- filters: default
`
Or more like it only outputs a tiny speck right after flashing and nothing more.
I did something wrong yes?

P.S using Baud 74880 directl after rebooting the device i get:

ets Jan 8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1384, room 16
tail 8
chksum 0xef
csum 0xef
csum err
ets_main.c

src/main.cpp:17:17: fatal error: DHT.h: No such file or directory

It's my first experience with platformio and with the esp8266 so I am very new to it. When I try to run a platformio run, I got this issue.

ludo@idefix:~/repos/esp8266-dht22-sensor % platformio run                                                                 
[Fri Feb 24 19:31:40 2017] Processing esp01 (targets: upload, platform: espressif, board: esp01, framework: arduino)
--------------------------------------------------------------------------------------------------------------------------------------
Warning! Platform `espressif` is deprecated and will be removed in the next release! Please use `espressif8266` instead.
Verbose mode can be enabled via `-v, --verbose` option
Collected 25 compatible libraries
Looking for dependencies...
Library Dependency Graph
|-- <ESP8266WiFi> v1.0
|-- <running-average>
|-- <ESP8266WebServer> v1.0
|   |-- <ESP8266WiFi> v1.0
|-- <ESP8266mDNS>
|   |-- <ESP8266WiFi> v1.0
Compiling .pioenvs/esp01/src/main.o
Archiving .pioenvs/esp01/libFrameworkArduinoVariant.a
Indexing .pioenvs/esp01/libFrameworkArduinoVariant.a
Compiling .pioenvs/esp01/FrameworkArduino/Esp.o
Compiling .pioenvs/esp01/FrameworkArduino/FS.o
Compiling .pioenvs/esp01/FrameworkArduino/HardwareSerial.o
src/main.cpp:17:17: fatal error: DHT.h: No such file or directory
#include <DHT.h>
^
compilation terminated.
*** [.pioenvs/esp01/src/main.o] Error 1
===================================================== [ERROR] Took 10.91 seconds =====================================================
ludo@idefix:~/repos/esp8266-dht22-sensor % 

code doesn't upload - warning: espcomm_sync failed

ludo@idefix:.../esp8266/esp8266-dht22-sensor % platformio run -t upload                                                       
Building .pioenvs/esp01/firmware.bin
Looking for upload port...
Auto-detected: /dev/cu.SLAB_USBtoUART
Uploading .pioenvs/esp01/firmware.bin
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
*** [upload] Error 255
======================================================= [ERROR] Took 17.42 seconds =======================================================
ludo@idefix:.../esp8266/esp8266-dht22-sensor % 

Using Arduino

Hi!

Can you help me with steps on how to upload this using Arduino

Regards,
Samir

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.