Possible to render Lights example also in ESP32 + components required <SOLVED>

User avatar
fasani
Posts: 195
Joined: Wed Jan 30, 2019 12:00 pm
Location: Barcelona
Contact:

Possible to render Lights example also in ESP32 + components required <SOLVED>

Postby fasani » Thu Jul 01, 2021 9:03 am

Hi there,
I just wanted to ask, we could also update this:
https://github.com/espressif/esp-rainma ... ed/Kconfig

Kconfig file so it's possible to test this in an ESP32 (Even with our own ws2812 led Stripe) right?

Other than that I will be interested in using Rainmaker for WiFi provisioning in some of my projects.
Looking at the CMakeLists file in the common/app_wifi example:

Code: Select all

idf_component_register(SRCS "app_wifi.c"
                    INCLUDE_DIRS "."
                    REQUIRES wifi_provisioning esp_rainmaker qrcode)
we need this two components: esp_rainmaker qrcode (wifi_provisioning is already part of the IDF components)
Or there is more dependencies required?

What I'm missing to integrate this in another projects, it to get a small component as a submodule, that you can simply add and then you are a few steps away to implement it in your own Firmware.
If that is possible to do with the current repository somehow, please let me know what are the steps, so far a very nice project I see a lot of potential on it!
Last edited by fasani on Mon Jul 12, 2021 6:28 pm, edited 1 time in total.
epdiy collaborator | http://fasani.de Fan of Espressif MCUs and electronic design

John__
Posts: 20
Joined: Sun Nov 15, 2015 4:17 am
Contact:

Re: Possible to render Lights example also in ESP32 + components required

Postby John__ » Fri Jul 02, 2021 2:18 am

That's a good idea Martin! I was wondering if you could just modify it and do a PR? :)

ESP_Piyush
Posts: 259
Joined: Wed Feb 20, 2019 7:02 am

Re: Possible to render Lights example also in ESP32 + components required

Postby ESP_Piyush » Fri Jul 02, 2021 6:54 am

Hello,

The first point is simple enough to address.

For the second, I could not really understand the requirement. The ESP RainMaker provisioning is derived directly from the wifi_prov_mgr esp-idf example. Earlier, it indeed depended on esp_rainmaker for the user node association call, but since that logic has changed, it would be safe to remove it from dependencies.

We will make both the changes soon enough. However, let me know if this indeed addresses your query or not.

Regards,
Piyush

User avatar
fasani
Posts: 195
Joined: Wed Jan 30, 2019 12:00 pm
Location: Barcelona
Contact:

Re: Possible to render Lights example also in ESP32 + components required

Postby fasani » Mon Jul 05, 2021 9:41 am

Hi John,

I made a fork and added 2 examples more: https://github.com/martinberlin/esp-rai ... r/examples
  • led_strip (Video-proof)
  • servo_control very simple angle control for a servo (To use in Robotics or anything alike)
Not sure if I will make a PR since I modified the Led component to return back a led_strip_t pointer instead of an esp_err status. It still compiles good for both examples, but was mostly a quick'n dirty fix to make the Led stripe work without modifying too much the original example. Only if there is real interest I will make it nice and make a PR, but my plan so far is to add more examples that can be used with Rainmaker (Servos, maybe stepper engines, and other things)

It would be very nice to be able to add a more wide variety of UX elements such as:
- simple push buttons (Execute something once)
- Custom switches
- Dropdowns (Select type)
- Maybe even a text area so it's possible to type something and we can read it from ESP32 (URL to a file, and then we can download that image/text into a display)

There is a lot more possibilities to control stuff like this but it is going in a good direction and is already usable for many things like Home-automation.

Piyush great looking forward for the updates. I will try to add to one of my existing projects and if I get blocked I will let you know.
Last edited by fasani on Mon Jul 05, 2021 3:16 pm, edited 1 time in total.
epdiy collaborator | http://fasani.de Fan of Espressif MCUs and electronic design

User avatar
fasani
Posts: 195
Joined: Wed Jan 30, 2019 12:00 pm
Location: Barcelona
Contact:

Re: Possible to render Lights example also in ESP32 + components required

Postby fasani » Mon Jul 05, 2021 2:19 pm

ESP_Piyush wrote:
Fri Jul 02, 2021 6:54 am
For the second, I could not really understand the requirement. The ESP RainMaker provisioning is derived directly from the wifi_prov_mgr esp-idf example.
What I meant is:
How I can add Rainmaker to an existing project that does not have WiFi provisioning?

Is possible to add directly the whole https://github.com/espressif/esp-rainmaker as a git submodule?
Because I started differently and I wanted to add as little components as possible but I ended up having a require:

Code: Select all

idf_component_register(SRCS ${srcs}      
                    REQUIRES  qrcode esp_rainmaker 
                    )
And I had to add also as a components:
esp_schedule json_generator json_parser

plus the rmaker_common as a submodule:
git submodule add https://github.com/espressif/esp-rainmaker-common.git components/rmaker_common


Maybe you can point me to a project that implements the WiFi provisioning with Rainmaker from an external repository. I just want to see what is the best way to add this to an existing project that never used WiFi provisioning or Rainmaker before.

UPDATE: Got it working adding components separately following the esp_rainmaker repository
https://github.com/martinberlin/cale-id ... components
If someone wants to see how it is integrated in an existing Firmware check Issue 42
epdiy collaborator | http://fasani.de Fan of Espressif MCUs and electronic design

John__
Posts: 20
Joined: Sun Nov 15, 2015 4:17 am
Contact:

Re: Possible to render Lights example also in ESP32 + components required

Postby John__ » Fri Jul 09, 2021 5:41 am

Hello Martin,

Good work - you're going faster than me. Regarding the UI elements, I'm expecting something new quite soon: https://github.com/espressif/esp-rainmaker/issues/72

I'll take a look at your examples! I have been doing a few things myself - not as examples but to meet personal needs.

Thanks :)

User avatar
fasani
Posts: 195
Joined: Wed Jan 30, 2019 12:00 pm
Location: Barcelona
Contact:

Re: Possible to render Lights example also in ESP32 + components required

Postby fasani » Fri Jul 09, 2021 5:14 pm

Awesome idea John!
I followed you in Github. My username is: https://github.com/martinberlin

You can also try our ESP-IDF component for epaper in any of the supported eink displays and ESP32 (S2 /C3 also supported)
I'm doing new experiments with ESP32 every week :)
Nice to met you. You are very welcome to try my repositories.
epdiy collaborator | http://fasani.de Fan of Espressif MCUs and electronic design

John__
Posts: 20
Joined: Sun Nov 15, 2015 4:17 am
Contact:

Re: Possible to render Lights example also in ESP32 + components required

Postby John__ » Sat Jul 10, 2021 4:13 am

Good to meet you too Martin! I've done a few videos on Rainmaker and can be found here on Github:

https://www.youtube.com/channel/UC5o7QI ... 612KGJ0EmA
https://github.com/JohnMacrae

Who is online

Users browsing this forum: No registered users and 11 guests