arduino nano power supply
So in this video I will show you how repurpose such useless buttons to control the LED lighting behind my TV. Firstly, I will talk a bit about the theory of controlling things with remote and then I will construct the main project around neutrino nano for you to remake let’s, get started first of all, let’s inspect the remotes and see how it communicates with the TV. When I press a button, you can see that a LED in front flickers rapidly. You can see it on camera, but is actually not visible with the human eye, because this is infrared light. Let’S dig a bit deeper by opening up this auto remote that I had laying around, and while I do this, let me tell you that infrared light is really close to the visible light and start with a wavelength of around 700 nanometers. We use it in such remotes because it is easy to produce it. Doesn’T cost much. It is invisible to us and they use this method for quite a long time, so they know how to make it work. Ok, the audrey mode is ready for some testing. I solder the wire to the anode and the cathode of the ir LED and hook them up to my oscilloscope. I hooked up the remote to my power supply and, as soon as i hit a button, the LED flickers and on the oscilloscope, we can see this madness. It’S not easily explained, but in a nutshell, it’s all about the length of those voltage bursts and the pause between those which represents the data or code.
We want to transmit. But something seems weird let’s zoom in a bit, and we can see here that the voltage is not constantly high in those earths. It turns on and off of a frequency of 36 kilohertz, which is also called the carrier frequency see, but why this crap? You may ask well it’s simple infrared light is not where it’s everywhere the Sun produces it and all kinds of other light sources as well. That is why we have to make our signal special so that we can distinguish it from all this other eye, our lights. With that being said, let’s talk about the receiver, those are mostly hidden in your TV. I got those too from old DVD players and you can easily salvage your own IR receiver from other gadgets. You may have laying around or you buy one online. There are not expensive. This one is a v4 8 3 8 and with the help of almighty Google, I found a datasheet for it. There we see that it works with 5 volts awesome for green. Oh, we can see the pin out with vs ground and data out and also block diagram, which tells us that there is an amplifier filter and demodulator inside, and this means we get rid of the carrier frequency and receive a beautiful data signal on pin 1, which Is suitable for microcontroller to process, but we still don’t know the data format of the signal. The data format defines which constellation of bursts and pause represent 0 and 1 in the code.
The most popular ones are neck, our c5 or c6, and many many more so to make things easier. Let’S use great IR library for the Arduino, as always, don’t forget to download it. If you want to build this too let’s wire up the Arduino Nano and to receive on a breadboard so that I can input my data signal on pin 11, I used the example. I are rec demo and just uploaded the code without any changes. If we open the serial, monitor and press the useless button on our remote, we can see the hexadecimal code for this button and, with a little bit of code editing, we can assign a task for the arduino every time the Spartan is pressed like lighting up LED. I chose the digital pin 9 for this job and just edit a green LED on the breadboard for testing purposes. Now I just upload the code and it works like a charm awesome, but how about dimming the LED as well? I chose two more useless buttons and use the hexadecimal code of those to increase or decrease a variable which controls the analog write function of pin 9. This is how the final code looks like, and the final test was also a big success, but instead of the green LED, I want to control this around 2 meter long RGB LED strip, which I can obviously not control with just to do the pin. I also need a N channel MOSFET, which can handle the 2m current, or I chose this io LC 44 n, which works without any problems during the first test.
Now it is time to move this project to a strip wards. Here are all the parts that I used and, of course I also created a schematic and both layout for you guys. So you can recreate this project check out the instructables site for this, but you will also need a power source. I got this 12 volt 5 and power brick, which is a definite overkill. 3 amps would have been enough and always double check which pin DC jack is plus 12 volt and which is ground because nobody likes reverse voltage at first. I build the circuit itself without the external parts like IR receiver and LED strip. It was a pretty easy job, but always make sure that you have proper interruptions between the copper traces and I also needed to solve this TC Jack sideways, because I was too stupid to enlarge the holes of the PCB, but it works fine after the circuit was Done I got the IR receiver and solid a 100 mukarat decoupling capacitor between vs and grounds. Then I soloed one wire to each pin don’t forget shrinking tube and I soloed the other side of the wires to the main PCB. I connected the three cathode of the LED strip together and use thicker wire to connect the anode to 12 volts and d cap o to the pin 2 or drain off the MOSFETs, and the board is done just a quick test at the end and everything still Works fine time to mount the strip, so I used this double sided tape in combination with hot glue to secure the strip to the back of my TV coupled or however, you call that I also secured the PCB with hot glue and the IR receiver, but make Sure that it Peaks out a bit so it can properly receive the signal, and this is done now I can enjoy TV.
I mean YouTube and turn on the lights without ever needing to get off my couch as always thanks for watching. Maybe you want to check out my facebook site to see what I’m up to don’t forget to Like share and subscribe.
arduino nano power supply Video
[mam_video id=ftdJ0R_5NZk]
[mam_tag id=4581]
arduino nano power supply news
-
Posted on Friday October 04, 2019
Wio Lite RISC-V WiFi Board with ESP8266 Module Launches for $6.9 CNX Software … Continue Reading » -
Posted on Sunday May 19, 2019
New Arduino Nano Line Rolls Out In Four Flavors At Maker Faire Bay Area Hackaday … Continue Reading » -
Posted on Monday March 18, 2019
Hands-On: New Nvidia Jetson Nano Is More Power In A Smaller Form Factor Hackaday … Continue Reading »
arduino nano power supply Social
🔬 Now that you’ve gotten your feet wet, dive into the kit and enjoy all nine experiments. Order yours today: http://bit.ly/2MnQ7fr
https://www.pinterest.com/pin/35465915794474667/
https://www.pinterest.com/pin/35465915794474666/
https://www.pinterest.com/pin/35465915794474664/
Would rising up the amps and volts by 2 heat up the wires and Fry the control box
Subcsribe Afrotechmods
You’re watching afrotechmods?!?!
*A L M I G H T Y G O O G L E*
I found a couple of remote controls from old toys, with 4 button, and an extendable antenna, instead of an IR. Do you have an instructional video on how to repurpose this type of remote? I have a total of 3, and can send you 1 for testing, and to keep if interested. They are really cool remotes, hense the reason I want to repurpose them.
you need standard rf modules for that
https://www.youtube.com/watch?v=b5C9SPVlU4U
why do you need the capacitor?
How to do this without the arduino?
Great video 🙂
my Arduino nano is getting very hot please do reply how to resolve it
Sir can we use an attiny85 controller instead of arduino nano because I want to make it small?
I made it but i have a problem. I found an ir receiver from an old crt tv and it works but it has so short range. About 10 to 20cm. Is it the foult of the ir receiver or something else. Pls help
7:07 reference to VSauce detected
doesn’t work with Arduino uno
Any way to do this without an oscilloscope?
Another great video! Thanks again!
If I wanted to do something similar but wanted it to be able to change color over time would the wiring for the led strip be different?
That’s so complicated and time consuming
Please help me. I want to control DC motors with mp3 player remote.
My code is this:
#include
#include
AF_DCMotor motor1(1);
AF_DCMotor motor2(2);
int RECV_PIN = A5;
IRrecv irrecv(RECV_PIN);
decode_results results;
unsigned long lastCode;
void setup()
{
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
motor1.setSpeed(100);
motor1.run(RELEASE);
motor2.setSpeed(100);
motor2.run(RELEASE);
}
void loop() {
if (irrecv.decode(&results))
{
if(results.value == 0xFFFFFFFF)
{
results.value = lastCode;
}
if(results.value == 0x807FA05F)
{
lastCode = results.value;
up();
}
if(results.value == 0x807F609F)
{
lastCode = results.value;
down();
}
if(results.value == 0x807F906F)
{
lastCode = results.value;
right();
}
if(results.value == 0x807F807F)
{
lastCode = results.value;
left();
}
delay(20);
Serial.println(lastCode, HEX);
irrecv.resume(); // Receive the next value
}
// delay(100);
}
void up()
{
motor1.run(FORWARD);
motor2.run(FORWARD);
}
void down()
{
motor1.run(BACKWARD);
motor2.run(BACKWARD);
}
void right()
{
motor1.run(FORWARD);
motor2.run(BACKWARD);
}
void left()
{
motor1.run(BACKWARD);
motor2.run(FORWARD);
}
After uploading this code, Serial monitor is giving perfect output, but motors are not moving.
Great really great
Guys I was just sitting in my room and I clicked an arrow on my remote and it changed the color of my led lights..
Im literally going through the same thing rn smh
Brother please can you send me Arduino code for this project