Lesson 27 - 74HC595 and 7-Segment Display

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 พ.ค. 2024
  • Controlling a 7-Segment Display Module with a 74HC595 shift register. Demonstrate a slightly modified 74HC595 and 7-Segment Display Elegoo tutorial sketch and circuit. A beginner's guide to the Most Complete Starter Kit by Elegoo.
    Hello everyone, I'm Rick the Tech Enthusiast here with the next Elegoo Lesson. This is the next lesson on my Arduino UNO Series covering the Most Complete Starter Kit by Elegoo. I try to follow the included tutorial and will point out any changes or corrections as I find them.
    As mentioned before, I purchased this Elegoo starter kit and Elegoo isn't sponsoring me. I just thought it would be fun to do a video of each Lesson as I was learning the Arduino environment.
    We’ll need a few things from your Elegoo Arduino UNO kit. I’ll list the items below. In this lesson we’re going to check out the 7-Segment Display Module, and how we can use a 74HC595 shift register to control it using three data connections. I’ll step through the Elegoo provided tutorial, briefly explain the code, and build and configure a simple circuit that is provided in the tutorial to demonstrate the functionality. Then will expand the sketch to include an additional functionality. I hope you enjoy it.
    Parts you’ll need for the tutorial:
    * Elegoo Arduino UNO R3 board
    * The 74HC595 shift register IC
    * 7-segment 1-digit display
    * Eight 220-ohm resistors
    * The breadboard
    * A bunch of male-to-male jumper wires
    The next lesson will be Lesson 28: Four Digital Seven Segment Display
    Links:
    This lesson’s sketch and associated drawings can be found at [Github](github.com/rmorenojr/ElegooTu...)
    Various Parts can be found: (Note these are Amazon Associates links)
    (Full Disclosure: I get a little credit/$ if you purchase a linked item.)
    * Elenco 350 Piece Pre-formed Jumper Wire Kit on Amazon : amzn.to/2z6sCCw
    * Elegoo EL-KIT-001 UNO R3 Project Complete Starter Kit with Tutorial for Arduino (63 Items) on Amazon: amzn.to/2KxZ8mA
    * Elegoo’s web site www.elegoo.com/ www.elegoo.com/product/elegoo...
    * 74HC595 8-Bit Shift Register with Output Latching, DIP 16, Cascadable (Pack of 10) amzn.to/2O9RFbO)
    * Logitech M510 Wireless Mouse on Amazon: amzn.to/2z4FF7F
    Software:
    * Fritzing Software: fritzing.org/download/
    * Arduino Language Reference (English): www.arduino.cc/reference/en/
    * Arduino ASCII chart www.arduino.cc/en/Reference/A...
    * Using a 74HC595 to connect an Arduino to a 7-segment LED display - Anything Arduino episode 9 • Using a 74HC595 to con...
    Affiliate Links that Help my channel:
    * Try Prime Discounted Monthly Offering: amzn.to/2PnVgSA
    * Try Amazon Prime 30-Day Free Trial: amzn.to/2E5Hy4O
    * Prime Student 6-month Trial: amzn.to/2ElxwNE
    * Join Amazon Prime - Watch Thousands of Movies & TV Shows Anytime - Start Free Trial Now: amzn.to/2PsEZvE
    * Give the Gift of Amazon Prime amzn.to/2EkFaYG
    * Kindle Unlimited Membership Plans: amzn.to/2QJl548
    * Try Audible and Get Two Free Audiobooks: amzn.to/2QD2B5v
    * Amazon.com - Read eBooks using the FREE Kindle Reading App on Most Devices: amzn.to/2Ptpdkl
    Sign up and fund an M1 account using the link, and we'll both get $10 to invest: mbsy.co/tsrBR
    Royalty Free Music from HookSounds.com, by artist Rodrigo Vicente - [FutureBass_Full](www.hooksounds.com)
    This is another video for my Arduino tutorial series. If you like the series, be sure to rate and subscribe.
    Thanks for watching
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 19

  • @LifeWithKevinB
    @LifeWithKevinB 3 ปีที่แล้ว

    I love the detail you go into as well as explanations. I will be checking out all your videos in this series!

  • @trevorthrift3121
    @trevorthrift3121 3 ปีที่แล้ว

    Thank you for posting. A huge help for my circuits course!

  • @bears7777777
    @bears7777777 4 ปีที่แล้ว

    I designed a 7 segment display that has RGB leds. My shift registers are hooked up in an order from Ared -> Agreen -> Ablue -> Bred -> Bgreen -> Bblue etc... Its on a PCB so i cant change it easily. what would be the best way to simplify shifting out data to only the red, green, or blue pins if they are located every third bit? I would like it to be computationally light as I plan to use bit weighted modulation. E.g. 00010101 would turn the leds off for 128 + 64 + 32 cycles, on for 16, off for 8, on for 4, off for 2, and on for 1 cycle. (using the enable pin). The process is repeated for each color so it simplifies to:
    output data to red bits.
    BWM for 256 cycles.
    output data to blue bits.
    BWM for 256 cycles.
    output data to green bits.
    BWM for 256 cycles.
    All it does is display time so I need to have a way to easily display HH:MM using data from an RTC. I'm hoping that in itself is not too complicated.
    Thanks,
    Andrew

  • @alessandrolatino7842
    @alessandrolatino7842 4 ปีที่แล้ว

    Hi, first at all, your lessons are great!
    I wanted to ask you if you can help me out with an issue I'm having with the 7 segment display. Before trying "fancy" connections/scripts, I followed the Eleego tutorial, without changing the default sketch.
    Once I loaded the sketch, the countdown showed:
    9, 8, 7, 8, 9, 4 (without segment B), 3, 2, 1 (without segment B)
    I really cannot understand what the problem may be, since as I told you I did not deviate from the default code/connections..
    Thanks!
    Alessandro

    • @rickmorenojr
      @rickmorenojr  3 ปีที่แล้ว

      Sorry, all I can think of is that you'll need to re-check your wiring.

  • @beastbomber2316
    @beastbomber2316 3 ปีที่แล้ว +3

    mine wont work and it heats up very fast, it almost caught fire

    • @rickmorenojr
      @rickmorenojr  3 ปีที่แล้ว

      Wow, that's terrible. May I ask if you are using the components from the Elegoo kit? Or did you purchase the parts separately and attempting to run the lesson? I only ask because some displays are 3V, while the kit uses 5V.

    • @rickmorenojr
      @rickmorenojr  3 ปีที่แล้ว

      Also, you want to be careful about your maximum current. 8 LEDs at 14.5mA is 116mA. If your 7-segment LED has a different voltage drop per segment, you'll need to recalculate the resistor values.

    • @beastbomber2316
      @beastbomber2316 3 ปีที่แล้ว

      it a 5v numerator so i used a 220 ohm resistor i think

  • @manojmaniyan9864
    @manojmaniyan9864 3 ปีที่แล้ว

    Hi,
    I think I have an issue with the shift register.
    am using TPIC6C596 shift register and this register is capable of sending 8 bits. When I start sending 8 bits, I am getting only the last bit (i.e decimal point). But without the 8th bit (decimal point), my shift register can transfer whole 7 bits at a time. May i get the solution for this? When I implement in the proteus I am getting proper output. while doing the same in the hardware, I face the issue. For example, 0b00000110, I am getting the value as 1. if i do, 0b00000110 | 0b10000000, I am getting only .(dot) without 1. I should get 1.(one + dot). shiftOut(DS_pin, SHCP_pin, MSBFIRST, dec_digits[(buf[i] - 0x30)]|0x80); What will be the issue.?
    0r my doubt is when supply goes to decimal point, all the other pins goes to OFF condition.
    When supply don’t go to the decimal point, all the other pins goes to ON condition.
    Is that correct?

    • @rickmorenojr
      @rickmorenojr  3 ปีที่แล้ว

      I think that the TPIC6C596 shift register is a drain type shift register. It switches on the grounds for the LEDs rather than the source.

    • @manojmaniyan9864
      @manojmaniyan9864 3 ปีที่แล้ว

      @@rickmorenojr Thanks

  • @b4tran
    @b4tran 2 ปีที่แล้ว

    Segment @ 5:42 Wrong since Q3 connected to segment is ON when bit is 0; Also it's confusing when you say first sent bit goes to Q7 when in your animation first sent bit goes to Q0 first; Graph @6:07 wrong A should be 0 and C should be 1; hard enough to understand things when graphs are wrong too, otherwise i'm learning a lot.

  • @bastamanibrahim5478
    @bastamanibrahim5478 3 ปีที่แล้ว +1

    Too much procedure/ step with the arduiono.....make me confuse.....!!!!

  • @chandanagunathilaka7033
    @chandanagunathilaka7033 3 ปีที่แล้ว

    hi

  • @IHavebutterfingers
    @IHavebutterfingers 3 ปีที่แล้ว

    10:20

  • @jeetenderkakkar7570
    @jeetenderkakkar7570 2 ปีที่แล้ว

    Pakistann

  • @jeetenderkakkar7570
    @jeetenderkakkar7570 2 ปีที่แล้ว

    Pakistann

    • @zensamurai6582
      @zensamurai6582 หลายเดือนก่อน

      What about this shithole?