Generating ECG/EEG signals with a microcontroller