ElaKiri Community
Downloads
Go Back   ElaKiri Community > General > Education
Reload this Page Arduino Wireless Communication - 02
Reply
 
Thread Tools
(#1)
Old
Hasistranger's Avatar
Hasistranger Hasistranger is online now
Senior Member
Hasistranger is a name known to allHasistranger is a name known to allHasistranger is a name known to allHasistranger is a name known to allHasistranger is a name known to allHasistranger is a name known to allHasistranger is a name known to allHasistranger is a name known to allHasistranger is a name known to allHasistranger is a name known to allHasistranger is a name known to all
 
Posts: 9,699
Join Date: Oct 2010
Location: QATAR
check Arduino Wireless Communication - 02 - 10-22-2016, 01:02 PM

ඔන්න මචන්ලා අද මම කියල දෙන්න යන්නේArduinoවල තියෙන තවත් අඩු වියදමක් යන RF communication module එකක් ගැන.මේකේ තියෙන වාසි තමා,
  • මිලෙන් අඩු වීම.
  • අඩු බලයකින් ක්‍රියාත්මක වීම.

නමුත් මේක මම කලින් කියල දුන්න ත්‍රෙඩ් එකේNRF24L01 කියන RF Transceiver එක තරම් powerful නම් නැහැ.මේ communication device එකේ transmitter & receiver විදිහට modules දෙකක් තියෙනවා.මේපහලින් තියෙන්නේ ඒ RF transmitter එක සහ receiver එකයි.


හරි අපි දැන් බලමු කොහොමද මේක වැඩ කරන්නේ කියල.එකට අපිට මෙන්න මේ දේවල් ගන්න වෙනවා.

Arduino Nano
- 2
RF Link Kit - 1
Jumper Wires


හරි අපි දැන් බලමු කොහොමද පරිපථ දෙක හදාගන්නේ කියල.අපිට මේ module දෙක program කරන්න උපයෝගී කරගන්නවා පහල තියෙන Arduino Library එක.එක පහල ලින්ක් එකෙන් download කරගන්න .ඊට පස්සේ එක Arduino Library Folder එකට extract කරගන්න.

Virtual Wire


Reply With Quote
(#2)
Old
Orange.UK's Avatar
Orange.UK Orange.UK is offline
Senior Member
Orange.UK is on a distinguished road
 
Posts: 275
Join Date: Oct 2015
10-22-2016, 01:03 PM

RALLY AGAINST ETCA - රටට හානි කර ඉන්දු - ලOකා ගිවිසුම පරදවමු

Venue : Viharamahadevi Park
Date : 13 NOV 2016
Time : 2 PM


PROTEST AGAINST ETCA.
PLEASE BE THERE TO SAVE YOUR CAREER TO SAVE OUR COUNTRY

https://www.facebook.com/events/1143606635730205/
Reply With Quote
(#3)
Old
Hasistranger's Avatar
Hasistranger Hasistranger is online now
Senior Member
Hasistranger is a name known to allHasistranger is a name known to allHasistranger is a name known to allHasistranger is a name known to allHasistranger is a name known to allHasistranger is a name known to allHasistranger is a name known to allHasistranger is a name known to allHasistranger is a name known to allHasistranger is a name known to allHasistranger is a name known to all
 
Posts: 9,699
Join Date: Oct 2010
Location: QATAR
check Arduino Wireless Communication - 02 - 10-22-2016, 01:06 PM

මම මුලින්ම දාන්නම් transmitter එක ගැන.මේ පහලින් තියෙන්නේ Transmitter Module එක.




මේ පහලින් තියෙන්නේ transmitter පරිපතයයි.



අපි දැන් බලමු මේකේ connections දෙන්නේ කොහොමද කියල.

  • Tranmitter එකේ+VINපින් එක Arduino එක5Vපින් එකට සම්බන්ධ කරන්න.
  • Tranmitter එකGND පින් එකGND එකට connect කරන්න.
  • Tranmitter එකේDataපින් එක Arduino බෝඩ් එකේD2 pin එකට connect කරන්න.
  • Aruino Board එකේVINපින් එක5Vධනඅග්‍රයක් සම්බන්ධ කරන්න.
  • Aruino Board එකේGND pin එක5Vඍනඅග්‍රයක් සම්බන්ධ කරන්න.

හරි දැන්බලමු Transmitter එකේ code එක ගැන.



Quote:


#include <VirtualWire.h>

void setup(){

Serial.begin(9600); // Debugging only
Serial.println("setup"); // Prints "Setup to the serial monitor"
vw_set_tx_pin(2); // Sets pin D2 as the TX pin
vw_set_ptt_inverted(true); // Required for DR3100
vw_setup(4000); // Bits per sec

}

void loop(){

const char*msg="Hello World"; // Message to be sent
digitalWrite(13, true); // Flash a light to show transmitting
vw_send((uint8_t *)msg, strlen(msg)); //Sending the message
vw_wait_tx(); // Wait until the whole message is gone
Serial.println(*msg);
digitalWrite(13, false); // Turn the LED off.
delay(200); // A short gap.

}


Reply With Quote
(#4)
Old
Hasistranger's Avatar
Hasistranger Hasistranger is online now
Senior Member
Hasistranger is a name known to allHasistranger is a name known to allHasistranger is a name known to allHasistranger is a name known to allHasistranger is a name known to allHasistranger is a name known to allHasistranger is a name known to allHasistranger is a name known to allHasistranger is a name known to allHasistranger is a name known to allHasistranger is a name known to all
 
Posts: 9,699
Join Date: Oct 2010
Location: QATAR
check Arduino Wireless Communication - 02 - 10-22-2016, 01:09 PM

හරි දැන් බලමු Receiver module එක ගැන.

මේ පහලින් තියෙන්නේ receiver module එක.





මේ පහලින් තියෙන්නේ receiver පරිපතයයි.






අපි දැන් බලමු මේකේ connections දෙන්නේ කොහොමද කියල.


  • Receiver එකේ+VINපින් එක5Vපින් එකට සම්බන්ධ කරන්න.
  • Receiver එකGND පින් එකGND එකට connect කරන්න.
  • Receiver එකේDataපින් එක Arduino බෝඩ් එකේD2 pin එකට connect කරන්න.
  • Aruino Board එකේVINපින් එක5Vධනඅග්‍රයක් සම්බන්ධ කරන්න.
  • Aruino Board එකේGND pin එක5Vඍනඅග්‍රයක් සම්බන්ධ කරන්න.

හරි දැන්බලමු Receiver එකේ code එක ගැන.

Quote:

#include <VirtualWire.h>
int count;


void setup(){


Serial.begin(9600); // Debugging only
Serial.println("setup"); //Prints "Setup" to the serial monitor
vw_set_rx_pin(2); //Sets pin D2 as the RX Pin
vw_set_ptt_inverted(true); // Required for DR3100
vw_setup(4000); // Bits per sec
vw_rx_start(); // Start the receiver PLL running
}

void loop(){


uint8_t buf[VW_MAX_MESSAGE_LEN];
uint8_t buflen = VW_MAX_MESSAGE_LEN;


if (vw_get_message(buf, &buflen)) { // Non-blocking


int i;
digitalWrite(13, true); // Flash a light to show received good message
// Message with a good checksum received, dump it.
Serial.print("Got: ");

for (i = 0; i < buflen; i++)
{
char c = (buf[i]);
Serial.print (c);
Serial.print (" ");
}
count++;
Serial.print (count);
Serial.print ("");
digitalWrite(13, false);
}
}





හරි දැන් අපි උඩ තියෙන පින්තුරයේ විදිහට සර්කිට් දෙක හදාගත්තනම්, එක unit එකකට transmitter code එක upload කරන්න , අනිත් unit එකට receiver code එක upload කරන්න. ඊට පස්සේ unit දෙකම power up කරලා unit දෙකේම serial monitor දෙක open කරන්න.

එතකොට අපිට බලාගන්න පුළුවන් transmitter unit එකෙන් receiver unit එකට "Hello World" කියන message එක transmit කරනවා.

RF Links
ගැන තවත් වැඩි විස්තර ඔයාලට දැනගන්න පුළුවන් පහල තියෙන වීඩියෝ වලින්.






මම හිතනවා ඔයාලට මේකෙන් යම් දැනුමක් ලැබෙන්න ඇති කියල.එහෙනම්තවත් අලුත් ත්‍රෙඩ් එකක් ගෙන බලාපොරොත්තුවෙන් මම නවතින්නම්.


මගේ කලින් ත්‍රෙඩ්.



Arduino Wireless Communication - 01

Arduino Shift Registers

Wireless Home Automation System

ගෙදර විදුලිය ඉතිරි කරගමු

RGB L.E.D + Arduino with Acrylic Table Deco

මගේ බ්ලොග් එක
Reply With Quote
(#5)
Old
thilina91's Avatar
thilina91 thilina91 is offline
Senior Member
thilina91 is a glorious beacon of lightthilina91 is a glorious beacon of lightthilina91 is a glorious beacon of lightthilina91 is a glorious beacon of lightthilina91 is a glorious beacon of lightthilina91 is a glorious beacon of lightthilina91 is a glorious beacon of lightthilina91 is a glorious beacon of lightthilina91 is a glorious beacon of lightthilina91 is a glorious beacon of lightthilina91 is a glorious beacon of light
 
Posts: 15,305
Join Date: May 2008
Location: New World, Grand Line
10-22-2016, 01:46 PM

Good thread. Keep it up.
Reply With Quote
(#6)
Old
DAMER's Avatar
DAMER DAMER is offline
Senior Member
DAMER is a splendid one to beholdDAMER is a splendid one to beholdDAMER is a splendid one to beholdDAMER is a splendid one to beholdDAMER is a splendid one to beholdDAMER is a splendid one to beholdDAMER is a splendid one to beholdDAMER is a splendid one to beholdDAMER is a splendid one to beholdDAMER is a splendid one to beholdDAMER is a splendid one to behold
 
Posts: 17,062
Join Date: Aug 2008
Location: Ҝingdom oғ Ğragonzland
Up 10-22-2016, 01:53 PM

BuMp
Reply With Quote
(#7)
Old
laMir's Avatar
laMir laMir is offline
Senior Member
laMir is a glorious beacon of lightlaMir is a glorious beacon of lightlaMir is a glorious beacon of lightlaMir is a glorious beacon of lightlaMir is a glorious beacon of lightlaMir is a glorious beacon of lightlaMir is a glorious beacon of lightlaMir is a glorious beacon of lightlaMir is a glorious beacon of lightlaMir is a glorious beacon of lightlaMir is a glorious beacon of light
 
Posts: 3,960
Join Date: May 2014
Location: ගම් 5 නේ.....
10-22-2016, 01:55 PM

Arduino
Reply With Quote
(#8)
Old
djnick's Avatar
djnick djnick is offline
Senior Member
djnick is a splendid one to beholddjnick is a splendid one to beholddjnick is a splendid one to beholddjnick is a splendid one to beholddjnick is a splendid one to beholddjnick is a splendid one to beholddjnick is a splendid one to beholddjnick is a splendid one to beholddjnick is a splendid one to beholddjnick is a splendid one to beholddjnick is a splendid one to behold
 
Posts: 20,893
Join Date: Jul 2010
Location: අදාල නෑනේ
10-22-2016, 02:11 PM

bump machan
Reply With Quote
(#9)
Old
Mr.Tom's Avatar
Mr.Tom Mr.Tom is offline
Senior Member
Mr.Tom has much to be proud ofMr.Tom has much to be proud ofMr.Tom has much to be proud ofMr.Tom has much to be proud ofMr.Tom has much to be proud ofMr.Tom has much to be proud ofMr.Tom has much to be proud ofMr.Tom has much to be proud ofMr.Tom has much to be proud ofMr.Tom has much to be proud ofMr.Tom has much to be proud of
 
Posts: 17,325
Join Date: Mar 2013
Location: EK Automobile
smile 10-22-2016, 02:20 PM

එල මචං. මේවා ෂෙයා කරන එක නම් මාරම වටිනවා.
Thanks
+21
Reply With Quote
(#10)
Old
Nu1Dnk's Avatar
Nu1Dnk Nu1Dnk is offline
Senior Member
Nu1Dnk is a glorious beacon of lightNu1Dnk is a glorious beacon of lightNu1Dnk is a glorious beacon of lightNu1Dnk is a glorious beacon of lightNu1Dnk is a glorious beacon of lightNu1Dnk is a glorious beacon of lightNu1Dnk is a glorious beacon of lightNu1Dnk is a glorious beacon of lightNu1Dnk is a glorious beacon of lightNu1Dnk is a glorious beacon of lightNu1Dnk is a glorious beacon of light
 
Posts: 7,716
Join Date: Jan 2010
Location: In our own place.....
Send a message via Skype™ to Nu1Dnk
10-22-2016, 02:21 PM

melo deyak therenne ne ban, mewagen monawada karanna puluwan.
Reply With Quote
Reply

Bookmarks

Tags
arduino

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright © 2006 - 2011 ElaKiri™ Beta2.Evo vBulletin, vBa iBproArcade Subdreamer I-Magic MKv

Page generated in 0.06779 seconds with 8 queries