[GD32E231 DIY Contest] 2. Light up a digit of the digital tube[Copy link]
My project is a digital clock, I want to build one first. I have some time these two days, I went to the electronic parts store and bought four red 1-inch LEDs, with a common cathode. My design is like this, use 8050 to connect the cathode, 8050 base with 1K, and the other end is connected to the single-chip microcomputer. The 8-bit digital tube is connected in series with an 82-ohm resistor, and the other end is connected to the single-chip microcomputer. In order to verify whether it works well, I only used two pins PB3 and PB4, PB3 drives the transistor, and PB4 drives the 8-bit pin. At the beginning, I ran it for a while and it didn't light up. I checked with a multimeter and it was only about 1.25 volts. What's going on? I checked the manual and found that the output can be pulled up. So I changed them all to pull-up output, tried it, and one of the digital tubes lit up