Making simple press button¶
This tutorial is intended to allow the creation of a simple switch button which can be used as one of the possible PISAK’s inputs. The main advantage of the switch is that it is highly customizable. It can fit different mechanical solutions such as buttons or pneumatic mechanisms, so it is possible to adjust the method of input individually to the patient’s needs.
- First, the following pieces of hardware will be needed:
- PC with Ubuntu and PISAK software,
- USB - microUSB connecting cable,
- Wattuino Nanite 85 (https://github.com/watterott/wattuino),
- proper micro switch,
- mechanical system, for example 3D-printed button.
There are a few things to do to prepare the PC to cope with the Nanite 85. Following Watterott, Nanite 85 is provided with Micronucleus, a tiny bootloader. In order to be able to upload the firmware straight to Nanite flash memory, you need to copy the micronucleus git repository to your PC. It can be done by using the following command:
$git clone https://github.com/micronucleus/micronucleus
You’ll need libusb library (http://www.libusb.org/). If you don’t have it, type:
$sudo apt-get install libusb-dev
Next, go to the /micronucleus/commandline and install micronucleus:
$make $sudo make install
Now, you are able to upload the .hex files to the Nanite.