Page 1 of 1
TM1638 display module issue
Posted: Sat Oct 01, 2022 12:50 am
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
Re: TM1638 display module issue
Posted: Sat Oct 01, 2022 7:53 am
by cicciocb
Zim, you are right, the choice of the pin GPIO15 in the example hasn't been a good choice.
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
Re: TM1638 display module issue
Posted: Sat Apr 08, 2023 9:13 pm
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?
Re: TM1638 display module issue
Posted: Sun Apr 09, 2023 7:34 am
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.
Re: TM1638 display module issue
Posted: Sun Apr 09, 2023 9:23 am
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$
#Code samples: TM1638 display module
Posted: Thu Dec 14, 2023 11:52 pm
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
Re: TM1638 display module issue
Posted: Sat Dec 16, 2023 7:49 pm
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
Re: TM1638 display module issue
Posted: Sun Dec 17, 2023 1:28 pm
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