The rotary encoder will be utilized for selecting settings purposes and menus selections etc.... Different Routines will be selected. For example to select settings from 0-100 or from 0-1000.
Program will be writen in C to be utilized on a PIC32 and compiled on the microchip C32 compiler.
The rotary encoder will be utilized like a potentiometer or have the same feel of it. Contacts utilized = A and B with pull ups.
The push button switch on the rotary encoder will also be utilized for accepting the selection.
Display will be on universal 2 x 16 Char for now (for testing purpose)
for example, if the routine to select from 0 - 100 was selected, then, when turning the knob fast clockwyse, the numbers on the Tens (display =HtD = Hundreds, tens, Decimal) would go up faster. When the clockwyse turn slower clockwyse, the units (decimal) would increase slower.
similarly when going anti-clockwyse, to quickly get to the setting.
Once the setting is acceptable, the pushbutton switch on the rotary encoder would be pressed and the display shows: the value followed by "Selected" for now.
variables are: Value Selected (output from the program), Adjustable Time per tick for Units (Decimal), for tens etc.. so that the program can be adjusted as needed for different rotary encoders and different diamaters of knobs and feels.
An output for driving a piezzo is also required.
All Pins must be able to be re-allocated easy.
This first version does not use the hardware facility of any of the PICs, so that it can be easily moved from chip to chip.
Each line of code must be commented so as to be able to be re-utilized by many other peoples in prototyping environement.
5 freelancer đang chào giá trung bình $360 cho công việc này
I am a master of electronic and computer science. I have experiment in electronic design, computer interface, software and microcontroller programming. I pay attention to this project.