Tom's Main Menu

Physical Computing Home

Intro to Physical Computing Syllabus

Networked Objects

Sustainable Practices

blog

Resources

code, circuits, & construction

my del.icio.us links

 

Using Siteplayer Without the Development Kit

 
While there is a Siteplayer development kit available, you may not always have one handy. In addition, once you know the Siteplayer works, you'll want to incorporate it into a project without the development board. What follows is a guide to working with the siteplayer if you don't have a development kit.

Siteplayer Connection

Below is a diagram of the Siteplayer's pins:

  • Link is for an LED to indicate that the ethernet link is good. This pin goes low when there is a good link.
  • Ethernet in +, - these pins connect to the ethernet transformer as inputs to siteplayer
  • Ethernet out +, - these pins connect to the ethernet transformer as outputs from siteplayer
  • Ground, +5V are for power and ground
  • Serial RX, Serial TX are for asynchronous serial communication. When used to communicate with a PC, the signal must be inverted through a hex inverter.
  • Reset this pin resets the siteplayer when taken high
  • IO0 - IO7 these are the siteplayer's input and output pins.

To download programs to the siteplayer using siteLinker, you need to connect it to the same ethernet network as your PC, and give it an address on that network. To give it an address, you need to connect it to your computer's serial port and use the serial tester program. In order to do these things, you'll need to attach an ethernet filter and a serial connection to your siteplayer.

NetMedia sell an ethernet filter, the LF1S022. You can also get it from Bothhand USA. For the serial connection, I use a 7404 hex inverter chip and a 9-pin serial connector. You'll also need four 0.01 microfarad capacitors, a 22-Kohm resistor, a 2.2Kohm resistor, a 220-ohm resistor, and an LED.

To use the ethernet transformer on a breadboard, you'll need to solder on eight leads, each about an inch long. The final result looks something like this:

If you've got the patience, solder a row of headers on the end (not shown here). It makes connecting and disconnecting easier.

I got tired of making these and made a little carrier board for the connector, and had ExpressPCB fabricate it (contact me if you're in my class and want one). It's got the four 0.01 µF capacitors needed already built in too. It looks like this:

The circuit for the serial and ethernet connections looks like this:

Below is a picture of the board, with a detail with the connectors removed to show the wiring beneath them. The ethernet board lines up with pins 2 through 6 of the siteplayer. Although not shown, the circuit is powered from a 7805 +5V DC power regulator. Note the link LED at the top. Though not shown, its long leg goes to +5V, and its short leg goes to pin 1 of the siteplayer.

The IC on the left below the ethernet board is a 7404 hex inverter. I connect my serial cable to the PC through this. The black wire and the bottom left of the picture is ground (pin 5 on a DB9) for the serial. Pins 2 and 3 of the DB9 connector line up with the blue wire to the left of the 7404 and the resistor to complete the serial connection. The BX-24 is connected directly, so the COM settings on the BX-24 are not inverted (see the UDP send example for BX-24 or PIC on the examples page for more details.). When using a PIC, I use this same board, but replace the BX-24 with a PIC, sending serial to pins RC6 and RC7.

(The 10K resistor on pin 10 of the BX-24 is not necessary. I had a pushbutton wired there as a digital input)

Once you've got it wired up, test it with the serial tester program, and from the web. Connect the ethernet jack to your network, and the serial jack to the serial port on your PC. In the serial tester program, click on "Get IP", and you should get the default address for all siteplayers, 192.168.1.250. If you get an error, you have a problem with your serial connection. Check your wiring and try again. Change this to an address that works on your network and click "Set IP" (see your network administrator for an address) To confirm it, open a web browser and go to the address you set it to. You should get a page indicating successful connection to the siteplayer. Now you're all set to start programming (start with the demo files; it will make your life easier knowing that they work first before trying your own code). Note that when you download a file to the siteplayer, it is downloading over the ethernet connection, not the serial, so you will need to stay connected to the network to program it.