• 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

Controlling Audio Volume

Q&A Forum › Category: ESP32 › Controlling Audio Volume
0 Vote Up Vote Down
Shah Rafique asked 3 years ago

Greetings to you
Need help again.
Similar to https://randomnerdtutorials.com/esp32-web-server-spiffs-spi-flash-file-system/, I am thinking to use Select option (in HTML file) to select volume level for the I2C audio card connected to ESP-32. HTML will be located in SPIFFS and user can select desired output level from dropdown list. My challenges are how to pass the selected value in HTML file to the sketch and to serial monitor. And Vise versa. Please help and guide me. Thank you

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

Hi.
 
I think this tutorial is a good starting point: https://randomnerdtutorials.com/esp32-esp8266-input-data-html-form/
You just need to change the type of input field. In this case, we’re using text, in your scenario, you’ll use a drop-down menu.
 
You may also take a look at some slider web servers that might also be useful for your project: https://randomnerdtutorials.com/esp32-web-server-slider-pwm/
 
I hope this helps.
Regards,
Sara

0 Vote Up Vote Down
Shah Rafique answered 3 years ago

Many many thanks Sara for your prompt response. I will go through these suggestions.

0 Vote Up Vote Down
Shah Rafique answered 3 years ago

Thank you very much. After following these two projects, now I can get data from client to serial monitor. Now, please help me on how I can display data in client webpage from serial monitor. I like to use websocket. Thank you again

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

Hi.
First, learn how to read the data from serial monitor. For example: https://www.arduino.cc/reference/en/language/functions/communication/serial/read/
Then, you can take a look at this WebSocket web server example:  https://randomnerdtutorials.com/esp32-websocket-server-arduino/
There is a section in the code that shows how to send data to the client. Take a look at the notifyClients() function.
Regards,
Sara

0 Vote Up Vote Down
Shah Rafique answered 3 years ago

Thank you very much!!!

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.