How to Use Arduino and a RF 433 Long Range
by rcgarage in Circuits > Arduino
7289 Views, 33 Favorites, 0 Comments
How to Use Arduino and a RF 433 Long Range
I just explain how i have use the 433MHz RF Long Distance Transmitter / Receiver Pair and a arduino to install it on my rc truck for a firework ignition, lamp , pan tilt camera systeme .........
MATERIAL YOU NEED
1 ARDUINO UNO
1 433MHz RF Long Distance Transmitter / Receiver Pair
1 MOSFET TRANSISTOR
2 POWER 9V BATTERY
1 PUSHBUTTON
1 MOTOR OR LED OR WHAT YOU WANT !!!
WIRING THE TX
Transmetteur (tx) was easy to wiring
in the first time i have only use the puschbuton on the d0
after i have use the 4 " data " input
its not realy data its just a on/off sending
WIRING THE RX WHIT ARDUINO
wiring the d0 output of the rx to the A0 of the arduino
wiring the gate of the mosfet to the pin 13 of the arduino
the source to the gnd and the drain to the motor or other thing like lamp or firework ignition....
THE CODE
#define mosfetPin 13
int on = false;
void setup(){
pinMode(mosfetPin, OUTPUT);
}
void loop(){
if (analogRead(A0) > 1000 && on == false) {
digitalWrite(mosfetPin, HIGH);
on = true;
}
else if (analogRead(A0) > 1000) {
digitalWrite(mosfetPin, LOW);
on = false;
}
delay(250); }}