We want to convert the speed and power applied on the pedals of a bike to convert it to an digital signal. But we need to apply an variable load to simulate cycling up-/downhill.
My initial thought was to use an DC motor as generator to convert speed to an voltage we can read (with a power resistor to dissipate the power produced) and a second DC motor that would rotate counter clockwise to represent an load. But as I cannot test my theory I'm not sure if the second motor would just burn up as motors aren't supposed to be used like that. (I am well aware of the current peak the motor could use when trying to spin while halted.) Another option for the load would be using a pneumatic/electronic brake. But then we wouldn't be able to measure the power/torque.
I did find an similar question, but the situation isn't completely similar. As we plan on using the motor to continuously turn counter clockwise.
A simple nod in the right direction would suffice.