element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum xbee question
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 12 replies
  • Answers 1 answer
  • Subscribers 419 subscribers
  • Views 1219 views
  • Users 0 members are here
Related

xbee question

e14 Contributor
e14 Contributor over 13 years ago

HI there guys,

 

My project is to connect one transmitting xbee to arduino 

 

I also have a  receiving xbee (both series 1) I want that the receiving Xbee will show up a "hello world" that got sent from the transmitter XBee and display it on an LCD 16X2 screen

 

I'm quite baffled how am I supposed to do that? code wise,wiring wise...I've searched the web and couldn't find an answer maybe you could help me out plz?

 

 

thanks from advance chen (or grace its the same in Hebrew image )

  • Sign in to reply
  • Cancel

Top Replies

  • fidelsalinas
    fidelsalinas over 13 years ago +1
    you'll need the following http://www.digi.com/support/kbase/kbasperesultdetl?id=2125 to update and program your xbees https://code.google.com/p/xbee-arduino/ the xbee arduino library http://arduino.cc…
  • mcb1
    mcb1 over 13 years ago in reply to e14 Contributor +1
    Chen I might be wrong but you could try this. I suspect your lcd.print(Serial.read()); is treating what it reads as an integer, rather than a character, so when you print its simply a number rather than…
Parents
  • billabott
    0 billabott over 13 years ago

    By hyper terminal, do you mean the serial monitor?  Simply stated, instead of doing the Serial.writeln(" Hello World ") you would myLCD.writeln(" Hello World ").  The myLCD library is created using the techniques and library provided by the vendor/distributor/manufacturer of the LCD.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • billabott
    0 billabott over 13 years ago

    By hyper terminal, do you mean the serial monitor?  Simply stated, instead of doing the Serial.writeln(" Hello World ") you would myLCD.writeln(" Hello World ").  The myLCD library is created using the techniques and library provided by the vendor/distributor/manufacturer of the LCD.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • e14 Contributor
    0 e14 Contributor over 13 years ago in reply to billabott

    I'm using arduino interface ...myLCD is another library? (I know the liquidcrystal libraray)

     

    but anyway I think I understand what you mean

     

    I understand that anyway's that the LCD have to be attached to an arduino and I only have 1 (mega2560 r3) so what i will try to do is other way around (connect the transmitter xbee to the pc and send a msg from the XCTU and try and display it to the receiver connected to lcd screen (and the two of them will be connected to the arduino) and order another board and then try again

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mcb1
    0 mcb1 over 13 years ago in reply to billabott

    chen

     

    When you find answers useful, can you please select the helpful or correct answer icons and slect the appropriate one/ones.

    (Sorry I haven't seen how these occur since I haven't started a question)

     

    I note the responders did resolve your last query help resolve the issue, but the query is not marked answered.

     

     

    Thanks

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • e14 Contributor
    0 e14 Contributor over 13 years ago in reply to mcb1

    where? i dont know how to do it...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • e14 Contributor
    0 e14 Contributor over 13 years ago in reply to mcb1

    i dont know where ...i cant dind a button that says that..sorry...where is it? i will gladly press it or whatever i just dont know how to 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • e14 Contributor
    0 e14 Contributor over 13 years ago in reply to mcb1

    sorry mark i dont see any button that says (helpful or answered...if i had seen it surely i would press it i still dont realy understand how this forum works..i will try and look it up in the next couple of days and if i will find how to do so i will promise xxoxo

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • e14 Contributor
    0 e14 Contributor over 13 years ago in reply to billabott

    HI there i finally had some time to work on my project yayiii

     

    anywho what I did 

     

    1.connected xbee to the xctu (he is the transmitter one) with xbee explorer (direct connection to the usb entrence in my laptop)

    2.connected the second xbee to arduino

    3.connected the lcd to the arduino also

    4. my program is such :

     

    /*

     

    the circuit  :

    LCD -

    * LCD RS pin to digital pin 12

    * LCD Enable pin to digital pin 11

    * LCD D4 pin to digital pin 5

    * LCD D5 pin to digital pin 4

    * LCD D6 pin to digital pin 3

    * LCD D7 pin to digital pin 2

    * LCD R/W pin to ground

    * 10K resistor:

    * ends to +5V and ground

    * wiper to LCD VO pin (pin 3)

     

    */

     

    //includes

    #include <LiquidCrystal.h>   //LCD library

     

    // initialize the library with the numbers of the interface pins

    LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

     

    void setup() {

     

      // set up the LCD's number of columns and rows:

                  lcd.begin(16, 2);

                Serial.begin(9600);

                lcd.setCursor(0,0);

     

    }

     

    void loop() {

     

     

     

      if(Serial.available( ) > 0 ) {

         

          lcd.print(Serial.read());

         

     

    }

     

    }

     

    I've tried to run in on the arduino and type something on the terminal and xctu and it doesnt come up on my lcd screen

     

    any ideas why and what should i do?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • e14 Contributor
    0 e14 Contributor over 13 years ago in reply to e14 Contributor

    ok apperantly it does work however one problem when I type anything on the keyboard in order to transmit then instead of the the letter i get the ascii tabke number of it (for example if I type j on the keyboard instead of j  appear on the screen I get an 106 which is the ascii value for j )

     

    how to fix this problem in my code?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mcb1
    0 mcb1 over 13 years ago in reply to e14 Contributor

    Chen

    You've found the helpful, and correct answers, as you've marked yourself.

     

    In theory they should be present in each respondants reply, but visible only to you.

     

     

    mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mcb1
    0 mcb1 over 13 years ago in reply to e14 Contributor

    Chen

    I might be wrong but you could try this.

     

    I suspect your

    lcd.print(Serial.read());

    is treating what it reads as an integer, rather than a character, so when you print its simply a number rather than the ascii equivalent of the character j.

     

    try

      if(Serial.available( ) > 0 ) {

      char input = Serial.read();

          lcd.print(input);

      }

     

    and see if it fixes it.

     

     

    Mark


    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube