This project makes use of one of my earlier designs, the Quadrature Encoder in VHDL (but targeted to for the Altera Cyclone-II on the DE2-70 board). The basic idea behind this design is to control the Quadrature Encoder output rate based on user input via the CapSense inputs. As an overview, the top-level schematic is shown below.
The design is very simple. The DivisorGenerator module accepts 3 CapSense inputs and generates a bounded divisor output that feeds the QuadratureEncSM module. The CapSense inputs are defined such that PUSH_A decreases the output frequency. PUSH_B increases the output frequency and PUSH_C controls the frequency change steps (either by 10 or by 1 when PUSH_A or PUSH_B are pressed), in other words, a fine tune selector. Further, the current fine tune setting is reflected by LED2 (C16). If LED2 is ON then the frequency changes will be in steps of 10, otherwise they will be in steps of 1. The QuadratureEncSM module outputs to various pins on the J4 connector (A=A13, B=A14, Z=C13). Finally, there is a FrequencyDivider module that serves to output to LED1 (D14) to show that the design is running (heartbeat).
The good thing about this board is that it can be programmed via USB using the utility supplied by Avnet. Furthermore, if desired, the board can be driven by USB power only, thus doing away with any external power source. I programmed the bitstream in SPI flash, therefore, the design comes up on power-up.
The project archive can be downloaded below.
Popularity: 5% [?]






















