Dual Sensor Mode in Processing

Here is GRIS in Processing, revised to accommodate dual sensor mode communications between the computer and robot. The square on the left flashes data, while the square on the right flashes the clock signal.

Each data bit lasts two frames. The clock alternates from black (0) to gray (1) for each pair of data bit frames. When the robot microprocessor reads a clock 1, it will record the data sensor value. The clock must reset to a 0 bit before the next data sensor value will be recorded.

Separate data and clock lines are common for serial communications and this system should be very robust compared to my previous attempts to synchronize data transmission between the computer and robot with just a single sensor.

Advertisements

About engineerzero

Once and future engineer.
This entry was posted in Uncategorized and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s