GERBER PCB:
https://mega.nz/file/rRxzWAKB#Jd24_dYcj03We2BB6C6Kk1vwO5IulnjRNpKDdmkClB0
To program our ARDUINO UNO we have found the need to have a shield and facilitate the issue of external wiring. In this project we will make an ARDUINO shield where they do not need external cables because everything will be inside the PCB that we will design, therefore we will no longer opt for protoboards that with constant use sometimes make false contacts and harm us by sending errors in the tests of our circuits.
In this project we will use an IR shield that is the infrared receiver to turn on and off leds with 11 digital outputs.
#include <IRremote.h> // importa libreria IRremote int SENSOR = 2; // sensor KY-022 a pin digital 2 void setup() { Serial.begin(9600); // inicializa comunicacion serie a 9600 bps IrReceiver.begin(SENSOR, DISABLE_LED_FEEDBACK); // inicializa recepcion de datos } void loop() { if (IrReceiver.decode()) { // si existen datos ya decodificados Serial.println(IrReceiver.decodedIRData.decodedRawData, HEX); // imprime valor en hexadecimal en monitor IrReceiver.resume(); // resume la adquisicion de datos } delay (100); // breve demora de 100 ms. }
SHIELD
It is simply a printed circuit board that is placed on the ARDUINO board and connected to it by coupling its pins without the need for any other external connection. Its function is to act as a complementary board, expanding the capabilities of the ARDUINO Base board.
In the circuit we will first see how to receive our codes because depending on the brand of each control, the hexadecimal codes of each key can vary, so we need to be sure which codes to use to be able to turn an LED on or off. Next we will see the ARDUINO IDE source code and the electronic schematic to be able to visualize them within the ARDUINO IDE serial monitor.
IR RECEIVER
Infrared (IR) diodes work by converting electrical current into infrared light; while infrared detectors do the opposite by detecting infrared light and converting it into an electrical current. The current generated by an infrared detector is a signal indicating that this type of light exists.
Infrared is a wavelength of light that is beyond the range of human vision. This makes infrared an excellent tool for applications where light is required, but where visible light might be distracting or otherwise unwanted. The use of infrared light-emitting diodes, or LEDs, makes remote control systems possible in various projects.
The characteristics of an ir receiver are:
· With aluminum layer
· Infrared light receiver
· High sensitivity
· Infrared light receiver
· Applications: home automation, robotics, mechatronics, music, tv, video machine among others
Specs:
· Type: Infrared Receiver
· Minimum supply voltage: 2.7 V
· Maximum supply voltage: 5.5 V
· Supply Current: 1.5mA
· Maximum range: 28m
· Frequency: 38KHz
· Receiving Angle: 90°
· Minimum operating temperature: -20°C
· Maximum operating temperature: 80°C
· Number of pins: 3
ELECTRONIC COMPONENTS:
· 11 LEDS 3MM different colors
· 1...
Read more »