1752 - Franklin discovered electricity
...
1865 - Slavery abolished in U.S.
1879 - Someone (Edison?) invented the light bulb
In case it's not clear where I'm coming from: the relationship between slavery and electricity is that they both powered technology. I'm wondering if the end of slavery sparked a need for something else to make life comfortable for the upper class, causing them to throw money and interest at scientists.
Not just electricity, but did the abolishment of slavery inspire all sorts of inventions?
Franklin didn't discover electricity. He discovered some properties of it, but electricity as a phenomenon had been known long before Franklin.
The really significant advances in application of electricity were in the work of Michael Faraday in England. He developed the first electrical motors, the first generator, and experimentally showed the interaction of chemistry, electricity, magnetism and light. His peak productive years were 1820-1840.
By coincidence, slavery was outlawed in the British Empire in 1833, but was already gone from England itself by the late 1700s.
There might be an argument to be made that slavery and electricity are related through the much larger picture of the industrial revolution, but that is beyond my expertise.