The Lazy Man's Way Of Turning On A Lamp - operate any lamp using Arduino and a TV remote control

10 Просмотры
Размещено
Learn the lazy man's way of turning on a lamp and know how to operate any lamp using Arduino and a TV remote control. Your kids will think it's magic :::ta-da!!:::

Warning: misuse could cause injury or death when using high voltage current. Use proper precautions before supplying high voltage to your project. Be certain you have a safe and reliable connection with wire of the proper gauge. make sure the relay is safely mounted and isolated before use. You may want to use an external power source (not your Arduino) to activate the 5V relay, especially if you're working with multi channel relays. Most importantly, if you're unsure of what you're doing - SEEK ASSISTANCE and do not attempt on your own.

facebook link - https://www.facebook.com/BMonster-Laboratory-101410418059806/
twitter link - https://twitter.com/b_monsterlab

Chapters:
0:00 intro
0:19 what you will need
1:38 safety first***
2:09 intro to the TSOP4838 IR receiver
3:15 prepare the extension cord
3:46 a review of the 5V relay
5:45 relay module datasheet
6:20 a breadboard setup
7:23 the code
10:18 setting up the Arduino and relay circuit
11:48 testing the final product

How To Operate Any Lamp With A TV Remote Control Using Arduino And a 5V Relay With An IR Receiver

In this video we control a floor lamp with a tv remote control. We begin by using Arduino (Elegoo Mega 2560) with a 5V relay and an IR receiver, the TSOP4838 IR receiver. I purchased an extension cord that is rated for 125V at 13amps. It is 16 gauge and that is plenty sufficient for this project. Never work with high voltage at your work bench. Always prototype projects like this using a breadboard, Arduino, and LEDs. If there is any doubt in setting this up, please seek assistance. This is a high voltage project that could result in serious consequences if done improperly. After using the serial monitor to decode the buttons on my remote control, I placed the button codes into the IDE code for my on/off functions. Once my circuit was successful, I mounted the entire project on a 1/4 inch piece of wood and isolated the relay and high voltage wires with an electric box. I powered the 5V relay with my Arduino power source because I'm only using 1 relay and there is no continuous current flow, only a pulse each time I press a button. Using an external power source for this project is another option. You should use an external power source, and not relay on power from your Arduino, if you're using multiple channel relays or if you are running continuous current through your circuit.
You should do your own research before attempting this project to ensure it operates properly and safely.
Категория
Ардуино
Комментариев нет.