I want to create a circuit using some op-amps (LM324CN is what I have), resistors and capacitors that takes the absolute value of some DC power source and can output to some analog comparator. However, after looking up some schematics online, I haven't been able to design one that works with my parts. Could anyone offer some design help / advice? I'm an engineering student with a limited knowledge of electronics.