TOP Contributors

  1. MIKROE (2779 codes)
  2. Alcides Ramos (376 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (97 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (139563 times)
  2. FAT32 Library (72041 times)
  3. Network Ethernet Library (57254 times)
  4. USB Device Library (47615 times)
  5. Network WiFi Library (43219 times)
  6. FT800 Library (42556 times)
  7. GSM click (29930 times)
  8. mikroSDK (28292 times)
  9. PID Library (26930 times)
  10. microSD click (26309 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Project

Rotary Encolder

Rating:

0

Author: Anderson Saint Soares

Last Updated: 2016-02-18

Package Version: 1.0.0.0

Category: Other Codes

Downloaded: 1396 times

Followed by: 1 user

License: MIT license  

Um simples modo de decodificar um encolder rotatorio, utilizando interrupçao de RB0.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Rotary Encolder" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Rotary Encolder" changes.

Do you want to report abuse regarding "Rotary Encolder".

  • Information
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Project Blog

Ola pessoal segue ai um modo bem simples de decodificar um encolder rotatorio utilizando interrupção de RB0.

ESQUEMA

ESQUEMA

ESQUEMA

View full image

Um exemplo do encolder controlando a saida RB3 como PWM.

ESQUEMA 2

ESQUEMA 2

CONTROLANDO PWM COM ENCOLDER.

View full image

ALSO FROM THIS AUTHOR

Rondom Number

0

Uma simples rotina para sortear numeros aleatorios, utilizando tmr0. O que ela faz é carregar o valor de tmr0 em uma variavel, e fazer a contagem ate este valor, ao mesmo tempo temos uma outra variavel que conta de 1 a 10, quando a contagem da variavel que esta com o valor de tmr0 chegar ao fim teremos um numero sorteado.

[Learn More]