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.
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.
First I fabricated Neil's two step response input boards, loading and transmit-receive.
Plug in both FAB ISP and FTDI cable.
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.
Check python version:
python -- version
Get USB port:
So my FTDI is connected to:
I got "ImportError: No module named serial"
So download pyserial, unpack and install:
tar -xzf pyserial-3.4.tar.gz
sudo python setup.py install
Run the python code for visualization:
python hello.load.45.py /dev/tty.usbserial-A603UTCE
python hello.txrx.45.py /dev/tty.usbserial-A603UTCE