Black R13-507 12mm No Lock Push, Button Momentary Switch 3A, 250V
Black R13-507 12mm No Lock Push, Button Momentary Switch 3A, 250V
The Black R13-507 is a 12mm push-button momentary switch designed for various applications in the Internet of Things (IoT) domain. This switch is a type of electromechanical device that provides a simple and intuitive way to control electrical circuits.
The Black R13-507 switch is a momentary action switch, meaning it only closes the circuit when the button is pressed and held down. When the button is released, the circuit opens, and the switch returns to its default state. This functionality makes it suitable for applications where a temporary activation is required, such as in IoT devices, appliances, and machinery.
3A (Amps)
250V (Volts)
The Black R13-507 push-button momentary switch is suitable for a wide range of applications, including |
IoT devices
Industrial control systems
Home appliances
Machinery and equipment
Medical devices
Automotive systems
-20C to 70C
-40C to 85C
40% to 90% RH (Relative Humidity)
100 M (Megaohms)
1500 VAC (Volts AC) for 1 minute
500,000 cycles
The Black R13-507 switch complies with various international standards and regulations, including RoHS, Reach, and CE marking.
Component Documentation: Black R13-507 12mm No Lock Push, Button Momentary Switch 3A, 250V
Overview
The Black R13-507 is a 12mm momentary push-button switch with a maximum rating of 3A and 250V. This switch is ideal for various IoT projects requiring a compact, reliable, and easy-to-use push-button interface.
Physical Characteristics
Size: 12mm diameter
Type: Momentary push-button switch
Rating: 3A, 250V
Color: Black
Lock type: No lock
Electrical Characteristics
Contact resistance: 20m
Insulation resistance: 100M
Operating temperature: -20C to 70C
Storage temperature: -30C to 80C
Pinout
The Black R13-507 switch has two terminal pins:
Pin 1: Normally Open (NO) contact
Pin 2: Common (COM) contact
Code Examples
### Example 1: Basic Button Press Detection using Arduino
In this example, we'll use the Black R13-507 switch to detect button presses using an Arduino board.
Hardware Connection
Connect Pin 1 (NO) to digital pin 2 on the Arduino board
Connect Pin 2 (COM) to GND on the Arduino board
Arduino Code
```c
const int buttonPin = 2; // Pin 1 (NO) connected to digital pin 2
void setup() {
pinMode(buttonPin, INPUT);
}
void loop() {
int buttonState = digitalRead(buttonPin);
if (buttonState == HIGH) {
// Button is pressed, perform action here
Serial.println("Button pressed!");
}
delay(50); // Debounce delay
}
```
### Example 2: Controlling an LED using Raspberry Pi (Python)
In this example, we'll use the Black R13-507 switch to control an LED connected to a Raspberry Pi.
Hardware Connection
Connect Pin 1 (NO) to GPIO pin 17 on the Raspberry Pi
Connect Pin 2 (COM) to GND on the Raspberry Pi
Connect the LED to GPIO pin 18 and GND on the Raspberry Pi
Python Code
```python
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
button_pin = 17
led_pin = 18
GPIO.setup(button_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(led_pin, GPIO.OUT)
while True:
if GPIO.input(button_pin) == GPIO.LOW:
# Button is pressed, turn on the LED
GPIO.output(led_pin, GPIO.HIGH)
else:
# Button is released, turn off the LED
GPIO.output(led_pin, GPIO.LOW)
```
Note: In both examples, ensure to use a suitable resistor in series with the LED to limit the current.