beautypg.com

The zed z-pan shield – Zilog ZUSBOPTS User Manual

Page 31

background image

UM025603-0814

The ZED Z-PAN Shield

Zilog Educational Shields

User Manual

24

The ZED Z-PAN Shield

As determined from

Table 2

on page 17, the Zilog Personal Area Network (Z-PAN) Shield

is stackable with the WoS Shield, but is not stackable with the WLAN Shield or another Z-
PAN Shield.

confpwm

Configures the PWM cycle period in kHz (1–20); an absence of parameters displays
the current setting. Syntax: confpwm 2.

setpwmduty

Configures the PWM channel’s duty cycle from 0 to 100%. An absence of a duty
parameter will display the current setting of the selected PWM. Syntax: setpwmduty xx
[DD], in which xx is a PWM number in the range 1–6, and DD is a duty cycle in the
range 0–100.

startshield

Start a shield that is plugged into the board. Use the List parameter to see the list of
shields. Syntax: startshield xxxx, in which xxxx is the shield’s name or list to see the
available shields.

LEDString

Set a string to display on LEDs.

LEDInterval

Set an interval between character displays on all LEDs (defaults to 500 ms).

GetPressure

Displays a Pressure Sensor reading on the console; no parameters. Syntax: getpres-
sure.

GetHumidity

Displays a Humidity sensor reading on the console; no parameters. Syntax: gethumid-
ity.

GetTemp

Displays a Temperature sensor reading on the console; no parameters. Syntax:
gettemp.

GetAmbient

Displays an Ambient Light sensor reading from the ADC on the console; no parame-
ters. Syntax: getambient.

Monitor

Command to monitor and display sensor data on the LCD. This command allows you
to add sensors to the the list of sensors being monitored, monitor all sensors or just
monitor one sensor. Each time the Monitor command is executed with a new sensor,
the sensor is added to the list of sensors being monitored. Syntax: monitor xxx|all|list
[only], in which xxx is the sensor name to monitor.
To select only one sensor, use only as the third parameter.
To list all available sensors, enter monitor list.
To display all sensors on the LCD, enter monitor all.
To add a sensor to the list being monitored, enter monitor sensor.
To monitor one specific sensor, enter monitor sensor only.

MonitorPeriod

Sets the relative time period each sensor is monitored and displayed in the range
5–60. Syntax: monitorperiod 10.

Table 4. ZED World of Sensors Shield Commands (Continued)

Command

Description