# 4 digiLED Display TM1637 to GPIO

**URL:** https://discourse.nodered.org/t/4-digiled-display-tm1637-to-gpio/26232
**Category:** General
**Created:** [7 May 2020 10:55 UTC](https://discourse.nodered.org/t/4-digiled-display-tm1637-to-gpio/26232 "2020-05-07T10:55:23Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![wmarcel](https://avatars.discourse-cdn.com/v4/letter/w/9fc29f/32.png) [@wmarcel](https://discourse.nodered.org/u/wmarcel)
#### Post date: [7 May 2020 10:55 UTC](https://discourse.nodered.org/t/4-digiled-display-tm1637-to-gpio/26232/1 "2020-05-07T10:55:24Z")

</div>

Hello everybody.  
I would like to expand my control from the terrarium with two 7 segment displays TM1637.  
The temperature should be on one side and the humidity on the other.

Both values ​​are already in Node Red via FHEM and Mosquitto.  
Node Red offers the possibility to control GPIO directly.

Can someone possibly tell me how I can send these values ​​to the displays or know how to do this?  
Unfortunately, I have not found anything here in the forum or on the Internet.

The goal is to send the value of mqtt to the two GPIOs.  
FHEM mqtt and Node Red are set up on the same PI3 b + that is to be controlled.

Thanks in advance.

---

<div class="post-metadata">

### Author: ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)
#### Post date: [7 May 2020 11:08 UTC](https://discourse.nodered.org/t/4-digiled-display-tm1637-to-gpio/26232/2 "2020-05-07T11:08:53Z")

</div>

Hi, welcome to the forum.

You are going to have to do a little work on this. My initial advice would be to find a python library to drive the TM1637 and then output the values to the library with the exec node, or have a look at some of the python nodes.

Have a look here:

> **[TM1637 7 segment display example on a Raspberry Pi](http://www.pibits.net/code/tm1637-7-segment-display-example-on-a-raspberry-pi.php)**
>
> A few of the code examples and projects on this site use modules containing the Tm1638 driver chip, I was interested in this one which is the TM1637 which appears to be a more basic version which c…

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [7 May 2020 11:14 UTC](https://discourse.nodered.org/t/4-digiled-display-tm1637-to-gpio/26232/3 "2020-05-07T11:14:32Z")

</div>

I'm certain you can do this without having to resort to exec nodes.

Node-red has some i2c nodes and there is already people controlling these via nodejs

[example](https://github.com/revolunet/tm1637)

Worst case, you could include a reference to "johnny-five" in settings.js and do this in a function node.

---

<div class="post-metadata">

### Author: ![wmarcel](https://avatars.discourse-cdn.com/v4/letter/w/9fc29f/32.png) [@wmarcel](https://discourse.nodered.org/u/wmarcel)
#### Post date: [8 May 2020 06:55 UTC](https://discourse.nodered.org/t/4-digiled-display-tm1637-to-gpio/26232/4 "2020-05-08T06:55:23Z")

</div>

Sorry, I'm an absolute beginner.

I do not understand both variants.  
Does anyone know a step by step guide or a picture of the flow with a function.

There is a lot on the Internet about TM1637, just not connecting Pi and Node Red GPIO.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [7 July 2020 06:55 UTC](https://discourse.nodered.org/t/4-digiled-display-tm1637-to-gpio/26232/5 "2020-07-07T06:55:31Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
