Hey Peepes,
I have been playing around with the Arduino for a few months and am going towards wireless connections using the xbee modules and have bought and researched how to connect and program the xbees.
I would like to wire up an xbee to a joystick to serial OUT the joystick variables to the xbee connected to a PC using the xbee explorer to control the mouse X/Y. I have .Net experience so, I can take care of it from there.
Essentially, I have:
2pcs of XBee 1mW Chip Antenna
XBee explorer
X/Y joystick
Before I go and apply power to this I would like you all to take a look at the wireup and give me some input. I would really hate to fry them (For you see, I have already named them):
http://www.vfptools.com/images/skimat.png
The programming I imagine will be:
INPUT MODULE:
ATID4321 –>ID
ATMY1 –> This address
ATDL2 –> Dest address
ATD0? –> input 0 Don’t quite know
ATD12 –> input 1 analog
ATD22 –> input 2 analog
ATIR14 –> sample rate 20 milliseconds
ATIT5 –> samples before transmit 5
ATWR –> write settings to firmware
OUTPUT MODULE:
ATID4321 –>ID
ATMY2 –> This address
ATDL1 –> destination address 1
ATP02 –> ? at losses here
ATD12 –>PWM
ATD22 –>PWM
ATIU1 –> I/O output enabled
ATIA1 –> I/O input from address 1
ATWR –> write settings to firmware
So am I on the right track here? Just want to make sure I get this right!
Thanks!