Build an X-10 Status Display - the STATX10
Home Up Parts Store Shopping Center Order Status Request Useful Links Clearance Center Documents Project Status Technical Support

 


Introduction  Description  Construction  Testing  Software  References


Build an X-10 Status Display - the STATX10

News

August 30, 2003 - this project is no longer available.  Hex code for the 68HC705K1 processor used in this project is available upon request, but parts and PCB's are not.  Please also see our in process news for more information.

Introduction

This project provides a LED display of the unit codes 1 through 8 of any selected X-10's specified HouseCode.  The STATX10 can be used to show status of other areas of the house, or, in conjunction with a macro-capable X-10 controller, can be used to display status of any events (received e-mail, weather alerts, security system status, etc.).  It can also be used to trouble-shoot X-10 transmitted signals.

Description       

Figure 2 STATX10 Schematic Diagram

 

As you can see from the schematic diagram in Figure 2, this is a very simple circuit built around Motorola’s now obsolete 68HC705K1 8 bit micro-controller. The 68HC705K1 has the following attributes;

  • 504 Bytes of User ROM Including 8 User Vector Locations
  • 32 Bytes of User RAM
  • 64-Bit Personality EPROM/OTPROM
  • 10 Bidirectional I/O Pins with the following features:
    • Software Programmable Pulldown Devices
    • 4 I/O Pins with 8 mA Current Sinking Capability
    • 4 I/O Pins with Maskable External Interrupt Capability
  • Hardware Mask and Flag for External Interrupts
  • Fully Static Operation with No Minimum Clock Speed
  • On-Chip Oscillator with Connections for a Crystal/Ceramic Resonator or for a Mask-Optional 2-Pin or 3-Pin Resistor-Capacitor (RC) Oscillator
  • Computer Operating Properly (COP) Watchdog
  • 15-Bit Multifunction Timer with Real-Time Interrupt Circuit
  • Power-Saving Stop, Wait/Halt, and Data-Retention Modes
  • 8 X 8 Unsigned Multiply Instruction
  • Illegal Address Reset
  • Low-Voltage Reset
  • 16-Pin Plastic Dual In-Line Package

A simple power supply, consisting of U4, D12, C7 and C8, converts 12 volt AC or DC to the 5 volts required for the main-board circuit. A LM78L05 version of voltage regulator was used due to the low power consumption (less than 90 mA, worst-case) of the circuit.

LED D3 is used as a heart-beat indicator (I always like to know that the software is running!) flashing once per second.

The 68HC705K1P is a One Time Programmable (OTP) part.  The programmer for the 68HC705K1 is a very simple circuit (basically connections to a PC's parallel port and a simple power supply), so if you want to "roll your own" this should not be a difficult task.  Programmed parts for the STATX10 are, of course, available separately from Midon Design as well (see ordering information)

 

Construction       

Standard construction techniques may be used for this circuit and a printed circuit board is available if desired.

If building the STATX10 from the PCB, refer to Figure 3 for component placement. Begin by inserting IC sockets (highly recommended) for the 3 IC's (none is required for the DIP resistor). Follow this with the insertion of all passive components. I like to proceed by inserting all resistors, then all capacitors. Watch the polarity of the electrolytic capacitors. The positive lead of the electrolytics is the square pad for that component.  Then, insert the LED's, placing them so that the flat side of the LED is oriented towards the square pad on the PCB.  Insert the DIP resistor R14 (polarity is not critical, but if it makes you feel better, orient the device so that pin 1, usually marked with a dot, is inserted to the square pad of R14).  Insert the crystal now.

There are 6 types of resistors; 1K, 10K, 5.1K, 22K,100K and 330. The color codes for these are shown in Table 1.  Insert the resistors where shown in Figure 3.  I've left pads available for you to use 8 discrete 330 ohm resistors instead of a DIP network for R14.

Table 1. Resistor Color Codes

Value

1st Stripe

2nd Stripe

3rd Stripe

4th Stripe (Tolerance)

1.0K

Brown

Black

Red

Yellow

10K

Brown

Black

Orange

Yellow

5.1K Green Brown Red Yellow
22K Red Red Orange Yellow
100K Brown Black Yellow Yellow
330 Yellow Yellow Brown Yellow

Table 1. Resistor Color Codes

Figure 3 Parts Placement

Next, insert voltage regulator U4 and full-wave bridge D12. At this time, you should also connect a 12V (AC or DC) "wall-wart" power supply to the PCB pads marked as J2. Power up and then measure voltages between pins 14 and 7 of IC U1. Pin 14 should be +5 volts while pin 7 is 0 volts. If you are wiring this circuit on your own board, then check polarity on the other IC sockets as well. Table 2 shows the voltages required on each IC.

 

Table 2. Power and Ground Table

IC

+5Volt

Ground

U1

14

7

U2

13

14

U3

16

8

Turn off the power now.  Connect a telephone style cable to the pads marked J1.    Note that the telephone cable should have an RJ-11 (telephone plug) connector at the other end.  Inspect the color code of the wires in the see-through plug to make sure they are wired as in Figure 4 below.  If they are then connect the other end of the cable in the following fashion; the red wire should connect to the R pad, the green wire to the G pad, etc. (you get the idea).  If the wires are reversed, as will sometimes happen, then make the appropriate changes to the wiring at location J1.

Correct Color Coding of RJ-11 Cable

Figure 4 Proper RJ-11 Color Coding

Insert the IC's in the correct sockets (warning: make sure that you observe proper ESD precautions!)

You are now ready to prove in the circuit.

 

Testing the Circuit       

Carefully insert all IC’s in their sockets, observing polarity while doing so. Now reconnect the power.  The HTBT LED should be flashing, while the rest of the LED's are off.  If the LED is not flashing, remove the power and check for any solder bridges on the board.  You can also check to make sure that the micro-processor is correctly installed (no bent pins, proper orientation).  If you have an oscilloscope, turn the power back on and make sure that there is a high-frequency (4.0MHz) signal at pins 15 and 16 of the micro-processor.  Don't worry if the signals look different on each pin.  If this looks OK, look for a 60Hz square wave on Pin 1 of U1.  Lastly, make sure that transistor Q4 and LED D3 are properly inserted.

To check out the operation, connect the phone cable to a TW-523 X-10 transceiver.  Set the DIP switch SW1 to your selected House Code per Table 3.  Power back up.  The LED corresponding to Unit Code's 1 through 8 of your configured House Code should turn on or off to match other units transmitting to those Unit Codes.

Table 3.  SW1 Settings

House Code Switch 1 Switch 2 Switch 3 Switch 4
A OFF ON ON OFF
B OFF ON ON ON
C OFF ON OFF OFF
D OFF ON OFF ON
E ON OFF OFF OFF
F ON OFF OFF ON
G ON OFF ON OFF
H ON OFF ON ON
I ON ON ON OFF
J ON ON ON ON
K ON ON OFF OFF
L ON ON OFF ON
M OFF OFF OFF OFF
N OFF OFF OFF ON
O OFF OFF ON OFF
P OFF OFF ON ON

If you want to add a label to your project, consider something like the following.  This label fits the suggested enclosure.

 

Parts List and Suggested Sources

Qty

Designations

Part Number

Description

DigiKey Part #

JameCo Part #

Radio Shack Part #

1

BZ1

Buzzer Piezo Electric Buzzer, PC mount 273-074

3

C1,2,3

10nFd Capacitor, ceramic, 10nFd   15229  

1

C4

10uFd Capacitor, electroytic, radial, 10uFd P975-ND 94211  

2

C5,6 22pFd Capacitor, ceramic, 22pFd 1358PH-ND 15405  

2

C7,C8

100uFd Capacitor, electrolytic low profile radial, 100uFd P6239-ND 94289  

2

D1,2

1N4148 Diode, signal   36038  
8

D3-11

LED LED, red   94511  

1

D12

FWB

Full-wave Bridge Rectifier

  103000  
4

Q1-4

2N3904 Transistor, NPN   38359  
2

R1,9

5.1K

Resistor, 5.1K, ¼ W

5.1KQBK-ND 31237  

4

R2,3,5,8

10K

Resistor, 10K, ¼ W

10KQBK-ND 29911  

2

R4,7

22K

Resistor, 22K, ¼ W

22KQBK-ND 30453  

1

R6

100K

Resistor, 100K, ¼ W

100KQBK-ND 29997  

1

R10 330 Resistor, 330, ¼ W 330QBK-ND 30867  
3 R11-13 1K Resistor, 1K, ¼ W 1KQBK-ND 29663  

1

R14

DIP330 DIP Resistor, 330 ohm, 8 position   108581  
1 SW1 SW DIP-4 4 position SPST DIP switch   139002  
1 U1 4030 CMOS quad XOR gate   12941  
1 U2 68JC705K1P Micro-controller   108927  
1 U3 4094 CMOS Shift Register   13426  
1 U4

LM78L05

Voltage Regulator

LM78L05ACZ-ND 51182  
1 Y1 4.0MHz Crystal, 4.0 Mhz CTX006-ND 14592  

Accessories for this project

An optional enclosure is available from RadioShack.com as part number 910-1087 (Pactec HP-9VB).

If you need a source for a power supply, we suggest a Jameco p/n 167089 or equivalent.  An equivalent power supply can also be ordered from Midon Design as part number MD3004 (see our price list).

You will also need an X-10 TW-523 module (Midon Design part number MD3001).

Software       

S-Record Object Code

References       

LM78L05 Specification Sheet

Specification Sheets are in Adobe Acrobat format. If you wish to download Adobe Acrobat Reader, go here.

 



Last Updated January 1, 2020

ămidon design 2000-2020

P.O. Box 1340

Greer, SC  29652 USA

Please report any problems with this site to