IOT with Arduino IDE and ESP Rainmaker (ESP32, ESP32-S2, ESP32-C3)

Поділитися
Вставка
  • Опубліковано 16 вер 2024

КОМЕНТАРІ • 93

  • @maicod
    @maicod 3 роки тому +2

    very entising to try out but I need to finish some 'projects' first. The 'switch' and 'fan' are toggled pins on the ESP32 like you show with the LED in the start of the video ?

    • @Magic-Smoke
      @Magic-Smoke  3 роки тому +1

      Hey Maico - I have so many projects to finish but this was pretty exciting for me. Really Rainmaker is just mapping the name of a device to each pin so with one ESP32 you can control many devices. But you can also read information - for example, a battery voltage. The you have the information so you can decide whether you should turn a device on or off. Of course, you can also use a port expander like the MCP 23017 and run dozens of devices :)

    • @maicod
      @maicod 3 роки тому +1

      @@Magic-Smoke I got the gist of why using rainmaker better now. Thanks John !

    • @Magic-Smoke
      @Magic-Smoke  3 роки тому +1

      @@maicod I will be producing a few more practical examples in the next few videos so keep you're eyes open :) - and get your projects finished so you can join the fun :)

    • @maicod
      @maicod 3 роки тому +1

      @@Magic-Smoke LOL ok I'll check out the upcoming vids !

  • @TheEmbeddedHobbyist
    @TheEmbeddedHobbyist 3 роки тому +2

    No No No, I was hopping the rain would stop. :-) looked what happened last time. Sorry John, just sitting down to watch. well have now watched and it looks like I might have to have a go. great video John, got to go looks like i'll be needing a new umbrella ;-)

    • @Magic-Smoke
      @Magic-Smoke  3 роки тому

      lol! Its pretty good! There is an updated version of Rainmaker in the master branch but you can't use the boards manager to install it. It also has more examples. Let me know what you make :)

  • @PaulineOtt
    @PaulineOtt 9 місяців тому +2

    2:08 Hello, which example do you use?

  • @MPElectronique
    @MPElectronique 2 роки тому +1

    Thank you for the solution... :)

  • @hasstv9393
    @hasstv9393 Рік тому +1

    I'm getting - Claiming failed with error: claim init failed
    i'm using ESP32 Dev Kit v1

    • @Magic-Smoke
      @Magic-Smoke  Рік тому

      So, i would start by doing a wifi reset by holding down gpio0 for more than 3 seconds or a factory reset by holding it down for 10S

    • @hasstv9393
      @hasstv9393 Рік тому +1

      @@Magic-Smoke I did same you told. But still getting same error in app.
      Claiming failed with error : Claim init failed
      error in the app, after scanning the qr code. it never happened before.

    • @Magic-Smoke
      @Magic-Smoke  Рік тому +1

      @@hasstv9393 You could try manual claiming instead of scanning the QR code. Also check that your phone is paired properly with the ESP32. Perhaps unpair the esp32 before you try again?

    • @hasstv9393
      @hasstv9393 Рік тому +1

      @@Magic-Smoke Bro i did everything as you suggest, But nothing working 😓 i don't know what i need to do. already purchased 10 pcb for this project.🥲

    • @Magic-Smoke
      @Magic-Smoke  Рік тому

      @@hasstv9393 Well, its back to basics to find the problem then. e.g. get a known good dev board and load one of the examples. Do a full reset with the gpio0). Try using a different wifi network, phone etc. We know rainmaker works - make a new account with a different email too. Just in case. Try one thing at a time.

  • @DustinWatts
    @DustinWatts 3 роки тому +1

    Very useful video! I'm curious about the voice integration!

    • @Magic-Smoke
      @Magic-Smoke  3 роки тому

      I hope to have a video on that pretty soon, Dustin. I have Google Home but no Alexa at the moment so I need to get one! I'm also hopeful that some other enhancements will be moved into the Alpha distro in the next week or two. I'll let you know when that happens.

  • @yusufceyhan7628
    @yusufceyhan7628 2 роки тому +1

    I can't find the code we uploaded to esp32 in the examples. Pls help.

    • @Magic-Smoke
      @Magic-Smoke  2 роки тому

      I would start with a simple example - the Rainmaker Switch example which is installed with the Arduino ESP32 boards etc

  • @profDavidramirez
    @profDavidramirez 29 днів тому +1

    Hi, i need the program, please

  • @zoonvanhetuni7993
    @zoonvanhetuni7993 2 роки тому +1

    👏

  • @TOMTOM-nh3nl
    @TOMTOM-nh3nl 3 роки тому +1

    Thank You

    • @Magic-Smoke
      @Magic-Smoke  3 роки тому +1

      Most welcome Tom. Let me know what you make :)

  • @biezom9418
    @biezom9418 Рік тому +1

    SIR ....how to fix this error :
    E (70287) esp_rmaker_node_config: Buffer size 2048 not sufficient for Node Config.
    E (70287) esp_rmaker_node_config: Could not get node configuration for reporting to cloud
    E (70291) esp_rmaker_core: Report node config failed.
    E (70296) esp_rmaker_core: Aborting!!!

    • @Magic-Smoke
      @Magic-Smoke  Рік тому

      Hard to say really without a lot more information

  • @ajciccone88
    @ajciccone88 Рік тому +1

    Thanks for the video, I'm trying to find a solution to monitor the soil moisture and water levels and run a pump for a project I'm working on. I'm wondering what the limitations to rainmaker is? Could I have 3-4 projects for free? Can I share my "app" with someone else? What's the data retention for it?
    I'm not seeing many things on rainmaker but from what I do see it looks like a good alternative to the arduino iot cloud or blynk

    • @Magic-Smoke
      @Magic-Smoke  Рік тому +1

      @tadcrazio I'm glad you enjoyed the video. If you take a look at the concepts in this video: ua-cam.com/video/Ta9dwDD9GyA/v-deo.html then you can definitely achieve what you want to quite easily. For example, create a Rainmaker Bridge for all the devices in your project and use a tool like Node Red to read the MQTT messages and store them in a database like Influx DB. You might then display the data on a nice dashboard in Grafana? You could also then do some pump automations in Node Red and feed back the pump status in Rainmaker so you can view what is going on from anywhere at a glance

    • @ajciccone88
      @ajciccone88 Рік тому +1

      @@Magic-Smoke thanks John, while I do intend to use MQTT in the future with home assistant, right now I'm just trying to see what rainmaker can do for me on a free tier. Atleast, until raspberry Pi's become easier to get my hands on at non-extortionate rates.

    • @Magic-Smoke
      @Magic-Smoke  Рік тому

      @@ajciccone88 I can see that :) Bear in mind also that you can run HA on an old laptop or the like - pretty much anything. Good Luck :)

  • @alvi3166
    @alvi3166 2 роки тому +1

    Thanks for the video. I have an issue with the device not popping up with iPhone. I tried an EG with CLI idf and it works. However, when i tried with Arduino, no device is showing in the App to pair. When i use the Barcode, it gives error with prefix. I can see the prov name with my computer Bluetooth, not the iPhone. Thanks again.

    • @Magic-Smoke
      @Magic-Smoke  2 роки тому

      I have heard of this happening with someone else. I would raise as an issue on GitHub. Hopefully they will resolve it although I have an issue outstanding for many months now.

  • @r.p3reiro
    @r.p3reiro 2 місяці тому

    Thanks for the video. I have an issue when the program is uploaded, the serial prints in loop and i never get the qr, the board is correct , and im uploading the example code from rainmaker
    :
    rst:0x3 (SW_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0xee
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:DIO, clock div:1
    load:0x3fff0030,len:1448
    load:0x40078000,len:14844
    ho 0 tail 12 room 4
    load:0x40080400,len:4
    load:0x40080404,len:3356
    entry 0x4008059c
    ets Jul 29 2019 12:21:46
    any solution for this?

    • @Magic-Smoke
      @Magic-Smoke  2 місяці тому

      Hard to say. I would check you are running the very latest versions of Rainmaker. Its a boot loop so try another device and make sure the power supply is sufficient.

  • @creativemind8573
    @creativemind8573 Рік тому +1

    I’m using Windows 7 (32Bit) I can’t upload the code it shows when I click upload ( erroe to compile the code for ESP32 )
    What should I do please help me

    • @Magic-Smoke
      @Magic-Smoke  Рік тому

      Which example are you trying to compile and what is the error?

    • @creativemind8573
      @creativemind8573 Рік тому

      I have a custom code with is used to control 8 channel relay module with rainmaker configuration but when I upload the code the error will pop up they sed error for compiling the code for esp32

    • @Magic-Smoke
      @Magic-Smoke  Рік тому

      What is the error?

  • @pasinduelectronic1955
    @pasinduelectronic1955 9 місяців тому +1

    Can i use nodemcu bord for that

  • @leonyakin
    @leonyakin Рік тому +1

    ESP Rainmaker Is support base on matter protocol?

    • @Magic-Smoke
      @Magic-Smoke  Рік тому

      I'm not sure exactly what you mean. However, there is a Matter solution for ESP32. Take a look at the Espressif channel - they did a few presentations at the Devcon.

  • @HENRY-cw1ts
    @HENRY-cw1ts Рік тому +1

    Hello Sir, thanks for the video. 😊😊 But I have a question about running the ESP32 Dev Module. Actually, when I uploaded the RMakerSwitch sample code through Arduino, some messages popped up saying that “Failed to allocate memory”, “Device handle cannot be NULL” and “ESP Rainmaker not initialised”. I am not sure what was wrong about my board. 😢 Do you know what was the reason behind?

    • @Magic-Smoke
      @Magic-Smoke  Рік тому

      Did you select the correct partition allocation - Rainmaker?

    • @HENRY-cw1ts
      @HENRY-cw1ts Рік тому +1

      @@Magic-Smoke Yes, I have chosen the partition scheme “Rainmaker”. And I even tried to reset the board to factory setting but it still did not work. I am wondering if it is related to the board malfunctioning, or memory shortage problem.

    • @Magic-Smoke
      @Magic-Smoke  Рік тому +1

      @@HENRY-cw1ts I would try a different board if you have one. Also, flash some different (large) code if you can and see how that works but best try a different board.

    • @HENRY-cw1ts
      @HENRY-cw1ts Рік тому +1

      @@Magic-Smoke Hello Sir, I have successfully solved the problem. However, I have encountered a new problem with the Timer. Actually, when I run the timer, the serial monitor displayed this message to me : "E (6309) esp_rmaker_param: Current time not yet available. Cannot report time series data." What should I do to fix this?

    • @Magic-Smoke
      @Magic-Smoke  Рік тому

      When you say timer, do you mean the scheduler? Possibly the device is unable to get the time from the internet. However this error is drop esp insights - if you are not using insights then it shouldn’t matter

  • @esmaeilalkhazmi
    @esmaeilalkhazmi Рік тому

    E (2131) esp_rmaker_core: Node connected to Wi-Fi without Assisted claiming. Cannot proceed to MQTT connection.
    E (2131) esp_rmaker_core: Please update your phone apps and repeat Wi-Fi provisioning with BLE transport.

    • @Magic-Smoke
      @Magic-Smoke  Рік тому +1

      Without context, I’m not sure I can help. Have you updated the phone app as suggested?

    • @esmaeilalkhazmi
      @esmaeilalkhazmi Рік тому

      @@Magic-Smoke i got this error in my serial monitor .. can u plz help?

    • @esmaeilalkhazmi
      @esmaeilalkhazmi Рік тому

      @@Magic-Smoke I couldn’t get the QR code

    • @Magic-Smoke
      @Magic-Smoke  Рік тому +1

      You’ll need to give me more information. ESP32 type? Code example you are running? Etc etc

    • @Magic-Smoke
      @Magic-Smoke  Рік тому

      So hold down the button connected to gpio(0) for 10 seconds and try again.

  • @elknacer961
    @elknacer961 2 роки тому

    Nice tuto
    is there a way to set temperature value not just show it
    And how we can add custom icons
    From espressif official UA-cam channel they said that u can add device futures without coding
    I can't find that tool

    • @Magic-Smoke
      @Magic-Smoke  2 роки тому +1

      Thanks @elk. Yes you can make the field read and write capable. Check the custom device example or my video on custom devices. I haven't added any custom icons for my application yet

    • @elknacer961
      @elknacer961 2 роки тому

      @@Magic-Smoke Yes your exemple help me ,
      Now how can i enable Local control with arduino IDE ?

  • @madhukeshnp
    @madhukeshnp 2 роки тому +1

    How many devices can we connect under a single account?

    • @Magic-Smoke
      @Magic-Smoke  2 роки тому +1

      I seem to remember that you can have 5 devices for free. I didn't ask how much for more but its a good question. There is an email address on the Rainmaker page that can be used to contact them. Hope that helps :)

    • @madhukeshnp
      @madhukeshnp 2 роки тому +1

      @@Magic-Smoke thank you so much for the quick response.
      But only drawback is when the internet is down the devices won't trigger as scheduled. If there is an api to read what time is set on the app, with little coding we can make the device trigger even when offline.

    • @Magic-Smoke
      @Magic-Smoke  2 роки тому +1

      @@madhukeshnp you know, that's a very good question. I have not tested the local control option that is already there. I wonder if the timer settings are retained?
      rainmaker.espressif.com/docs/local-control.html also this: pub.dev/packages/esp_rainmaker_local_control

    • @madhukeshnp
      @madhukeshnp 2 роки тому +1

      @@Magic-Smoke if can make a tutorial on it that would be really awesome. There are no video on UA-cam that covers this topic. Give it a try. Thank you in advance.

    • @Magic-Smoke
      @Magic-Smoke  2 роки тому +1

      OK - I'll take a look and let you know!

  • @supernovatiger8913
    @supernovatiger8913 2 роки тому

    hello dear , thank you for your efforts , i would ask you if esprainmaker support esp8266 or not?!

  • @odirilefrank1926
    @odirilefrank1926 Рік тому

    how do you resolve this "no wifi connection named(prov_xxxxxx) is picked up from the device by my phones wi-fi scan."

    • @Magic-Smoke
      @Magic-Smoke  Рік тому +1

      The provxxxx is normally a Bluetooth device rather than Wi-Fi. When I have connectivity problems I usually start with a factory reset on the esp device (gpio0)

    • @odirilefgarebabitse2306
      @odirilefgarebabitse2306 Рік тому +2

      Now I get the QR code and Bluetooth gave access, but when submitting the WiFi name and password
      via the Android app I get "failed to associate device". On the ESP RAINMAKER when it is supposed to send WiFi credentials.
      I tried with all example code provided by esp32 Rainmaker for arduino IDE.

    • @Magic-Smoke
      @Magic-Smoke  Рік тому +1

      @@odirilefgarebabitse2306 so you have to make sure that you pair the Android phone to the esp when it asks. My old android phone always asked and sometimes it didn’t work. Reset the esp and if necessary associate them manually

    • @odirilefgarebabitse2306
      @odirilefgarebabitse2306 Рік тому

      @@Magic-Smoke thank you Sir, and I will try manually then.

  • @keomonorom4458
    @keomonorom4458 2 роки тому +1

    Hello sir can you public you source code?
    I need to try with you source code. Because my code error while scanning QR code
    Thank you

    • @Magic-Smoke
      @Magic-Smoke  2 роки тому +1

      Hi Keo - I would use the example code first of all. Please describe the problem you are having - you can also use a manual method to pair the devices. In the bottom of the app, hit "I don't have a QR code" then look for your device in the next screen and let it pair with your phone - enter the "PO" code from the example and it should work.

    • @keomonorom4458
      @keomonorom4458 2 роки тому +1

      I will try thank you

    • @keomonorom4458
      @keomonorom4458 2 роки тому

      @@Magic-Smoke excuse me sir one more problem when i`m changing UI image frome switch image to plug outlet i can not see the power switch button
      thank you sir

    • @Magic-Smoke
      @Magic-Smoke  2 роки тому +1

      @@keomonorom4458 If I recall correctly, the images are set by the type of Rainmaker device that is set up. However, look at the custom example - it shows how to set up a device with many different interface elements such as switch, text etc.

    • @keomonorom4458
      @keomonorom4458 2 роки тому

      @@Magic-Smoke Thank you Sir not working as well

  • @TheCablebill
    @TheCablebill 3 роки тому +1

    Wait, I need an "account"? Why?

    • @Magic-Smoke
      @Magic-Smoke  3 роки тому +2

      Just to keep your data separate from everyone else's 😀. They only ask for an email address. No DNA sample required 😁

    • @TheCablebill
      @TheCablebill 3 роки тому +1

      @@Magic-Smoke there's a "they"? Why do I need a they?

    • @Magic-Smoke
      @Magic-Smoke  3 роки тому +2

      No one needs a 'they' really. You only need a 'they' if you want to use anything that 'they' make because if 'they' didn't make it, it wouldn't exist and you wouldn't know you needed 'them'. Put another way, you wont need anyone if you can do everything for yourself. In the context of the video, you might decide that 'they' are too much trouble - especially if you don't like the idea of an 'account'.

  • @sijo2084
    @sijo2084 2 роки тому

    Will it work without Internet using esp rainmaker mobile app?

    • @Magic-Smoke
      @Magic-Smoke  2 роки тому

      Hello @sijo. The local control option is not available at the moment unless you build your application using ESP-IDF. Then you set the 'local control' option to on in menuconfig

  • @ifyouwantpeaceprepareforwa4329
    @ifyouwantpeaceprepareforwa4329 2 роки тому

    Code Link

    • @Magic-Smoke
      @Magic-Smoke  2 роки тому

      If you are asking for a link to the code I used, its was a standard rainmaker example as at the date of the video. They have been improved. I suggest you start with RmakerSwitch and move on to the Custom Example.