Myocardial infarction (MI) is a life-threatening medical condition that necessitates both timely and precise diagnosis. The enhancement of automated method to detect MI diseases from Normal patients can play a crucial role in healthcare. This paper presents a novel approach that utilizes the Discrete Wavelet Transform (DWT) for the detection of myocardial signals. The DWT is employed to break down ECG signals into distinct frequency components and subsequently to selectively filter out noise by thresholding the high-frequency details, resulting in denoised ECG signals for myocardial signal detection. These denoised signals are fed into lightweight one-dimensional Convolutional Neural Networks (CNN) for binary classification into Myocardial Infarction (MI) and Normal categories. The paper explores three distinct approaches: utilizing all signals, incorporating under-sampling and up-sampling to address class imbalances, with both noised and denoised signals. Evaluation of the suggested model is done with the help of two publicly available datasets: PTB-XL, a large publicly available electrocardiography dataset and PTB Diagnostic ECG Database. Results obtained through 5-fold cross-validation on the trained model show that the model has achieved an accuracy of 96%, precision of 97% and F1 score of 95%. On cross-validation with the PTB-ECG dataset, this paper achieved an accuracy of 91.18%.