Arduino Tutorial - Outputting JSON over Serial

Поделиться
HTML-код
  • Опубликовано: 17 янв 2025

Комментарии • 44

  • @nareshveda3290
    @nareshveda3290 4 года назад

    just like lightning, super fast and clear explanation. Thumbs-up and thanks.

  • @scotram
    @scotram 6 лет назад +1

    This is what all tutorials should be like, thank you very much. Could you make a tutorial for going the other way around? Example sending a json string from raspberry pi and decoding it on arduino and setting some globals?

  • @PayneDeathz
    @PayneDeathz 5 лет назад +1

    Quick and Fast! Although this video needs updating bcz of the newer version, this helped build up the foundation for the code :)

  • @n9583
    @n9583 3 года назад +1

    Hey how did you access your json file in the first place? If you altered its values didn’t you need to get the json file path, Great tutorial btw

  • @ragilburhanudinpamungkas9571
    @ragilburhanudinpamungkas9571 6 лет назад +1

    this will help me make the code easier for my python program in my rasp. thanks :)

    • @dcode-software
      @dcode-software  6 лет назад +1

      No worries mate :)

    • @ragilburhanudinpamungkas9571
      @ragilburhanudinpamungkas9571 6 лет назад

      @@dcode-software when i read the data using pyserial, the data is separated every alphabet and started with (b') that mean bytes. can you help me sir?

    • @analuna2607
      @analuna2607 4 года назад

      ruclips.net/video/Yl3wvWS9asg/видео.html

  • @mauliadianti
    @mauliadianti 4 года назад

    thankyou, easy to understand

  • @shadowhunter8803
    @shadowhunter8803 Год назад

    Thank you for the tutorial!! It's beneficial. But how should I do it if I have a real-time sensor?

  • @Ahmedhkad
    @Ahmedhkad 5 лет назад

    Good thanks , now how to receive and sand data json in same time ?

  • @davebeckham5429
    @davebeckham5429 6 лет назад

    Nice tutorial decode. Very well explained. Would like to learn complete Arduino JSON, can you suggest. - Many thanks.

  • @michaelrugi6616
    @michaelrugi6616 4 года назад

    awesome. now I am sorted

  • @michaelmcnaughton1535
    @michaelmcnaughton1535 6 лет назад

    Thanks for the tutorial. I have a question. Is there a method of publishing a JSON package to mqtt?

  • @abcd-yg2rx
    @abcd-yg2rx 4 года назад

    i tried . Visual studio says that i have to include the library arduinojson-v6,15. So I did,. I dowloaded , put in the right folder , nevertheless it doesnt find it

  • @brucespzn
    @brucespzn 6 лет назад

    I get -1 as value from Serial.read function. Have any clue of what is going on?
    Thank you.

  • @nikoskalousis3523
    @nikoskalousis3523 5 лет назад +1

    Thank you!

  • @berniejansen8701
    @berniejansen8701 5 лет назад

    Hi will you be able to send the temperature as "21.5" , a double value?

  • @kiranparte6777
    @kiranparte6777 6 лет назад

    I am receiving a JSON stream over serial I just want to to deserialize it and print the content, if possible can u help me ?

  • @jludian
    @jludian 6 лет назад +2

    Thank you so much man!! that's what i've been looking for :)

  • @CandraJunus
    @CandraJunus 4 года назад

    Have you ever done it using Python? send json data from python to arduino?

  • @dwikicahya7902
    @dwikicahya7902 7 лет назад +1

    how about posting json to server?

    • @dcode-software
      @dcode-software  7 лет назад

      +dwiki cahya HTTP Server?

    • @dwikicahya7902
      @dwikicahya7902 7 лет назад

      yes. is it possible?

    • @dcode-software
      @dcode-software  7 лет назад

      dwiki cahya Yeah, but you'll need some sort of network-enabled module such as WiFi or Ethernet. Although what you can do (and what I've done before) is code up a "bridge" server using Node.js where the Node script will accept Serial input from the Arduino and then forward that data to a HTTP server. Works quite well, otherwise just get a network module of some sort :)

    • @dwikicahya7902
      @dwikicahya7902 7 лет назад

      i use sim shiled to get internet connection, i just make the program for arduino but it still can't post to my website. Fyi, i use laravel as a server side to get the post value form arduino.

    • @dcode-software
      @dcode-software  7 лет назад

      dwiki cahya What do you mean that it can't post to your website?

  • @muzmmilpathan7781
    @muzmmilpathan7781 6 лет назад

    Sir I want to make a JSON of GPS value and store it and pass to mqtt I know from your video how to generate and show in serial monitor but want to store it in JSON please help me

    • @dcode-software
      @dcode-software  6 лет назад

      Hey there, do you want to save to SD card or computer?

    • @davinfarrell4886
      @davinfarrell4886 4 года назад +1

      @@dcode-software hallo, thanks for the video, i have a project now that the sensor datas that the ESP32 collected/ processed should be in json format. and then i will process/ visualize the data with python (dash, pandas, and so on). With python, i can read the json file in my computer or in a website. The question is how to store the live sensor data in my computer and in website? thank you in advance

  • @MrknisterKanister
    @MrknisterKanister 4 года назад +1

    thems not to work with the newest ArduinoJson version
    "DynamicJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6"
    Thx Anyway. Your vidoe gives a great startup

    • @n9583
      @n9583 3 года назад

      yeah i fixed it by installing version 5.(whatever)

  • @zastiv1700
    @zastiv1700 5 лет назад +2

    is this also works for ESP8266?

  • @aathirahvalmaypriyono6954
    @aathirahvalmaypriyono6954 6 лет назад +1

    THANK YOU YOU HELPED ME SO MUCH!!!!!!!!!!!!!!!!!

  • @CrisanBogdan
    @CrisanBogdan 5 лет назад +1

    This got outdated pretty quick...

    • @michaelpalmer2952
      @michaelpalmer2952 4 года назад

      Do you have a link to a tutorial, or documentation, or code, for the newer method?

    • @CrisanBogdan
      @CrisanBogdan 4 года назад

      @@michaelpalmer2952 hi, no sorry... Haven't touched Arduino in a while
      I think I used cpp seriliaze
      And just found this site that looks to be the right thing: arduinojson.org

  • @AnkitModi_AnkyX
    @AnkitModi_AnkyX 5 лет назад

    hey great tutorial
    I want to use this method to Send data on firebase using Arduino Uno + SIM808 (HTTP GET & POST AT Commands)
    help me out please
    i am using this library for gsm module github.com/vshymanskyy/TinyGSM

  • @deltekkie7646
    @deltekkie7646 3 года назад

    Dude...get a headset mic so we don't have to listen to you peck on the keyboard.