Demand Peripherals     Robotics and Automation Made Easy

PING4: Quad Ping))) Interface

The PING4 peripheral connect to up to four Parallax Ping))) ultrasonic distance sensors. The PING4 peripheral uses the GPIO4 card.

 

Hardware:

The quad Parallax Ping))) peripherals uses the four bidirectional I/O pins on a GPIO4 card to control up to four Parallax Ping))) sensors. Typically you would use the pin header version of the GPIO4 card and would connect +5 Volts and ground to the auxiliary power connector.

 

Resources:

Resources for the in4 peripheral include a read-only data register and a read-write configuration register to determine which pins are monitored for changes.

distance :sensor ID and Distance.
Distance is a read-only resource that works with dpcat. The stream of data is line oriented and each line of output has a digit that indicates the sensor number followed by the distance given in units of one-tenth of an inch. A distance of zero indicates that the sensor is not connected or is not responding. Typical output from the distance resource might appear as:

     0 1055
     1 55
     2 0
     3 1848
     0 1094

enable : enable or disable individual sensors.
The enable resource takes a single hexadecimal character terminated by a newline. The LSB of the enable register corresponds to the lowest numbered sensor, sensor ID 0. A set bit enables the sensor and a cleared bit disables it. At start-up all sensors are disabled.

NOTE: ONLY ENABLE ACTIVE SENSORS. THE OUTPUT CAN STOP IF A SENSOR IS NOT PRESENT OR STOPS RESPONDING.

 

Examples:

Enable the first two sensors and start monitoring the reported distances.

      dpset ping4 enable 3
      dpcat ping4 distance

 

FPGA Defined Peripherals
User Interface
FPGA Configuration
FPGA Buttons & LEDs
Text LCD and Keypad
Quad WS2812 Interface
Quad Slide Pot
Tone Generator
IR Recv/Xmit
6 Digit LCD
RC Decoder
Keyfob RF Decoder
Rotary Encoder Interface
Motion Control
Dual DC Motor Controller
Dual Quadrature Decoder
Quad 13 Bit Servo
Bipolar Stepper Controller
Unipolar Stepper Controller
Simple Input / Output
Quad Binary Output
Quad Binary Input
Quad GPIO
Octal Input/Output
32 Channel Binary Output
32 Channel Binary Input
Sensors
Octal 12-bit ADC
Quad Ping))) Interface
Octal SRF04 Interface
Quad Event Counter
Instrumentation
Generic I2C
Generic SPI
Octal 8-Bit DAC
Quad Digital Potentiometer
Quad PWM Output
Quad PWM Input
4 Bit Pattern Generator
Real Time Clock
Dual Watchdog Timers
  

Interface Cards
User Interface
Audio Amplifier
IR Recv/xmit
Six Digit LCD Display
Keyfob RF Receiver
Rotary Encoder
Quad Switch Card
Text LCD / keypad
Quad Slide Pot
Motion Control
Dual 7-amp H-bridge
Quad Open Drain Driver
Quad 10 Amp Relay Card
Input / Output
Octal 8-Bit DAC
Quad Digital Potentiometer
Octal 12-bit ADC
9DOF IMU
Octal SRF04
Quad GPIO
Generic I2C
Generic SPI
USB 2.0 Hub
Real Time Clock
Slot Expander
Octal Input/Output
32 Channel Input
32 Channel Output
Accessories
Power Distribution Card
15 Amp Power Distribution
5 Volt Switching Regulator
ATX Power Break-Out Card
Disk Drive Power Break-Out
MP43 Aluminum Mounting Plate
WW2 Prototyping Card
WW1 Small Prototyping Card