use arduino for usb-serial connector if has empty file loaded to Arduino and switch RX/TX
can connect laptop directly to XPort and crossover is automatically detected (set up local network) - see Corey if probs
Use Tom’s Processing udp device query for finding devices on net: Xport listens on Port 30718 for UDP and sends back its info
- also an option to DOS attack the subnet
“I seem to be aphasic today, sorry.” - TIgoe on his inability to focus
REMOTE
Server
IP address + nickname of device
Score, position of paddles, etc.
Hit or Miss
Ping
LOCAL
Client
Connection status
IP address + nickname
Feedback (haptic would be nice)
L or R just sending
Make sure you know it works all locally first
Before sitting down to write code: know your sensor values
Need to put in: connect, disconnect, reset, reset Xport, input left/right, blink
client pong code here: http://www.makingthingstalk.com/chapter5/36/
server pong code here: http://www.makingthingstalk.com/chapter5/35/
use defines to name all pin numbers (#define deviceResetPin 7)
Damnit, he just showed us the new Arduino Ethernet that comes out later this year.
chunk code.
“A good rule in programming but not in love: control every byte [bite].” - Tom
use carriage return instead of println if you’re unsure
Okay, it didn’t work the first time now what do we do to debug it? - Tom
Wait for office hours. - Ameya
check sensors and buttons
use serial monitor to debug locally (without Xport first)
there’s a wii-mote for processing library: http://www.christianmeinke.com/2007/04/10/wiimote-communication/
why not just stick it in somthin’?
Discussion
No comments for “Pong it.”
Post a comment