I would like to know how to prevent an iPad/iPhone/iPod Touch from charging while connected to the USB port on a MacBook on battery power.
I don't think you can. USB includes 5v power, and I think it happens on a hardware level. As in, it can't be turned off without modifying the connectors or the hardware in some way. Not worth while.