Robin2:
Please post your code here so we don't have to go to another website. Also my browser tells me that link is insecure.
The like is to a code standard, not the actual code I created. It's a .mil address which often shows as insecure. I understand the hesitation, so here is a direct link to the file from a Russian website. http://flprog.ru/_fr/11/MCC_Standard_PM.pdf
tmd3:
You don't say what Arduino you're using for this endeavor, or if you're using an Arduino at all.
This may be my ignorance to the nomenclature, but was my first sentence not specific enough? Arduino Pro Mini 328 - 5V/16MHz?
tmd3:
- Show your code. If the code is long, you'll be happier with your responses if you write a minimal sketch that illustrates the problem you're working on.
I attempted to do this in pseudo-code in my post. My apologies for its inadequacy. I see how that would be useful, especially in a programming forum.
/*
Sends MILES Resurrect Code sequence to IR LED.
15 October 2016
by Matt Geders
*/
int IRBlaster = 2;
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
pinMode(IRBlaster, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
digitalWrite(IRBlaster, HIGH);
delayMicroseconds(21);
digitalWrite(IRBlaster, LOW);
delayMicroseconds(189);
digitalWrite(IRBlaster, HIGH);
delayMicroseconds(21);
digitalWrite(IRBlaster, LOW);
delayMicroseconds(105);
digitalWrite(IRBlaster, HIGH);
delayMicroseconds(21);
digitalWrite(IRBlaster, LOW);
delayMicroseconds(147);
digitalWrite(IRBlaster, HIGH);
delayMicroseconds(21);
digitalWrite(IRBlaster, LOW);
delayMicroseconds(357);
digitalWrite(IRBlaster, HIGH);
delayMicroseconds(21);
digitalWrite(IRBlaster, LOW);
delayMicroseconds(105);
digitalWrite(IRBlaster, HIGH);
delayMicroseconds(21);
digitalWrite(IRBlaster, LOW);
delayMicroseconds(1659);
digitalWrite(IRBlaster, HIGH);
delayMicroseconds(21);
digitalWrite(IRBlaster, LOW);
delayMicroseconds(315);
digitalWrite(IRBlaster, HIGH);
delayMicroseconds(21);
digitalWrite(IRBlaster, LOW);
delayMicroseconds(315);
digitalWrite(IRBlaster, HIGH);
delayMicroseconds(21);
digitalWrite(IRBlaster, LOW);
delayMicroseconds(105);
digitalWrite(IRBlaster, HIGH);
delayMicroseconds(21);
digitalWrite(IRBlaster, LOW);
delayMicroseconds(189);
//to save space in this forum post, I've removed the above block repeated 7 more times
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
//delay(5000); // wait for 5 second
}
tmd3:
- Read the information in the sticky post, "How to use this forum - please read," found at or near the top of the subject listings for each section of the forum, and follow the posting guidelines you find there.
I believe I did, but I can't help but feel I've stepped on some toes somehow?