• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Alexa connection to ESP32

Q&A Forum › Category: ESP32 › Alexa connection to ESP32
0 Vote Up Vote Down
Ray Leiter asked 3 years ago

Rui or Sara;
Have you used the code in the tutorial in VS Code?
As I have commented twice before in the tutorial pages, I am OK if I used Arduino IDE 1.8.19. (Can’t use Arduino IDE Ver 2 for some reason).
But, Sara has convinced me to use VS Code as my development platform (with PlatformIO) and so far, I have been quite pleased with my experience with VS Code.
I am still exploring the vast quantity of technical material you publish on your web sites — it is mind-bending!
I am learning so much from your courses and tutorials and I’m having lots of fun doing it.
Thanks, as always for your support.
Ray

Question Tags: Alexa ESP32 VS Code
6 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi
No, I didn’t test that code with VS Code.
What are exactly the issues that you get?
Regards,
Sara

0 Vote Up Vote Down
Ray Leiter answered 3 years ago

Sara,
The problem I run into is the FauxmoESP library.
The tutorial shows how to install it in Arduino IDE Ver.1.8.
I was NOT able to get it to work with Arduino V2, although I did get it to work with Arduino 1.8!
Rui told me, (I believe), that the ESP32 is not usable yet in Arduino Ver. 2
So, after I succeeded with Arduino 1.8, I thought I’d use VS Code.
I wasn’t able to successfully install it in VS Code IDE Ver. 1.65 because I couldn’t figure out how to install the library.
The #include “fauxmoESP.h” statement fails.
I think all I need is the correct line in the “platform.ini” file (something like this “lib_deps = ESP Async Webserver”?
I’m not sure what to put in the place of the string “ESP Async Webserver” for the fauxmoESP library.
Thanks,
Ray
 

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
The ESP32 is usable with Arduino 2.0. You  can check out tutorial about it here: https://randomnerdtutorials.com/installing-esp32-arduino-ide-2-0/
However, there are some features that are not supported yet, like the filesystem uploader plugin.

To install a library in VS Code, click on the platformio IO home icon. Then, select libraries. Search for the library you want to use. Then, click on the desired library. Click Add to project and select the project you’re working on.
Do that same thing to include the AsyncTCP library.

I hope this helps.

Regards,
Sara

0 Vote Up Vote Down
Ray Leiter answered 3 years ago

Sara,
I did not do a very good job of communicating regarding this issue.
I have no problem using Arduino IDE Ver. 2 with the ESP32 — I’ve done several small projects using Arduino Ver. 2.
My real issue is this: I can’t get VS Code to compile the code for the project I got from this tutorial:
“https://randomnerdtutorials.com/alexa-echo-with-esp32-and-esp8266/”
I did get it to work with Arduino IDE 1.8.
The library I need is downloaded using this link: “https://bitbucket.org/xoseperez/fauxmoesp/get/master.zip”.
After unzipping and renaming, you get this folder (xoseperez_fauxmoesp) which is what is supposed to be installed into VS Code!
THAT is my problem — I don’t know how to install “xoseperez_fauxmoesp” into VS Code!
The normal install of libraries using PlatformIO HOME-> Search yields “No Results”
I should mention this; I don’t have any interest in that portion of the tutorial dealing with anything other than the Alexa Echo device — no relay, no lights or anything else.
My only interest was in seeing what came back from the Echo resulting from my speaking to it things like:
“Alexa turn on light 1”  (light 1 being the device name of that thing I added using the Alexa app.)
To put it simply; How do I install the fauxmoESP library?
Thanks,
Ray

0 Vote Up Vote Down
Ray Leiter answered 3 years ago

Sara,
This is an update on my problem of trying to compile the Alexa ESP32 tutorial code with VS Code.
I managed to install the libraries I needed, and it compiled and ran successfully.
Here is the platformio.ini file resulting from the library install in the “Libraries” tab of the PIO Home page:

Start your code here
[env:esp32doit-devkit-v1]
platform = espressif32
board = esp32doit-devkit-v1
framework = arduino
monitor_speed = 115200
lib_deps =
me-no-dev/AsyncTCP@^1.1.1
vintlabs/FauxmoESP@^3.4

It now works well.
Thanks for your help.
Ray

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Great!
I’m glad you found the solution.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.