Using an ATTiny85 With a 74HC595 Shift Register

Поділитися
Вставка
  • Опубліковано 27 сер 2024
  • I was asked by ARDUINO MERKABA if the ATTiny85 could control/communicate with a shift register. As it turns out, I had a 74HC595 shift register set up on a breadboard with 8 LEDs in a drawer. I uploaded the code from www.arduino.cc... to the Arduino UNO docs.arduino.c... and it worked.
    Then connected the ATTiny85 for upload as per a previous video • Programming the ATTiny... and connected it to the shift register. Using the exact same code but altered for the pin on the ATTiny85 //Pin connected to SH_CP of 74HC595
    int clockPin = 2;
    //Pin connected to ST_CP of 74HC595
    int latchPin = 1;
    ////Pin connected to DS of 74HC595
    int dataPin = 0;
    And again, it worked as expected. So ARDUINO MERKABA, yes! It works

КОМЕНТАРІ • 3

  • @jumbo999614
    @jumbo999614 3 місяці тому

    I'm trying to use Attiny85 with 2 pieces of 74hc595 for my dot matrix 8x8. It doesn't work.
    When I switch to Arduino UNO, it works without any problem.
    I already burned bootloader and test blink sketch with Attiny85.
    Please help.

    • @hughqelliott
      @hughqelliott  3 місяці тому +1

      Are you able to record the setup and upload it? If you followed my steps, you shouldn't be having any issues. It usually comes down reversing latch and clock or something like that.

    • @jumbo999614
      @jumbo999614 3 місяці тому +1

      @@hughqelliott I just found out ATTiny85 has only 5 I/O pins. I need 6.