arduino调光开关_如何用调光开关替换电灯开关

arduino调光开关

arduino调光开关

2016-12-14_0025

If you want better control over how bright or dim your lights get, installing a dimmer switch is a great way to make that happen, especially if you want to adjust them regularly. Here’s how to replace a regular light switch with a dimmer switch.

如果您想更好地控制灯光的亮度或亮度,安装调光开关是实现这一目标的好方法,尤其是当您要定期调整它们时。 这是如何用调光器开关代替普通的电灯开关。

Warning: This is a project for a confident DIYer. There’s no shame in getting someone else to do the actual wiring for you if you lack the skill or knowledge to do so. If you read the beginning of this article and immediately visualized how to do it based on past experience wiring switches and outlets, you’re probably good. If you opened the article not sure how exactly we were going to pull this trick off, it’s time to call in that wiring-savvy friend or electrician. Also note that it may be against the law, code, or regulations to do this without a permit, or it might void your insurance or warranty. Check your local regulations before continuing.

警告 :这是一个充满信心的DIYer的项目。 如果您缺乏其他技能或知识,请别人帮您完成实际接线并没有什么可耻的。 如果您阅读本文的开头并根据过去对开关和插座的接线经验,立即看到了如何做,那可能很好。 如果您不确定这篇文章的开头,不确定我们将如何实现这个技巧,那么该找这个精通布线的朋友或电工了。 另请注意,未经许可执行此操作可能违反法律,法规或法规,否则可能会使您的保险或保修无效。 在继续之前,请先检查您当地的法规。

你需要什么 (What You’ll Need)

IMG_2880_stomped

There’s actually not a whole lot you need for this project. The absolute must-have tools include a pair of needle-nose pliers, a flat-head screwdriver, and a Phillips-head screwdriver.

实际上,此项目不需要很多东西。 绝对必备的工具包括一把尖嘴钳,一字螺丝刀和一字十字螺丝刀。

Some optional—but very handy—tools include some combination pliers, a wire stripper tool (in case you need to cut wire or strip off wire housings), a voltage tester, and a power drill.

一些可选的但非常方便的工具包括一些组合钳,剥线钳工具(以防您需要剪断电线或剥去电线外壳), 电压测试仪和电钻。

Also make sure that the light bulb you’re using with the dimmer switch is dimmable. Most CFL bulbs and cheaper LED bulbs are non-dimmable, meaning that if you use a dimmer switch with them, they’ll just flicker until you give them full power. So when you’re shopping for light bulbs, make sure that they can be used with dimmer switches—it should say on the packaging.

还要确保与调光器开关一起使用的灯泡是可调光的。 大多数CFL灯泡和便宜的LED灯泡都是不可调节的 ,这意味着,如果您将调光开关与它们一起使用,它们只会闪烁,直到您为它们提供全功率为止。 因此,当您购买灯泡时,请确保它们可以与调光开关一起使用-应该在包装上写明。

Lastly, you’ll need a dimmer switch, and there are many different styles to choose from. Personally, I like this one from Lutron, and it’s the one I’m using in this tutorial. Don’t forget the new faceplate either.

最后,您需要调光器开关,并且有许多不同的样式可供选择。 就个人而言,我喜欢Lutron的这款 ,这是我在本教程中使用的一款。 也不要忘记新的面板

第一步:关闭电源 (Step One: Turn Off the Power)

IMG_2423_stomped

This is one of the most important steps and it should be done before anything else. Go to your breaker box and cut off the power to the room where you’ll be changing out the light switch.

这是最重要的步骤之一,应该先做。 转到断路器箱,切断将要关闭电灯开关的房间的电源。

A great way to know if you turned off the correct breaker is to turn on the light switch before cutting the power. If the light that’s controlled by the light switch turns off, then you know you’ve switched off the correct breaker.

知道是否关闭了正确的断路器的一个好方法是在切断电源之前先打开电灯开关。 如果由电灯开关控制的灯熄灭,则说明您已关闭了正确的断路器。

第二步:卸下现有的电灯开关 (Step Two: Remove the Existing Light Switch)

Start by taking your flat-head screwdriver and remove the two screws holding the faceplate on.

首先拿起一字螺丝刀,然后卸下固定面板的两颗螺丝。

IMG_3458_stomped

You can then pull the faceplate right off. At this point, use a voltage tester to see if the power is truly off to the light switch before you go any further.

然后,您可以直接拉面板。 此时,在继续下一步之前,请使用电压测试仪查看电灯开关的电源是否确实断开。

IMG_0030 copy

Next, take your Phillips-head screwdriver or power drill and remove the two screws that hold the light switch onto the junction box. There will be one on top and one on the bottom.

接下来,拿起梅花槽螺丝刀或电钻,卸下将灯开关固定在接线盒上的两颗螺钉。 顶部有一个,底部有一个。

IMG_3488_stomped

Once those screws are removed, take your fingers and grab hold of the the tabs on the top and bottom of the switch to pull it out of the junction box. This exposes more of the wires and makes it easier to work on.

卸下这些螺钉后,用手指抓住开关顶部和底部的卡舌,将其从接线盒中拉出。 这样可以露出更多的电线,从而使其更容易加工。

IMG_3518_stomped

Take a look at the wiring configuration of the light switch. You’ll notice that there are two black wires connected to the switch, as well as a bare copper wire, which is the ground wire. Further back in the box, you’ll also notice two white wires that are tied together with a wire nut. (If the colors in your wall are different, make note of which are which, to ensure you connect everything properly.)

看一下电灯开关的接线配置。 您会注意到,有两条黑线连接到交换机,还有一条裸铜线(即地线)。 在包装盒的后面,您还会注意到两条白线,这些白线通过线螺母绑在一起。 (如果墙壁上的颜色不同,请记下哪种颜色,以确保正确连接所有东西。)

IMG_2873_stomped

As briefly explained above, the black wires are the power (or “hot”) wires and the white wires are the neutral (or “return”) wires. Electricity flows through the hot wire, entering the switch and then into the light fixture, and then returns back through the neutral wire. Turning off the switch simply disconnects the power wire from the light fixture, cutting off power from your lights.

如上所述,黑线是电源线(或“热”线),白线是中线(或“回线”)线。 电流流经热线,进入开关,然后进入灯具,然后通过中性线返回。 只需关闭开关,即可从灯具上断开电源线的连接,从而切断灯具的电源。

Start off by taking your screwdriver and removing the two black wires attached to the light switch. Don’t worry about which black wire goes where, because they’re interchangeable.

首先,带上螺丝刀,并卸下连接在电灯开关上的两条黑色电线。 不必担心哪条黑线可以到达哪里,因为它们是可互换的。

IMG_3540_stomped

Lastly, remove the ground wire from the green screw.

最后,从绿色螺钉上卸下接地线。

IMG_3554_stomped

第三步:为调光器准备电线 (Step Three: Prepare Your Wires for the Dimmer Switch)

Now that the light switch is completely removed, you’ll need to prepare for the installation of the dimmer switch.

现在,电灯开关已完全卸下,您需要为调光开关的安装做准备。

Grab your needle-nose pliers and straighten out the black and ground wires. Since they’re bent like hooks from the old switch, they’ll need to be straightened out so that you can attach wire nuts to them when you hook up the dimmer switch.

抓住尖嘴钳,拉直黑色和接地线。 由于它们弯曲得像旧开关的钩子一样,因此需要将它们拉直,以便在挂上调光器开关时可以将金属螺母固定在它们上。

2016-12-14_0018

And that’s all the preparation we need for this. We’re now ready to install the dimmer switch.

这就是我们为此所需的所有准备工作。 现在我们准备安装调光开关。

第四步:安装调光器开关 (Step Four: Install the Dimmer Switch)

Your dimmer switch will come with wire nuts and a couple of screws. The switch itself will have two black wires and one green (ground) wire. At this point, it’s just a matter of matching the wires between the switch and the junction box and wiring it up.

您的调光器开关将带有线螺母和几个螺丝。 交换机本身将有两根黑线和一根绿(地)线。 此时,只需将开关和接线盒之间的电线匹配并进行布线即可。

2016-12-14_0017

Start by taking the green wire and connect it to the bare copper wire. Do this by placing the two wires together side-by-side with the ends matching and screw the wire nut on clockwise like you’re turning a small knob. You’ll want to crank it until it’s very snug to prevent the wires from popping back out.

首先拉绿线,然后将其连接到裸铜线。 为此,将两根导线并排放置,使两端匹配,并顺时针拧紧导线螺母,就像转动一个小旋钮一样。 您需要将其摇动直到非常贴身,以防止导线弹回。

2016-12-14_0019

Next, do the same thing with the two black wires. Again, it doesn’t matter which black wire goes with which, since they’re interchangeable. This is what it will look like when it’s all wired up:

接下来,用两条黑色电线做同样的事情。 同样,哪根黑线与哪根线无关,因为它们是可互换的。 这是所有连接起来后的样子:

2016-12-14_0020

Next, you’ll need to stuff all those wires back into the junction box while still making room for the dimmer switch, which can be tricky since the dimmer switch is a lot thicker than a traditional light switch. Don’t be afraid to get rough with the wires and bend them back into the box as far as they’ll go.

接下来,您需要将所有这些电线塞回到接线盒中,同时还要为调光开关留出空间,这很棘手,因为调光开关比传统的电灯开关要厚很多。 不要害怕弄粗电线,并尽可能将它们弯曲回盒中。

2016-12-14_0021

Place the dimmer switch completely into the junction box and use the two included screws to secure the switch to the box.

将调光器开关完全放入接线盒中,并使用随附的两个螺钉将开关固定到接线盒上。

2016-12-14_0022

Once the switch is secured, take the faceplate and place it over the switch. Use your flat-head screwdriver and screw the faceplate in with the two included screws.

固定交换机后,取下面板并将其放在交换机上。 使用平头螺丝刀并用随附的两个螺钉将面板拧紧。

2016-12-14_0024

The dimmer switch is now installed and ready to go. Be sure to turn the power back on and test it out to make sure it fully works.

调光器开关现已安装,可以使用了。 确保重新打开电源并进行测试以确保其完全正常工作。

翻译自: https://www.howtogeek.com/284979/how-to-replace-a-light-switch-with-a-dimmer-switch/

arduino调光开关

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值