[PD] pduino digital read problems

olsen sesselastronaut at googlemail.com
Thu Nov 19 19:44:41 CET 2009


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).
wouldn't it be nice to have the info in the brackets somewhere in the 
arduino-help?


> 
> 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




More information about the Pd-list mailing list