TOP Contributors

  1. MIKROE (2652 codes)
  2. Alcides Ramos (351 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 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 (136611 times)
  2. FAT32 Library (69810 times)
  3. Network Ethernet Library (55881 times)
  4. USB Device Library (46214 times)
  5. Network WiFi Library (41858 times)
  6. FT800 Library (41070 times)
  7. GSM click (28942 times)
  8. PID Library (26401 times)
  9. mikroSDK (26310 times)
  10. microSD click (25326 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
Example

Using a Shaft Encoder with MINI-M4 for STM32

Rating:

0

Author: Val Gretchev

Last Updated: 2016-02-21

Package Version: 1.0.0.0

Example: 1.0.0.0

Category: Measurement

Downloaded: 459 times

Followed by: 4 users

License: MIT license  

This example shows how to connect a shaft encoder to a MPU board and provides a state machine decoder that can be used for many useful applications where a rotating dial inputs positional information. This data can be used for display purposes or for converting into analog signal by passing it to the internal DACs.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Using a Shaft Encoder with MINI-M4 for STM32" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Using a Shaft Encoder with MINI-M4 for STM32" changes.

Do you want to report abuse regarding "Using a Shaft Encoder with MINI-M4 for STM32".

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

Example Blog

Connection Diagram

Connection Diagram

Only one external component is require in order to fully implement the hardware for this example. If a shaft encoder is not available, it can be simulated by sending commands on the USB port.

View full image

ALSO FROM THIS AUTHOR

Designing a Microprocessor from Scratch

0

Many students in electronics learn how to use and program a microprocessor but very few know what goes on inside the chip itself. This project will give the reader insight into the inner workings of a very simple 8-bit microprocessor that can be extended to more powerful designs.

[Learn More]

Non-Blocking Drivers for I2C1 and STMPE610 on Mikromedia Plus for STM32 Board.

0

When the Touch Panel is enabled at the same time as USB, MikroE code hangs up frequently. USB is an essential peripheral and being able to use it together with the LCD/Touch panel is absolutely a must in any application involving this board. This code provides a non-blocking driver while maintaining compatibility with Visual_TFT.

[Learn More]

Examples for FreeRTOS

0

I am delighted that FreeRTOS was ported for use with MikroE compilers. After trying the demo codes supplied by MikroE, I decided to try some of my drivers for USB and UART. After resolving some issues, I was able to get a lot of code working in the new environment and I wanted to share it with users.

[Learn More]