Search the Community
Showing results for tags 'pic'.
-
The keyboard also known as the keypad is fairly common use in programming the microcontroller to enter data quickly. Currently, there are different kinds keypad, but the most common are type 3 × 4 and 4 × 4. To identify an action occurs on the keypad, we implement continuous keypad scan to detect it. Compiler mikroC Pro for Pic has supported us a library of functions to perform a simple scan most keypad. Library in mikroC compiler function keypad (Keypad Library): Keypad_Init (): Before you use the other functions of the library keypad, you must call this function before. Keypad_Key_Press (): Read from the keyboard keys are pressed, if no key is pressed, the function returns 0. Keypad_Key_Click (): The function will wait until the first key pressed and released. When the key is released, the function returns a value from 1 to 16, depending on the keys on the keypad. If more than one key is pressed, the function will wait until the key is released. Then, the function returns the value of the first key is pressed. Video: https://www.youtube.com/watch?v=eOZ4e0jM-LQ Code mikroC and proteus file here
-
Request: I have 2 devices is the fan (motor) and heater (light). When the temperature of the room above the preset temperature (Ref stamps), the fan works, heater off. In contrast, the fan is turned off and open heater. The user interface is displayed on the GLCD. Ref temperature is adjusted via two buttons are connected via RB0, RB1, LM35 connected RA0, fan connection RB6, RB7 heater, GLCD connected to PORTD. Diagram circuit: || Download file in mikroc and protues -------------------------------------------------------------------------------- Find more projects for pic, avr, 8051 at http://dientudieukhien.net