[PD] Arduino (is drivin me mad

Hans-Christoph Steiner hans at at.or.at
Tue Jul 5 22:04:59 CEST 2011


The Uno board was troublesome back when I first tried it, but that was  
a while ago.  I didn't make that StandardFirmata_2_2_for_Uno_0_3  
firmware, so I don't know what changes it has.  Is anyone having these  
problems on boards older than an Uno?

.hc

On Jul 5, 2011, at 3:32 PM, Pierre Massat wrote:

> It makes no difference at all.
>
> Here's what happens :
> Inputs 2 through 7 work fine.
> Inputs 8 and 9 work fine.
>
> But if i use any of the inputs within the 2-7 group, and then use  
> any input of the second group (8 and 9), i have to trigger the later  
> twice before i can see something is happening.
>
> It goes like this :
> (in group 2 to 7)
> First guy : "Pushed button 3."
> Second guy (Pd) : "Ok, pushed button 3."
> First guy : "Pushed button 7."
> Second guy : "K, you pushed button 7."
> First guy : "Pushed button 8."
> Second guy : "Come again?"
> First guy : "PUSHED BUTTON 8!"
> Second guy : "Oh, yeah, button 8..."
> First guy ; "Pushed button 3."
> Second guy : "I'm sorry, what button?"
> First guy : "BUTTON 3!!"
> Second guy : "Yep, button 3.
>
> I hope it is clear now what the problem is.
>
> Pierre
>
> 2011/7/5 Pierre Massat <pimassat at gmail.com>
> Ok, I checked in Windows XP, with a custom sketch, and all of my  
> inputs work flawlessly.
> (The IDE seem to work much better in Windows than in Linux btw).
>
> So the problem has to be somewhere between firmata and pduino.
>
> I will try with the latest pduino...
>
> Thanks for your help!
>
> Pierre
>
>
> 2011/7/5 Hans-Christoph Steiner <hans at at.or.at>
>
> It would good to nail down the source of this and fix it.  Which  
> version of Firmata are you using? Which firmware?  Also, there was a  
> bug like that a while back that was fixed, so make sure you have the  
> latest Pd patch too:
>
> http://at.or.at/hans/pd/objects.html#pduino
>
> .hc
>
> On Jul 5, 2011, at 2:49 PM, Ingo wrote:
>
>> I fixed it by replacing the mapping object by a custom patch which  
>> deals with the first two switches seperately.
>> I’ll look it up tomorrow and send you my fix.
>>
>> >And where does the problem lie? In the board, firmata, or pduino?
>>
>> It suppose fermata since the wrong numbers arrive at pduino.
>>
>> Ingo
>>
>>
>> Von: Pierre Massat [mailto:pimassat at gmail.com]
>> Gesendet: Dienstag, 5. Juli 2011 20:41
>> An: Ingo Scherzinger
>> Cc: Ingo Scherzinger
>> Betreff: Re: [PD] Arduino (is drivin me mad
>>
>> Can we fix that??
>>
>> Pierre
>>
>> 2011/7/5 Ingo Scherzinger <ingo at fixitinthemix.de>
>> I happens when switching from the first two switches to the others  
>> within a
>> 8-bit block. Since the block has the wrong header it will ignore  
>> the "on"
>> message and send the first "off". So you have to press the button  
>> twice.
>> Once pressed it works until you press another button within that  
>> block and
>> return to the first one.
>>
>> Ingo
>>
>> ________________________________________
>> Von: Pierre Massat [mailto:pimassat at gmail.com]
>> Gesendet: Dienstag, 5. Juli 2011 19:56
>> An: Ingo Scherzinger
>> Betreff: Re: [PD] Arduino (is drivin me mad
>>
>> Glad to know i'm not the only one with this problem! Sorry for  
>> starting a
>> new thread.
>> I have problems with inputs 8 and 9, or 9 and 10 (the first two on  
>> the
>> second digital input socket).
>>
>> Pierre
>> 2011/7/5 Ingo Scherzinger <ingo at miamiwave.com>
>> This is the same problem I had described several times before.  
>> There is an
>> error in the 8-bit block where the digital ins 2+3 are coming in.  
>> It can be
>> traced somewhere in the mapping section. I'll try to finally look  
>> it up
>> tomorrow.
>>
>> Ingo
>>
>>
>>
>> ________________________________________
>> Von: pd-list-bounces at iem.at [mailto:pd-list-bounces at iem.at] Im  
>> Auftrag von
>> Pierre Massat
>> Gesendet: Dienstag, 5. Juli 2011 19:36
>> An: pd-list
>> Betreff: [PD] Arduino (is drivin me mad
>>
>> Hi All,
>>
>> I apologie if this is off-topic. Please let me know if you think it  
>> is.
>>
>> I have been working on my arduino-based pedal, and im faced with a  
>> peculiar
>> problem right now. I'm using 8 digital inputs ( 6 on the first  
>> socket of the
>> board, inputs 2 through 8, and 2 on the second digital socket,  
>> inputs 9 and
>> 10). The first 6 inputs work perfectly, but when i want to use any  
>> of the
>> last two inputs (9 and 10), i have to trigger them twice before  
>> they start
>> working. Then i'm faced with the exact same problem when i get back  
>> to the
>> first 6 inputs. I am pretty sure that i used the very same wiring  
>> for all 8
>> inputs.
>>
>> So... I thought that maybe this could be a problem with firmata or  
>> pduino
>> (no offense, Hans!). I have been spending the last hour trying to  
>> write a
>> simple program in the arduino software in order to print in serial  
>> monitor
>> the values of my digital inputs.
>>
>> Now my question... Is the arduino software just really really bad?  
>> Or was it
>> just not designed to work on an ubuntu machine? It is randomly very  
>> slow at
>> start-up, it randomly disables the serial port menu in Tools, it  
>> randomly
>> decides to prevent me from uploading the program in the board, or  
>> warns me
>> that serial port dev/ttyACM0 is already in use, or can't be found.  
>> The fact
>> that i unplug and replug the board, or change the usb port, or  
>> restart the
>> software doesn't seem to make any difference.
>>
>> This is beginning to look more like witchcraft than computer  
>> science to me.
>>
>> Please help me, or i'll teach it how to fly out my window.
>>
>> Thank you.
>>
>> Pierre
>>
>>
>>
>> _______________________________________________
>> Pd-list at iem.at mailing list
>> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>
>
>
> ----------------------------------------------------------------------------
>
> Man has survived hitherto because he was too ignorant to know how to  
> realize his wishes.  Now that he can realize them, he must either  
> change them, or perish.    -William Carlos Williams
>
>
>
>



----------------------------------------------------------------------------

Computer science is no more related to the computer than astronomy is  
related to the telescope.      -Edsger Dykstra


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20110705/37bc38ab/attachment-0001.htm>


More information about the Pd-list mailing list