This work focuses on the miniaturization of a novel bioelectronic stimulator and recorder design into a compact and modularized format that can be implanted into small animals. The feature to allow the dynamic update of stimulation waveforms enables researchers to use this device to mimic the way the nervous system regulates the body.