evive – Plug and Play: Part 1

Learn how to control motors, servos, and touch sensors with evive’s plug-and-play interface with this comprehensive tutorial. Explore how to use the interface to make fun projects such as a fruit piano, a virtual drum set and a touch-based switchboard.

Could it be any simpler than plugging your hardware into evive and controlling directly from the on-screen user interface? evive plug & play hardware interface contains DC motors, DC motor drivers, servo motor, stepper motor, relay, and pneumatics.

evive’s hassle-free plug-and-play interface makes connecting components such as motors, servos, touch inputs, etc easy and lets us control them directly from the menu. This makes understanding their working and testing them easy and efficient.

In this tutorial, we will explore this feature of evive and perform some fun activities with DC motor, servo motor, and touch sensors to understand it better.

Let’s begin

Controlling a DC Motor

To understand the plug and play interface, let’s perform a small activity to control a DC motor using evive.

  1. For this, we’ll need a DC motor and a wheel.
  2. Mount the wheel on one of the two shafts of the DC Motor.DC-motor-and-wheel ATL
  3. evive has two inbuilt motor control channels namely M1 and M2.
  4. The two pins at the top form Channel 1 and the bottom two correspond to Channel 2.evive motor channel
  5. Let’s connect our motor to Channel 1. In the case of the DC motor, we need not worry about polarity, thus connect it either way.DC Motor Control Fritzing Cirrcuit Diagram
  6. Now, switch evive ON.
  7. From the menu, select Controls by pushing the navigation key to the right.Menu Sensing Selected
  8. Then select Motors.Control Menu Servo Selected
  9. Navigate to Motor1 as we have connected our motor to Motor Channel M1.
  10. As soon as you select Motor 1, the terms PWM, DIR1 and DIR2 will appear on the screen.Single Motor Control Panel
    1. Here, PWM stands for Pulse Width Modulation. It is a type of output signal that is used to control the speed of the motor.
    2. DIR 1 and DIR2 stand for Direction 1 and Direction 2, indicated by either a 0 or 1. Here 0 means “OFF” and 1 means “ON”.
  11. The direction can be changed using the slide switch.
  12. If the slide switch is in the center, then the motor is OFF and therefore the status LED is also OFF.
  13. If it is in the upward direction, it will rotate in one direction and the status LED will turn Yellow.Turning DC Motor in 1 direction
  14. And if the switch is in the downward direction, the motor will rotate in another. And the status LED will turn Red.Turning DC Motor in 2 direction
  15. Turn the potentiometer knob to change the speed of the motor.
  16. Now, disconnect the motor and go back to the main menu by center pressing the navigation key.

DC motors have a wide range of applications in project-making, be it a turntable, a color sorter or a stair-climbing robot. You can find other projects and tutorials related to DC motor over here.

Controlling a Servo Motor

Now, on to the servo motor!

A servo motor is a rotary actuator that allows for precise control of angular position, velocity, and acceleration. It consists of a suitable motor coupled to a sensor for position feedback. The micro servo can rotate to any angle between 0 and 180 degrees.

  1. Take the servo horn provided as a part of the servo accessories and attach it to the servo head. Attaching the servo horn will help us better visualize the rotation.
  2. Now, let’s connect the servo motor to evive.
  3. evive has two dedicated servo motor channels: S1 and S2.evive servo output channel
  4. Connect the servo to Servo Channel 1.
    evive Notes Icon
    Make sure that you connect the brown wire to the leftmost pin.
  5. Now, switch ON evive.
  6. From the menu, navigate to control and select servos.Control Menu Servo Selected
  7. Finally, select Servo 1 as we have connected our servo motor to servo channel S1 on evive.Servo Select Menu
  8. The evive’s screen displays the angle of the servo which can be controlled using the potentiometer.Servo Angle control Panel 1
  9. Turn the potentiometer knob to observe the change in angle both visually and on the screen.
    evive Alert
    You must be extra careful of the input supply if you’re working on an external power supply such as a DC adapter or external battery, as servo motors work on a maximum voltage of 6 volts. A higher voltage may blow up the Servo. To make sure it doesn’t go beyond 6 volts, regulate the supply using the VVR knob.
  10. Now, disconnect the servo motor and go back to the main menu by center pressing the navigation key.

Servos can be used to make fun projects that require precise movements such as this angry bird theme intrusion detection system, automatic door or the biped robot. Find out what else can you make using the servo motor here.

Inbuilt Touch Sensors

Now, let’s have a look at the evive’s inbuilt touch sensors.

evive has 12 touch inputs, which are interfaced via the MPR121 chip using the SPI interface. The touch library is easy-to-use, and you can just plug wire from the outputs to any conducting surface, and get a touch-sensitive surface.

evive’s touch sensors are located under its magic lid. Carefully remove the lid to take a look at them. At the bottom left corner, you will find 12 pins. They are numbered as 1,2,3,4,5 …up to 11, 12.

To see how this works, we’re going to make the surface of a fruit touch-sensitive.

  1. For this, we will need a male-to-male jumper cable and a fruit.
  2. Connect one end of the jumper cable to the 1st touch sensor and insert the other end into the fruit.
  3. Now, switch ON evive.
  4. From the menu, navigate to the Touch sensor using the navigation key. Make sure that you do NOT touch the fruit while navigating.Touch Sensor Panel
  5. After selecting the touch sensor from the menu, touch the fruit.
  6. In doing so, evive’s buzzer will make a sound and the screen will display the corresponding number of the touch sensor.

Touch sensors can be used for making touch-sensitive projects like the fruit piano, virtual drum set, the touch-based switchboard, etc.


In this lesson, we explored the plug-and-play interface of evive and learned how to control a DC motor, servo motor, and touch sensors using it. We also made some fun projects using these components. We hope that this tutorial was helpful in understanding the concept of evives plug-and-play interface. Happy Making!

Table of Contents