Background Image

Input Device

Background Image

Read a sensor

This week's mission is to measure something: add a sensor to a microcontroller board that I have designed and read it.

Background Image

Capacitive Sensor

image

Step response

The transmit-receive capacitor sensor can sense position, pressure, proximity, tilt, acceleration, humidity, and also be touchpad. So for my wearable it could be a universal input device. Inspired by Cindy's DuoSkin, the copper sticker can also be metalic fashion tattoo.

image

Board

First I fabricated Neil's two step response input boards, loading and transmit-receive.

image

Program

Plug in both FAB ISP and FTDI cable.
Run make -f hello.load.45.make and then make -f hello.load.45.make program-usbtiny-fuses to write to the board.
With the firmware loaded in the ATtiny45, unplug the ISP. Thanks to Jose's tutorial.

image

Check python version: python -- version
Get USB port: ls /dev/tty.*
So my FTDI is connected to: /dev/tty.usbserial-A603UTCE
I got "ImportError: No module named serial"
So download pyserial, unpack and install: tar -xzf pyserial-3.4.tar.gz cd pyserial-3.4 sudo python setup.py install
Run the python code for visualization:
Loading: python hello.load.45.py /dev/tty.usbserial-A603UTCE
Transmit-receive: python hello.txrx.45.py /dev/tty.usbserial-A603UTCE

image

image

Loading

Background Image

Transmit-Receive

Background Image