Instructables has a guide to building a logic probe using a PCB, an assorted lot of resistors, capacitors, regulators, DIP sockets, a 9V battery clip (and ... putting this together only slightly ...
The whole circuit is built on top of a battery clip so it can be run straight from the top of a standard 9 volt battery. It’s a circuit you’ll find all over the place, even built into many ...