Is there a way to use RoboRealm's Serial module, or any other module, to do serial coding in order to send the appropriate signal to the PING))) and read the return value without a separate microcontroller unit?
Yes, you need some kind of microcontroller to control the PING))) and provide values based on the "time of flight" echo pulse from the PING))). The Propeller Servo Controller USB is a very capable microcontroller that can control servos, communicate with a PC over the USB serial port, and handle one or more PING)))s as well. What you'd have to do is modify the firmware in the Servo Controller to respond to an additional command which would be used to trigger the PING))) and would respond with a number derived from the echo pulse. The firmware is open source and there are routines in the Propeller Object Exchange that will handle the PING))) that can be combined with the existing firmware.
Comments