Computer programmers and hobbyists at times come across
situations where they need to switch a light bulb, rotate a
motor or measure a temperature under software control.
Generally these things are done by connecting some extra
hardware to the computer and coding it in C language.
KuttyPy is a USB interfaced board that gives you an option
to do those things in pure Python.
Playing with LEDs, motors, switches etc. is the primary objective of this hardware, but the experience gained in manipulating the 32 Input/Output pins of this board will gradually make you familiar with the ATMega32 micro-controller. That is only the secondary objective for a "kutty" (means child in some languages). The hardware, firmware and software resources are HERE. |
|
The board provides
32 terminals that are organized in to 4 groups, each having 8
terminals, namely A, B,C and D. The individual
terminals are marked as PA0 -- PA7 for port A, PB0 -- PB7 for port B
etc. They can be controlled/monitored as a group or as individual
pins.
For
more details on the hardware click HERE.
Example Programs
It is possible to use some GUI toolkit like PyQt to make interactive control programs. Code samples are HERE.
The simplest thing to start with is to control LEDs connected to any of the terminals. Connect an LED from PB0 to Ground with 5k resistor in series, for current limiting. The LED should blink when you run the Python program blink.py.