Just heard about this for the first time, found an article from years ago:
Stationary Bikes Get Brazilian Prisoners Closer to Freedom
Inmates pedal stationary bicycles to power lights in a nearby town in exchange for reduced sentences.
By Meg Handley, Staff Writer?July 12, 2012, at 5:45 p.m.
(FELIPE DANA/AP)
FOR PRISON INMATES IN Brazil, good behavior isn't the only thing that gets them closer to freedompedaling a bike to help power a nearby town can, too.
Through an innovativeand eco-friendlyprogram, prisoners can cut down their sentences by putting in some time on stationary bikes hooked up to car batteries, according to the Associated Press. As the inmates pedal, the car batteries are charged.
The charged-up batteries are then used to illuminate 10 street lamps in the nearby town of Santa Rita do Sapucai. The town's mayor told the AP he came up with the idea after learning about gyms in the United States that use electricity generated by exercise bikes.
Volunteers in the medium-security prison earn one day off their sentence for every three eight-hour shifts they spend on the bikes, which were salvaged from the local police department's lost and found. One inmate has already reduced his sentence by 20 days, and his weight by about 9 pounds, thanks to the two-month-old program.
More:
https://www.usnews.com/news/articles/2012/07/12/stationary-bikes-get-brazilian-prisoners-closer-to-freedom