• 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

ESP32 course: Is there a Servo example that doesn't use Ajax

Q&A Forum › Category: ESP32 › ESP32 course: Is there a Servo example that doesn't use Ajax
0 Vote Up Vote Down
Derek Philip asked 7 years ago

… My network is isolated for now, I wanted to use the slider demo with the servo but that seems to rely on external access. Can it be done without this?
client.println(“<script src=\”https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js\”></script>”);
Thanks
 
Derek

4 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 7 years ago

Hello Derek,

Unfortunately I don’t have any code on that exact subject, but yes, you can remove the Jquery code. Please take a look at lines 126 to 149: https://github.com/RuiSantosdotme/ESP32-Course/blob/master/code/Project_Robot_AP/Project_Robot_AP.ino

That web page also has a slider that control the motor speed, it’s from this Unit: https://rntlab.com/extra-access-point-ap-for-wi-fi-car-robot/

As you can see in that web page, you don’t need JQUERY. If you apply the same concept to the servo, you can control it without that external Jquery source.

I hope that works for you and let me know if you need further help.

Regards,
Rui

0 Vote Up Vote Down
Derek Philip answered 7 years ago

Thanks
I’ll take a look

0 Vote Up Vote Down
Rui Santos Staff answered 7 years ago

Specially take a look at lines 142 to 147: https://github.com/RuiSantosdotme/ESP32-Course/blob/master/code/Project_Robot_AP/Project_Robot_AP.ino

That section is responsible for displaying the slider (input of type range) and it loads the script necessary to send the servo values without having to refresh the web page.

0 Vote Up Vote Down
Derek Philip answered 7 years ago

Hi Rui
Managed to get some sliders working from the code above.
 
Thanks
 
Derek 

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.