User Tools

Site Tools


pibot_cnc_laser_series:v496_pro:connect_limit_switches:start

Connecting Limit Switches

The completed YAML example will be placed in the Documentation section.


Option A: Standard Limit Switch

Connecting a Standard Limit Switch

It can be connected to a regular switch or button. Such accessories have no polarity distinction and only possess on/off functionality. They can be connected to normally closed or normally open circuits.

๐Ÿ”ŒWiring:

  • Connect one wire of the switch to the Signal pin.
  • Connect the other wire to the GND pin.

โš™๏ธConfiguration:

  • Set the SW-VCC jumper to 5V.
  • In your configuration YAML file, use the parameter :low to define the trigger logic (for either NO or NC configuration).

โš ๏ธGPIO Special Notes:

  • If you want to use GPIO.26 as a general-purpose input, you need to select the corresponding function on the GPIO.26 function switch.
  • GPIO.2 requires adding :pu (pull-up) to work properly.

Example diagram

If you want to use GPIO.26 as a general-purpose input, you need to select the corresponding function on the GPIO.26 function switch. For details, please refer to the relevant pinout and jumpers config section.

Example Yaml code

motor0:
  limit_neg_pin: gpio.39:low
control:
  safety_door_pin: NO_PIN
  reset_pin: gpio.39:low
probe:
  pin: gpio.2:pu:low
  toolsetter_pin: NO_PIN
  check_mode_start: true
  hard_stop: false

Option B: 5V Limit Switch

5V Powered Switch Configuration

A 5V powered switch offers higher precision than a standard switch. Please follow these connection and configuration steps carefully.

๐Ÿ”ŒWiring Instructions:

  • Set the SW-VCC jumper to 5V
  • Connect the switch's VCC wire to the SW-VCC pin
  • Connect the switch's Signal wire to the corresponding Signal GPIO pin
  • Connect the switch's GND wire to the GND pin

โš™๏ธYAML Configuration:

  • Add :low to configure for normally open (NO) trigger
  • Remove :low to configure for normally closed (NC) trigger

โš ๏ธImportant Notes:

  • GPIO.2 and GPIO.26 do NOT support this type of switch
  • Double-check all connections before powering on
  • Verify voltage settings to prevent damage to components

Example diagram

Example Yaml code

    motor0:
      limit_neg_pin: gpio.39
      limit_pos_pin: gpio.36:low

Option C: 12-24V Limit Switch

High-Voltage Industrial Switch Configuration (6V-24V)

Switches powered by Vmot-main voltage (6V to 24V) offer higher precision than 5V switches. These are commonly used in industrial applications and are available in PNP or NPN types. Their functionality is similar to NO (Normally Open) or NC (Normally Closed) configurations, providing open/closed output states.

๐Ÿ”ŒWiring Instructions:

  • Set the SW-VCC jumper to Vmot-Main
  • Connect the switch's VCC wire to the SW-VCC pin
  • Connect the switch's Signal wire to the corresponding Signal GPIO pin
  • Connect the switch's GND wire to the GND pin

โš™๏ธYAML Configuration:

  • Add :low to configure for type of trigger
  • Remove :low to configure for type of trigger

โš ๏ธImportant Notes:

  • GPIO.2 and GPIO.26 do NOT support this type of switch
  • Ensure Vmot-main voltage is within 6V-24V range
  • Verify wiring before applying power
  • Industrial switches provide better noise immunity and precision

Example diagram

Please refer to the technical manual provided by the specific product for wiring. Sometimes they refer to VCC as V+ and GND as V-.

Example Yaml code

    motor0:
      limit_neg_pin: gpio.39
      limit_pos_pin: gpio.36:low

Option D: Regarding Mixed Use

Switch Compatibility Guide

Understanding Mixed Usage Requirements

โœ“ Compatible Configuration

Standard switches can be safely used in combination with both 5V and Vmot-main switches.

Reason: Not voltage-dependent

โœ— Incompatible Combination

5V and Vmot-main switches cannot be used together in the same system.

Reason: Different voltage requirements (5V vs 6V-24V)

Key Technical Points:

  • Standard switches operate independently of voltage levels
  • 5V switches require precise 5V power supply
  • Vmot-main switches operate on 6V-24V range
  • Mixing different voltage types may cause system damage


pibot_cnc_laser_series/v496_pro/connect_limit_switches/start.txt ยท Last modified: by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki