[PD] pduino digital read problems
olsen
sesselastronaut at googlemail.com
Fri Nov 20 18:45:24 CET 2009
would be nice to have the info about the port setting somewhere - either
in the test or in the help - somehow it changes your layout of the
arduino-test.pd.
i've attached a basic variation
ø
Hans-Christoph Steiner wrote:
>
> I'm not sure what you mean, but Patches welcome! :-D
>
> .hc
>
> On Nov 19, 2009, at 1:44 PM, olsen wrote:
>
>> wouldn't it be nice to have the info in the brackets somewhere in the
>> arduino-help?
>>
>> Hans-Christoph Steiner wrote:
>>> If you look at the arduino-help.pd or arduino-test.pd, the message
>>> should be [digitalIns 1 1(. The first number is the port# and the
>>> second is whether to enable it or not. (PORT0==pins 0-7, PORT1==pins
>>> 8-13, PORT2==analog pins).
>>>
>>> If you are using Arduino 0017, you might want to upgrade the included
>>> Firmata library with the latest version (check the README for how)
>>> http://at.or.at/hans/pd/objects.html#pduino
>>> .hc
>>> On Nov 19, 2009, at 6:16 AM, altern wrote:
>>>> hi
>>>>
>>>> i am doing this small example to read a digital sensor with pduino.
>>>> i test it with an arduino program that reads pin 2 and writes it to
>>>> pin 13 and this works fine, i get a LED light on and off with my
>>>> infrared sensor.
>>>>
>>>> however when i try this very same setup in PD i dont get it to work.
>>>> i am starting up arduino object to the right COM port, i can write
>>>> manually to pin 13 and the LED flashes, but i dont get anything from
>>>> pin 2. I have not used digital sensors for ages with PD so i dont
>>>> remember the right way to set them up.
>>>>
>>>> I send this message to arduino
>>>> pinMode 2 0
>>>>
>>>> i also tried sending before
>>>> digitalIns 1
>>>>
>>>> but nothing comes from comport outlet. so i am not sure what i am
>>>> doing wrong
>>>>
>>>> please help!
>>>>
>>>> enrike
>>>>
>>>> _______________________________________________
>>>> Pd-list at iem.at mailing list
>>>> UNSUBSCRIBE and account-management ->
>>>> http://lists.puredata.info/listinfo/pd-list
>>> ----------------------------------------------------------------------------
>>> Computer science is no more related to the computer than astronomy is
>>> related to the telescope. -Edsger Dykstra
>>> _______________________________________________
>>> Pd-list at iem.at mailing list
>>> UNSUBSCRIBE and account-management ->
>>> http://lists.puredata.info/listinfo/pd-list
>>
>> --
>> ETs DNA will not be televised
>
>
>
>
>
>
>
> ----------------------------------------------------------------------------
>
>
> "It is convenient to imagine a power beyond us because that means we
> don't have to examine our own lives.", from "The Idols of
> Environmentalism", by Curtis White
>
>
>
>
--
ETs DNA will not be televised
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arduino-test.pd
Type: text/x-puredata
Size: 27332 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20091120/b2961531/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arduino-help.pd
Type: text/x-puredata
Size: 20501 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20091120/b2961531/attachment-0001.bin>
More information about the Pd-list
mailing list