• 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

Unable to servo control by esp8266 in micropython

Q&A Forum › Category: ESP8266 › Unable to servo control by esp8266 in micropython
0 Vote Up Vote Down
Francesco Scognamiglio asked 5 years ago

Hi! There is in internet a lot of posts about how to control a microservo but they often call arduino software for coding.

If micropython has being used it seems that by only linking the servo ( SG90) three wires to the esp ( Vin, GND, GPIO(xx)) and coding a couple of lines in repl micropython, of course after being flashed on the esp( ie. >>>from machine import Pin,PWM >>>servo = PWM(Pin(14), freq=50)>>>servo.duty(77) ….servo.duty(40)…..servo.duty(115)), I would be able to move and control the servo.

But nothing happens.

Of course I did something wrong .

How is it possible to fix the issue?

Best regards

Francesco

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

Hi Francesco.
I’m sorry you’re having that issue.
Can you share the exact code you’re trying to upload?
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

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition 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.