#25. Using Multiple Timelines

Note This is a web-version of a tutorial chapter embedded right into the XOD IDE. To get a better learning experience we recommend to install the desktop IDE or start the browser-based IDE, and you’ll see the same tutorial there.

By using multiple independent pulse signals, we can create complex programs to control our devices. Here, we use two clock nodes to rotate the servo in one direction and then the other.

The patch for this chapter is little bigger than what we’ve seen so far. A good rule of thumb in XOD is to read the patch from the bottom up. That way you can see the cause and effect relationship created by the flow of the patch. First, you see the result and then what caused it!

Patch

Pay close attention to the map node. Instead of using it in the standard manner, we are simply using it to flip the sign of the output value.

Test circuit

Circuit

↓ Download as a Fritzing project

The servo should tick in one direction for 30 seconds and then in the other direction for 30 seconds.

Next lesson →

Found a typo or mistake? Want to improve the text? Edit this page on GitHub and open a pull request. If you have a complex proposal or you want to discuss the content, feel free to start a new thread on XOD forum.