Introduction:

  • In the assignment i have to add the LED and one button. I have used previous assignment Eagle schematic and here i have added LED and button.I am going to program the Attiny44 microcontroller as whem i will push the button LED should Glow on the occurance of button event. also i am providing delay of few millisecond and can provide loop for LED ON-OFF

  • I am using 14 pin Attiny44 microcontroller IC VCC-Power and GND-Ground, PB0-PB3 is the i/o Port with internal pull up register and PA0-PA7 is the i/o port with internal pull up register. I am connecting the Button as input to the PB port and LED with current limiting sensor as a output Device.
  • First we need to design the circuit in eagle following diagram shows the .brd file
  • Figure.1

  • There is Short in two tracksin the middle of IC.I corrected and made other PCB but forgot to take picture of new PCB before soldering the IC.
  • Figure.2

  • Figure.2
  • Figure.3

  • In the .brd file one connection of button is attached to the attiny44 five no. pin. and 10 no pin is connected to the LED through register
  • Figure.4

          

    LED button Video

          

          

    C program Hex file