Git Product home page Git Product logo

esp8266_and_arduino's Introduction

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

  • ESP8266 mqtt node

Server

  • mqtt broker : mosquitto
  • db : influxdb
  • web : grafana, node-red
  • collect : mqtt2graphite
  • alert : mqttwarn
  • control : slack + rtmbot
  • define MQTT_MAX_PACKET_SIZE 350

IDE

Library

name esp arduino desc
_01-door-alarm esp-12 pro mini alarm door status using mqtt. first one to learn esp, didn't know how to wake up esp using external intterupt. replaced with _06-power_meter. check _15-esp8266-dash-deepsleep-reset and _48-door-alarm-deepsleep for latest
_02-mqtt-sw-temperature esp-12 control lamp, pub temp, pub radio data. nrf24l01P
_03-hx711-scale esp-12 pro mini pub measured weight of pet. hx711, 4 * body scale load cell
_04-lcd-dust esp-01 nano display mqtt msg, pub temp/hum, dust, control ir
_05-two-ds18b20 esp-12 pub temp. ds18b20. to check deepsleep and life of 2 * AA battery
_06-power_meter esp-12 pub power usage, door status. using CT sensor and ADC ---> replaced by _49-emontxv2-esp-01-i2c
_07-ac-ir-remote-timer pro mini
_08_hc-sr04 hc-sr04 test
_09_ir_tx_rx nano to control tv using ir
_10-syslog esp udp/syslog example
_11-mqtt-lwt-test esp mqtt lwy test
_12-wifiscan esp wifi scan test
_13-mfrc522-esp8266 esp rfid mfrc522 test
_14-mqtt-reconnect-with-reset esp
_15-esp8266-dash-deepsleep-reset esp to coltrol lamp. dash like button
_16-mqtt-pub-100ms-50ms esp pub test
_17-two-esp-one-pub-50ms-one-sub-pub-50ms esp pub test
_18-adc-test-using-sdk-1.5 esp adc test
_19-wifi-test-using-sdk-1.5 esp wifi test
_20-esp8266-dash-deepsleep-test esp test of _15-esp8266-dash-deepsleep-reset
_21-sntp esp sntp test
_22-CheckFlashConfig esp CheckFlashConfig
_23-attiny85-ir tiny85 ir tx test
_24-attiny85-wdt-sleep tiny85 sleep test
_25-attiny85-nrf24-ds18b20 tiny85 temp sensor
_26-attiny85-nrf24-pin-change-int tiny85 pc int test
_27-attiny85-two-85-boost tiny85 distance test
_28-attiny85-nrf24-3pin-ir tiny85 distance using ir. checking toilet paper roll
_29-attiny85-nrf24-5pin-pin-change-int tiny85 check door bell
_30-attiny85-nrf24-5pin-pin-change-int tiny85 check door bell. last one
_31-esp-12-gps-ntpd esp gps + ntpd test
_32-esp-12-BasicOTA esp ota test
_33-esp-12-WiFiClientSecure-mqtt-ssl esp mqtt tlsv1.1 with ip
_34-esp-12-WiFiClientSecure-mqtt-ssl-using-dns esp mqtt tlsv1.1 with name
_35-esp-12-wpa2-enterprise esp wpa2-enterprise
_36-esp-rtc-mem-test esp rtc mem test
_37-wifi-off-modem-sleep esp modem off test
_38-wifi-off-light-sleep esp light sleep test
_39_esp12-random-test esp random number gen
_40_esp12-random-test-udp-report esp random number gen
_41-promini-nrf24-ads1115 pro mini i2c adc ads1115
_42-promini-nrf24-32byte pro mini nrf24 32byte test
_43-PietteTech_DHT-8266 esp interrup driven dht22 test
_44-esp-atmega328p-spi esp atmega328p spi multi byte test
_45-esp-atmega328p-i2c esp atmega328p i2c multi byte test
_46-esp-atmega328p-spi-i2c esp atmega328p spi and i2c multi byte test
_47-esp-dht22-2AA-deepsleep-test esp dht22 test
_48-door-alarm-deepsleep esp
_49-emontxv2-esp-01-i2c esp-01 atmega328p emontx v2 plus esp-01 and ds1307. test
_50-promini-nrf24-getntp pro mini nrf24 ntp test
_51-attiny85-nrf24-lcd-getntp tiny85 tiny85 spi and i2c mixing
_52-attiny85-hx711-nrf24-deprecated tiny85 nrf24 / hx711 / gy-521 test, flash is small
_53-esp-01-i2c-lcd esp-01 i2c lcd test
_54-atmega328p-nrf24-gy-521-hx711 atmega328p second version of sacle for pet
_55-tiny85-dtr-control-esp8266 tiny85 auto reset on Xbee programmer
_56-gopro-control esp-01 4M flash version, to upload gopro picture to twitter
_57-tiny85-cds-pir tiny85 to turn off light which has touch sensor
_58-esp8266-tyny85-dash-button esp-01 tiny85 second version of dash button
_59-esp8266-tyny85-i2c8x8-dash-button esp-01 tiny85 3rd version of dash button
_60-tiny85-pin-int tiny85 PinChangeInterrupt lib test
_61-mma-8452-promini pro mini mma-8452 test

_02-mqtt-sw

  • esp-12 + nrf24l01p
  • power(5v + 3.3V), fuse(10A + 73°C thermal), 1CH relay, SW(top + lamp), PIR, DS18B20(out)
  • on/off lamp using mqtt, pub temp outside/pir

_03-hx711-scale

  • esp-12 +(i2c) pro mini
  • hx711, load cell, tilt sw
  • pub measured weight of pet

_04-mqtt-lcd-dust-sensor

  • esp-01 +(i2c) nano
  • lcd(i2c), rtc(i2c), level convertor, Sharp dust sensor, IR sned/recv, dht22
  • display clock, temp/humidity(mqtt sub), dust
  • control LG_AC using Apple remote

_06-power-meter

  • esp-12
  • CT sensor, line tracker
  • pub power usage

_15-esp8266-dash-deepsleep-reset

  • esp-12
  • dash like button
  • to control lamp sw

_29-attiny85-nrf24-5pin-pin-change-int / _30-attiny85-nrf24-5pin-pin-change-int

  • attiny 85 + nrf24l01p
  • optical isolator
  • for door bell
  • _30-attiny85-nrf24-5pin-pin-change-int is last one using gammon's wdt

_25-attiny85-nrf24-ds18b20

  • attiny 85 + nrf24l01p
  • two ds18b20
  • to check temp

_28-attiny85-nrf24-3pin-ir

  • attiny 85 + nrf24l01p
  • ir send and receiver
  • to check roll

_41-promini-nrf24-ads1115

  • pro mini(3.3V) + nrf24l01p + µCurrent GOLD
  • to report current measure

esp8266_and_arduino's People

Contributors

chaeplin 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  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_and_arduino's Issues

bug in rtc_boot_mode.gopro_mode = false

https://github.com/chaeplin/esp8266_and_arduino/blob/master/_56-gopro-control/a-91-config-on-rtc/a-91-config-on-rtc.ino#L236

Power on with rtc_boot_mode.gopro_mode = false;, wifi connected to go pro.
--> rtc men is corrupted.

https://github.com/chaeplin/esp8266_and_arduino/blob/master/_56-gopro-control/a-91-config-on-rtc/a-91-config-on-rtc.ino#L771-L779

  if (!rtc_boot_mode.gopro_mode && rtc_boot_mode.attempt_this > 4) { <---------------
    wifi_connect();
  } else {
    if ( rtc_boot_mode.twitter_phase > 1 ) {
      wifi_connect();
    } else {
      gopro_connect();
    }
  }

power to kWh/monthly/daily

Your circuit with self wake up

Hi chaeplin, thank you for this great circuitry.
I'm having issues making it work while also maintaining the ability to wake my device by software as well as an external event.

By using your circuit for the door alarm combined with a direct connection between gpio16 and rst I cannot wake my device from deep sleep with the reed switch.

I've deducted from various testings that the issues are with voltages. I can reset my device with your circuit as long as my esp is awake because the voltage at rst is held at 3.19V directly tied to gpio16. When the esp sleeps, voltage at rst is 3.3V and your circuit does not work anymore. I thick this somehow blocks rst from being grounded through the circuitry you have provided.

I've been thinking of adding a voltage divider between my gpio16 to rst connection to mimic the voltage I measured at rst while my esp is awake.
Do you think this is a valid solution or have I misunderstood it all?

See my sketch:
https://www.dropbox.com/s/141j6c6skuilrls/20170425_195826.jpg?dl=0

I'd appreciate your help, what I need is simple in concept, my esp to be able to awake by itself a well as upon a door being opened(Reed switch)

Self-wake-up / a timed DeepSleep requires a tweak?

reed_contact_wemosd1_wakeup_schema

Hi,
As i wrote earlier, i am very very happy with your project as it is exactly what i need, so again thanks for sharing! I want to use it with a WeMos D1 board and finaly all my parts have arrived so i've setup a test.
Since that wasn't very succesfull, i've tried it with a NodeMCU board, again no luck.

I am pretty sure that it all comes down to the fact that the ESP8266 won't wake up from DeepSleep(60) without "some" connection between GPIO16 and RST, instead it just stops.

WeMos D1
To have the WeMos D1 board wake up and reset by itself after some time, connection is required between GPIO16 and RST. I've tried a 1K but that seemed to be too much, a 470ohm resistor worked for me. Actually i was adviced that the best would be a schottky diode with cathode to GPIO16, also a wire will also work, but that will result in problems when flashing!

NodeMCU
Since i couldn't find any solution to my issue with the WeMos board, i figured to test this with a NodeMCU board. Without the connection, i get the same issue, so basically there's a similar problem here. (however a 2K2 resistor did work here i believe).

This leaves the solution unworkable with a timed DeepSleep() on these boards i think? Maybe because the power on the RST pin stays too high to get this to work properly, but then again... i'm certainly no expert on electronics.

Anyway, i am curious how to get this to work? What board will work?

So, questions:

  1. Do you think that using this capacitor should work? I am aware of using a 50V instead of a 16V. Which would you advice?

  2. Maybe the R4 should be recalculated in this setup? (note that, without R5, both the WeMos and NodeMCU boards hang after a timed wake up)

  3. Just to be sure: The reed contact, is it closed when your door is closed? So with it all in rest - door closed - it connects to ground, right?

I've been reading the result of #40 Midgie75 using a NodeMCU who claims to be successfull, though using a 2K resistor as R5. I can't say that i get a better result with that board either.

Any help is appreciated, i'm kinda lost with this project.
Marco

Doubts about Deep Sleep and Light Sleep

Hello @chaeplin
To put my doubts in context, I tell you quickly what I am doing:
My project consists of a module (1) ESP-12E connected to an electrical corner, which allows me to open the door via my telephone or via a button that works as a remote control via WIFI with a client module (2) ESP-12E Connects to (1).
The module (2) works with 3 AAA batteries total 3.8V batteries and a Momentary Push button that allows me to activate or deactivate the circuit.
The project is done with websockets @Links2004
The remote control or module (2) remains in idle for undefined periods of time waiting to be used again to open the door.
I want to implement Light Sleep or Deep Sleep, to reduce unnecessary battery consumption while not in use.
As the batteries have a switching on or off to disconnect the batteries, it was planned to turn it off in the standby times, but it is not possible, since when switching it off, a proper disconnection of module (2) and module (1) , Causing the modulus (1) to lock.
My questions are as follows:
1.- In order to use light sleep or deep sleep, should I always use pins 16 and RST to reactivate the module? Or is there any way that I can activate the module with the same Momentary Push button that I use to send the door opening command to module (1)?
In my project what I do in module (2) is to connect the GPIO16 via Momentary Push button to a 3.3V pin and read the high or low status of GPIO16.

2.- When activating Deep Sleep or Light Sleep in an Esp-12E module, does it save actions that have been previously executed by this one? Example, if I have activated a Gpio and in a webpage with websockets I show interactively that this pin is activated, when it enters to deep Sleep or light Sleep and after leaving that state, it keeps updated the information with which entered mode Of deep sleep?

Use time setting to alarm

_28-attiny85-nrf24-3pin-ir

  • get time using AckPayload
  • use small packet to get current time
  • writeAckPayload, enableAckPayload, isAckPayloadAvailable

HX711 - ap_setting.h no such file or directory

Hi,
Great work! I'm a noobie and really appreicate your work. Having a little problem.

I'm trying to compile the 03-hx711-scale-esp-12.ino in the arduino ide 1.6.9. I'm getting the following error. I've added the folder structure in the arduino folder and i've added it to my libraries file but no luck. any other suggestions? I'm trying to run it on an esp 8266 12e.
Thanks!

Error:

hx711scaleesp12k.ino:17:39: fatal error: /usr/local/src/ap_setting.h: No such file or directory

#include "/usr/local/src/ap_setting.h"

esp8266 library?

i can't find any esp8266wifi library file in your code and youre library link, can you give me please?

Wake up triggered by either the RTC or a momentary switch?

Thanks for providing this information, circuit, videos and explanation at http://chaeplin.github.io/project-01-button.html.

It can detect the momentary switch while awake which is nice but as far as I can tell it is not suitable for the case described by @me-no-dev at esp8266/Arduino#1488 (comment) where the ESP wake up from deep sleep is to be triggered by either the RTC or a momentary switch. Is that correct and if so, is there a simple modification?

I have ambitions of sampling temperatures at regular intervals and detecting contact closures from a tipping bucket rain gauge while the ESP remains mostly in deep sleep and am puzzling over a simple circuit that doesn't drain the battery to achieve it.

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.