[PD] problem with arduino digital ins - Pduino-0.5beta8 / Firmata 2.1

Ingo Scherzinger ingo at miamiwave.com
Wed Jun 30 14:12:04 CEST 2010


Hi Roman,

this solution is working also. So in this case it's not really necessary to
change the firmata itself. Anyway, I would prefer to have this behaviour as
the default behaviour, i.e. included in firmata. At least all of this this
should be documented. Before I found out I was soldering all kinds of
resistors onto the board for no reason.

Ingo

> -----Ursprüngliche Nachricht-----
> Von: Roman Haefeli [mailto:reduzierer at yahoo.de]
> Gesendet: Mittwoch, 30. Juni 2010 13:39
> An: Ingo Scherzinger
> Cc: pd-list at iem.at
> Betreff: Re: [PD] problem with arduino digital ins - Pduino-0.5beta8 /
Firmata 2.1
> 
> 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 at iem.at mailing list
> > UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-
> list





More information about the Pd-list mailing list