Actuators sensors interface tutorialSeptember 6, 2013 – 11:09

Actuators sensors interface tutorial

In this tutorial we finally connect sensors and actuators. Let’s start by hooking up an LED on port O0 and a potentiometer on the I0 port. The code we write works fine with every analog sensor, just remember to change the object name when you declare it. Our starting code looks like this: #include TKPotentiometer pot(I0); TKLed led (O0); void setup() { //nothing } void loop() { //nothing } Let’s take a look at what our sensor is reading, using the…