I am trying to construct a lost model RF transmit beacon using the instruction on this video:
I am using Linux Mint 20.3. Arduino IDE version 2.0.4
However, I am using a different board than what is recommended.
I am using an arduino pro mini that has a socket fitted that suits an android phone to USB.
Apologies: I am not sure that the correct name for this is.
This is the board I am working with: https://www.aliexpress.com/item/1005003098601899.html?spm=a2g0o.order_list.order_list_main.61.88ae1802E19mEh
When I connect the data pin of the 433Mhz to pin # 13 on the above pro mini, I do hear the output switching in the RF receiver, indicating that I at least have output and RF reception.
However, I hear no tone during the interval between the switching "clicks".
Clearly, I have something missing in either the code, or I am using the wrong pin to drive the RF tx from the pro mini.
Can someone point me in the right direction please?
Please note: I have no programming experience or understanding.
Jim.
// ---------------------------------------------------
// | Vortecks Lost Model Beacon |
// | www.youtube.com/vortecks |
// | Recommended to use Arduino Pro Mini 8mhz 3.3v |
// | |
// | This is freely distributable, as long as I get |
// | at least a mention :-) |
// ---------------------------------------------------
int activationPause = 0; // How many milliseconds to pause before activation - Default = 45 mins (2700 milliseconds)
int standbyFlash = 15; // Frequency of internal LED flash in milliseconds
int breakBetweenLoop = 2000; // How many milliseconds to wait until restarting tone
const byte rsOUT = 17;
int pause = 0;
void setup()
{
pinMode(rsOUT, OUTPUT);
pinMode(13, OUTPUT);
int initialDelay = 0;
while (initialDelay < (activationPause * 2))
{
digitalWrite(A3, HIGH);
delay (standbyFlash / 2);
digitalWrite(A3, LOW);
delay (standbyFlash / 2);
initialDelay++;
}
}
void loop()
{
digitalWrite(A3, HIGH);
while (pause < 70)
{
digitalWrite(rsOUT, HIGH);
delay(4);
digitalWrite(rsOUT, LOW);
pause++;
}
pause = 0;
digitalWrite(A3, LOW);
while (pause < 70)
{
digitalWrite(rsOUT, HIGH);
delay(3);
digitalWrite(rsOUT, LOW);
pause++;
}
pause = 0;
digitalWrite(A3, HIGH);
while (pause < 50)
{
digitalWrite(rsOUT, HIGH);
delay(3);
pause++;
}
pause = 0;
digitalWrite(13, LOW);
while (pause < 50)
{
digitalWrite(rsOUT, HIGH);
delay(3);
digitalWrite(rsOUT, LOW);
pause++;
}
pause = 0;
while (pause < 20)
{
digitalWrite(rsOUT, HIGH);
delay(3);
pause++;
}
pause = 0;
while (pause < 70)
{
digitalWrite(rsOUT, HIGH);
delayMicroseconds(3000);
digitalWrite(rsOUT, LOW);
pause++;
}
pause = 0;
while (pause < 50)
{
digitalWrite(rsOUT, HIGH);
delayMicroseconds(3200);
digitalWrite(rsOUT, LOW);
pause++;
}
pause = 0;
while (pause < 50)
{
digitalWrite(rsOUT, HIGH);
delayMicroseconds(3600);
digitalWrite(rsOUT, LOW);
pause++;
}
pause = 0;
while (pause < 50)
{
digitalWrite(rsOUT, HIGH);
delay(4);
digitalWrite(rsOUT, LOW);
pause++;
}
pause = 0;
while (pause < 50)
{
digitalWrite(rsOUT, HIGH);
delayMicroseconds(4000);
digitalWrite(rsOUT, LOW);
pause++;
}
pause = 0;
while (pause < 50)
{
digitalWrite(rsOUT, HIGH);
delayMicroseconds(4500);
digitalWrite(rsOUT, LOW);
pause++;
}
pause = 0;
while (pause < 50)
{
digitalWrite(rsOUT, HIGH);
delayMicroseconds(4750);
digitalWrite(rsOUT, LOW);
pause++;
}
pause = 0;
while (pause < 50)
{
digitalWrite(rsOUT, HIGH);
delay(3);
pause++;
}
pause = 0;
while (pause < 50)
{
digitalWrite(rsOUT, HIGH);
delay(4);
digitalWrite(rsOUT, LOW);
pause++;
}
pause = 0;
while (pause < 50)
{
digitalWrite(rsOUT, HIGH);
delay(3);
digitalWrite(rsOUT, LOW);
pause++;
}
pause = 0;
while (pause < 70)
{
digitalWrite(rsOUT, HIGH);
delay(3);
pause++;
// digitalWrite(rsOUT, LOW);
}
pause = 0;
while (pause < 70)
{
digitalWrite(rsOUT, HIGH);
delay(3);
digitalWrite(rsOUT, LOW);
pause++;
}
pause = 0;
while (pause < 70)
{
digitalWrite(rsOUT, HIGH);
delayMicroseconds(2650);
digitalWrite(rsOUT, LOW);
pause++;
}
pause = 0;
while (pause < 50)
{
digitalWrite(rsOUT, HIGH);
delay(3);
pause++;
// digitalWrite(rsOUT, LOW);
}
pause = 0;
while (pause < 70)
{
digitalWrite(rsOUT, HIGH);
delayMicroseconds(3200);
digitalWrite(rsOUT, LOW);
pause++;
}
pause = 0;
while (pause < 70)
{
digitalWrite(rsOUT, HIGH);
delay(3);
digitalWrite(rsOUT, LOW);
pause++;
}
pause = 0;
digitalWrite(rsOUT, LOW);
delay (breakBetweenLoop);
}