Computer Systems Module

24-09-2020

Introduction

The Computer Systems module was the first module of my Cyber Security Degree and served as an excellent introduction to the technical workings of computer systems. Building on my knowledge from Level 2 and Level 3 IT diplomas at college, this module covered various essential topics that laid the foundation for my future studies. Below is a summary of the main topics covered and my approach to learning each one:

  • Arduino Programming with C++
  • Basic Electronics
  • SI Units & Number Systems
  • Combinatorial Logic
  • Computer Architecture
  • Hardware & Software
  • Computer Networks & Security
  • Internet of Things (IoT)
  • Academic Writing
  • Operating Systems
  • Cloud Computing
  • Edge Computing & Clusters

Arduino Project: Digital Lock Mechanism

A major assessment for this module was to program an Arduino microcontroller to simulate a locking mechanism controlled by keypad input. The project utilized various components to create a practical example of hardware interfacing and embedded systems programming.

Components Used:

  • Microcontroller (Arduino)
  • 4x4 Keypad
  • Micro Servo
  • Jumper Wires
  • LED (Green)
  • 1kΩ Resistor

Programming the Lock

To start, I programmed the Arduino to handle the input and output of the system. The first step was to define the length of the password and set up arrays to store both the entered data and the master password. I then configured the keypad matrix layout, including the row and column pin connections to the Arduino.

The servo motor was incorporated to simulate the locking mechanism, activating once the correct password was entered. The main loop in the program continuously checks for key presses on the keypad. Upon detecting a key, the program stores the corresponding character in the data array.

Once the password length was reached, the program compared the entered password with the predefined master password. If the passwords matched, the green LED turned on, and the servo motor was triggered to simulate unlocking. If the passwords didn’t match, the red LED turned on to indicate an incorrect password.

Functions and Locking Mechanism

I also implemented two functions: one to clear the entered data after each attempt and another to control the servo motor’s movement, activating the locking mechanism.

Final Step: Encryption

Upon successful entry of the correct password, the entered code was encrypted and displayed on the serial monitor. This encrypted code served as a unique key for unlocking the simulated lock, demonstrating a basic yet functional digital lock system.

Tinkercad Build Screenshot


Conclusion

This Arduino programming project was a great practical application of concepts learned in the Computer Systems module. It showcased skills in hardware interfacing, C++ programming, and building a secure system with basic password handling and encryption. The experience was invaluable in understanding the integration of hardware and software to create functional, real-world applications, which is essential for any career in Cyber Security.


Sources:

  • None