Occam Pi Basics

So, today we started with the basics of Occam-pi - the parallel processing language that we will be using to automate our “Flying Mountaineer.” We first downloaded the IDE and uploaded the “Transterpreter” to enables us to run Occam-pi on the Arduino. The Transterpreter actually just provides an illusion of parallel processing, since the Arduino only has a single processor. This illusion is called “concurrency” (hint: the name of the blog :D).

Trying Occam-pi

We decided to try by making three LEDs blink in parallel (concurrently to be more accurate). This is a trivial task that does not really test our programming skills, but more our abilities in circuitry. It was a nice refresher of how to build parallel and series circuits.

See this cool video below.

Did You Know

The onboard LED is actually the same as pin 13. We found this out when we were blinking our LED on pin 13, and realized the onboard LED was also blinking, and we were not sure why, since we did not intend for it to. So, if you are wondering why you onboard LED blinks when you did not want it to, this is probably the reason.