
This circuit connects a limit switch to a CNC machine, allowing the CNC to receive signals from the limit switch. The limit switch is powered by the CNC's 3.3V supply and shares a common ground with the CNC.

A whisker limit switch is a tactile sensor that is widely used in the field of robotics and automation. It operates by making physical contact with an object through a flexible, wire-like actuator known as a whisker. This simple yet effective component is essential for providing feedback on the position of mechanical parts, ensuring precision and safety in various applications.

This circuit connects a limit switch to a CNC machine, allowing the CNC to receive signals from the limit switch. The limit switch is powered by the CNC's 3.3V supply and shares a common ground with the CNC.

This circuit is designed to activate a buzzer when a limit switch is in its normally closed (NC) position. The 9V battery provides power to the circuit. When the limit switch is open, the circuit is broken, and the buzzer will not sound.

This circuit controls a hobby gear motor using two toggle switches, a rocker switch, and two limit switches. The motor's direction is controlled by the toggle switches, while the limit switches and rocker switch provide additional control and safety features. Power is supplied by a 18650 battery in a holder.

This circuit uses an ESP32 microcontroller to monitor two voltage sensors and control a buzzer and two relays. When either voltage sensor detects a voltage above 3V ten times, the buzzer sounds intermittently until a limit switch is pressed, which resets the counters and stops the buzzer.
| Pin Number | Description | Notes |
|---|---|---|
| 1 | Common (C) | Connect to ground or Vcc based on NO/NC configuration |
| 2 | Normally Open (NO) | Closed when whisker is activated; otherwise open |
| 3 | Normally Closed (NC) | Open when whisker is activated; otherwise closed |
// Define the pin connected to the limit switch
const int limitSwitchPin = 2;
void setup() {
// Set the limit switch pin as an input
pinMode(limitSwitchPin, INPUT_PULLUP);
// Initialize serial communication at 9600 bits per second
Serial.begin(9600);
}
void loop() {
// Read the state of the limit switch
int switchState = digitalRead(limitSwitchPin);
// Check if the switch is pressed (assuming NO configuration)
if (switchState == LOW) {
// The whisker has made contact
Serial.println("Whisker is in contact");
} else {
// The whisker is not in contact
Serial.println("Whisker is not in contact");
}
// Delay a bit for debounce
delay(50);
}
Q: Can I use the whisker limit switch with an AC power source?
Q: How do I know if my switch is in NO or NC configuration?
Q: Is it possible to adjust the sensitivity of the whisker?