Google Spread Sheet or Google Sheets with ESP8266 Nodemcu for Data Logging, Temp & Hum DHT11, IoT

Sdílet
Vložit
  • čas přidán 5. 09. 2024
  • Altium Designer:
    www.altium.com...
    Read Article, download circuit diagram and code:
    www.electronic...
    Subscribe to my New CZcams Channel, if you want to watch my videos in Hindi/Urdu
    / @letsgetstartedd
    ESP32 Cam with ESP8266, google drive, and Google spreadsheet
    • ESP32 CAM and ESP8266 ...
    Google Sheet and RFID based Time Tracker
    • IoT based RFID Attenda...
    Send data from Google sheets to ESP8266:
    • Google spreadsheet to ...
    Power supply for Nodemcu ESP8266:
    • Nodemcu ESP8266: Nodem...
    Support me on Patreon and get access to hundreds of projects:
    / electroniclinic
    Project Description:
    ********************
    So far I have covered majority of the IoT platforms for monitoring different types of sensors and for controlling different types of electrical devices. Usually for the real-time sensors monitoring I display the sensors values on the Gauges and for this I mostly use Blynk IoT platform, Ubidots, and Thingspeak etc.
    In majority of the cases only displaying the sensor values is not enough. There are guys who are interested in the data logging for the post analysis. The sensors data logging service offered by majority of the IoT platforms isn’t as impressive as offered by the Google which is absolutely free, highly secured, fast, and reliable. In this Episode, I will be using Nodemcu ESP8266 WiFi module with Google Sheets for the sensor data logging. Google Sheets is a spreadsheet program included as part of the free, web-based Google Docs Editors suite offered by Google.
    Since this is my first time using the Google sheets for the Sensors data logging; so, I will try my level best to explain each and every detail. I will be using DHT11 Temperature and Humidity sensor as this is the most basic and easily available sensor. Once you learn how to send the temperature and humidity values to the Google Spreadsheet then you can replace this sensor with any other sensor of your choice. So, before, I am going to explain the circuit diagram, programming, and how to get started with the Google sheets, first let’s watch this project in action.
    First I am going to open my Google sheets App. Next, I am going to open the Dht11 monitoring Spreadsheet which I am using for logging the temperature and humidity values along with the date and time information. These are all the previous values, as I have been testing it for hours and it’s working just perfectly. Let’s power up the Nodemcu ESP8266 WiFi Module for real-time sensor monitoring and data logging.
    I am using my homemade 4S lithium-Ion battery pack for powering up my Nodemcu ESP8266 Development board. I will provide a link in the description if you want to make the same battery pack… You can see I just received the new data. The temperature and humidity values are stored along with the date and time information. For the demonstration purposes I am using a short delay in the programming, if you want you can increase the delay time. It’s totally up to you whether you want to send data after every 1 minute or 10 minutes, or 1 hour...
    ***************
    Amazon Purchase links:
    *****************
    DHT11 Temperature and Humidity Module:
    amzn.to/2O0YqRF
    Nodemcu ESP8266 WiFi Module:
    amzn.to/3sx24l4
    Other must-have Tools and Components:
    Arduino Uno, Nano, Mega, Micro "All types of Arduino Boards":
    amzn.to/3fk5OTi
    Top Arduino Sensors:
    amzn.to/3vZbnfM
    Super Starter kit for Beginners
    amzn.to/3cq56C5
    Top Oscilloscopes
    amzn.to/3ctF3d8
    Variable Supply:
    amzn.to/2PEAqE7
    Digital Multimeter:
    amzn.to/2QGRPg1
    Top Soldering iron kits: "best"
    amzn.to/39nqDtb
    Top Portable drill machines:
    amzn.to/3suQMh7
    Jumper Wires:
    amzn.to/2NYPEDA
    3D printers:
    amzn.to/3ruG1dt
    CNC Machines:
    amzn.to/3cuZWVv
    Electronics Accessories:
    amzn.to/3sueV7z
    Hardware Tools:
    amzn.to/3m9UhaN
    DISCLAIMER: This video and description contain affiliate links, which means that if you click on one of the product links, I will receive a small commission. This helps support the channel and allows me to continue to make videos like this. Thank you for your support!
    ****************
    For more Projects and tutorials visit my Websites
    Electronic Clinic:
    www.electronic...
    Programming Digest:
    programmingdig...
    Follow me on Instagram:
    / electroniclinic
    Follow my Facebook Page Electronic Clinic:
    web.facebook.c...
    Follow my Facebook Group, Arduino Projects:
    / 190031841821771
    Email:
    stu_engineering@yahoo.com
    #GoogleSpreadSheet
    #NodemcuEsp8266Project
    #ESP8266GoogleSheets

Komentáře • 78

  • @ElectroniClinic
    @ElectroniClinic  Před 2 lety +1

    Send data from Google sheets to ESP8266:
    czcams.com/video/7rCZB7tN4P8/video.html

  • @raybright5805
    @raybright5805 Před 2 lety +2

    Only one way to comment on this CZcams and that is "EXCELLENT !!!" I'm always wanting better means to log data & Google Sheets is something I've never came across. Now what we want is a App/Example to show live data in graphical form, something better that just spreadsheet graphs, any Ideas most welcome. Again thanks for this example

    • @ElectroniClinic
      @ElectroniClinic  Před 2 lety

      very soon i will do it. I will cover almost all the iot platforms.

  • @tnoten
    @tnoten Před rokem +2

    I couldn't get the data to the Google spreadsheet. I tried several things, nothing helped. Everything was working oke.
    The solution came when I changed the option that everyone could join this projest. You have to choose this when implementing the web app.
    So I thing there is a securety issue with Google.
    Hope that this helps someone

  • @PhG1961
    @PhG1961 Před 2 lety +2

    Nice Sunday morning entertainment ! A great way to learn...

  • @JashanjotKaur
    @JashanjotKaur Před 2 lety +1

    Did everything same. Code is working fine. Only problem is humidity value is saved in column C with Temperature value instead of column D. How to make humidity value shift to column D ?

  • @ambienteinteiro3385
    @ambienteinteiro3385 Před rokem

    in fact the only one that explained how to actually connect dht to google sheets.
    My question is: what is the daily limit for sending data to the spreadsheets?
    I'm afraid of Google blocking...

  • @e-yantratechnologies9321
    @e-yantratechnologies9321 Před 2 lety +2

    it is not working now as google has disabled "allow less secure apps option" since this May. Can you suggest any other option to post to google sheets using nodemcu

  • @raybright5805
    @raybright5805 Před 2 lety +1

    I have followed your instructions carefully including from your web site BUT then I try accessing the URL I keep getting an error "Script function not found: doGet"
    In AppsScript if I try Run the function that starts as follows (as per your example) :
    1. function doGet(e) {
    2. Logger.log( JSON.stringify(e) );
    3. var result = 'Ok';
    4. if (e.parameter == 'undefined') {
    5. result = 'No Parameters';
    6. }
    then rest of code follows....
    I get the following error in Execution Log
    6:56:25 PM Notice Execution started
    6:56:26 PM Info null
    6:56:25 PM Error
    TypeError: Cannot read property 'parameter' of undefined
    doGet @ Code.gs:4
    So there is a problem with line 4 BUT I can't see what has gone wrong
    Any help appreciated...

  • @neperic2666
    @neperic2666 Před 2 lety +1

    hello there,
    how to add moisture and ultrasonic sensor along with this code google sheet nodemcu code..

  • @sitikhodijah13
    @sitikhodijah13 Před 2 lety +3

    why can i only send 5 rows of data?

    • @ali89shah
      @ali89shah Před 2 lety

      Same is the case with me.

    • @massimilianotuccella2699
      @massimilianotuccella2699 Před 2 lety

      Any of you could've possibly solved it? I'm having the same problem :(

    • @Kelebihanmod
      @Kelebihanmod Před rokem

      same with my case, no idea to solved

    • @Kelebihanmod
      @Kelebihanmod Před rokem +1

      ahh , after long time reading now I am solved the issue
      Try to add , client.setInsecure(); on your loop before script and client.stop(); on your last loop

    • @use_dis_to_watch
      @use_dis_to_watch Před 2 měsíci

      @@Kelebihanmod thank you this helped me solve my problem

  • @rvinnyopagongna
    @rvinnyopagongna Před 10 měsíci

    can you adjust the interval, set for example. only the data from every 30th day of the month will be shown.

  • @suryar6137
    @suryar6137 Před 3 měsíci

    thanks again for

  • @suryar6137
    @suryar6137 Před rokem

    THANK YOU SO MUCH SIR WE ARE GRATEFUL TO YOU.............

  • @oreillyjoe1
    @oreillyjoe1 Před rokem

    Nice video. I have a question. If the module is powered but not connected to wifi etc. can it store data and then dump all data to google sheet after?

  • @respmed13sleep98
    @respmed13sleep98 Před rokem +1

    Hi there, Can you please show us how to use this for a different sensor type?
    Thanks in advance

  • @musaadejoshuaibuopaluwa1712

    I truly have learnt a great deal from this tutorial.
    Could you please help modify this codes to read and store values in Arduino variable?
    I long to see that and thank you so much for your efforts

    • @ElectroniClinic
      @ElectroniClinic  Před 2 lety

      you want to send data from spreadsheet to arduino?

    • @ElectroniClinic
      @ElectroniClinic  Před 2 lety

      @BristolFixers very soon it will be available. I add this to my list. what exactly you want to send from google spreadsheet?

  • @zigstar4you
    @zigstar4you Před rokem

    It’s possible to adjust script so if any value is existing,for example a row have the same data, to now write. So no duplicates of data?

    • @ElectroniClinic
      @ElectroniClinic  Před rokem

      Ya, you can compare current value with the previous value. If both the values are same then do nothing and if the values are different then send the value to Google sheet

  • @alphancrewpuk
    @alphancrewpuk Před rokem

    How to make google sheet continuously work to save data because it is just limited with 10000000 row, please give me advice

  • @yabatzy
    @yabatzy Před 5 měsíci

    how to use 12-hour format time?

  • @tsanilsalsamara5707
    @tsanilsalsamara5707 Před rokem

    hello, I can't receive data sent on google sheet. On the serial monitor I get the message "esp8266/Arduino CI has failed" what's wrong?

  • @lifeisbeautiful0401
    @lifeisbeautiful0401 Před 11 měsíci

    Can u make with esp8266 in place of nodemcu

  • @31.otienthanh80
    @31.otienthanh80 Před 2 lety

    I want to send other value from esp8266 to googlesheet. How can I change your code? example I replace temperature by a number from keyboard; humidity replace by value from mass sensor. Help me please.

  • @jamessalvador8075
    @jamessalvador8075 Před 7 měsíci

    Can this work using the esp-01s with the Arduino uno r3 instead?

  • @kumarraunak3884
    @kumarraunak3884 Před 2 lety

    How can add 2 temprature sensors in same spreadsheet but 2 different sheets for two different sensor.

  • @billintyvarralaya8834
    @billintyvarralaya8834 Před 2 lety

    thankyou so much for this video
    but i want exactly opposite to this......i mean we give data on google sheet it should show on lcd.....

  • @erlanagis
    @erlanagis Před 26 dny

    apa masih berfungsi di tahun 2024

  • @G_Cube_Gaming
    @G_Cube_Gaming Před rokem

    ReferenceError: Curr_Date is not defined (line 12, file "Code") getting this error
    how to solve

  • @diomampojohnkennethu.2556

    how to use this code to ESP 01S wifi module and arduino mega?

  • @navalsonthwal7121
    @navalsonthwal7121 Před 10 měsíci

    Please post a video on nodemcu wifi inactivity disconnection

  • @muhammadzubairirshad4360

    sir i am using the same code as which was given in description, but no data is sent on spread sheet. I am using dht22 sensor. Temperature and Humidity value is properly shown on serial monitor but in the last serial monitor shows esp8266/Arduino CI has failed plzz help me sir what was the reason......

  • @loggerdata90
    @loggerdata90 Před 2 lety

    sir time is not showing properly its showing 30/12/1899 10:30:47
    please help

  • @user-vi9eb9iq7p
    @user-vi9eb9iq7p Před 2 lety +1

    Is it the same if I use esp32

  • @PavankumarMatta
    @PavankumarMatta Před rokem

    sir,how to add 15 minutes delay for temperature and humidity data

  • @pradeepmanoharan9914
    @pradeepmanoharan9914 Před 2 lety

    the code you uploaded is not properly indented so when I tried to publish it on gscript and It shows the error like this "SyntaxError: Unexpected token '{' (line 1, file "Code.gs" so could you pls upload the file with indentation

  • @Midnight-mi3ie
    @Midnight-mi3ie Před 10 měsíci

    I suddenly received a esp8266/Arduino CI has failed

  • @electronic7979
    @electronic7979 Před 2 lety +1

    👏👏👏

  • @zouhirmsahli1694
    @zouhirmsahli1694 Před 2 lety

    Hi is this procedure remains available even when spreadsheet is not open ?

  • @sornsopheak6372
    @sornsopheak6372 Před 2 lety

    Do you have other way that we can send data from esp8266 to google sheets faster than this, because in this video we spend 3 seconds or more than this to send one data from esp to google sheets.

    • @ElectroniClinic
      @ElectroniClinic  Před 2 lety

      there is delay in the code, thats why it takes time. you can remove the delay.

    • @sornsopheak6372
      @sornsopheak6372 Před 2 lety

      @@ElectroniClinic ohh thank you. I will try it again.

    • @PavankumarMatta
      @PavankumarMatta Před rokem

      sir, in code where is the delay,please send me reply

  • @pikp9776
    @pikp9776 Před 2 lety

    bagaimana jika lebih dari 1 dht?

  • @indunildilhan6918
    @indunildilhan6918 Před 2 lety

    works fine. but after 4 data recors. serial monitor shows "connection fail". only 4 reading record.

    • @ElectroniClinic
      @ElectroniClinic  Před 2 lety

      I don't know why its happening on your side. I tested it and it worked just fine.

    • @agustinbejanuel
      @agustinbejanuel Před rokem

      I'm working on ESP32. I have the same trouble. Someone with a solution? Thanks

  • @ravikumarbiradar1115
    @ravikumarbiradar1115 Před rokem

    facing esp8266/Arduino CI has failed issue

  • @roboticscience8128
    @roboticscience8128 Před rokem

    the data is not shared but the code is executed how to resolve this

    • @ElectroniClinic
      @ElectroniClinic  Před rokem

      Watch my yesterday's video. The latest one. It's code is available on electroniclinic.com

  • @JeffersonAMontoya
    @JeffersonAMontoya Před 2 lety

    Hola, soy nuevo suscriptor, ¿que ocurre cuando se llega al limite de las filas en google sheet? gracias

  • @Karthik_Mogaveera
    @Karthik_Mogaveera Před rokem

    Can I use power bank to power up nodemcu

  • @sanketgontamar4114
    @sanketgontamar4114 Před 11 měsíci

    Sir what is https port number

  • @kangrizky30
    @kangrizky30 Před 2 lety

    Have you ever had problems sending data to Google Sheets? data stop on sending?

    • @ElectroniClinic
      @ElectroniClinic  Před 2 lety

      no, I tested it for hours. It works just fine. In the long run, if you face any data stop issues, then you can use the Watchdog Timer. If the controller stops, the watchdog timer will automatically restart the controller for you.

  • @G_Cube_Gaming
    @G_Cube_Gaming Před rokem

    esp8266/Arduino CI has failed

  • @Peter_A1466
    @Peter_A1466 Před rokem

    Without further delay to the next delay... and the next...
    Copying steps is not learning!

  • @ali89shah
    @ali89shah Před 2 lety

    Will it work with ESP32 NodeMCU?

  • @alejocorral1957
    @alejocorral1957 Před rokem

    code?

  • @jamessalvador8075
    @jamessalvador8075 Před 7 měsíci

    Can this work using the esp-01s with the Arduino uno r3 instead?