Skip to content

Neste repositório é desenvolvido o projeto final para a disciplina: Sistemas de Controle, para o curso de engenharia eletrônica na Universidade Feevale

Notifications You must be signed in to change notification settings

jcradavelli/SISCON_MOTOR_PID

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Supported Targets ESP32 ESP32-C6 ESP32-H2 ESP32-S2 ESP32-S3
.github/workflows/main.yml não testado não testado não testado não testado

Rotary Encoder

Este projeto utiliza o periférico PCNT (pulse counter) para fazer o tratamento dos sinais de encoder. A baixo segue a descrição de funcionamento fornecida pela expressif:

The PCNT peripheral is designed to count the number of rising and/or falling edges of an input signal. Each PCNT unit has two channels, which makes it possible to extract more information from two input signals than only one signal. This example shows how to make use of the HW features to decode the differential signals generated from a common rotary encoder -- EC11.

The signals a rotary encoder produces (and what can be handled by this example) are based on a 2-bit gray code available on 2 digital data signal lines. The typical encoders use 3 output pins: 2 for the signals and one for the common signal usually GND.

Typical signals:

A      +-----+     +-----+     +-----+
             |     |     |     |
             |     |     |     |
             +-----+     +-----+
B         +-----+     +-----+     +-----+
                |     |     |     |
                |     |     |     |
                +-----+     +-----+

 +--------------------------------------->
                CW direction

Informações gerais

Hardware Required

Em constrção

Connection :

      +--------+              +---------------------------------+
      |        |              |                                 |
      |      A +--------------+ GPIO_A (internal pull up)       |
      |        |              |                                 |
+-------+      |              |                                 |
|     | |  GND +--------------+ GND                             |
+-------+      |              |                                 |
      |        |              |                                 |
      |      B +--------------+ GPIO_B (internal pull up)       |
      |        |              |                                 |
      +--------+              +---------------------------------+

Build and Flash

Run idf.py -p PORT flash monitor to build, flash and monitor the project.

(To exit the serial monitor, type Ctrl-].)

See the Getting Started Guide for full steps to configure and use ESP-IDF to build projects.

About

Neste repositório é desenvolvido o projeto final para a disciplina: Sistemas de Controle, para o curso de engenharia eletrônica na Universidade Feevale

Topics

Resources

Stars

Watchers

Forks