TOP Contributors

  1. MIKROE (2784 codes)
  2. Alcides Ramos (387 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (120 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 (140168 times)
  2. FAT32 Library (72622 times)
  3. Network Ethernet Library (57644 times)
  4. USB Device Library (47957 times)
  5. Network WiFi Library (43554 times)
  6. FT800 Library (42942 times)
  7. GSM click (30140 times)
  8. mikroSDK (28670 times)
  9. PID Library (27057 times)
  10. microSD click (26552 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: 489 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

8-Digit 7-Segment LED Display in a mikroBUS Format

5

Sometimes you just need a long numeric LED display with up to 8 digits. This example provides manufacturing files to construct two PCBs. One with the appropriate driver circuits on a mikroBUS format board and the other with a row of LED modules that can be mounted remotely.

[Learn More]

Ultra-Low Resistance Tester (micro Ohm Meter)

9

Electrical power generation and distribution companies require an instrument for testing power transformer windings and circuit breaker contact resistance during maintenance. This is a design for such an instrument. The mikromedia 5 for Tiva board is the perfect candidate as the Microcontroller with Touchscreen in the block diagram.

[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]