Use "ditty" in a sentence

1. While he was alive, he invented a little ditty called the Galvanometer

Durant sa vie, il a inventé le Galvanomètre