Ziyadelbanna / Arduino

:electric_plug: Electronics useful projects with arduino development board

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Arduino projects

The goal of this repository is to gain solid knowledge about hardware programming, dealing with electronic devices i.e: Arduino development board and uploading code to electronic boards through Arduino IDE and track its impact on serial monitor/ other devices.

1. Translate string to morse code

How to use the program

  • Use the serial monitor to input your message
  • Connect your arduino kit and use Leds and high volume buzzer for a better view
  • After you have connected your kit, Press Enter.

2. Remote control with IR receiver

Every remote control has its own IR code so to know your remote control copy the following code to your Arduino IDE

The first step is to connect your IR reciever.

To connect a breakout board mounted IR receiver, hook it up to the Arduino like this: Breakout mounter IR receiver

And to connect a stand-alone receiver diode, wire it like this:

Stand alone receiver diode

Then, copy the following code into your Arduino IDE

#include <IRremote.h>
const int RECV_PIN = 7; //Your default output pin
IRrecv irrecv(RECV_PIN);
decode_results results;

void setup(){
  Serial.begin(9600);
  irrecv.enableIRIn();
  irrecv.blink13(true);
}

void loop(){
  if (irrecv.decode(&results)){
        Serial.println(results.value, HEX);
        irrecv.resume();
  }
}

Now press each key on your remote and record the hexadecimal code printed for each key press.

Write down the value of each key and save it.

Finally, use each key in your remote control to do a specific function, By following my code you will figure out that I used my remote control to perform the function of a calculator.

To-dos

1- Traffic lights.

2- Temprature warning system.

3- Voltage threshold detector.

About

:electric_plug: Electronics useful projects with arduino development board


Languages

Language:C++ 100.0%