Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
DECLARATION
Lab Report
I hereby declare this …………………………… is entirely my own work except for the
references quoted. I declare that I have read the University’s statement on plagiarism and
copyright protection and that I have upheld them in producing this work.
…….. ………………...
SIGNATURE
TABLE OF CONTENTS
1.0 Abstract 3
2.0 Aim 4
3.0 Introduction 4
4.0 Equipment 4
5.0 Stage 1 5
5.1 Pin-out
5.2 Purpose of Signal/pin
5.3 Voltages Identification
5.4 Direction and Sequence of Signal
6.0 Stage 2 8
6.1 List of Pins for 9-pin RS-232 Connector
6.2 Signal Handling
6.3 Procedure to Connect Signals to Arduino Pins
6.4 Schematic of Proposed Circuit
7.0 Stage 3 10
7.1 Circuit Assembly
7.2 Code Implementation
7.3 Echo a Character
7.4 Demonstration of RS-232 Breakout Box
8.0 Discussion 12
9.0 Conclusion 12
10.0 References 13
1.0 ABSTRACT
The outcome of the mini project is to develop and build RS232 breakout box using
RS232 interface standard between two Arduino boards. In this report, the procedures to achieve
the outcome are:
1. First physical connection was built, then operations of the RS232 were
restudied,
2. Mapping and identification of the pins were done,
3. Circuit of break-out box were assembled by compiling and run the required
code to RS232 break-out box work.
The required notes and values were recorded and discussed in the discussion and observation
section.
2.0 AIM
The purpose of this report is to understand the operation of designing and developing a
RS-232 breakout box, and also to be able to demonstrate a RS-232 breakout box.
3.0 INTRODUCTION
This report will justify the knowledge and skill to design and develop a RS232 breakout
box. A breakout box is an item of test equipment that is used to monitor the signals of a
communication part for the purpose of diagnosing issues. It has LEDs to represent each signal
of the port and they will turn on when a signal is active in the signal line.
4.0 EQUIPMENT
Equip. Qty.
1 Arduino Uno boards and USB cables 2
2 Matrix board 1
3 10𝑘𝛺 Resistors 2
4 LEDs 2
5 RS-232 Cable with Male Pin 1
6 Wire cutter and wires 1
Table 1: List of Equipments
5.0 STAGE 1
5.1 Pin-out
For RS232 transmitter and receivers to function as it was designed, the voltage
levels were identified for the data transmission. There are two logical states which are
defined as per voltages identification listed below:
The voltage states for the control signal were also defined to be used within
RS232.
Most RS232 devices implement additional handshaking pins. The most useful
are called RTS (Request To Send) and CTS (Clear To Send). The CTS pin is a DCE
output and is used by the DCE to indicate that it can accept data on the TxD line. The
RTS line is an output on a DTE and is used to indicate that the DTE wants to send (RTS
was originally used to control half-duplex modems- these are rarely seen today.) Since
these signals are used to control the flow of data from the DTE (and optionally from
the DCE) these pins are called (hardware) “Flow control” signals.
For this part, previously used signally handling method were used by
connecting Arduino and RS-232 connector physically to transmit-receive the signals.
The following schematic show the physical connection used to connect each signal to
Arduino pins.
Demonstration were done after successful designing and developing the RS-232
Breakout Box with various codes implemented and compiled with the Arduino
Software.
The aim of the experiment was to understand the operation of designing and developing
a RS-232 breakout box
• RS-232 is used for communication between the serial monitor and Hyper Terminal.
• All Arduino boards have at least one serial port.
• Serial (RS-232) communicated with the computer via USB when established
communication but when communicating using hardware handshaking then the
board must use the specific signals which is explained in the previous part of the
project to communicate via DB9 RS-232 connector.
• Hardware handshaking used for this project is a technique for regulating the flow of
data across an interface by means of signals carried on separate wires. For example,
the Rx (Receive data) and Tx (Transmit data) signals on a RS-232 interface.
The Arduino serial library does not support full hardware flow control or handshaking.
Therefore, the Arduino code was developed to implement that facility using code rather than
using the provided code. Finally, whenever any signal passed from either serial monitor to
HyperTerminal or HyperTerminal to serial monitor, LEDs used to toggle which proves that
breakout communications successful.
9.0 CONCLUSION
In conclusion, the experiment was successful as the serial communication of the RS-
232 and Arduino were observed moreover the implementation of handshaking in the event of
garbage text due to the logic voltage level being too low to be either logic 1 or logic 0. It was
proved that without the IC the serial communication between the RS232 and the Arduino UNO
would not be possible as the voltages levels were not right, but the IC uses charge pumps and
external capacitors to adjust the voltage levels to allow the communication. The message sent
from RS232 to the Arduino UNO was delivered unaffected which proves that the objectives of
the experiment were accomplished.
10.0 REFERENCES