Parallax BASIC Stamp II Application Notes

Use BASIC Stamp II to control X-10 lamp and appliance modules


Parallax BASIC Stamp II Application Notes - cover page
Brand
Basic
Category
Other Electronics
Document type
Application Note
Language
English
Pages
18
File format
PDF
File size
86 KB
Published
02 May, 2012
Updated
30 September, 2023
MD5 checksum
F10508C7D19819E2C9C7FB07623197CA

About this manual

The note describes how the BASIC Stamp II can generate X‑10 control signals using the new Xout instruction. It covers house and unit code assignment, wiring to PL‑513 or TW‑523 modules, and safety precautions for working with line‑powered interfaces.

Additional sections show how to use the built‑in Shiftin and Shiftout instructions for synchronous‑serial peripherals, and how to generate DTMF tones for phone‑line applications with the DTMFout instruction. Sample program listings and circuit schematics illustrate each technique.

What's inside

  • X‑10 Control Overview
  • Using the Xout Command
  • Shiftin and Shiftout Instructions
  • Serial Peripheral Interface
  • Phone‑line Interface (DTMFout)
  • Program Listings
  • Safety Precautions

Specifications

X‑10 carrier frequency120 kHz
Synchronization precision50 µs
Dim/bright cycle count19 cycles
Number of house codes16 (A‑P)
Number of unit codes16 (1‑16)

Frequently asked questions

How does the BASIC Stamp II send X‑10 commands?

It uses the Xout instruction with house and unit codes, transmitting an 11‑bit code on a 120 kHz carrier synchronized to the AC line.

How many cycles are needed to dim a lamp fully?

A full dim or bright transition requires 19 cycles.

Which pins connect to the X‑10 interface modules?

Pin 0 is used for zero‑cross detection (zPin) and pin 1 for modulation control (mPin).

How can the BASIC Stamp II generate DTMF tones for a phone line?

By using the DTMFout instruction with a pin connected to a phone‑line interface circuit.

Download PDF (86 KB)

More Basic Manuals


View all Basic manuals →