AVR ATmega32 Mini Development Board – Interfacing Switches

The board has 3 switches (SW1,SW2 & SW3) connected to port pins PD2, PD3 & PD4 via jumpers J7, J8 & J9 respectively. On shorting these jumpers, the switches can be used as pull_up keys and if they are left open, then the port pins can be used independently.

Sample code to test the switches is given below. In the code, switch press is detected by polling and upon pressing a switch, its name(SW1,SW2 or SW3) gets displayed on the LCD.

Note: To use switches, don’t forget to short the corresponding jumpers J7, J8 & J9. Leaving them open frees PD2, PD3 & PD4 and can be used for any other desired purpose.

Schematic

Sample Code


Topics related to AVR ATmega32 Mini Development Board

  1. AVR ATmega32 Mini Development Board – Overview
  2. AVR ATmega32 Mini Development Board – Interfacing LED
  3. AVR ATmega32 Mini Development Board – Interfacing LCD
  4. AVR ATmega32 Mini Development Board – Serial communication(USART)
  5. AVR ATmega32 Mini Development Board – Interfacing Switch
  6. AVR ATmega32 Mini Development Board – Interfacing Buzzer
  7. AVR ATmega32 Mini Development Board – Interfacing POT(ADC)
  8. AVR ATmega32 Mini Development Board – Interfacing Temperature sensor
  9. AVR ATmega32 Mini Development Board – Interfacing Servo Motor
  10. AVR ATmega32 Mini Development Board – Interfacing  μRFID

Resources

How to buy?

Support



Please share your ideas with us, visit our forum for discussion

Leave a Reply