2038 views|5 replies

1455

Posts

1

Resources
The OP
 

[Raspberry Pi Pico Review] Driver for the digital tube display module [Copy link]

Digital tube is a commonly used display device. When using it, it is necessary to match the LED with a current limiting resistor, and add a driving circuit when using a multi-digit digital tube. For ease of use, a common anode digital tube display module is selected here, as shown in Figure 1.

Figure 1 Digital tube display module

The procedure to achieve the digital demonstration effect is as follows:

import machine
import utime
la = machine.Pin(20, machine.Pin.OUT)
lb = machine.Pin(18, machine.Pin.OUT)
lc = machine.Pin(17, machine.Pin.OUT)
ld = machine.Pin(16, machine.Pin.OUT)
le = machine.Pin(15, machine.Pin.OUT)
lf = machine.Pin(14, machine.Pin.OUT)
lg = machine.Pin(13, machine.Pin.OUT)
lp = machine.Pin(12, machine.Pin.OUT)
la.value(1)
lb.value(1)
lc.value(1)
ld.value(1)
le.value(1)
lf.value(1)
lg.value(1)
lp.value(1)

while True:
 la.value(1)
 lb.value(1)
 lc.value(1)
 ld.value(1)
 le.value(1)
 lf.value(1)
 lg.value(1)
 lp.value(1)
 utime.sleep_ms(1000)
 #0
 la.value(0)
 lb.value(0)
 lc.value(0)
 ld.value(0)
 le.value(0)
 lf.value(0)
 lg.value(1)
 lp.value(1)
 utime.sleep_ms(1000)
 #1
 la.value(1)
 lb.value(0)
 lc.value(0)
 ld.value(1)
 le.value(1)
 lf.value(1)
 lg.value(1)
 lp.value(1)
 utime.sleep_ms(1000)
 #2
 la.value(0)
 lb.value(0)
 lc.value(1)
 ld.value(0)
 le.value(0)
 lf.value(1)
 lg.value(0)
 lp.value(1)
 utime.sleep_ms(1000)
 #3
 la.value(0)
 lb.value(0)
 lc.value(0)
 ld.value(0)
 le.value(1)
 lf.value(1)
 lg.value(0)
 lp.value(1)
 utime.sleep_ms(1000)
 #4
 la.value(1)
 lb.value(0)
 lc.value(0)
 ld.value(1)
 le.value(1)
 lf.value(0)
 lg.value(0)
 lp.value(1)
 utime.sleep_ms(1000)
 #5
 la.value(0)
 lb.value(1)
 lc.value(0)
 ld.value(0)
 le.value(1)
 lf.value(0)
 lg.value(0)
 lp.value(1)
 utime.sleep_ms(1000)
 #6
 la.value(0)
 lb.value(1)
 lc.value(0)
 ld.value(0)
 le.value(0)
 lf.value(0)
 lg.value(0)
 lp.value(1)
 utime.sleep_ms(1000)
 #7
 la.value(0)
 lb.value(0)
 lc.value(0)
 ld.value(1)
 le.value(1)
 lf.value(1)
 lg.value(1)
 lp.value(1)
 utime.sleep_ms(1000)
 #8
 la.value(0)
 lb.value(0)
 lc.value(0)
 ld.value(0)
 le.value(0)
 lf.value(0)
 lg.value(0)
 lp.value(1)
 utime.sleep_ms(1000)
 #9
 la.value(0)
 lb.value(0)
 lc.value(0)
 ld.value(0)
 le.value(1)
 lf.value(0)
 lg.value(0)
 lp.value(1)
 utime.sleep_ms(1000)

Figure 2 Display effect

Animation effect:

This post is from DIY/Open Source Hardware

Latest reply

Is this a pin-by-pin control for lighting up an LED?   Details Published on 2021-4-8 16:45
 

2939

Posts

0

Resources
2
 

Very good, OP, what software did you use to convert the recorded video into a GIF?

This post is from DIY/Open Source Hardware

Comments

It is a fast video converter, but the effect is average and the generated GIF size is relatively small.  Details Published on 2021-4-8 10:11
 
 

6587

Posts

0

Resources
3
 

The Pico digital tube driving code is much simpler than the 51

This post is from DIY/Open Source Hardware
 
 
 

1455

Posts

1

Resources
4
 
This post was last edited by jinglixixi on 2021-4-8 11:43
tagetage posted on 2021-4-7 10:12 Very good, OP, what software did you use to convert the recorded video into a GIF? ?

It is a fast video converter, but the effect is average and the generated GIF size is relatively small.

This post is from DIY/Open Source Hardware
 
 
 

1942

Posts

2

Resources
5
 

Is this a pin-by-pin control for lighting up an LED?

This post is from DIY/Open Source Hardware

Comments

Yes, the pins are arranged in a scattered manner, which makes it inconvenient to control them in an array manner.  Details Published on 2021-4-8 23:22
 
 
 

1455

Posts

1

Resources
6
 
w494143467 posted on 2021-4-8 16:45 Is this a pin-by-pin control LED light?

Yes, the pins are arranged in a scattered manner, which makes it inconvenient to control them in an array manner.

This post is from DIY/Open Source Hardware
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list