Do-it-yourself
http://www.EFymag.com ElEctronics For you | July 2017 129
The source code of
this project is
included in this
month’s EFY DVD and
is also available for free
download at source.
efymag.com
efy Note
Saikat Patra is passionate about
electronics and MCU-based
embedded system applications
Shibendu Mahata is an M.Tech (gold medallist)
in instrumentation and electronics engineering
from Jadavpur University.
Currently, he is pursuing Ph.D
from NIT, Durgapur. He has keen
interest in MCU-based real-time
embedded signal processing and
process control systems
The procedure to install the ‘Legacy
MATLAB and Simulink Support for
Arduino Package’ is described in
‘Controlling a Robotic Car Through
MATLAB GUI’ DIY article published
in Oct. 2016 issue.
- After correctly setting up the
path for the package, open source
code files (ic_tester.m) of this pro-
ject. Keep both the source code files
in the same folder. Edit COM port
(in the line a=arduino (‘COM19’))
with the port number in your PC
where the Arduino Uno board has
been installed. Run the file and
click ‘Connect’ button to establish
connection between MATLAB and
Arduino Uno board. After successful
communication is established, select
proper IC from the drop-down menu
and click ‘Test’ button in the GUI to
test the IC.
TruTh Tables for 74 series DigiTal iCs
7400 Quad Two-input NaND gate
a b Y
0 0 1
0 1 1
1 0 1
1 1 0
7408 Quad Two-input aND gate
a b Y
0 0 0
0 1 0
1 0 0
1 1 1
7432 Quad Two-input or gate
a b Y
0 0 0
0 1 1
1 0 1
1 1 1
7486 Quad Two-input Xor gate
a b Y
0 0 0
0 1 1
1 0 1
1 1 0
7402 Quad Two-input Nor gate
a b Y
0 0 1
0 1 0
1 0 0
1 1 0
7404 hex inverter
a Y
0 1
1 0