Hello people,
I am trying to get a case fan to move with an arduino mega 2560 and a pololu qik. Eventually I want to stack multiple qiks to control many motors but right now I just want to control 1 motor. Because I want to use the pololu protocol I cannot use the library that was made for the qik but I had thought that the instructions for commanding a motor was pretty strait forward, I was wrong or more likely am just doing it wrong. Here is some background info...
Here is the Fan http://www.masscool.com/product_detail.php?pid=&id=57
Here is the qik Pololu - Qik 2s9v1 User’s Guide
Here is the code
//Qik Programmer
byte incoming='X';
byte hex84=132;
byte hex55=85;
byte hex2A=42;
byte hex82=130;
byte hex83=131;
byte hexAA=170;
byte zero=0;
byte hex88=136;
void setup()
{
Serial.begin(9600);
Serial1.begin(38400);
Serial2.begin(38400);
Serial3.begin(38400);
// Serial1.write(170);
// Serial.println("Starting");
// Serial1.write(hexAA);
//delay(500);
Serial1.print(0XAA,BYTE);
Serial1.print(0X88,BYTE); //Pololu Protocol Control Identifier
//Serial1.write(8);
Serial1.print(0X64,BYTE);
Serial.print(0X88,BYTE); //Pololu Protocol Control Identifier
//Serial1.write(8);
Serial.print(0X64,BYTE);
delay(5);
}
void loop()
{
}
I am seriously lost here and cannot understand whats up with this please help!