Just a little note. Using io15 prevents ESP8266 from booting. io14 works fine. ( for me that is)
Thanks
Zim
TM1638 display module issue
TM1638 display module issue
You do not have the required permissions to view the files attached to this post.
- cicciocb
- Site Admin
- Posts: 2060
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 439 times
- Been thanked: 1360 times
- Contact:
Re: TM1638 display module issue
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
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
- 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
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?
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?
-
- Posts: 345
- Joined: Tue Jun 21, 2022 2:17 pm
- Location: South coast UK
- Has thanked: 183 times
- Been thanked: 112 times
Re: TM1638 display module issue
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.
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.
- cicciocb
- Site Admin
- Posts: 2060
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 439 times
- Been thanked: 1360 times
- Contact:
Re: TM1638 display module issue
You can use the function str$ as shown below.[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?
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$
- 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
This is a functioning demo, it is made very easy for better understanding.
I hope it helps someone, have fun ...
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
- 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
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
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.
- cicciocb
- Site Admin
- Posts: 2060
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 439 times
- Been thanked: 1360 times
- Contact:
Re: TM1638 display module issue
No, it is not possible[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