logo elektroda
logo elektroda
X
logo elektroda

Using MOSFET transistors instead of SSR relays with nodeMCU v2

mackowiakp 1053 7
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 18120291
    mackowiakp
    Level 10  
    I am currently using the circuit shown below to multiplex the input to two 7-segment LED displays from a single output of the ESP8266 chip. This is because I have ESPeasy software installed on it. Such software can only work with one such display, so I have to 'trick' ESPeasy into thinking it only works with one display, while it de facto works with two. All switching is done using the 'rules' defined in the ESPeasy configuration. The relays I use are small solid-state relays of the SSR type (this is so that there is no 'flopping' effect). But this solution is too expensive and too large compared to using MOSFETs, for example, such as the 2N7000.

    Using MOSFET transistors instead of SSR relays with nodeMCU v2
    .

    Unfortunately I don't have enough knowledge hence I am asking Fellows on the forum. How can I replace the relays shown in the picture (along with the bipolar transistors controlling them) with MOSFETs ?
  • ADVERTISEMENT
  • #2 18120339
    rb401
    Level 39  
    mackowiakp wrote:
    How can I replace the relays shown in the picture (along with the bipolar transistors that control them) by MOSFETs ?
    .

    This route, in any case, is not optimal, because you are dealing here with logic signals and the switching can be taken care of with a ready-made multiplexer. For example using 74HCT4052, 74HCT4053 or similar. You can control it with one bit if you don't have a "none selected" situation.
  • ADVERTISEMENT
  • #3 18120404
    khoam
    Level 42  
    A bit contrived. Wouldn't it be better if you connect the DIO and CLK from the individual displays to different pins on the ESP8266? You will also use up 4 pins.

    Added after 17 [minutes]: .

    mackowiakp wrote:
    This is because I have ESPeasy software installed on it. Such software can only work with one such display
    .
    But I guess you can define two different actuators?
  • ADVERTISEMENT
  • #4 18120451
    mackowiakp
    Level 10  
    CLKs are connected together anyway. Only the DIOs are switched. In the ESPeasy software you cannot use two such displays (answer from the developers). Hence the switching. As to whether there is a "none selected" situation, the opposite occurs. Both selected. This is at boot time when both chips are receiving initialisation instructions.
  • #5 18120732
    rb401
    Level 39  
    mackowiakp wrote:
    As to whether there is a "none selected" situation, the reverse occurs. Both selected. This is at boot time when both chips receive initialisation instructions.
    .

    Well, in that case, a multiplexer is unlikely.
    But you could successfully use a chip with 74HCT4066 keys or similar and stay with your original concept. Much smaller and better than folding mosfets or relays.
  • ADVERTISEMENT
  • #6 18121089
    mackowiakp
    Level 10  
    I think I have found a solution. Let's look at a single channel of a 3.3V to 5V converter.

    Using MOSFET transistors instead of SSR relays with nodeMCU v2 .

    If we control the gate of the transistor directly from the GPIO of the ESP8266 then we have a multiplexer and a converter in one. And I have to use the converter anyway even though the TM1637 works fine when powered and controlled from 3.3V. And this is because I am using blue displays which light up poorly with a 3.3V supply. I will buy the transistors on Monday and give it a try.
  • #7 18121100
    Anonymous
    Level 1  
  • #8 18121108
    mackowiakp
    Level 10  
    Everything you write is right. That's why I wanted to use displays based on the MAX7219, which is also supported by ESPeasy. These ICs have a "chip select" which would take care of the multiplexing problem. Only they didn't have any in the shop in the blue colour I wanted.

    Baywellian. I found an even simpler solution based on a bipolar transistor, and I have one in my drawer:

    Using MOSFET transistors instead of SSR relays with nodeMCU v2 .

    The converter is admittedly unidirectional but that's all I need. I connect the base to the GPIO and it should work.

Topic summary

The discussion revolves around replacing solid-state relays (SSRs) with MOSFET transistors in a circuit designed to multiplex two 7-segment LED displays using an ESP8266 chip with ESPeasy software. The original setup is deemed expensive and bulky, prompting the search for a more efficient solution. Suggestions include using multiplexers like the 74HCT4052 or 74HCT4066, and the possibility of controlling the gate of a MOSFET directly from the GPIO of the ESP8266. The conversation also touches on the limitations of the TM1637 display and the potential use of MAX7219 displays, which support chip select for multiplexing. Ultimately, a simpler solution involving a bipolar transistor is proposed.
Summary generated by the language model.
ADVERTISEMENT