Virtual Wire and AF Motor shield

Hi everyone,

Can I use VirtualWire library and AF Motor Shield to rf control DC Motors?
When I use this code:
vw_set_ptt_inverted(true); // Required by the RF module
vw_setup(2000); // bps connection speed
vw_set_rx_pin(2); // Arduino pin to connect the receiver data pin
vw_rx_start(); // Start the receiver

I can't control speed on M1,M3 and M4. I can only control speed on M2

Thanks

Do you use the ptt signal ?
Even if you don't use it, the pin is used by the library.

I could be wrong, but I think the ptt is pin 10, and the Adafruit Motor Shield has only pin 2 and 13 unused and it doesn't use any of the analog pins.

You could set ptt to pin 13 or to an analog pin.
Perhaps you could use only analog pins for the RF module, to be sure there is no conflict of pins.

Does the AF motor shield use timer1? I think the vrtualwire documentation says it takes over timer1.