Project

General

Profile

How to control DC motor on webserver?

Added by Hong Phat almost 2 years ago

I can't create a project with engine control on webserver. I need help. Thanks.


Replies (6)

RE: How to control DC motor on webserver? - Added by Parth Maheshwari (พาร์ท) almost 2 years ago

Hello Hong Phat,

Thank you for reaching out.

May I know a few things please?

1) Which Waijung 2 version and license are you using?

2) Are you looking to build a web application to control a DC motor?

Sincere regards,
Parth

RE: How to control DC motor on webserver? - Added by Hong Phat almost 2 years ago

Hello, Parth,
1. My version is 22.12a and license is Waijung 2 for ESP32-Standard-1 Years.
2. Yes of course, I want to build a web application to read the ADC signal and control the DC motor.
I hope you will be able to help me. Thank you.

RE: How to control DC motor on webserver? - Added by Parth Maheshwari (พาร์ท) almost 2 years ago

Hello,

Please check this example out.

We are reading the ADC signal and using it to control the brightness of an LED from the web server. It's similar to what you would like to do but for a different application. The Simulink model file is there for you to download along with the HTML and JS source files for the webpage.

I believe this will help you a lot in understanding how to build a web application to read from & control the ESP32. Please let me know if you have any questions.

Sincere regards,
Parth

RE: How to control DC motor on webserver? - Added by Hong Phat over 1 year ago

Hi Parth,

In this project 10 in User Guide, I wanted to read another ADC signal but when I made it I had an error. It's the Standard license type.

Can you help me fix an error? Thank you.

2.PNG View 2.PNG 35.4 KB
1.PNG View 1.PNG 25.2 KB
3.PNG View 3.PNG 15.7 KB

RE: How to control DC motor on webserver? - Added by Parth Maheshwari (พาร์ท) over 1 year ago

Hello,

This is not an error. For the Standard License type (free), we allow up to six HTTP GET requests. This popup is because you are trying to add in a 7th GET request.

There are multiple solutions to solve this:

1) You are trying Exercise 10 (in red), which already has six HTTP GET requests. You will not be allowed to add any additional GET requests for the Standard License. You may try Project 10 instead (in green), which has five GET requests. You will have the option to add 1 more GET request. The only difference between Project 10 and Exercise 10 is that the parameters are stored in volatile storage in Exercise 10, so when the webpage is refreshed, it starts up with the same settings as before. View

2) If you want to continue using Exercise 10, you may find a way to combine some source files in order to reduce the amount of GET requests. For example, including the .css source file in the .html file.

3) You may request for a Commercial License free trial (30 days). You will then have unlimited GET requests and many other features as shown here for 30 days.

4) You may purchase a Professional/Commercial License if you are interested to use our blockset and need access to full features. Details are in the link

Hope this helps.

Sincere regards,
Parth

RE: How to control DC motor on webserver? - Added by Hong Phat over 1 year ago

Oh, I will try your suggestion. It's very helpful to me. Thank you, Parth.

    (1-6/6)