Giter Club home page Giter Club logo

esp32-servocontroller's Introduction

Servo controller

Project

Components

  • 1 x ESP32-D0WD chip on WiFi Kit 32 board
  • 2 x MG996R servomotors
  • 1 x Nextion display NX8048P070-011C
  • nRF connection application for mobile platform

Application in a nutshell

This scheme illustrates how does PWM signal turns rotor of MG996R

PWM signal

In practice that means that duty = 3% <=> 0 degree, duty = 12% <=> 180 degree. We need to setup 2 independent PWM signals that will drive servo depending on Bluetooth Low Energy or UART signal.

Communication

Bluetooth Low Energy(BLE)

This wireless communication protocol has been added in prior. No application is ready to send data that corresponds with user input, BUT you can control every servo's angle sending 1 byte of data throug nRF Connect mobile application. One of the characteristics write event will happen and change servo's duty.

UART

UART is used because of Nextion display that is fully controlled via UART. User can even send script commands through COM port to control screens, variables' values and widgets. Display can output data depending on sensor input as well.

Display project for NX8048P070-011C is made via Nextion Studio. Two sliders send their values when of them is touched or moved. From ESP's side a thread listens for UART messages generated by display. PWM duty changes depending on slider's value.

esp32-servocontroller's People

Contributors

greggot avatar

Stargazers

vad babushkin avatar

Watchers

 avatar

esp32-servocontroller's Issues

Current is too high

When two of display's spliders are touched at the same time current goes way above limit and restarts ESP board

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.