Wednesday, 8 February 2017

Temperature logger using arduino and thingspeak

Hello Arduino lovers,

In this tutorial, we are making a temperature logger using arduino and thingspeak.
Let's start

Things required:

  1. Arduino Uno
  2. LM35
  3. Sim900 module
  4. Internet pack 
  5. Thinkspeak account




Make connections as given in the diagram. Connect Tx of GSM module to pin number 7 of arduino board and Rx of of GSM module to pin number 8 of arduino uno and ground should be common between these two.
Output of LM35 should be connected to A0 of arduino board.
Arduino Uno GSM module LM35
Pin no. 7 Tx
Pin no. 8 Rx
Pin no. A0 Output of Lm35
Download code from link below
Now, upload the code

Video:

Hope, you guys had enjoyed the video

Thanks for visiting my blog



19 comments:

  1. Replies
    1. HELLO sir,
      i used this same program and connection..but my GSM module not connected to my thingspeak account.but it shows CONNECT OK msg for thingspeak site .and aslo SEND OK msg ...here i used SIM800 module ...plz guide me

      Delete
    2. Sorry for the late reply. Please check the apn

      Delete
    3. HI Im also getting connected and it says send ok, but im not seeing the values in my thingSpeak channel. My APN is set on internet, wich is fine for my module. Using a Sim 808

      Delete
    4. Lograron utilizar el modulo SIM800L Me conecta y todo. pero no puedo ver respuesta en mi canal? Alguien lo logro?
      Gracias.

      Delete
    5. change the library for SIM 800

      Delete
  2. Hi Mr.Chandan Kumar ,
    What is the use of mySerial.println((char)26);

    ReplyDelete
  3. good afternoon sir... what is the use of Show Serial data after AT+CIPMUX, AT+CSTT and others

    ReplyDelete
    Replies
    1. Hi there,
      Please refer to SIM900 AT commands manual for more information. It's available on the internet.

      Delete
  4. Can you provide the code for 2 fields.

    ReplyDelete
  5. Exelente proyecto. Estoy haciendo uno similar pero con un sensor DHT11 y una SIM800L. La configuracion del sensor de temperatura y humedad son digitales. Me puedes ayudar con la configuracion?

    Gracias.

    Saludos.

    ReplyDelete
  6. Hello sir...there is a doubt... i am trying to send random numbers serially from one arduino to another arduino uno to be displayed on thingspeak channel... but sometimes the data is missed and jumps to another data when i decrease the delay between AT COMMANDS..

    ReplyDelete
  7. Hi Chandan, i have installed your project but i have the follow error:

    AT+CIPSTART=TCP,api.thingspeak.com,80

    ERROR
    AT+CIPSEND

    ERROR
    GET http://api.thingspeak.com/update?api_key=08L71HX0303YW0OV&f

    Why?

    ReplyDelete
  8. Hi Chandan, Thank you for compiling this sketch. I am able to send the temperature from a DHT11 sensor. I receive the 'SEND OK' after transmission, but Thingspeak does not update with the value. Any idea what could be wrong?

    ReplyDelete
  9. This comment has been removed by a blog administrator.

    ReplyDelete