Skip to content

Adding an Arduino and Sensors

CHARISMAlab edited this page Sep 21, 2018 · 2 revisions

Adding and Arduino

Buy an Arduino UNO (any other arduino would work too), and connect it to R-PI via USB.

IN YOUR R-PI Copy 'sketchbook folder' in your root directory.

IN YOUR R-PI Type this command to find the port to which arduino is connected to- ls /dev/tty*

You should see /dev/ttyACM0 or something like that showing up after you connected the arduino, this way you know which port arduino is connected to. We will be using this port-name in the makefile that is present in the 'sketchbook' folder.

Now that you have an arduino connected to our R-PI, you can upload sketches to it via terminal. Go to the next section to see how to do that.

Adding Touch Sensors

We are using Adafruit MPR121 12-Key Capacitive Touch Sensor Breakout board for our ChairBots.

  1. Buy the MPR121 touch sensor by Adafruit, and follow these tutorials! Now after following the tutorials you should be able to test the touch sensor working.

  2. We are using Copper tapes as the conducting surface for our touch sensor, which will be connected to our board via connecting wires and hold together using heat shrinks, as seen in the images below -

  3. Place the touch sensors wherever you'd like on the ChairBot. You may refer to our sensor locations as seen in the images below -

Note: the numbers 00, 01... 06 indicate the channel number on the MPR121 touch sensor (which has 12 channels in total).