Loading...
アイコン

HackMakeMod

チャンネル登録者数 18.7万人

20万 回視聴 ・ 8274いいね ・ 2024/10/05

Check out our Forum post: forum.hackmakemod.com/index.php?threads/momentary-…

Product Link (NOT SPONSORED): a.co/d/h88Oyrl

This push button from ChromaTek, purchased on Amazon, is different from standard momentary buttons because it has an addressable RGB LED built in (using a WS2812 LED). That means, with a microcontroller (like an Arduino) and some programming, you can control the color, brightness, and effects like blinking or fading.

Specifications:
Type: Push Button (Momentary)
Current Rating: 5 Amps
Operating Voltage: 5V DC
Connector Type: Clamp (with included wire harness)
Mounting: 19mm Panel Mount
Material: Stainless Steel (IP65, water-resistant)
How It Works:
When you press the button, the "momentary" action connects the Normally Open (NO) terminal to Common (COM). This sends a signal to the microcontroller that the button is pressed. Releasing the button breaks the connection, switching it back to Normally Closed (NC).

Addressable RGB LED:
The LED inside the button can display any color, thanks to the WS2812 RGB LED. It needs a PWM signal from a digital pin on the microcontroller. You can control the color and brightness by sending the right data. For reliable operation, especially with longer wires, it's recommended to use a 220-470Ω resistor on the Data In line to protect the signal.

If you’re using multiple buttons, the Data Out pin lets you chain them together in series without needing extra connections.

Wiring Breakdown:
Here’s how to wire the button:

Normally Open (NO): Connect to a digital input pin on your microcontroller.
Common (COM): Connect to ground.
Power In (3.3V-5V): Powers the LED, no need for an external resistor.
Data In: Connect to a digital output pin on the microcontroller for controlling the LED.
Data Out: Use this to connect to the Data In of the next button if you want to chain multiple buttons together.

Use Cases:
Status Indicator - In one setup, I used the button to change colors based on system status, synced with an OLED screen.
Servo Control - In another project, I connected the button to a servo-driven needle gauge, cycling through different colors for different positions.

Summary:
This button is practical for projects that need feedback, like custom control panels or visual indicators. It’s easy to wire, especially with the built-in resistor for the LED, and the IP65 rating means it’s protected against dust and water.

I’ll have the code and more details available on our forum if you want to try it out for yourself... forum.hackmakemod.com/index.php?threads/momentary-…

#AddressableLED #PushButton #DIYElectronics #ArduinoProject #RGBLED #Microcontroller #MakerProjects #PanelMount #ButtonWiring #LEDStatusIndicator

コメント

コメントを取得中...

コントロール
設定

使用したサーバー: watawatawata