ESP8266 IoT Control and Monitor Using Arduino, MQTT, and Cayenne

  Переглядів 85,731

datasith

datasith

7 років тому

• Your support helps me post videos more frequently:
/ acrobotic
www.paypal.me/acrobotic
buymeacoff.ee/acrobotic
BTC: 1ZpLvgETofMuzCaKoq5XJZKSwe5UNkwLM
==========
• Find me on:
/ acrobotic
/ acrobotic
/ acrobotic
==========
• My shops:
acrobotic.com/shop
amazon.com/shops/acrobotic
==========
• Description:
Wondering how to monitor and control your ESP8266 remotely, from anywhere in the world?
In this video I go over the process, step-by-step, of how to write code in the Arduino IDE and program your ESP8266. The code allows the ESP8266 to communicate with the myDevices Cayenne platform (cayenne.mydevices.com). Cayenne allows monitoring and controling the ESP8266 through a very intuitive Dashboard.
After setting up an account on Cayenne, I utilize the Dashboard to setup a controller for an LED, and a monitor for temperature and humidity. The communication between the ESP8266 and Cayenne is done using a very lightweight protocol called MQTT (mqtt.org/).
Once everything's done, I'm able to monitor and control the ESP8266 from anywhere around the world simply by accessing Cayenne!
==========
• Project code:
The Cayenne library for the ESP8266 can be found at:
github.com/myDevicesIoT/Cayen...
The firmware file is available at:
github.com/acrobotic/Ai_Demos...
A more detailed version of the code written on this tutorial is available through:
Available through File → Examples → Cayenne-MQTT-ESP8266 → ESP8266
==========
• Project parts:
ACROBOTIC Development Board for ESP8266:
acrobotic.com/products/acr-00018
amzn.to/2dAZ1mW (affiliate)
==========
• Tutorials:
Detailed guide for getting started with the ESP8266 Development Board:
learn.acrobotic.com/tutorials/...
==========
• Music:
Jason Shaw (audionautix.com/). Creative Commons License 3.0.
==========
#ESP8266 #Arduino #Tutorial

КОМЕНТАРІ: 246
@spacefolder
@spacefolder 7 років тому
Really liked this one Cisco! How you explained everything separately, and then joined all the stuff into something really usefull and easy to understand. Good job!
@datasith
@datasith 7 років тому
Thanks so much for the kind words, we always to make the content as easy to follow as possible; we're glad the results are positive :)
@hamadasalah7369
@hamadasalah7369 6 років тому
I tried it and it works properly. Many thanks.
@datasith
@datasith 6 років тому
No worries, glad to hear you found it useful!
@med6402
@med6402 5 років тому
this video is definitely a piece of art ,just what i've been looking for
@datasith
@datasith 5 років тому
Thanks so much for the kind comment. I'm glad you found it useful!
@rumitshah7136
@rumitshah7136 3 роки тому
This was a very great tutorial. Keet it up man!!!!
@thomascziesla3768
@thomascziesla3768 7 років тому
once again - very well explained video. Impressive! Exactly what I needed.
@datasith
@datasith 7 років тому
Thanks for the kind words, Thomas! We're glad that you're able to put this content into an application!
@rishabhlavhale3096
@rishabhlavhale3096 7 років тому
Awesome Video.... I'm finding for this .....Thanks ACROBOTIC.....
@datasith
@datasith 7 років тому
Thanks for watching! :)
@zingo1010
@zingo1010 6 років тому
Excellent presentation. Thank you for demystifying this stuff.
@datasith
@datasith 6 років тому
Thank you so much for the kind comments, we're glad you found the information useful!
@8822464613
@8822464613 5 років тому
Awesome channel. I'm learning a lot from you. Clear, complete explanations. Congratulations!
@datasith
@datasith 5 років тому
No worries, glad you liked it! Thanks so much for watching!
@ludwigvallee127
@ludwigvallee127 7 років тому
It makes me happy to learn from your videos. Everything works fine ! I`m waiting for your next videos.
@datasith
@datasith 7 років тому
We're happy that the content was useful! Thank you for your kind words, we'll keep making more videos :)
@anindpal
@anindpal 6 років тому
I become a fan of these ACROBOTIC videos. Watched all of them, a fantastic learning. So nicely presented by Cisco. You have done a great job, specially I was looking for an easy tutorial with esp8266 and MQTT. This one is the perfect, I am going to try this on my home devices......Thank you so much
@datasith
@datasith 6 років тому
Thank you kindly for the nice words, we're glad you're finding the information useful!
@akibzart1273
@akibzart1273 2 роки тому
really great work ...keep it up! :)
@akthamahmed2171
@akthamahmed2171 5 років тому
Awsome tuturials. Thanks man 👍
@datasith
@datasith 4 роки тому
Thanks so much, I'm glad you like them!
@DAWCIOMENTAL
@DAWCIOMENTAL 6 років тому
You create a channel I have been looking for. Bought 2 ESPs but wasn't sure how to make it useful. There wasn't actually any good and clear tutorial like this.
@datasith
@datasith 6 років тому
:blush: thanks for the kind words, we're glad you got'em up and running. We're happy that you found the content useful!
@mouizimran1032
@mouizimran1032 6 років тому
Thanks for the contribution. Great video everything was clear to understand best video in cayenne category.
@datasith
@datasith 6 років тому
Thanks SO MUCH for the kind words, we're glad you found it useful!
@neilvermeulen5283
@neilvermeulen5283 5 років тому
Thank you Cisco. I learn a lot from you sir. Well done.
@datasith
@datasith 5 років тому
Thanks for watching my vids, Neil. I really appreciate it, and it makes me happy you found them useful!
@paul634896
@paul634896 6 років тому
Great video. Material well presented, understandable and really helpful. I subscribed. Great work.
@datasith
@datasith 6 років тому
Thanks for the kind words, Paul! We're glad you found the material useful!
@joydeepbhattacharjee5305
@joydeepbhattacharjee5305 3 роки тому
smoothest tutorial in the internet
@ricardocedaro7316
@ricardocedaro7316 3 роки тому
Excellent! Perfect!!
@shubhamsharma4960
@shubhamsharma4960 6 років тому
Thanks man...........it helped me a lot....keep it up
@datasith
@datasith 6 років тому
Thanks for the kind words! We will!
@yarogniew
@yarogniew 6 років тому
Great, thank you! Keep going.
@datasith
@datasith 6 років тому
Thank you, we will!
@PiBOTSMakerHub
@PiBOTSMakerHub 4 роки тому
Really helpful. never seen a video which describes this much...
@datasith
@datasith 4 роки тому
Thanks for the kind words, I'm glad it helped!
@dotrungkien338
@dotrungkien338 6 років тому
Great things!. Keep gooing :)
@datasith
@datasith 6 років тому
Thank you! We will :)
@quaternion-pi
@quaternion-pi 7 років тому
Excellent explanations as usual - clear and concise. I hope you will consider projects with ESP32. Thanks for sharing your knowledge.
@datasith
@datasith 7 років тому
Thanks boss! We have the hardware for the ESP32 already, and we are carving up the time to dedicate a series to it!
@HaiTHaMKoBeIssI
@HaiTHaMKoBeIssI 7 років тому
super clear and very easy and simple to understand, thank you.....
@datasith
@datasith 7 років тому
We're glad you found it useful!
@rgtech3893
@rgtech3893 6 років тому
very clear... thanks bro...
@datasith
@datasith 6 років тому
No worries, glad you found it useful!
@alessandroluz3389
@alessandroluz3389 5 років тому
Congratulations!
@datasith
@datasith 5 років тому
Thanks!
@ludvigsp
@ludvigsp 6 років тому
Uhuuuu GREATTTT, thumbs up from Brazil
@datasith
@datasith 6 років тому
Thanks for the kind words, we're glad you liked it!
@ChrisZang
@ChrisZang 3 роки тому
Fantastic video and great instructions. I totally like the idea what Cayenne is trying to do. But it seems that at the moment it’s still too buggy/unstabile that I would not trust my home automation projects with it. I hope the guys at Cayenne can work out all the kinks.
@datasith
@datasith 3 роки тому
Yeh, unfortunately I don't think they're taking this initiative further (for now at least). I have a project that shows you the basics of doing a DIY version, without the niceties of a dashboard, and such: ukposts.info/have/v-deo/pKSWe4epkGuK1mg.html HTH!
@eng.aljobury5087
@eng.aljobury5087 6 років тому
Great information thank you so much
@datasith
@datasith 6 років тому
Glad you found it useful!
@jcdock
@jcdock 4 роки тому
Great tutorial, looks like a great service
@datasith
@datasith 4 роки тому
Thanks so much, I'm glad you found it useful. You can also roll out your own service: ukposts.info/have/v-deo/pKSWe4epkGuK1mg.html
@clamara76
@clamara76 6 років тому
Fantastic !!!! Thank You
@datasith
@datasith 6 років тому
Thanks SO MUCH for the kind words, we're glad you found it useful!
@mrrcomp
@mrrcomp 6 років тому
Excellent Explanation .. Thanks it helped me alot
@datasith
@datasith 6 років тому
Awesome! We're glad you were able to work through the issues that came up :)
@mrrcomp
@mrrcomp 6 років тому
Hi Can you just point me in the direction to switch a different Digital Pin. (D7) for example... I tried changed the "2" in all locations in the current sketch to a "7" but still doesn't work Suggestions? Meir
@datasith
@datasith 6 років тому
You can write "D7" directly. When you use "7", due to the way the libraries are written, it means pin "GPIO7". See the pinout here: github.com/acrobotic/Ai_Docs/blob/master/pinouts/esp8266_devkit/esp8266_devkit-01.png
@mrrcomp
@mrrcomp 6 років тому
Thanks for your swift responses. I tried to change to 7 but Don't get any response .As i mentioned I changed all the "2" to "7". Another question what If I want 2 different Buttons each for a different Pin? Regards Meir
@datasith
@datasith 6 років тому
Use D7 not 7, D as in David and the number 7. For 2 different buttons you can use the same code with a different pin.
@qazxali
@qazxali 5 років тому
Thank you so much !!
@datasith
@datasith 5 років тому
You're very welcome!
@hatemelborai
@hatemelborai 5 років тому
Thank you very much for this video
@datasith
@datasith 5 років тому
You are very welcome!
@sanjeevkumarMaurya-sz8qg
@sanjeevkumarMaurya-sz8qg 6 років тому
i love ACROBATIC very simple, very easy. Very helpfull video
@datasith
@datasith 6 років тому
We love our awesome viewers, thanks for the kind words!
@razserv2010
@razserv2010 2 роки тому
thanks for this guide, is it possible to add MQTT?
@ricardocalcina2398
@ricardocalcina2398 4 роки тому
Such a good video, little advice that might help... Using a Wemos D1 mini board, you can directly upload to the board and then be able to control the controller from within the app. However, code still has to be written and uploaded to the board to outline what the pins do ect. The advice is: the code uses the GPIO pins. So in the video where he uses pin 2, on a wemos D1 this is pin D4, GPIO 0 is pin D3, and so on. Otherwise, wants you connect to your wifi all the buttons can be done through Cayenne.
@datasith
@datasith 4 роки тому
Awesome info, thanks for sharing!
@gamemechinereview1173
@gamemechinereview1173 6 років тому
thanks it is very helpfull!
@datasith
@datasith 6 років тому
You're welcome!
@WahyuHidayat-be6vq
@WahyuHidayat-be6vq 5 років тому
Thank you for information, I'm form cililin, KBB - indonesia
@datasith
@datasith 5 років тому
Awesome, a warm welcome from Pasadena, California!
@kiranmahapatra8716
@kiranmahapatra8716 5 років тому
very good video....Thanks
@datasith
@datasith 5 років тому
Thank you for watching it! I'm glad you found it useful.
@sreeprakashneelakantan5051
@sreeprakashneelakantan5051 6 років тому
Excellent 🙏
@datasith
@datasith 6 років тому
Thank you!!!
@DimiEG
@DimiEG 5 років тому
Thank you for useful and interesting videos.
@datasith
@datasith 5 років тому
Thanks for watching them, and for taking the time to write a comment!
@DimiEG
@DimiEG 5 років тому
Hope for more videos regarding ESP8266 Wemos (Lolin) D1 mini. Maybe PlatformIO? You’re very strong in javascript. How to use shields for this board?
@datasith
@datasith 5 років тому
@@DimiEG sunds good, I love the D1 mini and will try to make a lot more videos. Definitely PlatformIO is on my list. The shields are plug and play. You only need to find the correct libraries to work with them.
@DimiEG
@DimiEG 5 років тому
You give very nice tip and tricks. I did't know how create own WEB server on this board and how to change the WiFi mode to connect directly to this board. Thank you so much. MQTT is very useful also. As I know there is possibility start up own MQTT server for it. As for myself I use PlatformIO and vim as text editor. Not strong in JavaScript as you. Also micro-python theme may be interesting. Will wait for future tutorials. 😀
@DimiEG
@DimiEG 5 років тому
FreeRTOS on esp8266 d1 mini would be extremely interesting theme also. Would be great if you know something about.
@maxim25o2
@maxim25o2 2 роки тому
Greate tutorial. I have so much fun playing with MQTT tru wifi connection. This is very important lection, because In near future I have plans to build monitoring system for solar panels. And this is easy to menage. But also I am thinking to try use esp32 as host...
@jonathandymock4112
@jonathandymock4112 6 років тому
Great videos. Easy to follow. What do you find is the easiest way to power the development board when you want to disconnect from the computer? thanks
@datasith
@datasith 6 років тому
The easiest way is to use a USB battery like those used to recharge phones. Most of them come with a Micro-USB cable that'll fit right into your development board! HTH
@krishnawa_
@krishnawa_ 6 років тому
nice and awesome tuttorial...
@datasith
@datasith 6 років тому
Thanks for the kind words! We're glad you liked it!
@marshalldog1074
@marshalldog1074 6 років тому
Awesome thanks
@marshalldog1074
@marshalldog1074 6 років тому
It help me alot
@datasith
@datasith 6 років тому
Glad to hear you liked our videos!
@Owensv64
@Owensv64 6 років тому
Thanks for this entry in an already great library of tutorials. I notice that this cloud connectivity seems to default to a client type connection, such that I cannot run it and a soft AP from the ESP module at the same time. Do you know if there is a mode/method which allows both? I'm thinking of an application in which I enter the WLAN and cloud credentials via an AP connection first, rather than hard coding them.
@datasith
@datasith 6 років тому
Heya! That's a great question, the default mode is set to "station" as you point out. You can change it to be either an "access point" or a combination of both. Though you can change things with your own code, there's a neat library called WiFi Manager that already does this for you. We have a tutorial vid on our queue for showing how to use it!
@abdulla_Mohsen
@abdulla_Mohsen 5 років тому
thank you for nice presentation, I have problem, the port com is hidden for my and cant chose the port. how can I solve these problem?
@datasith
@datasith 5 років тому
Check out our other videos for setting up the USB drivers for the ESP8266 boards, thanks!
@username2736
@username2736 5 років тому
have you ever used cayenne extension for thunkable? (cayenne database) eg on / off relay
@datasith
@datasith 5 років тому
Not quite yet!
@HoangNguyen-lu5pq
@HoangNguyen-lu5pq 6 років тому
Nice video. Do you have programming tutorials on ubuntu?
@datasith
@datasith 6 років тому
Not yet, we wanted to get a few done on Windows as well as Linux (probably Ubuntu). It's on our to-do list, sorry for the delay!
@HoangNguyen-lu5pq
@HoangNguyen-lu5pq 6 років тому
That's great
@Zhus118
@Zhus118 6 років тому
Great video! One question: What if you want to connect to an WPA-Enterprise secured network? it requires a username and password to connect.
@datasith
@datasith 6 років тому
In this video we also connect to a WPA-* network, follow the same instructions and you shall connect :)
@lamaletadefelix8950
@lamaletadefelix8950 4 роки тому
Hi Cisco, i´m a fan of your great work, one question?? With a DHT22 i've been having "nan" values in my monitor for the two variables, hum and temp, any ideas?? i read that it was a problem with the library DHT, you know something about this issue?? Really tks
@datasith
@datasith 4 роки тому
Heya, thanks! Try adding a 4.7k resistor between data and 5V.
@lamaletadefelix8950
@lamaletadefelix8950 4 роки тому
@@datasith Hi i already did just that, but still don't work, its so weird
@datasith
@datasith 4 роки тому
Sorry I didn't follow up, did you get this solved. Feel free to email me at support@acrobotic.com and I'll respond within a few days!
@Solardiysystems
@Solardiysystems 3 роки тому
Great video, really well explained! Do you know if it's possible to recieve incoming Webhooks in Cayenne, and have them trigger actions on my ESP8266? For example turn on the LED when Integromat sends a webhook?
@datasith
@datasith 3 роки тому
Thanks so much! I do not know how to do this in Cayenne (or even if it's possible). Have you checked out IFTTT?
@Solardiysystems
@Solardiysystems 3 роки тому
ACROBOTIC ok thanks for getting back to me :) I have briefly - it looks like Integromat (which I am familiar with). I’m new to all this IoT / home automation stuff, trying to decide whether it’s better to have a local ‘hub’ with a RPi or have everything separately connect to Cayenne / the cloud...
@datasith
@datasith 3 роки тому
@@Solardiysystems awesome! They're not mutually exclusive, meaning, you can start with a local 'hub' and add the cloud functionality for accessibility and backup at a later time. Best of luck!
@Solardiysystems
@Solardiysystems 3 роки тому
@@datasith that makes sense, thanks!
@vishalgaurav4411
@vishalgaurav4411 6 років тому
Can't we directly add a humidity and temperature sensor directly from the option add new ”device / widget " ?
@datasith
@datasith 6 років тому
Yes.
@HoangNguyen-lu5pq
@HoangNguyen-lu5pq 6 років тому
Thanks for video. But I can't find "Add new devices/widget" like guide video.
@datasith
@datasith 6 років тому
You can click on "Add new..." on the left-hand navigation bar, and then select "Device/Widget". Try a different Web Browser if the navigation bar isn't showing up. Thanks so much for watching!
@HoangNguyen-lu5pq
@HoangNguyen-lu5pq 6 років тому
thanks you. I did it
@akhilkrishnan4269
@akhilkrishnan4269 2 роки тому
how to download cayenne MQTT ESP8266 library
@shivamchandel3922
@shivamchandel3922 3 роки тому
is cayenne a mqtt broker
@dennisk.5829
@dennisk.5829 5 років тому
Hi, just came across ur videos today and I think they will be helpful for my ongoing project. I’m dealing with a detection system using designed antenna where the detector is placed in a BTS station. the data send back to me will need to be plotted as real time graph in a IOT server such as Cayenne and Favariot. The question is the data will be transmitted back to me using RF method rather than Wifi ,could the data collected for days maybe could be stored and I am able to view the plotted graph of previous days??
@datasith
@datasith 5 років тому
Yes, you can store the data in flash memory so that it's safe in case the device reboots. Then you can have a web server running that serves the plot for the stored data. I have a few videos detailing how to store data in SPIFFS, and how to plot it using Chart.js. Best of luck with the project!
@istranghero19
@istranghero19 6 років тому
Hi i have battery bank that i would like to monitor remotely i’m just wondering if i can use this kind of application to monitor the voltage remotely. Please advice thanks
@datasith
@datasith 6 років тому
Yes you can. Depending on your battery's voltage range you can use the Analog Input of your ESP8266 Board or use an ADC chip in between the battery and the board. You can then choose the Analog Input option from the Cayenne Dashboard to monitor the levels. Hope this helps, thanks for watching!
@mohamedalfalasi4428
@mohamedalfalasi4428 6 років тому
thank you for this amazing video ,, i used DHT 11 sensor and it worked fine but some time it send 0 degree temp and 0 % humidity like it have been disconnected ,, any idea why is this happening ? i used the last code
@datasith
@datasith 6 років тому
Print out the readings to the Serial Monitor to determine if the sensor is reading correctly. Doing this will let you determine whether it's an error uploading the data or reading it from the sensor. If it's an error reading from the sensor try adding a longer delay (1 to 2 seconds) between readings!
@hussienalhek370
@hussienalhek370 5 років тому
thanks for your valuable video. i have a problem when my nodemcu powered off then i lost the status of my relays also when i restart my phone. is there any solution to persist the state of my relays? thanks for your interest.
@datasith
@datasith 5 років тому
Thanks! You can store the information is flash memory (see my video on SPIFFS), and then read it every time the NodeMCU reboots. I assume this is also the case for when your phone restarts. Good luck!
@abirulezz
@abirulezz 6 років тому
Could you please make a video on ESP8266 MQTT AWS IOT? Thanks!
@datasith
@datasith 6 років тому
We shall add it to our queue, thanks for the recommendation!
@DjHamoun
@DjHamoun 6 років тому
Hey, I am using the nodeMCU 1.0 - and followed everything you said to the max. Has this procedure been updated? Can you help me!!
@datasith
@datasith 6 років тому
This procedure still works for us, thanks for watching!
@nelsondarwinpaktech3954
@nelsondarwinpaktech3954 6 років тому
good buddy
@datasith
@datasith 6 років тому
Thank you!
@sausage5849
@sausage5849 5 років тому
TenFour
@shakirmahmood4319
@shakirmahmood4319 6 років тому
This is so helpful ... Cleared all my ambiguities ... Thankyou alot :) but i have one issue web page of cayenne does not update on uploading the code kindly help me :)
@datasith
@datasith 6 років тому
Follow the video step by step and it'll work :)
@vtech8716
@vtech8716 7 років тому
Thanks, very good. But when I am install Cayenne Android app there is no my device ESP8266-MQTT, realy no synchronization between App and WEB dashboard?
@datasith
@datasith 7 років тому
Heya! Yup both dashboards should be synced. Double-check you're using the same account credentials!
@vtech8716
@vtech8716 7 років тому
I used the same account credentials and I think it is problem of Android Cayenne app, application represent mi only ability to add Raspberry Pi or Arduino device.
@qbanguy7
@qbanguy7 7 років тому
The Android app does not support MQTT devices yet.
@zumocebazc2169
@zumocebazc2169 6 років тому
Thanks for the great explanations I have taken it to the practice and despite the clumsiness that I consider I have managed to even increase the number of led to control. As I have cayenne user from a smarphone sometimes the synchronism with the same user from the web of cayenne fails Regarding the temperature probe (which I have also achieved) would it be possible to do the same but with the DS18B20 probes? I tried it but no positive result Does anyone who dominates the subject could help me or provide the code for this probe and that is compatible with the code of this presentation?
@datasith
@datasith 6 років тому
Yes it would be possible to do with the DS18B20 probes, good luck!
@zumocebazc2169
@zumocebazc2169 6 років тому
By the way, I've used a Wemos D1 card that already comes with the ESP8266
@datasith
@datasith 6 років тому
Awesome!
@DimiEG
@DimiEG 4 роки тому
How about MicroPython for esp8266? I saw only two videos from you about. I tested and MicroPython is interesting and very fast to develop. Many libraries also exists. Will wait for your nice videos!
@datasith
@datasith 4 роки тому
Yup, it's high on my to-do list to crank out more MicroPython vids. Thanks for the kind comment. Stay tuned!
@adensalim97
@adensalim97 5 років тому
how to control the led with a physical push button too?
@datasith
@datasith 5 років тому
Add the code (digitalRead) to read the input from the button. Thanks for watching!
@brunopedro3765
@brunopedro3765 4 роки тому
Hello, I’m using a SBC-ESP8266 with a ESP8266 PROG module. I did everything, but the device does not connect to cayenne. Can you help?
@datasith
@datasith 4 роки тому
Hey, Bruno. The code is not hardware dependent, any ESPx board or device with a Wi-Fi connection will work as long as you query the API properly. Sometimes the Cayenne service is faulty, so if you're sure the code is working properly, give it a little time and try again. HTH!
@farizwijayanto5863
@farizwijayanto5863 6 років тому
Great channel..., can u help me, to giving another tutorial like controlling relay with making more button in cayenne use nodemcu 12E I will make more switch button on/off on cayenne and use nodemcu for my project Please...
@datasith
@datasith 6 років тому
Hi, Fariz! Thanks for checking out our video. No worries on the language (it's awesome you know more than 1!). You should be able to follow the same steps on this video to use a button. We are working on other videos at the moment, but we'll definitely add your request to our queue! In the meantime, you can try asking for help in their forums: community.mydevices.com/ Thanks again for watching!
@farizwijayanto5863
@farizwijayanto5863 6 років тому
Ok i understand, then its work, thank u so much do you have tutorial, how to send data from nodemcu to php web server like xampp ? Did you have an email mr ? I'll do communicate with u and i have more question Ill do learn more
@datasith
@datasith 6 років тому
Hi! We have a few of tutorials on how to program the ESP8266 as a Web Client. For example, accessing an API (ukposts.info/have/v-deo/cKiim5qPraRk2qs.html). You'll need to adjust it to your specific case, but hopefully you find it useful! We are a small company, at the moment we don't have the time to help our awesome UKposts community, our email service is for providing support to customers who have trouble with our products. Hopefully in the future we will! Best of luck with your projects!
@kumareshj7741
@kumareshj7741 6 років тому
how to get live location?? using nodemcu and bylnk r other platform
@datasith
@datasith 6 років тому
This isn't covered yet in our tutorials, we'll add how to do it to our queue. Thanks for watching!
@donvukovic
@donvukovic 4 роки тому
Would you make a video about ESP8266 client to a Raspberry Pi Access Point web server. Thank You
@datasith
@datasith 4 роки тому
I'll add it to the list, Donald. Thanks so much for the suggestion!
@seledwin
@seledwin 6 років тому
Thank you!!!!!!!!! Great Explanation... Is it possible to give a tutorial to connect a webcam or a JPEG camera with ESP8266!. Because I think no one can explain as clear as you explain :)
@datasith
@datasith 6 років тому
Thanks for the kind words, Edwin! We'll add this topic to our queue!
@seledwin
@seledwin 6 років тому
Thanks for adding my request in to your queue..!! My students are very much eager to do a project on their exhibition.. I tried my best to find a solution but unfortunately Its difficult for me.. If I am lucky I may get it earlier.. anyway let me pray... :)
@sindioktaviani7260
@sindioktaviani7260 6 років тому
"no data available for this period" when trying to make a line graph, even though the sensor data is stored on the same channel number with the channel number that I subscribed to line graph. could you help me?
@datasith
@datasith 6 років тому
Are you sure the sensor data is available? Print it out to the Serial Monitor to make sure. If everything's okay and you think the problem is on the server end, try running your question by the Cayenne support team, they're great!
@denissalaev2893
@denissalaev2893 7 років тому
Hi) It's awesome!) I tried to make remote control for my NodeMcu with Firebase library, and i made frontend panel on angular-firebase, but your way easier and better) Do you have this code on github?
@datasith
@datasith 7 років тому
Yup, check the link on the description of the video! We're glad you liked it!
@albertolopezmagana3072
@albertolopezmagana3072 6 років тому
Im having problems with the connection, my nodemcu disconnects a few seconds after establishing contact with Cayenne. I've reset it many times. Do you know what is happening?
@datasith
@datasith 6 років тому
Try adding a delay in your loop function, if you make too many requests in a short period of time it might cause the device to be disconnected. Thanks for watching!
@zumocebazc2169
@zumocebazc2169 6 років тому
Another problem I have found is that from the web cayenne allows me to create and modify triggers, but when trying from the smarphonte gives me the error message "one or more of the devices associated with this trigger is unavailable" Am I doing something wrong or is there any solution?
@datasith
@datasith 6 років тому
Hmm, strange. Have you run this by the Cayenne support team?
@mohammedazeez6389
@mohammedazeez6389 5 років тому
How you can make a 2 or more esp8266-12e communicate with each other through caynne dashboard...using MQTT.
@datasith
@datasith 5 років тому
I haven't tried this, but it's a great idea for a follow-up video. I'll add it to the queue!
@javiersalazarcastro9188
@javiersalazarcastro9188 4 роки тому
@@datasith great tutorial! Is there a way to not use dashboard to activate output in another device connected? I do not want to use “…CAYENNE_IN()…// get value sent from dashboard”, but I want that depending on the input data of a device an output is triggered on another device, both are in different network. For example, input in one node …pushButton/Emergency Alarm --Cloud-> Cayenne -->Cloud-> Output(in other device) Activate a relay for Alarm horn. Thanks in advance.
@datasith
@datasith 4 роки тому
@@javiersalazarcastro9188 it gets tricky using these type of "packaged solutions" whenever you want to do custom stuff. I have a video for setting up your own Cayenne-like environment, where it's harder to set up, but it's easier to do custom tasks like the one you mention: ukposts.info/have/v-deo/pKSWe4epkGuK1mg.html
@javiersalazarcastro9188
@javiersalazarcastro9188 4 роки тому
@@datasith Thank you. Check your link, it is a good solution for when you can have a PC or your own server always on. But in this case I wanted to use some free server / service in the cloud like Canneye. Thanks anyway.
@safrijulfahreza391
@safrijulfahreza391 6 років тому
hey, i followed everything you said, but when i compile the program it show error message like this "Error compiling for board NodeMCU 1.0 (ESP-12E Module)." can you help me please
@datasith
@datasith 6 років тому
Sorry, we can't reproduce the error on our end, make sure you follow the steps closely. Good luck!
@safrijulfahreza391
@safrijulfahreza391 6 років тому
never mind dude i have already found the problem, awesome video btw
@datasith
@datasith 6 років тому
Glad to hear!
@nishiter
@nishiter 7 років тому
in my port option it shows COM6 and not any option as available in your IDE..why is so?
@datasith
@datasith 7 років тому
Ports COM3 through COM5 have been assigned to other devices already by your system. The difference in terms of the name COM# comes from using Windows vs. OS X as an operating system. Thanks for watching!
@nishiter
@nishiter 7 років тому
so thats normal? i can upload thru com5?
@datasith
@datasith 7 років тому
Yup!
@federale994
@federale994 7 років тому
i can't see the "Add new" tab on the left of the dashboard, any suggestion?
@emlincharly
@emlincharly 7 років тому
Same
@datasith
@datasith 7 років тому
Hmm, we checked it today and it's working. Maybe try a different browser?
@flaviunistor2927
@flaviunistor2927 5 років тому
Hello, I was able to connect and control my ESP8266 but only from the same network (under some router). If I try from the Android phone using the mobile data I can't reach the device any more. WHat do I have to do to make it work?
@datasith
@datasith 5 років тому
Follow the instructions of this video. The easiest way is to use a 3rd party app like Cayenne. I'm going to be making a series of videos with other options soon. Stay tuned!
@flaviunistor2927
@flaviunistor2927 5 років тому
Hi, I already followed the video and used Cayenne. Under the same network all works perfect, but if I switch off my wifi from the phone (to be outside the network) than ESP8266 is not responding to the cayenne buttons. Maybe my router is blocking the communication!?
@datasith
@datasith 5 років тому
Hmm, that is strange. As long as your phone is able to access the Cayenne page, and the ESP8266 has access to the internet (via your router), then it should work. To track down the problem, using Serial.print() statements to figure out if the ESP8266 is operating correctly. Let me know if you need an example how to do this.
@flaviunistor2927
@flaviunistor2927 5 років тому
So I was able to find the problem. From a remote PC (using a browser) it worked perfect. The problem is with the mobile Android app. First I was connected at the same wifi and I was able to control the ESP, after which I disabled my wifi, and having the phone connected via 4G did not work any more to control the ESP. This was solved by closing the app and restarted directly while phone was on 4G. The problem is both ways, so if you switch you phone connection you must always restart the app. Thanks for the help.
@datasith
@datasith 5 років тому
Thanks for the follow up. I haven't used the Android app, but I had heard this from another commenter-sorry it didn't immediately come to mind. I'm glad you got it sorted out!
@juhopeltola3993
@juhopeltola3993 4 роки тому
This is the best, but mine doesn't still work in 4g just wifi. I can't get around that.
@datasith
@datasith 4 роки тому
First do a simple test with the ESP8266 connecting to the mobile hotspot, and make sure that the connection is working properly. It sounds like it isn't!
@hathyogi
@hathyogi 5 років тому
I made a project with two relays , a dht22 and a mq135 , it is working for three or four times I press the relay button via web-browser on my laptop then buttons not work until I refresh the page , can someone help to overcome it . And also there is no response through cayenne android app . Plese help.
@datasith
@datasith 4 роки тому
Hmm, it seems to be on the Cayenne side of things, in that case it's a little tricky to solve. Have a look at my video where I show you how to build your own (much simpler) version of Cayenne! ukposts.info/have/v-deo/pKSWe4epkGuK1mg.html
@konotsupade
@konotsupade 5 років тому
Hey how to connect to google assistant with webhook?
@datasith
@datasith 5 років тому
google.com
@konotsupade
@konotsupade 5 років тому
I can't Find it
@datasith
@datasith 5 років тому
Ok.
@nguyenjohnofficial9757
@nguyenjohnofficial9757 3 роки тому
i dont connecting it. "D2 was not declared in this scope"
@datasith
@datasith 3 роки тому
Sorry the Arduino IDE changed some things for ESP8266. D2 is GPIO4 on a WeMos D1 mini, try using 4 instead of D2. The number will be different depending on your board!
@saadsiddiqui870
@saadsiddiqui870 6 років тому
Good evening bro. Can you just help me out to send data from arduino serial monitor to cayenne using nodeMCU and arduino uno or arduino mega. Plz rep me asap as i am ambiguous in stated problem. thankyou
@datasith
@datasith 6 років тому
Why do you need the Serial Monitor? The data that's being sent to it using Seria.print(data) can be sent directly to Cayenne as shown in this video.
@saadsiddiqui870
@saadsiddiqui870 6 років тому
ACROBOTIC bro i am reading data from energy meter using modbus protocol with the help of rs485 cable. I wonder how could i send data from arduino mega's serial monitor to cayenne using nodemcu. In this video you are transmitting data by using esp only. If you can help me in this matter and vigilant my problem i'll extremely grateful to you 😊
@datasith
@datasith 6 років тому
Cool project! There are a few ways in which this can be done, but I'll outline the most straight-forward solution that I can think of. You need 2 separate Arduino files, the one you're loading to the Arduino Mega, and another one to load to the ESP8266. You can use 3 different communication methods to send the data collected by the Arduino Mega to the ESP8266: I2C, SPI, Serial UART. I vote for I2C. Currently, your Arduino Mega file contains "Serial.print()" commands that send the data to the Serial Monitor. You need to add "Wire.write()" commands (and everything necessary) to *send* the data over I2C. In the ESP8266 file you need to add everything necessary to *receive* data over I2C. In the ESP8266 file, once you receive the data over I2C, you can connect to the web and send the data to Cayenne using what's shown in this video. Start by looking at examples for communication between two Arduinos using I2C. HTH!
@saadsiddiqui870
@saadsiddiqui870 6 років тому
ACROBOTIC thankyou so much. I will take fresh start
@jmcastro1124
@jmcastro1124 5 років тому
Great video I would like to ask a question: I need to take information from several analog sensors and I need to use an arduino Mega. How can I send the information of the reading of these sensors to my module ESP8266 (via WIFI), upload them to an IOT server? Could you give me an example? I have tried it in several ways without success. Greetings from Spain.
@datasith
@datasith 5 років тому
Hey, JM! So I have a suggestion before answering your question. It sounds like you're using the Arduino Mega because you need more analog inputs than the 1 available on the ESP8266. If that's the case, then you can use an expander board like this one amzn.to/2mMvZ8R. You connect it to 2 pins (+ Power/GND) on the ESP8266, and now you have an easy way to read your analog sensors with only one microcontroller board. Now, to answer your original question, you can connect the Mega and the ESP8266 over Serial UART (Tx -> Rx, and Rx -> Tx), and use: Serial.write(data) on the Mega Serial.read() on the ESP8266 To then upload the data to the IoT server. I know this is a very short explanation, so feel free to ask me any additional questions. Best of luck!
@fernandocardosoivalefci7488
@fernandocardosoivalefci7488 3 роки тому
where is the complete code
@franscornel6734
@franscornel6734 6 років тому
Why took so long connect to my board? after upload skecth.
@datasith
@datasith 6 років тому
¯\ _ (ツ) _ /¯
@dalwindersingh9455
@dalwindersingh9455 7 років тому
Wonderful This is the way of teaching Can we send email on trigger? I will be thankful
@datasith
@datasith 7 років тому
Yup you can, go down the options for the "Then" part of the trigger!
@dalwindersingh9455
@dalwindersingh9455 7 років тому
Thanks
@mukhtar_h
@mukhtar_h 5 років тому
Hi. I want to upload the ECG sensor data (ECG sensor is AD8232) taken through the Arduino board, i want to successfully transmit that ECG sensor data using the ESP8266 wifi module or by using the Bluetooth module. Now, the main issue is that i want to upload the Sensor's data using the ESP8266 or bluetooth, over a server using wifi technique onto a website called 'Thingspeak' or the website which you showed in your video called 'Cayenne'. Can you provide me with a proper code which successfully reads the ECG sensor AD8232 data using Arduino board then, after reading the ECG sensor's data, the ESP8266 wifi module or any bluetooth module successfully transmits that ECG sensor data taken through the Arduino board + AD8232 sensor, onto a website such as 'Thingspeak' or 'Cayenne' over a web server. And, finally display the ECG sensor data in Graphical form in Real Time. Can you also clarify me should i use "ESP8266 wifi module" or "NodeMCU ESP8266 wifi module". What's the main difference between "ESP8266 wifi module" & "NodeMCU ESP8266 wifi module". Also clarify me how a webserver can be created using ESP8266 wifi module or any bluetooth module using Arduino microcontroller to upload ECG sensor's data on a webpage like 'Thingspeak' or 'Cayenne'. I shall be very thankful if you can provide me with proper Wifi code & webserver page code for, uploading the ECG sensor data in real time onto the website & successfully displaying that data in Graphical form.
@mukhtar_h
@mukhtar_h 5 років тому
Here is information regarding AD8232 ECG sensor .... learn.sparkfun.com/tutorials/ad8232-heart-rate-monitor-hookup-guide I really need your reply regarding the ECG sensor data, displaying it in real time, & plotting that data in Graphical form in real time using a web server onto a page like 'Thingspeak' or 'Cayenne'. Thanks !
@datasith
@datasith 5 років тому
As you can imagine, with over 11000 subscribers on my channel, I can't help everyone with their projects (for free). If you have specific questions, I'll gladly point you in the right direction. If you'd like to hire a developer to write code for you, you can send a business inquiry to support@acrobotic.com. Than you for your understanding.
@kushagraasthana532
@kushagraasthana532 4 роки тому
I think this one has a misleading title. You mentioned Arduino in the title where actually you are using a nodemcu.
@datasith
@datasith 4 роки тому
And what's the name of the software used to program the NodeMCU board? I suggest you become familiar with a subject before correcting people.
@kushagraasthana532
@kushagraasthana532 4 роки тому
@@datasith Well, then you should correct the name from the title to Arduino IDE. Arduino is generally referred to as the microcontroller. The title seems like you are going to use Arduino microcontroller with ESP8266 WiFi module, because that's what I wanted to see. And yes, I am an electronics engineer and pretty much familiar with microcontrollers. So, better not judge. And obviously, no offense meant brother.
@datasith
@datasith 4 роки тому
@@kushagraasthana532 lol, no offense taken. Fyi, you keep making it worse and simply showing your ignorance. "Arduino" is just the name of the company. Any microcontroller or SoC included in their hardware are of a different brand (e.g., ARM, Atmel/Microchip). The development boards that carry those IC are called "UNO", "Mega", etc. You interpreted something different from the title and that's on you. So, as I said before, please try to educate yourself before trying to correct other people on a particular subject. Just some advise that you're welcome to take or not.
@kushagraasthana532
@kushagraasthana532 4 роки тому
@@datasith I said generally referred, not specifically. Anyways, the place where I studied and worked, referred Arduino to the microcontroller and not the IDE. I would say that's my bad. Also, I wanted to ask if it is possible to use esp8266 module with Arduino without using AT commands. Like directly using WiFiClient library as in nodemcu.
@datasith
@datasith 4 роки тому
@@kushagraasthana532 yes it is possible to have your own firmware running on the ESP8266 SoC instead of the AT commands. You'll need to install the USB drivers needed for the specific USB-to-Serial UART chip on whichever board you're using. Then you can use the Arduino IDE to write the code and load it onto the ESP8266.
@jiandrew6471
@jiandrew6471 6 років тому
Arduino: 1.6.8 (Windows 8.1), Board: "Arduino/Genuino Uno" In file included from C:\Users\Raymond Raymundo\Desktop\mydevices_mqtt\mydevices_mqtt.ino:1:0: C:\Users\Raymond Raymundo\Documents\Arduino\libraries\Cayenne-MQTT-ESP8266-master\src/CayenneMQTTESP8266.h:21:25: fatal error: ESP8266WiFi.h: No such file or directory #include ^ compilation terminated. exit status 1 Error compiling for board Arduino/Genuino Uno. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
@datasith
@datasith 6 років тому
Make sure you choose the correct board. Thanks for watching!
@prashantdesai79
@prashantdesai79 6 років тому
Raja narasimha
@datasith
@datasith 6 років тому
Yes.
@GhassanYousif
@GhassanYousif 7 років тому
Nice video how ever, i would like to ask how to add a second digital channel, i have tried to add a second wone like CAYENNE_IN(0) { digitalWrite(2, !getValue.asInt()); } CAYENNE_IN(1) { digitalWrite(D0, !getValue.asInt()); } but it didnt work :(
@datasith
@datasith 7 років тому
Make sure channel 1 is not being used by another device on Cayenne. Also, make sure the correct channel is selected on the Dashboard :)
@eng.aljobury5087
@eng.aljobury5087 6 років тому
I used DHT11 and it's not work not give me any value
@datasith
@datasith 6 років тому
Check the DHT11 through the Serial Monitor first.
@HoangNguyen-lu5pq
@HoangNguyen-lu5pq 6 років тому
you should check DHT11 in terminal of IDE before
@eng.aljobury5087
@eng.aljobury5087 6 років тому
Hoang Nguyen thank u
@eng.aljobury5087
@eng.aljobury5087 6 років тому
ACROBOTIC thank u
@pablocornejo2543
@pablocornejo2543 6 років тому
I'm trying to follow the same steps to connect to cayenne with Arduino UNO and my ESP8266-01, and it give me the following error: #include I can't find that library. Is it ok to follow the same steps to work with Arduino UNO and ESP8266-01 to connect to cayenne? Thanks!!
@datasith
@datasith 6 років тому
Hey, Pablo. Try following our video for getting started with ESP8266 where we show how to get the libraries. Also, remember that all the code can go directly into the ESP8266, the only reason you'd need an Arduino is to use it as a USB-to-Serial adapter to load the code into your ESP8266-01. Good luck!
@pablocornejo2543
@pablocornejo2543 6 років тому
I tried to do it directly into the ESP8266-01 but I couldn't, I don't know why. I went to "learn.acrobotic.com/tutorials/..." but I couldn't see the video for getting started with ESP8266. Do you have the link, please? This is getting me disapoint, and I would work with cayenne. Thanks!!
@pablocornejo2543
@pablocornejo2543 6 років тому
Have you got any video explaining how to connect ESP8266-01 to cayenne? Thanks!
@datasith
@datasith 6 років тому
We don't have an ESP8266-01 at the moment. A friendly comment is that you need a bit of patience when tinkering with electronics. We fixed an error on our servers and you can now access the tutorials (some images still need fixing): learn.acrobotic.com/tutorials/post/esp8266-getting-started
@pablocornejo2543
@pablocornejo2543 6 років тому
Hello! I'm here again. I could continue with ESP8266-01, and make some program on it. Now I'm trying to connect to cayenne, but I'm having the next error: In file included from C:\Users\pablo\OneDrive\Documentos\Arduino\libraries\Cayenne-MQTT-ESP-master\src/CayenneMQTTESP8266.h:21:0, from C:\Users\pablo\OneDrive\Documentos\Arduino\libraries\Cayenne-MQTT-ESP-master\examples\ESP8266\ESP8266.ino:6: C:\Users\pablo\OneDrive\Documentos\Arduino\libraries\Cayenne-MQTT-ESP-master\src/ESP8266WiFi.h:28:36: fatal error: include/wl_definitions.h: No such file or directory #include "include/wl_definitions.h" ^ compilation terminated. exit status 1 Error compilando para la tarjeta Generic ESP8266 Module. I can't find the "include/wl_definitions.h" libraries. Can you help me please? Thanks!!
Китайка и Мармеладный Лего😂😆
00:19
KITAYSKAYA ZMEYKA
Переглядів 2,1 млн
Військовослужбовці ЗСУ проводять оповіщення в Полтаві
00:32
MQTT Broker/Bridge on the ESP8266
17:28
Martin Ger
Переглядів 81 тис.
2 new chips that give me hope for Windows on ARM
10:48
The Friday Checkout
Переглядів 39 тис.
ESP8266 + Arduino + database - Control Anything from Anywhere
13:51
Electronoobs
Переглядів 615 тис.
The Cheapest Microcontroller? Getting started with the 10 cent Puya PY32.
21:36
Why Doesn’t Everyone Use This Animation???
23:59
Theo - t3․gg
Переглядів 46 тис.
How to get a message from a developer? #standoff #system #scam
0:53
Standoff 2 Live
Переглядів 501 тис.
СЛОМАЛСЯ ПК ЗА 2000$🤬
0:59
Корнеич
Переглядів 711 тис.
Зачем вы показываете ноутбук в аэропорту?✈️
0:29
How to get a message from a developer? #standoff #system #scam
0:53
Standoff 2 Live
Переглядів 501 тис.