Atrial Fibrillation (AF) is the most common cardiac arrhythmia worldwide. It is associated with reduced quality of life and increases the risk of stroke and myocardial infarction. Unfortunately, many cases of AF are asymptomatic and undiagnosed, which increases the risk for the patients. Due to its paroxysmal nature, the detection of AF requires the evaluation, by a cardiologist, of long-term ECG signals. In Colombia, it is difficult to have access to an early diagnosis of AF because of the associated costs to the detection and the geographical distribution of cardiologists. This work is part of a macro project that aims to develop a specific-patient portable device for the detection of AF. This device will be based on a Convolutional Neural Network (CNN). We aim to find a suitable CNN model, which later could be implemented in hardware. Diverse techniques were applied to improve the answer regarding accuracy, sensitivity, specificity, and precision. The final model achieves an accuracy of , a specificity of , a sensitivity of and a precision of . During the development of the model, the computational cost and memory resources were taking into account in order to obtain an efficient hardware model in a future implementation of the device.