Pages: [1]   Go Down
Author Topic: New to Arduino and need some help  (Read 358 times)
0 Members and 1 Guest are viewing this topic.
Crewe
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello there,

Firstly I apologise if this is the wrong location to place this post.

I am completely new to Arduino, until yesterday I had never heard of it.  I am doing a University project and for this I want to transmit data between a source and receiver.  A lecturer recommended that I use an Arduino and XBee to simulate this.

I have to provide a practical demonstration by Christmas of a LED being lit up using the XBee.  I have the following equipment;
2 × XBee S2
1 ×Arduino Uno Board
And two other pieces of equipment attached.

I would just like some help or suggestions of where to start with this.  I have been recommended watching the YouTube videos of Sciguy14 which showed how to light the LED on the Arduino board plus I have seen an eBook Building Wireless Sensor Networks.

Thank-you in advance.

Regards,

dme916


* DSC_0163.JPG (784.07 KB, 2592x1944 - viewed 17 times.)
Logged

Poole, Dorset, UK
Offline Offline
Edison Member
*
Karma: 52
Posts: 2375
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

First get the Arduino to flash a LED ( hint look at blink with out delay).

Second get the PC and Arduino to talk over the Serial link (Arduino to take commands from the PC).

Third get the the PC and Arduino to talk over the XBEEs.

Now put all 3 together!

Mark
Logged

Queens, New York
Offline Offline
Faraday Member
**
Karma: 106
Posts: 3772
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I can help you. First off, Xbee's are kinda expensive, how far do you need to go?  Second, are you going from Ard to Ard or Ard to PC?
Ard to Ard: If it is a short distance, within 30 Ft, go with bluetooth. I recommend the JY-MCY master and slave modules.
Ard to PC: just use a slave module and pair it to the computer.

code wise:
1) understand the code by getting the LED to blink, both with and without delay. NO Bluetooth needed for this part
2) Pair the BT modules either to BT to BT or Bt to PC. check that the RX and TX on the BT and ARD cross ( ARD: RX => BT: TX || ARD: TX => BT: RX)
if you get a SOLID LED on the BT modules, they are paired and ready.

3) Understand how to serial read and write data. BT: TX and RX must be removed from ARD to upload code.
4) transmit a simple code. Use PuTTY or Hyperterminal if going from PC to ARD.
5) If all goes well and you are able to get what you sent, then expand the code,go further and try other things.

If you still want to go with XBee, watch Sciguy on youtube, thats where I learned from when I first started.
Logged

Created Libraries:
TFT_Extension, OneWireKeypad, SerialServo, (UPD)WiiClassicController, VWID

Pages: [1]   Go Up
Jump to: