Nanpy 0.4 - Use your Arduino board with Python

Andrea Stagi stagi.andrea at gmail.com
Wed Oct 3 17:19:14 CEST 2012


Hi all,

I'm really glad to announce you Nanpy 0.4, an initial version of a
project born to help developers writing their Arduino programs using
Python! I started working on this project just a month ago, so you
could find bugs, missing things etc.. if you want to contribute,
here's the GitHub page: https://github.com/Octan/nanpy , you can find
the Pypi page here: http://pypi.python.org/pypi/nanpy

Actually Nanpy supports the main parts of OneWire, Lcd,
DallasTemperature, Stepper, Servo and basic Arduino's function
(digital and analog write, tone etc..) and runs without problems on a
Raspberry PI.

Long and more detailed description:

With Nanpy you can write your Arduino programs using Python,
communicating via serial port without sending hard-to-remember codes
or limiting you to use only one object: when you create an object in
Python it will be automatically created into your Arduino at runtime..
For example if you write something like

    ds = DallasTemperature(5)

or

    tone = Tone(13)

Nanpy creates the correct object into Arduino.. Also, you haven't to
take care of deallocation, Nanpy deallocates objects into Arduino as
soon as the correspondent Python objects get deleted. Look at the
examples to see how simple it is..
(https://github.com/Octan/nanpy/tree/master/examples) :)

I tried running Nanpy on a Raspberry board and it works great!!
(that's the result from one of my friends Twitter account
https://twitter.com/andreagrandi/status/251702684380434434 :) ). Also
you may use it in other devices suppoting Python and serial
communication, in a web service or simply for creating prototypes
faster, because you use Python and you don't have to flash the
firmware every time. Last but not least, firmware part of Nanpy is
Python-indipendent, so you can write another implementation of Nanpy
in any other language, for example Java, and see an Arduino controlled
via Android (ok, in this case we should use Android USB Host API and
USART, writing our own driver, because Android doesn't provide
anything to access device filest).

Do you like Nanpy? Contributions/suggestions/bug reporting/spreading
the project/beers/coffee are accepted :)

Thanks for your attention!

Best regards,

=.4.S.=

-- 
=.4ndrea.Stagi.=


More information about the Python-announce-list mailing list