Skybluecam wrote:I was thinking of using an arduino L298n motor driver- would this work?
I think the Power Functions motors are just ordinary motors, that is they have no special electronics built in. (Unlike the Mindstorms, etc.) So the L298 or any driver like that should work.
Trouble is how to make the connections. The wires are terminated with a special Lego brick. You could buy one of the extension leads that joins to that brick, and cut it in half. That would give two wires to connect to, without having to modify the motor.
I think there are articles out there on the net where people have worked out which two wires connect to the motor, but poking around with a 6-9V battery should establish that.
EDIT: I found an example, using one of the larger XL power functions motors, can't quite see from the photos but it looks like he just cut a connector off and connected the wire to his breadboard:
http://blog.zephod.com/post/37120089376 ... spberry-pi