bobster:
the very basic sketch i have been using for testing is here, I've been altering the output to pin 9 from 0 to 255. Should I be using a digitalwrite?
I'm not sure about the diode but I thought the module dealt with that?void setup() {
pinMode(9, OUTPUT);
analogWrite(9, 0);
}void loop(){}
If you have the motor/slot between +V and the FET module's "D", then there ought to be a diode across the motor/slot as previously described. (There's nothing on the board that way, it's an off-board consideration.)
void setup ()
{
pinMode (9, OUTPUT);
}
void loop()
{
digitalWrite (9, HIGH);
delay (1500);
digitalWrite (9, LOW);
delay (1500);
}
void setup ()
{
pinMode (9, OUTPUT);
}
void loop ()
{
// ramps up and back down, then takes a 2 sec
// rest and starts over
analogWrite(9, 10);
delay (1000);
analogWrite(9, 75);
delay (1000);
analogWrite(9, 150);
delay (1000);
analogWrite(9, 250);
delay (1000);
analogWrite(9, 150);
delay (1000);
analogWrite(9, 75);
delay (1000);
analogWrite(9, 10);
delay (1000);
analogWrite(9, 0):
delay (2000);
Anyway, do show your work, sketch and photo your set-up.
D5 and D6 have a situation where very low PWMs are greater than the numbers (that's mentioned in the 'Reference'), that's why I asked how digitalWrite worked. Just trying to help you wring this out.