Minia library for Java

After quite a big effort I have managed to use my Minia in Java.
Unfortunately there is no native support for HID devices in the JVM so one has to map some native library of the OS using JNI or JNA or map some third party library like the HIDApi that is esactly what I did.
This library claims to be compatible with Windows, Linux and MacOSX.
I have compiled it for Windows, and after some useless attempts I have managed to import in java using JNA.

After this I created a little abstraction for the device and a little GUI for testing it.
As usual the code is available in my repository here.

I have also created a small wiki page here and here.

Have fun.

A simple GUI for testing the Minia


A simple integration of Minia and PureData

I have created a little examlpe of how to integrate Minia with PureData.
Basically I have connected a 100K ohm potentiometer to the analog pin 1 this way:

Which in Fritzing‘s breadboard view corresponds to this:


Or, if you prefer a schematic view, it corresponds to this:



The sketch for Fritzing is available at my repository here.

Then I have created a little patch for PureData that shows the values on a number box and, after being scaled, to a VU meter.

The Simple Minia Viewer Patch

The Simple Minia Viewer Patch

Here you can download the PureData patch:

Discovering Minia


I am making some experiments with Minia and finding interesting things:

It is based on a ATmega8 microcontroller, this means that in principle it has 8 channels 10 bits ADC converters, 3 PWM channels, and other interesting features.
It comes with some pre-charged firmware, I am curious to know if I can find it somewhere (I will ask to its creator Servando Barreiro).

The pins are configured this way (starting from the top):

the first two ones are not used
the following 4 are digital inputs
the 7th is the ground
the 8th is the reference
the following 6 are analog inputs, converted to 10 bits

Minia board

Minia board

I have made a model of the board for Fritzing a nice prototype designing tool (I strongly suggest to give it a look).
The model can be found in the official Fritzing channel or in my code repository.

bye !

Merry christmas

This year I have been given as a present Minia, a controller that maps some digitalized analog inputs to a HID device.

My tiny Minia

My tiny Minia

The bad new is that there is very little documentation about it. I will try to post as much as I can on this blog about my discoveries.

In some preliminary tests I used the patch for Pure Data provided on the official website here. It uses the object called hidin (on Windows, on linux there’s a better object called hid, see this). I have just printed the values from the hidin object to check which pin was receiving what. With no real sensor connected to the pins the values were fluctuating, by connecting the pin to the ground the values were zeroed (not surprisingly).

This is all by now, I will do some more test and let you know..

BTW: happy xmas !!