Calculator using RC-5 remote by Arduino

Description

A project on RC-5 Remote with Arduino. 16×2 LCD and RC-5 decoder are connected to Arduino. By pressing keys from Remote, LCD will display pressed a key number. By pressing keypad keys Vol-, Vol+, Ch- or CH+ operator will be displayed for Minus(-). Plus(+), Multiplication(*) and Division(/) respectively. The power ON(RED) key is mapped for a reset for doing another operation. The stereo key is mapped to display a number in Decimal, Octal, Binary, and Hexadecimal numbers. The menu key of the remote is used to display a message. This code is limited to certain calculations only. The spatial key of the remote is used for equal to(“=”) to get the answer.

Required components

  • Arduino UNO
  • 16×2 LCD
  • RC-5 Protocol Remote
  • RC-5 Remote Decoder Serial out
  • Power supply or DC Adapter for Arduino
  • Jumpers (Connecting wires)

Circuit diagram

remote_arduino_Calc

16×2 LCD is connected to pin Arduino.

RS of LCD is connected to A0 of Arduino. Pin 23.

EN of LCD is connected to A1 of Arduino. Pin 24.

D4-D7 of LCD is connected to A2-A5 of Arduino. Pins 25-28.

From Remote,

Key Vol+ of remote will be used for Displaying Operator Plus(+).

Key Vol- of remote will be used for Displaying Operator Minus(-).

Key CH+ of remote will be used for Displaying Operator Multiplication(*).

Key CH- of remote will be used for Displaying Operator Division(/).

Key 0 to 9 will display digits 0 to 9.

RC-5 Remote Decoder Serial out device has 3 pinouts. one for Vcc one for ground and one for transmitting data.

Power on key(RED key) of remote is used for Reset for doing another operation.

The Tx of Decoder is connected to Rx of Arduino PD0 of Arduino.

for Vcc and GND of RC-5 Remote Decoder, I have used Pin 6(GND) and Pin7(VCC) of Arduino.

Code

Note

This project will serve the purpose of a simple calculation only.  I have used integers so for the division this code will not show the floating-point answer.

Video

Thank you for reading…

Leave a Comment

Your email address will not be published. Required fields are marked *