Page 1 of 1

Using UC00A,2 xbees 1mw attenna,2 mc 16f877A to light up LED

PostPosted: Sat Mar 05, 2011 3:58 pm
by davidtsj
Dear guys,
What should i do with these hardware..how should i start to transmit and receive data between 2 xbees(one connected to another mc and the other connected to another mc on a different breadboard) in order to blink LEDs to prove simple tranmission of data..thx in advance..

Re: Using UC00A,2 xbees 1mw attenna,2 mc 16f877A to light up

PostPosted: Sat Mar 05, 2011 8:44 pm
by shahrul
For simple operation, maybe you just do wireless ON/OFF LED with push button.
Push button >> PIC >> XBee ------ XBee >> PIC >> LED
or to use UC00A together with XBee, do ON/OFF from VB but you need multiuart for UC00A and XBee.

Re: Using UC00A,2 xbees 1mw attenna,2 mc 16f877A to light up

PostPosted: Sun Mar 06, 2011 9:14 pm
by davidtsj
DEAr shahrul,
Really appreciate ur help...i'm currently using pic basic pro to program and its kinda hard to obtain information regarding pic basic pro on xbee...and clues?

Re: Using UC00A,2 xbees 1mw attenna,2 mc 16f877A to light up

PostPosted: Sun Mar 06, 2011 9:41 pm
by shahrul
davidtsj WROTE:DEAr shahrul,
Really appreciate ur help...i'm currently using pic basic pro to program and its kinda hard to obtain information regarding pic basic pro on xbee...and clues?

It's just UART..

Re: Using UC00A,2 xbees 1mw attenna,2 mc 16f877A to light up

PostPosted: Mon Mar 07, 2011 10:29 am
by ABSF
davidtsj WROTE:What should i do with these hardware..how should i start to transmit and receive data between 2 xbees(one connected to another mc and the other connected to another mc on a different breadboard) in order to blink LEDs to prove simple tranmission of data..thx in advance..


Take Shahrul's advice and do what he suggested.

If Button->PIC->UART->Xbee XBee->UART->PIC->LED is still too tough for you, You can always try without the XBee first. Just connect UART to UART and use your PBP program to make it work first. If it works, add in the XBee and try again. Since PIC can work on 3.3V, inter-working should be no problem.

You can refer to the discussion here. Instead of reading the ADC and send to the other XBEE, you can change it to read a button.

http://www.picbasic.co.uk/forum/showthr ... light=xbee

Allen

Re: Using UC00A,2 xbees 1mw attenna,2 mc 16f877A to light up

PostPosted: Tue Mar 08, 2011 10:16 pm
by davidtsj
DEAr all,
I already read UART...frm many web sites and i still cant figure it out what izit about as time is running out for me as i need my final year project to be done as soon as possible..left 5 weeks for me to finished up my project...my project basically is a reasturant ordering system which consists of 2 mcu,2 xbees,some LEDS and a LCD...:)

Re: Using UC00A,2 xbees 1mw attenna,2 mc 16f877A to light up

PostPosted: Tue Mar 08, 2011 10:35 pm
by shahrul
davidtsj WROTE:DEAr all,
I already read UART...frm many web sites and i still cant figure it out what izit about as time is running out for me as i need my final year project to be done as soon as possible..left 5 weeks for me to finished up my project...my project basically is a reasturant ordering system which consists of 2 mcu,2 xbees,some LEDS and a LCD...:)

You can use this code, RF Module. It's involve 2 MCU transfering data using UART. Good luck, even I use UART 1 year after I start using PIC.

Re: Using UC00A,2 xbees 1mw attenna,2 mc 16f877A to light up

PostPosted: Tue Mar 08, 2011 11:38 pm
by davidtsj
Dear shahrul,
I'm using pic basic pro to program my mcu ,hence i cant use the code given by u as reference...thx anyways :)

Re: Using UC00A,2 xbees 1mw attenna,2 mc 16f877A to light up

PostPosted: Tue Mar 08, 2011 11:44 pm
by shahrul
davidtsj WROTE:Dear shahrul,
I'm using pic basic pro to program my mcu ,hence i cant use the code given by u as reference...thx anyways :)

Ok.. Carry on.

Re: Using UC00A,2 xbees 1mw attenna,2 mc 16f877A to light up

PostPosted: Wed Mar 09, 2011 8:53 am
by yonghui
haha,
last minute job is exciting.
anyways u will need to find out, how uart works.

regards,
yh