doncarlosalbatros
Full Member level 2

As a part of a big system Arduino is being effected from a switch outside(so the spike is not always there only when an outside switch or surge happens ect.) and I guess through its USB producing spikes on its output. Arduino is set normally to output around 40Hz pulse train and when the spike hits it upsets the Device it couples to below:

I dont have enough time to figure out all the system and block whats happening. I rather want to eliminate or filter the spike which looks like below:

I have a scope screenshot but it is not very good one that's why I draw it above. But anyway below is the screenshot the pink one is the pulse signal:

You can see the spike above during the pulse ON time.
How can I eliminate this spike? Would a low pass filter, zener didoe or an opto-isolator help? Is there a topology at the output of the pulse Hsignal from Arduino I can try out?

I dont have enough time to figure out all the system and block whats happening. I rather want to eliminate or filter the spike which looks like below:

I have a scope screenshot but it is not very good one that's why I draw it above. But anyway below is the screenshot the pink one is the pulse signal:

You can see the spike above during the pulse ON time.
How can I eliminate this spike? Would a low pass filter, zener didoe or an opto-isolator help? Is there a topology at the output of the pulse Hsignal from Arduino I can try out?