You got me interested. I didn't know about an internal pull-up resistore, but I asked in the #arduino channel and it seems there indeed is such a thing.
<rdz> hi all. is there an internal pull-up resistor for digitalIns? <scgtrp> (digitalRead btw) yes, pinMode(n, INPUT); digitalWrite(n, 1);
I can't test with [arduino] right now, but it seems you could do:
[pinMode $1 0( | | [digital $1 1( | / [arduino]
Tell us if that really works.
Roman
On Wed, 2010-06-30 at 12:31 +0200, Ingo Scherzinger wrote:
Hi,
I'm having a problem with the arduino digital ins. According to the arduino website there are pull up resistors inside the ATmega that get activated automatically when the digital ins are turned on. This is not the case here with the Pduino-0.5beta8. When I connect ground to the pin it switches to 0 as expected. When I disconnect the wire it starts switching randomly between 0 and 1. If I use an "external" pullup resistor everything works as expected again. I just read the help file from the pduino and it states that this is the normal behaviour which shouldn't be the case with the internal pullup resistors activated. What's the problem with these internal pullup resistor not getting turned on? Is there a command I can (or have to) send to the arduino?
I've tested this with a diecimila and duemilanove and Ubuntu 10.4 and Windows XP. Maybe there is a problem with Pduino or Firmata 2.1?
Any ideas appreciated! Cheers, Ingo
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list