5V Latching Single Bond Button Bistable Relay Module
Check my rate
| Main centres: | 1-3 business days |
| Regional areas: | 3-4 business days |
| Remote areas: | 3-5 business days |
| Main centres: | 1-3 business days |
| Regional areas: | 3-4 business days |
| Remote areas: | 3-5 business days |
This single-channel bistable (latching) relay module turns one momentary push button into an on/off switch. Press once and the relay latches on. Press again and it switches off. The module remembers its state, so you don't need to hold the button or keep a signal applied. You can control it with the onboard button, an external push button, or a low-level trigger from a microcontroller.
Because it runs on 5V, you can power it from a USB supply, a 5V power bank or an Arduino's 5V pin. That makes it a good fit for Arduino, ESP32 and Raspberry Pi projects. Use it to toggle lights, pumps, fans and other loads.
The board uses a JQC-3FF-S-Z relay rated 10A at 250VAC and 15A at 125VAC. A relay ON indicator LED shows when the relay is energised, and reserved pads let you add your own external indicator light.
What's in the box?
1 x bistable relay module
Here's the Resources section adapted for Raspberry Pi. The product description above stays the same.
ResourcesHow to Use the 5V Bistable Relay Module with a Raspberry Pi
What you'll need: a Raspberry Pi (any model with a 40-pin header, including Pi 5, Pi 4, Pi 3 and Pi Zero), an NPN transistor (such as a 2N2222 or BC547), a 1k resistor, and jumper wires.
1. Why use a transistor? Raspberry Pi GPIO pins run at 3.3V and are not 5V-tolerant. The module's Low-level trigger input may sit at 5V when idle, so connecting it directly to a GPIO pin could damage the Pi. A single NPN transistor lets the Pi pull the trigger to GND safely, keeping the 5V side isolated from the GPIO pin.
2. Power the module from the Pi. Connect the Pi's 5V pin (physical pin 2) to the module's Power +, and a Pi GND pin (physical pin 6) to Power . The module draws roughly 7080 mA when the relay is on, which the Pi's 5V rail can supply comfortably.
3. Wire the trigger circuit.
When GPIO17 goes HIGH, the transistor switches on and pulls the trigger LOW, which toggles the relay. When GPIO17 goes LOW, the trigger is released. In other words, the logic is inverted: you send a short HIGH pulse from the Pi to create the LOW pulse the module needs.
4. Connect your load. The 3-way output terminal block is on the right, with NC on top, COM in the middle and NO at the bottom.
Run the other side of the load back to its power source's negative or neutral. Keep the load within the relay's rating of 10A at 250VAC.
5. Test the code. This example uses the gpiozero library, which comes preinstalled on Raspberry Pi OS and works on all models, including the Pi 5. Save it as relay_toggle.py:
from gpiozero import DigitalOutputDevicefrom time import sleeptrigger = DigitalOutputDevice(17) # GPIO17, physical pin 11def toggle_relay(): trigger.on() # transistor pulls trigger LOW sleep(0.15) # 150 ms pulse trigger.off() # release triggerwhile True: toggle_relay() # relay on sleep(3) toggle_relay() # relay off sleep(3)Run it with python3 relay_toggle.py. The relay should click on and off every 3 seconds, and the relay ON indicator should light while it's on. Press Ctrl+C to stop.
6. Keep track of the relay state. The module only toggles. It doesn't tell the Pi whether the relay is on or off. If your project needs to know, store the state in your code, update it every time you send a pulse, and treat the relay as off after a power cycle. Keep in mind that pressing the onboard or external button will toggle the relay without the Pi knowing.
7. Use the buttons alongside the Pi (optional). The onboard button still works while the Pi is connected. You can also wire a momentary push button between the External button terminal and Power to add a manual override on a panel or enclosure.
Safety notes: Switching mains (230VAC) is dangerous. Make sure all wires are secured in the screw terminals and the module is housed in an insulated enclosure, kept well away from the Pi. Disconnect power before changing any wiring. For inductive loads such as motors or solenoids, size th Note: Stock is currently available in South Africa for national shipping!