Hi, right now I have a signal that is either high(5V) or low(0V). Is there any circuit that can make this signal when it is high, it's 5V and when it is low, it is -5V instead of 0V?
The idea of the comparator is good but you must tie the inverting input to +2.5V and not to ground (0V). You can produce +2.5V with a voltage divider from +5V and -5V (for example use 10K and 30K resistors). Also use a comparator and not an opamp.