[PD] arduino question

Dafydd Hughes dafydd61 at gmail.com
Fri Nov 25 21:29:24 CET 2011


Oh wow - I hadn't seen that. It look pretty cool!

On Fri, Nov 25, 2011 at 3:15 PM, Pagano, Patrick
<pat at digitalworlds.ufl.edu>wrote:

>  I hooked up 5 potentiometers and they are running some arduino code from
> a project called auduino granular synthesis so I was curious to see of
> arduino could support pd inside it. I guess I can get a wireless shield and
> talk to pd over wireless/Bluetooth And control it that way
>
> Patrick Pagano B.S.,M.F.A
> Digital Media Engineer
> UF Digital Worlds Institute
> (352)294-2020
>
>
> On Nov 25, 2011, at 2:54 PM, "Dafydd Hughes" <dafydd61 at gmail.com> wrote:
>
>   Hi Patrick
>
>  If I understand correctly what you're trying to do, an Arduino on its
> own is too slow. There's an audio shield you can get that will play
> samples, but anything Pd-style you need something faster.
>
>  If you're using Pduino anyway, could you use the Arduino for control and
> just run the audio on the computer?
>
>  cheers
> dafydd
>
> On Fri, Nov 25, 2011 at 1:17 PM, Pagano, Patrick <
> pat at digitalworlds.ufl.edu> wrote:
>
>>  So that worked fine. Is there a way to include the pd patch onto the
>> micro controller a la RJDJ? I would like to put bill orcutts grain/granny
>> patch via pd onto the arduino board and control it via pduino. Is this
>> possible or does te instrument have to be coded in .pde form?
>>
>> Patrick Pagano B.S.,M.F.A
>> Digital Media Engineer
>> UF Digital Worlds Institute
>> (352)294-2020
>>
>>
>> On Nov 25, 2011, at 12:31 AM, "Dafydd Hughes" <dafydd61 at gmail.com> wrote:
>>
>>   Welcome. Glad I could help.
>>
>> On Fri, Nov 25, 2011 at 12:30 AM, Pagano, Patrick <
>> pat at digitalworlds.ufl.edu> wrote:
>>
>>>  That seems to work then i just ignore the 0 bang.
>>> thanks!
>>> pp
>>>  ------------------------------
>>> *From:* Dafydd Hughes [dafydd61 at gmail.com]
>>> *Sent:* Friday, November 25, 2011 12:22 AM
>>>
>>> *To:* Pagano, Patrick
>>> *Cc:* pd-list at iem.at
>>> *Subject:* Re: [PD] arduino question
>>>
>>>   Try this.
>>>
>>> On Fri, Nov 25, 2011 at 12:19 AM, Pagano, Patrick <
>>> pat at digitalworlds.ufl.edu> wrote:
>>>
>>>>  Yes.
>>>>
>>>> r_ANA_0
>>>>
>>>> i assume it sees it as constantly sending something but i do not know
>>>> how to control it.
>>>>
>>>> pp
>>>>
>>>>  ------------------------------
>>>> *From:* Dafydd Hughes [dafydd61 at gmail.com]
>>>> *Sent:* Friday, November 25, 2011 12:18 AM
>>>>
>>>> *To:* Pagano, Patrick
>>>> *Cc:* pd-list at iem.at
>>>> *Subject:* Re: [PD] arduino question
>>>>
>>>>   Oh cool - is this your stuff coming out of ANA_0?
>>>>
>>>> On Fri, Nov 25, 2011 at 12:16 AM, Pagano, Patrick <
>>>> pat at digitalworlds.ufl.edu> wrote:
>>>>
>>>>>  it's a number box that is constantly sending 0 or 1 depending on
>>>>> whether the sensor is on or off.
>>>>>
>>>>> the value is a constant stream and i am just unsure how to just get
>>>>> ONE bang when it's turned on and  ignore the 0 bang when it turns off.
>>>>>
>>>>>
>>>>>  ------------------------------
>>>>> *From:* Dafydd Hughes [dafydd61 at gmail.com]
>>>>> *Sent:* Friday, November 25, 2011 12:12 AM
>>>>>
>>>>> *To:* Pagano, Patrick
>>>>> *Cc:* pd-list at iem.at
>>>>> *Subject:* Re: [PD] arduino question
>>>>>
>>>>>   Hi Patrick
>>>>>
>>>>>  Do you mean you only want a bang when the sensor turns on?
>>>>>
>>>>>  What do the messages look like coming from the arduino? What is that
>>>>> second value?
>>>>>
>>>>>  I hope I'm able to help here!
>>>>>
>>>>>  cheers
>>>>> dafydd
>>>>>
>>>>> On Fri, Nov 25, 2011 at 12:04 AM, Pagano, Patrick <
>>>>> pat at digitalworlds.ufl.edu> wrote:
>>>>>
>>>>>>  Kind of. I am still a newbie to this but i have been using
>>>>>> pduino_playaround.
>>>>>> So are you suggesting removing the second value that is sent by
>>>>>> Arduino?
>>>>>> What is happening is that pd receives the "on" from the sensor and
>>>>>> keeps baninging until the sensor turns off and then it sends another bang
>>>>>> when it turns off so if the sensor turns it on it eventually bangs again
>>>>>> and resets to 0 again. whereas i just want it to send  bang when it's
>>>>>> activated to play a sound and not band when it's done.
>>>>>>
>>>>>> pp
>>>>>>  ------------------------------
>>>>>> *From:* Dafydd Hughes [dafydd61 at gmail.com]
>>>>>> *Sent:* Friday, November 25, 2011 12:00 AM
>>>>>> *To:* Pagano, Patrick
>>>>>> *Cc:* pd-list at iem.at
>>>>>>
>>>>>> *Subject:* Re: [PD] arduino question
>>>>>>
>>>>>>   You know what? I'm not sure. I've never worked with those sensors.
>>>>>> What do you mean by "message to bang?" are you doing a call-and-response
>>>>>> between Pd and the Arduino?
>>>>>>
>>>>>>  Are you working with this sketch?
>>>>>> http://www.arduino.cc/playground/Code/PIRsense
>>>>>>
>>>>>> On Thu, Nov 24, 2011 at 11:28 PM, Pagano, Patrick <
>>>>>> pat at digitalworlds.ufl.edu> wrote:
>>>>>>
>>>>>>>  that kind of works but after it sends it's message to bang
>>>>>>> something the PIRturns off when the sensor goes "off" and it sends another
>>>>>>> value is there a way to ignore that?
>>>>>>>
>>>>>>> pp
>>>>>>>  ------------------------------
>>>>>>> *From:* Dafydd Hughes [dafydd61 at gmail.com]
>>>>>>> *Sent:* Thursday, November 24, 2011 10:43 PM
>>>>>>> *To:* Pagano, Patrick
>>>>>>> *Subject:* Re: [PD] arduino question
>>>>>>>
>>>>>>>   Hi Patrick
>>>>>>>
>>>>>>>  Are you trying to turn the sample on/off by comparing it to a
>>>>>>> range?
>>>>>>>
>>>>>>>  If so, have you tried something like:
>>>>>>>
>>>>>>>  [< 0.3]
>>>>>>> |
>>>>>>> [change]
>>>>>>>
>>>>>>>  ?
>>>>>>>
>>>>>>> cheers
>>>>>>> dafydd
>>>>>>>
>>>>>>> On Thu, Nov 24, 2011 at 10:31 PM, Pagano, Patrick <
>>>>>>> pat at digitalworlds.ufl.edu> wrote:
>>>>>>>
>>>>>>>>  Hi
>>>>>>>>
>>>>>>>>  I am using a PIR sensor with pduino playground and I have the
>>>>>>>> sensor picking up movement. It's my first pd-arduino excursion so forgive
>>>>>>>> the noobie-ness. When I get the out form the PIR sensor it give me a
>>>>>>>> constant value of SOMETHING The entire time. It's output values range from
>>>>>>>> 0.13-0.664/0.665 constantly. I just want to use the sensor to turn off/on a
>>>>>>>> sample but the file is constantly being "banged" a value. How do I just out
>>>>>>>> put an on/off based upon  this constant stream of Data? I tried select bit
>>>>>>>> that does seem to be working.
>>>>>>>>
>>>>>>>>  It's a simple parallax PIR sensor and I have been having good
>>>>>>>> luck getting usd to wiring and  the breadboard etc. but when I take the
>>>>>>>> analog0 stream/port into pd I do not know how to control that data/
>>>>>>>>
>>>>>>>>  Any help?
>>>>>>>>
>>>>>>>>  pp
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Pd-list at iem.at mailing list
>>>>>>>> UNSUBSCRIBE and account-management ->
>>>>>>>> http://lists.puredata.info/listinfo/pd-list
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20111125/a3e61365/attachment.htm>


More information about the Pd-list mailing list