| week 6 >>>
PONG----assignment: make a physical input device that logs into the server and plays the game.
The server will be a Processing program, and the clients will be
physical interfaces that connect through Lantronix serial-to-ethernet modules. The
clients and the see the screen. [remember lantronix device is only a serial port---no code
it speaks throgh arduino code arduino is A/O doing the work zeegbee radios, they also talk through arduino.
ethernet/tcp/http
PONG story
how is pong played (originally), but have lots of different versions like this one.
controllers are simple, they work as a stirring wheel, if you turn to your right, the virtual paddle would move to the right, if you turn to the left, the virtual paddle would move to the left. How can I translate this actions into the real worl? this movement has to be something that handles a binary thought, passing through levels, this is up/down, going through a medium stage (accelerometer?), or loud/silent, going through a medium volume (voice interface?). Finally i have the chance to continue experimenting with fsr's and the wig idea, what if you hit yourself (in the head), going from hard to soft like?-----it has to be something that looks non-machine like. My goal is to make it look very human like.
actions>>>move left, or right.
by means of paddle>>>voice, hair.
i wanted to use a mic to control the left/right by means of the voice (high/low). Finally, I used a pot, since I wanted it to work for the class. IT DID!
|
|

week 8 >>>
got a surgery, didn't show the project i want to build, although i was thinking on making my thesis with zigbees, the project had reached the point where i need to understand how zigbees work without the pressure of thesis, so i might build the wig thing...or make a simple mock up of the interaction of my foldable house here.
WIG THING------fsr's inside a wig, whenever you touch them, a sound will show up by spkrs? a call on your cell phone? a remote control of the tv will control the music out of it? -------- |
|
i got an LED to blink, and the day after i set up the second zigbee, with arduino to start the bridge-communication today.
pics>>>
then:
1-type this code into processing, a window will pop-up to tell you how's the risponse you are having from the communication.
2-be sure to set the correct serial port in the code {2 on mine}.
3-then, this commands will let you know about what u r doing exactly:
Type:
ATMY1234<cr> -------(1234, is the number you'll have to replace for the address you had assigned here)
To confirm that you set it, type
ATMY<cr>
The module should respond:
1234
You’ll see that the responses from the Xbee overwrite each other, because the Xbee only
sends a carriage return at the end of every message, not a linefeed.
Next, you need to set the Xbee’s destination address. Make sure you’re in command
mode, then type
ATDL<cr>
You’ll likely get this:
0
The default destination address on these modules is 0. The destination address is two
words long, so to see the high word, type:
ATDH<cr>
This pair of commands can also be used to set the destination address, like so:
ATDL5678<cr>
ATDH0<cr>
These radios also have a group, or Personal Area Network ID. All radios with the same
PAN ID can talk to each other, and ignore radios with a different PAN ID. Set the PAN
ID for your radio like so:
ATID11111<cr>
The Xbee will respond to this command, like all commands, with
OK
Make sure to add the parameter WR after your last command, to write the parameters to
the radio’s memory. That way they’ll remain the way you want them when the radio is
not powered. For example:
ATID11111,WR<cr>
Once you’ve configured one of your radios, remove it from the circuit and configure the
other. Don’t set a radio’s destination address to the same value of its source address, or it
will only talk to itself! You can use any 16-bit address for your radios. Here’s a typical
configuration for two radios that will talk to each other:
ATMY ATDL ATDH ATID
Radio 1 1234 5678 0 1111
Radio 2 5678 1234 0 1111
You can combine commands on the same line by separating them with commas. For
example, to get both words of a module’s source address, type
ATDL, DH<cr>
The module will respond with both words at once. Likewise, to set both destination
words and then make the module write them to its memory so it saves the address when
it’s turned off, type
ATDL5678, DH0, WR<cr>
The module will respond to all three commands at once:
OK OK OK
4-Now, close Processing and open Arduino, insert this code into it, program both Arduinos (1 per zigbee).
NOTE= Tom's code, allow you to set the addresses at the same time you program arduino, and jump the "processing step application", although I spent a long time trying to find out what was the problem to stablish T/R from 1xbee to the other (because I was assingning the addresses wrongly), this code is supposed to be straight forward. Still, I had to quote the address chunk to debug, pre Faludi's intervention with marvelous zigbee gadget, that had re-assigned ID, DL (destination) and MY ( to my radios.
I will give 4 prototypes to Saint Francis Church, where I had talked to father Michael and found out that the useful data, in order to know if they came back to sleep
in the space they have to sleep (until cops get them out)----would be to have their name, age and disease, considering they are mentally ill people.

|
|