The project is using the SPI output of an Espruino Pico to send messages to an LED strip controller. The issue is that occasionally the Pin is damaged. Using an oscilloscope has shown that there is some noise on the comms lines. The thinking is that occasionally there may be voltage spikes that have traveled along the comms line and blown the pin (although this has been seen on the scope). I am looking for a way to electrically protect the SPI pins. I set up a transistor in line so that the SPI signal would switch the transistor, but the voltage drop was too great and the signal is inverted, making this not an option. I have also tried an optoisolator, but with no luck.
Is there a chip/IC that can achieve electrical isolation for an SPI line?
Thanks in advance for any help you can give.