I am trying to wire some infrared LEDs to an Arduino. Problem is, the signal from the infrared LEDs has to be able to change variably, like from a potentiometer. What I mean is, I am aware you can read an ouput from an IR LED, then use the Arduino to replicate this and consequently control things, but what if I wanted to ouput a signal that changed, like a potentiometer? Basically, I would like to be able to control some motors speed through PWM by a potentiometer, but wirelessly. I'm not sure if this is possible, and if it is, is there some information I could look into? Any help is greatly appreciated.