Arduino Mega 2560 ADK and XBee

2 views (last 30 days)
Arif
Arif on 12 Oct 2012
Hi, I'm trying to connect and communicate USB connected XBee and Arduino Mega connected XBee with my Simulink/Matlab program on the computer. Basically, Servomotor is connected to Arduino and I wanna get the encoder feedback to my computer (into Matlab code or Simulink) wirelessly and send the control signal from my computer (from Matlab code or Simulink) to the Arduino again wirelesly. So the controller will be on my computer and only send control signal to the Arduino and receive encoder feedback to program on my computer in a wireless manner. Can anybody submit some Simulink and Matlab applications about this setup? The usage of Serial Receive and Serial Transmit blocks are important here and any application osing these blocks will be welcome.
Thanks.
  1 Comment
aadi
aadi on 12 Jun 2013
hi Arif
i'm trying t send decimal values to the audino wirelesly using xbee but audino does understand it. it tried this code
s=serial(s,'com5') fopen(s) fwrite(s,100)
xbee attached to the computer send the data and receving xbee that is attached to the audino recevies it
but sudino does under stand it.
but when i send charter audino understand it. can u help me plz s=serial(s,'com5') fopen(s) fwrite(s,'a')

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!