User Tools

Site Tools


pibot_cnc_laser_series:v47b:connect_relays:start

4.3 Connect External Relay

Hardware Connection · Use the C-connector outputs or another compatible protected control interface

Wiring a PiBot IsoSwitch V4

The PiBot IsoSwitch V4 gives three relay channels, each with an NC / COM / NO changeover contact and an optocoupler input stage. It runs from its own 4.5–40 V DC supply (24 V by default) and takes three logic signals on S1 S2 S3. V4.7B offers two 5 V signal routes. The C connector is recommended when the C axis is unused because it avoids the shared spindle, laser, MOSFET, RS485 and 0–10 V signals.

The GND wire is not optional. The relay board has its own supply, so its INPUT GND must be tied to the V4.7B GND — without that shared return the S1/S2/S3 inputs have no reference. And mains voltage never touches the controller: keep it on the contact side, in a rated enclosure.
PiBot V4.7B wired to a PiBot IsoSwitch V4
V4.7B to PiBot IsoSwitch V4. The boxed headers are alternatives — pick one and wire three signals plus GND. Click the image to view it full size.

Which outputs you can use on V4.7B

RoutePinsLevelNotes
I2SO output — recommended when C is unusedI2SO.23 I2SO.21 I2SO.20 + GND5 V signalThe C connector in the test YAML. Using it for relays makes that motor connector unavailable.
5 V buffered signal headerGPIO.12 GPIO.4 GPIO.13 GPIO.14 + GND5 V signalEvery pin here already has another job; this header supplies control signals, not relay-coil power.
On V4.7B every pin of the 5 V header already has another job, which is why the C connector is recommended. Per this board’s Pinout Reference: GPIO.4 is spindle PWM (tool 0) and drives a MOSFET channel; GPIO.12 is laser (tool 1) and drives the other MOSFET channel; GPIO.13 is the 0–10 V generator; GPIO.14 is the RS485 direction line and 0–10 V Reverse. Taking one for a relay removes that function.

Trigger jumpers on the relay board

Each relay has its own jumper block — JP4→S1, JP5→S2, JP6→S3. The silkscreen numbers the rows 1 (bottom), 2 (middle), 3 (top); each column takes one jumper, down bridging 1–2 and up bridging 2–3.

SettingLeft columnRight columnEffect
Active High — defaultdown (1–2)down (1–2)A high signal energises the relay.
Active Lowup (2–3)up (2–3)A low signal energises the relay.
Always onup (2–3)down (1–2)Stays energised, input ignored.
Always offdown (1–2)up (2–3)Stays de-energised, input ignored.
Active High ↔ Active Low reverses which input level energises the coil. At a given controller idle level this reverses the practical contact behaviour without changing the signal wire or YAML. It does not rename the terminals: with the coil de-energised, COM–NC is closed and COM–NO is open. Select polarity and the physical contact together, then verify boot, reset, alarm and power-off states with a continuity meter. Always on / Always off are bench overrides; return them to an active mode before operation.

Wire and prove the control side first

  1. Disconnect the V4.7B and relay-board supplies.
  2. Confirm the C connector is unused, or choose one compatible pin from the 5 V signal header and update the YAML accordingly.
  3. Wire I2SO.23/21/20 and GND to S1/S2/S3/GND, then power the relay board from its own supply.
  4. Set JP4/JP5/JP6 and load the YAML mapping below.
  5. With no load attached, send one command at a time and check the click and LED.
  6. Measure COM–NO and COM–NC continuity before connecting the real load.

YAML and test commands

Matching the drawing, where I2SO.23→S1, I2SO.21→S2 and I2SO.20→S3. Substitute your own pins if you wired a different output.

coolant:
  mist_pin: I2SO.23        # S1 - M7 on, M9 off
  flood_pin: I2SO.21       # S2 - M8 on, M9 off
  delay_ms: 0

user_outputs:
  digital0_pin: I2SO.20    # S3 - M64 P0 on, M65 P0 off

Pass: each command changes only its assigned relay and the continuity reading agrees with the selected contact. Fail: a relay starts unsafe, more than one changes, or a command does not release it — disconnect both supplies and correct the YAML, jumpers or contact wiring before adding a load.

Full relay-board reference — terminal map, full-size jumper drawing, servo-enable use and troubleshooting →

ℹ️
Alternative for a bare DC relay coil: V4.7B also has two 1.5 A maximum low-side MOSFET channels, io.12-MOS-GND and io.4-MOS-GND. Use one only when the coil voltage matches Vmot-main and its steady-state and inrush current are within the channel limit. This is a different wiring method from the logic-input PiBot IsoSwitch V4 above; never connect a coil to the 5 V signal header.
⚠️
Keep the controller side low voltage. Do not route mains wiring through a V4.7B connector. Relay contact wiring needs suitable fusing, enclosure, wire size, grounding, separation and a switching device rated for the real load and surge current.

pibot_cnc_laser_series/v47b/connect_relays/start.txt · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki