TOP Contributors

  1. MIKROE (2784 codes)
  2. Alcides Ramos (382 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 (139718 times)
  2. FAT32 Library (72104 times)
  3. Network Ethernet Library (57320 times)
  4. USB Device Library (47669 times)
  5. Network WiFi Library (43288 times)
  6. FT800 Library (42621 times)
  7. GSM click (29958 times)
  8. mikroSDK (28377 times)
  9. PID Library (26977 times)
  10. microSD click (26378 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: 486 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

Exercising The MINI-M4 for STM32

9

A starting set of modules for supporting the many peripheral circuits integrated inside an ARM controller. This example uses the smallest implementation in MikroE’s lineup of ARM boards but has a very powerful microcontroller on-board. The USB interface and built-in boot loader make it all possible without a big expenditure.

[Learn More]

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]

Vehicle Detection by Means of Inductive Loop

1

This project implements a loop oscillator circuit and a buried loop coil to detect large metal objects (such as a car). External components are kept to a minimum and oscillator frequency detection is done in software. This project uses a mikromedia plus for STM32 board with shield but any other fast MPU board should work.

[Learn More]