TM1638 display module issue

If doesn't fit into any other category ....
Post Reply
Zim
Posts: 281
Joined: Mon Feb 08, 2021 9:15 pm
Has thanked: 258 times
Been thanked: 128 times

TM1638 display module issue

Post by Zim »

Just a little note. Using io15 prevents ESP8266 from booting. io14 works fine. ( for me that is)
Thanks
Zim


2022-09-30 18_43_14-Window.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
cicciocb
Site Admin
Posts: 1989
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 426 times
Been thanked: 1329 times
Contact:

Re: TM1638 display module issue

Post by cicciocb »

Zim, you are right, the choice of the pin GPIO15 in the example hasn't been a good choice. :oops:
The pin GPIO15 is involved in the boot process (as described here) and should be at GND during boot (with a pulldown resistor, for example).
https://docs.espressif.com/projects/esp ... ction.html
User avatar
Oli
Posts: 44
Joined: Tue Feb 09, 2021 10:07 am
Location: Germany, Meissen
Has thanked: 13 times
Been thanked: 44 times
Contact:

Re: TM1638 display module issue

Post by Oli »

I want to use the board
I don't manage to use the 2 display separately.
Variable A for the first part, variable B for the 2nd part.
e.g. I would like to display in the first 4 Digit Volt and in the 5-8 Digit ampere.
I can currently display a variable via all 8 digit if it is big enough.
How can I split this?
BeanieBots
Posts: 344
Joined: Tue Jun 21, 2022 2:17 pm
Location: South coast UK
Has thanked: 180 times
Been thanked: 112 times

Re: TM1638 display module issue

Post by BeanieBots »

This should work.
The first 3 digits are 10,000 times greater than the subsequent digits.
So, If A is what you want on the first 3 digits and B is what you want on the last digits and C is what is sent to the display.
A=volts
B=amps
C=10000*A + B
Then send C to the display.
User avatar
cicciocb
Site Admin
Posts: 1989
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 426 times
Been thanked: 1329 times
Contact:

Re: TM1638 display module issue

Post by cicciocb »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Sat Apr 08, 2023 9:13 pm I want to use the board
I don't manage to use the 2 display separately.
Variable A for the first part, variable B for the 2nd part.
e.g. I would like to display in the first 4 Digit Volt and in the 5-8 Digit ampere.
I can currently display a variable via all 8 digit if it is big enough.
How can I split this?
You can use the function str$ as shown below.
In this example the display is split in 2 parts composed of 3 digits ("%3.0f") with a space in the middle

Code: [Local Link Removed for Guests]

volt = 123
amp = 456

s$ = str$(volt, "%3.0f") + " " + str$(amp, "%3.0f")
wlog s$

volt = 23
amp = 56
s$ = str$(volt, "%3.0f") + " " + str$(amp, "%3.0f")
wlog s$

volt = 3
amp = 4
s$ = str$(volt, "%3.0f") + " " + str$(amp, "%3.0f")
wlog s$
User avatar
Oli
Posts: 44
Joined: Tue Feb 09, 2021 10:07 am
Location: Germany, Meissen
Has thanked: 13 times
Been thanked: 44 times
Contact:

#Code samples: TM1638 display module

Post by Oli »

This is a functioning demo, it is made very easy for better understanding.

I hope it helps someone, have fun ...

Code: [Local Link Removed for Guests]

tm1638.setup 5, 17, 16
   'Press the Buttons, see LED

 
volt =  59.678 '-99 to 999.9
amp  =  77.667 '-99 to 999.9 or 1000-9999 the comma run over the end

anf:

s$ = str$(volt, "%5.1f") + str$(amp, "%5.1f") 
tm1638.print s$
wlog s$

volt = volt + 0.1
amp = amp - 0.1


a = tm1638.buttons
tm1638.leds(a)
pause 200
goto anf
end
User avatar
Oli
Posts: 44
Joined: Tue Feb 09, 2021 10:07 am
Location: Germany, Meissen
Has thanked: 13 times
Been thanked: 44 times
Contact:

Re: TM1638 display module issue

Post by Oli »

Hello,
Is it possible to use the IC completely?
It is very easy to solder on K1 and K2 (K3 is used for the keys).
SEG10 is also free, you could still solder 7 optocouplers or LEDs.
TM1638.LEDS2 or 8 more bits
A = TM1638.Buttons2
A = TM1638.Buttons3 or more bits at TM1638.Buttons
You do not have the required permissions to view the files attached to this post.
User avatar
cicciocb
Site Admin
Posts: 1989
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 426 times
Been thanked: 1329 times
Contact:

Re: TM1638 display module issue

Post by cicciocb »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Sat Dec 16, 2023 7:49 pm Hello,
Is it possible to use the IC completely?
It is very easy to solder on K1 and K2 (K3 is used for the keys).
SEG10 is also free, you could still solder 7 optocouplers or LEDs.
TM1638.LEDS2 or 8 more bits
A = TM1638.Buttons2
A = TM1638.Buttons3 or more bits at TM1638.Buttons
No, it is not possible
Post Reply