[PD] Firmata polling routines

Hans-Christoph Steiner hans at eds.org
Sun Aug 17 19:45:58 CEST 2008

The 20ms step is triggered on the Arduino based on a timer value.


On Aug 17, 2008, at 1:37 PM, marius schebella wrote:

> Adityo Pratomo wrote:
>> so there's an interrupt routine there? And is the routine controlled
>> in the arduino code, not in the pure data?
> Firmata computation runs in a loop. The first step is to check for
> changing values at the digital inlets and immediately send them to Pd
> without delay. The second step is executed every 20 milliseconds.  
> During
> that call, all data that was received from Pd is handled and the  
> analog
> inputs are read and sent to Pd.
> I am not exactly sure how the second step is triggered, if it has a
> timer, interrupt or just runs as fast as possible. but it is  
> definitely
> not triggered by Pd.
> marius.
>> On 8/17/08, marius schebella <marius.schebella at gmail.com> wrote:
>>> Adityo Pratomo wrote:
>>>> Hi there everyone. Can anybody explain to me how the polling  
>>>> routine
>>>> on firmata works when handling multiple sensors input? I'm  
>>>> trying to
>>>> found out myself, but i still couldn't get it. Or is it actually  
>>>> not a
>>>> polling at all?
>>> I think arduino sends automatically, so no polling. whatever  
>>> inputs are
>>> enabled/turned on, will automatically get sent by the firmata  
>>> protocoll.
>>> I guess the rate is 50 times per seconds/every 20ms.
>>> and afaik the digital ins run in a separate loop that fire a message
>>> whenever there is a change.
>>> marius.
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/ 
> listinfo/pd-list


"[W]e have invented the technology to eliminate scarcity, but we are  
deliberately throwing it away to benefit those who profit from  
scarcity."        -John Gilmore

More information about the Pd-list mailing list