In this paper, a prototype of a semi-automatic lab-on-PCB for agarose gel preparation and electrophoresis is developed. The dimensions of the device are 38 × 34 mm2 and it includes a conductivity sensor for detecting the TAE buffer (Tris-acetate-EDTA buffer), a microheater for increasing the solubility of the agarose, a negative temperature coefficient (NTC) thermistor for controlling the temperature, a light dependent resistor (LDR) sensor for measuring the transparency of the mixture, and two electrodes for performing the electrophoresis. The agarose preparation functions are governed by a microcontroller. The device requires a PMMA structure to define the wells of the agarose gel, and to release the electrodes from the agarose. The maximum voltage and current that the system requires are 40 V to perform the electrophoresis, and 1 A for activating the microheater. The chosen temperature for mixing is 80 ∘C, with a mixing time of 10 min. In addition, the curing time is about 30 min. This device is intended to be integrated as a part of a larger lab-on-PCB system for DNA amplification and detection. However, it can be used to migrate DNA amplified in conventional thermocyclers. Moreover, the device can be modified for preparing larger agarose gels and performing electrophoresis.