[PD] pd arduino

2012-06-11 Thread ais...@free.fr

Hi,
I found some patches with arduino card like an emulator (i am on ubuntu) 
it looks like mac, but I forget the name of this arduino-pd example ?

I am looking for hours to try to find it back but disappeared complety
I am sorry because I haven't much explanation but maybe someone can 
understand what I mean ?

I am a beginner :)
Kind regards
Henri

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] pd arduino

2012-06-11 Thread IOhannes m zmoelnig
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2012-06-11 09:34, ais...@free.fr wrote:
 Hi, I found some patches with arduino card like an emulator (i am
 on ubuntu) it looks like mac, but I forget the name of this
 arduino-pd example ? I am looking for hours to try to find it back
 but disappeared complety I am sorry because I haven't much
 explanation but maybe someone can understand what I mean ?

could you re-phrase the question? i'm not sure i understand what you
are looking for.

fgmasdr
IOhannes
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/VqF8ACgkQkX2Xpv6ydvRoYwCg6kk7DLNCYRvGTP70cHWGmcTQ
bSgAnjNNDjpGGEdRH6FnzbMShhKBfxj+
=1/tH
-END PGP SIGNATURE-



smime.p7s
Description: S/MIME Cryptographic Signature
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] pd arduino

2012-06-11 Thread aishen

Le 11/06/2012 10:12, IOhannes m zmoelnig a écrit :

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2012-06-11 09:34, ais...@free.fr wrote:

Hi, I found some patches with arduino card like an emulator (i am
on ubuntu) it looks like mac, but I forget the name of this
arduino-pd example ? I am looking for hours to try to find it back
but disappeared complety I am sorry because I haven't much
explanation but maybe someone can understand what I mean ?

could you re-phrase the question? i'm not sure i understand what you
are looking for.

fgmasdr
IOhannes
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/VqF8ACgkQkX2Xpv6ydvRoYwCg6kk7DLNCYRvGTP70cHWGmcTQ
bSgAnjNNDjpGGEdRH6FnzbMShhKBfxj+
=1/tH
-END PGP SIGNATURE-



___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -  
http://lists.puredata.info/listinfo/pd-list

Thanks for your answers :)
I just found the mac version of what I am looking for in linux :
http://fr.flossmanuals.net/puredata/ch047_arduino-et-pd (I hope 
en.floss... exists ?)
I want to see the arduino card (as an image), I found it for linux but 
can't remember where ?

I guess it's in pduino... I am searching !
Sorry I am not english so forgive my bad explaination.
Maybe an osc_msg.pd like ?
Kind regards,
Henri


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd, Arduino, and Multiple LED's == Installation?

2009-01-15 Thread Natanael Olaiz
Hi Kyle,

For an installation for the LAC 2008 I used a Midibox 
(http://www.ucapps.de/) with a special custom digital output controller 
(with optocouplers and power transistors) to control up to 64 (I used 
48) 3W power leds.
I used Pd to control that over MIDI, and I added to the Midibox firmware 
the posibility to use PWM to control the leds bright.

I'm terrible sorry to Frank Barknecht and Martin Rumori about my still 
pending documentation, as the last year I was in a hurry between several 
projects... But I still want to do it, so... I can start with the 
hardware part, that I'll try to do on the next week, but anyway, if I 
can help you with something specific just write me. Basically, with an 
Arduino you could do the same, you just need some power /isolation (to 
use an external power device for the leds) interface.

Well, I'll send the link when I'll publish the circuit.

Best regards,
Natanael.


El 01/15/2009 06:01 AM, Kyle Klipowicz escribió:
 Hello Listers~

 I'm working on an art gallery installation and I want to use Pd to 
 control some high-powered LED's via an Arduino unit.

 The breakdown is this: I need to create a series of RGB LED's that 
 will provide accent illumination to the gallery space, and shifts from 
 red to blue over a course of 6 weeks. The program isn't very difficult 
 to write. I've already decided to link it to the system date/time so 
 that the installation can be powered down easily at night. What's 
 tricky is knowing what hardware to use and how to get it together. I 
 am going to want between 25-100 lights at minimum, possibly more.

 I've looked at a few sites and links already, especially the Arduino 
 site. They have some things related to DMX lights, and this is 
 something I've seen a bit on the list as well. I don't know if this is 
 a good solution or if it is overkill for what I want to do.

 One piece of hardware that seems promising is the ShiftBrite 
 (http://www.macetech.com/blog/node/54). Does anyone know about this?

 I know this might  be considered off-topic, but I'd really appreciate 
 it if any seasoned veterans could throw me some tips. I'll be 
 exploring other areas, but I know there are some honed brains skimming 
 these emails so maybe they can drop some science on me.

 Thanks in advance,

 ~Kyle

 -- 
 -
 
 -
   - --
 http://perhapsidid.wordpress.com
 http://myspace.com/kyleklipowicz
 

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list
   


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd, Arduino, and Multiple LED's == Installation?

2009-01-15 Thread Dafydd Hughes
Hey Kyle

Sounds like a really cool project.

Are you sure you need any special hardware at all? You could use the
PWM out from the arduino and a transistor for each set of LEDs you
want to control then build an array. A friend just showed me this
ridiculously cool site: http://led.linear1.org/led.wiz

I'm talking like I've done this before, but really I'm only part way
through a similar process, so maybe it's all totally wrong:) Anyway,
hope it helps.

cheers
dafydd

On Thu, Jan 15, 2009 at 12:01 AM, Kyle Klipowicz kylek...@gmail.com wrote:
 Hello Listers~

 I'm working on an art gallery installation and I want to use Pd to control
 some high-powered LED's via an Arduino unit.

 The breakdown is this: I need to create a series of RGB LED's that will
 provide accent illumination to the gallery space, and shifts from red to
 blue over a course of 6 weeks. The program isn't very difficult to write.
 I've already decided to link it to the system date/time so that the
 installation can be powered down easily at night. What's tricky is knowing
 what hardware to use and how to get it together. I am going to want between
 25-100 lights at minimum, possibly more.

 I've looked at a few sites and links already, especially the Arduino site.
 They have some things related to DMX lights, and this is something I've seen
 a bit on the list as well. I don't know if this is a good solution or if it
 is overkill for what I want to do.

 One piece of hardware that seems promising is the ShiftBrite
 (http://www.macetech.com/blog/node/54). Does anyone know about this?

 I know this might  be considered off-topic, but I'd really appreciate it if
 any seasoned veterans could throw me some tips. I'll be exploring other
 areas, but I know there are some honed brains skimming these emails so maybe
 they can drop some science on me.

 Thanks in advance,

 ~Kyle

 --
 -
 
 -
   - --
 http://perhapsidid.wordpress.com
 http://myspace.com/kyleklipowicz

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list





-- 
www.sideshowmedia.ca
skype: chickeninthegrass

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd, Arduino, and Multiple LED's == Installation?

2009-01-15 Thread Roman Haefeli



--- Dafydd Hughes dafyd...@gmail.com schrieb am Do, 15.1.2009:

 Von: Dafydd Hughes dafyd...@gmail.com
 Betreff: Re: [PD] Pd, Arduino, and Multiple LED's == Installation?
 An: pd-list@iem.at
 Datum: Donnerstag, 15. Januar 2009, 15:12
 Hey Kyle
 
 Sounds like a really cool project.
 
 Are you sure you need any special hardware at all? You
 could use the
 PWM out from the arduino and a transistor for each set of
 LEDs you
 want to control then build an array. A friend just showed
 me this
 ridiculously cool site: http://led.linear1.org/led.wiz
 
 I'm talking like I've done this before, but really
 I'm only part way
 through a similar process, so maybe it's all totally
 wrong:) Anyway,
 hope it helps.
 


i think, i'd do it the same way. i've done it before, but not in that large 
scale.  Of course, one could purchase an expensive professional coloured 
Ligthing-LED-System with very expensive dimmable power supply units and 
sophisticated control-protocols such as DMX or DALI or whatsoever, but when not 
being afraid of a little soldering, you could achieve pretty much the same with 
anarduino, a handful of electronic pieces and plain LEDs from your local 
electronic store. actually, when using an arduino it is pretty straightforward 
to do something like that.

i wouldn't use common transistor fors driving the LEDs. i'd rather go for 
MOS-FET transistors. you could drive a whole bunch of LEDs with one MOS-FET and 
they draw nearly no current from the arduino digitalOut. also, as long as you 
work with low-voltage, you don't necessarily need de-coupling such as 
opto-coupler or so.

roman
 
 On Thu, Jan 15, 2009 at 12:01 AM, Kyle Klipowicz
 kylek...@gmail.com wrote:
  Hello Listers~
 
  I'm working on an art gallery installation and I
 want to use Pd to control
  some high-powered LED's via an Arduino unit.
 
  The breakdown is this: I need to create a series of
 RGB LED's that will
  provide accent illumination to the gallery space, and
 shifts from red to
  blue over a course of 6 weeks. The program isn't
 very difficult to write.
  I've already decided to link it to the system
 date/time so that the
  installation can be powered down easily at night.
 What's tricky is knowing
  what hardware to use and how to get it together. I am
 going to want between
  25-100 lights at minimum, possibly more.
 
  I've looked at a few sites and links already,
 especially the Arduino site.
  They have some things related to DMX lights, and this
 is something I've seen
  a bit on the list as well. I don't know if this is
 a good solution or if it
  is overkill for what I want to do.
 
  One piece of hardware that seems promising is the
 ShiftBrite
  (http://www.macetech.com/blog/node/54). Does anyone
 know about this?
 
  I know this might  be considered off-topic, but
 I'd really appreciate it if
  any seasoned veterans could throw me some tips.
 I'll be exploring other
  areas, but I know there are some honed brains skimming
 these emails so maybe
  they can drop some science on me.
 
  Thanks in advance,
 
  ~Kyle
 
  --
  -
  
  -
    - --
  http://perhapsidid.wordpress.com
  http://myspace.com/kyleklipowicz
 
  ___
  Pd-list@iem.at mailing list
  UNSUBSCRIBE and account-management -
  http://lists.puredata.info/listinfo/pd-list
 
 
 
 
 
 -- 
 www.sideshowmedia.ca
 skype: chickeninthegrass
 
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list


  

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd, Arduino, and Multiple LED's == Installation?

2009-01-15 Thread nicholas ward

Hi,
I got 32 channels of PWM using two tlc5940 connected to several  
uln2003. Actually i found someone had  a circuit diagram too.
Here we go. If you dont ever have all 100 on this might work using  
some multiplexing too. There is a library for arduino written for this  
chip. I can send you the code i used if you go this route.

Nicky

inline: circuit.png



On 15 Jan 2009, at 14:39, Roman Haefeli wrote:





--- Dafydd Hughes dafyd...@gmail.com schrieb am Do, 15.1.2009:


Von: Dafydd Hughes dafyd...@gmail.com
Betreff: Re: [PD] Pd, Arduino, and Multiple LED's == Installation?
An: pd-list@iem.at
Datum: Donnerstag, 15. Januar 2009, 15:12
Hey Kyle

Sounds like a really cool project.

Are you sure you need any special hardware at all? You
could use the
PWM out from the arduino and a transistor for each set of
LEDs you
want to control then build an array. A friend just showed
me this
ridiculously cool site: http://led.linear1.org/led.wiz

I'm talking like I've done this before, but really
I'm only part way
through a similar process, so maybe it's all totally
wrong:) Anyway,
hope it helps.




i think, i'd do it the same way. i've done it before, but not in  
that large scale.  Of course, one could purchase an expensive  
professional coloured Ligthing-LED-System with very expensive  
dimmable power supply units and sophisticated control-protocols such  
as DMX or DALI or whatsoever, but when not being afraid of a little  
soldering, you could achieve pretty much the same with anarduino, a  
handful of electronic pieces and plain LEDs from your local  
electronic store. actually, when using an arduino it is pretty  
straightforward to do something like that.


i wouldn't use common transistor fors driving the LEDs. i'd rather  
go for MOS-FET transistors. you could drive a whole bunch of LEDs  
with one MOS-FET and they draw nearly no current from the arduino  
digitalOut. also, as long as you work with low-voltage, you don't  
necessarily need de-coupling such as opto-coupler or so.


roman


On Thu, Jan 15, 2009 at 12:01 AM, Kyle Klipowicz
kylek...@gmail.com wrote:

Hello Listers~

I'm working on an art gallery installation and I

want to use Pd to control

some high-powered LED's via an Arduino unit.

The breakdown is this: I need to create a series of

RGB LED's that will

provide accent illumination to the gallery space, and

shifts from red to

blue over a course of 6 weeks. The program isn't

very difficult to write.

I've already decided to link it to the system

date/time so that the

installation can be powered down easily at night.

What's tricky is knowing

what hardware to use and how to get it together. I am

going to want between

25-100 lights at minimum, possibly more.

I've looked at a few sites and links already,

especially the Arduino site.

They have some things related to DMX lights, and this

is something I've seen

a bit on the list as well. I don't know if this is

a good solution or if it

is overkill for what I want to do.

One piece of hardware that seems promising is the

ShiftBrite

(http://www.macetech.com/blog/node/54). Does anyone

know about this?


I know this might  be considered off-topic, but

I'd really appreciate it if

any seasoned veterans could throw me some tips.

I'll be exploring other

areas, but I know there are some honed brains skimming

these emails so maybe

they can drop some science on me.

Thanks in advance,

~Kyle

--
-

   -
  - --
http://perhapsidid.wordpress.com
http://myspace.com/kyleklipowicz

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -
http://lists.puredata.info/listinfo/pd-list






--
www.sideshowmedia.ca
skype: chickeninthegrass

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -
http://lists.puredata.info/listinfo/pd-list





___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd, Arduino, and Multiple LED's == Installation?

2009-01-15 Thread Hans-Christoph Steiner


Ayah Bdeir used an Arduino with a custom Firmata firmware to run a  
shift register and a matrix of LEDs.  The code and the circuit is here:


http://www.makingthingsmove.org/blog/

A little bit of work needs to be done to add shift register support to  
the Pd side of Firmata (Pduino), but I'd be happy to do it if you'll  
use it.  Its already on my todo list.


.hc

On Jan 14, 2009, at 10:01 PM, Kyle Klipowicz wrote:


Hello Listers~

I'm working on an art gallery installation and I want to use Pd to  
control some high-powered LED's via an Arduino unit.


The breakdown is this: I need to create a series of RGB LED's that  
will provide accent illumination to the gallery space, and shifts  
from red to blue over a course of 6 weeks. The program isn't very  
difficult to write. I've already decided to link it to the system  
date/time so that the installation can be powered down easily at  
night. What's tricky is knowing what hardware to use and how to get  
it together. I am going to want between 25-100 lights at minimum,  
possibly more.


I've looked at a few sites and links already, especially the Arduino  
site. They have some things related to DMX lights, and this is  
something I've seen a bit on the list as well. I don't know if this  
is a good solution or if it is overkill for what I want to do.


One piece of hardware that seems promising is the ShiftBrite (http://www.macetech.com/blog/node/54 
). Does anyone know about this?


I know this might  be considered off-topic, but I'd really  
appreciate it if any seasoned veterans could throw me some tips.  
I'll be exploring other areas, but I know there are some honed  
brains skimming these emails so maybe they can drop some science on  
me.


Thanks in advance,

~Kyle

--
-

    -
  - --
http://perhapsidid.wordpress.com
http://myspace.com/kyleklipowicz
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list






Using ReBirth is like trying to play an 808 with a long stick.- 
David Zicarelli



___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd, Arduino, and Multiple LED's == Installation?

2009-01-15 Thread Nils TS
Blinkm ( http://thingm.com/products/blinkm ) also work well since you 
control them over i2c thus simplifying wiring, but there more expensive 
then a standard led. 



Nils


Kyle Klipowicz wrote:
 Hello Listers~

 I'm working on an art gallery installation and I want to use Pd to 
 control some high-powered LED's via an Arduino unit.

 The breakdown is this: I need to create a series of RGB LED's that 
 will provide accent illumination to the gallery space, and shifts from 
 red to blue over a course of 6 weeks. The program isn't very difficult 
 to write. I've already decided to link it to the system date/time so 
 that the installation can be powered down easily at night. What's 
 tricky is knowing what hardware to use and how to get it together. I 
 am going to want between 25-100 lights at minimum, possibly more.

 I've looked at a few sites and links already, especially the Arduino 
 site. They have some things related to DMX lights, and this is 
 something I've seen a bit on the list as well. I don't know if this is 
 a good solution or if it is overkill for what I want to do.

 One piece of hardware that seems promising is the ShiftBrite 
 (http://www.macetech.com/blog/node/54). Does anyone know about this?

 I know this might  be considered off-topic, but I'd really appreciate 
 it if any seasoned veterans could throw me some tips. I'll be 
 exploring other areas, but I know there are some honed brains skimming 
 these emails so maybe they can drop some science on me.

 Thanks in advance,

 ~Kyle

 -- 
 -
 
 -
   - --
 http://perhapsidid.wordpress.com
 http://myspace.com/kyleklipowicz
 

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list
   


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Pd, Arduino, and Multiple LED's == Installation?

2009-01-15 Thread Kyle Klipowicz
Thanks so much everyone for your prompt replies!

This is going to be a quick job, the opening is the 2nd Friday of February.
It's a group project and many in the group are hesitant to use LED's. The
requirement is to have it be task lighting but also low-light. The gallery
is not huge, I'd say about 1000-1500 square feet.

Could this be accomplished with LED's? How many should I use. Also, are
there any other ways of doing this, using lighting other than LED?

Thanks so much for your replies, I'm a newbie at lighting-design so I'm a
bit nervous about coming through with an elegant solution for this project!

~Kyle
-- 
-

    -
  - --
http://perhapsidid.wordpress.com
http://myspace.com/kyleklipowicz
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] Pd, Arduino, and Multiple LED's == Installation?

2009-01-14 Thread Kyle Klipowicz
Hello Listers~

I'm working on an art gallery installation and I want to use Pd to control
some high-powered LED's via an Arduino unit.

The breakdown is this: I need to create a series of RGB LED's that will
provide accent illumination to the gallery space, and shifts from red to
blue over a course of 6 weeks. The program isn't very difficult to write.
I've already decided to link it to the system date/time so that the
installation can be powered down easily at night. What's tricky is knowing
what hardware to use and how to get it together. I am going to want between
25-100 lights at minimum, possibly more.

I've looked at a few sites and links already, especially the Arduino site.
They have some things related to DMX lights, and this is something I've seen
a bit on the list as well. I don't know if this is a good solution or if it
is overkill for what I want to do.

One piece of hardware that seems promising is the ShiftBrite (
http://www.macetech.com/blog/node/54). Does anyone know about this?

I know this might  be considered off-topic, but I'd really appreciate it if
any seasoned veterans could throw me some tips. I'll be exploring other
areas, but I know there are some honed brains skimming these emails so maybe
they can drop some science on me.

Thanks in advance,

~Kyle

-- 
-

    -
  - --
http://perhapsidid.wordpress.com
http://myspace.com/kyleklipowicz
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] PD, arduino and sharp range detectors

2008-10-30 Thread Tim Boykett


Hi All,

   We are having trouble with a PD - Arduino - Sharp IR gp2d12 IR  
range sensor.

everything works for a while, then the arduino just stops and sometimes
takes PD down with it. once we had a warning from the OS that there  
was too much current
being sucked on the USB port.

we are using three such things, each uses typically 33 and up to 50  
mA. This
should (according to the Arduino and USB specs) not be too much, but  
perhaps
these are wrong.

Any other ideas? I have heard of people using smoothing capacitors on  
the
sharp sensors.

Hmm, puzzled in Linz,

   Tim

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] PD, arduino and sharp range detectors

2008-10-30 Thread Martin Peach
Tim Boykett wrote:
We are having trouble with a PD - Arduino - Sharp IR gp2d12 IR
range sensor.

everything works for a while, then the arduino just stops and sometimes
takes PD down with it. once we had a warning from the OS that there
was too much current
being sucked on the USB port.

we are using three such things, each uses typically 33 and up to 50
mA. This
should (according to the Arduino and USB specs) not be too much, but
perhaps
these are wrong.

I have built a circuit with six of those sensors on an Arduino Diecimila, it 
worked fine with external power, but I didn't even try it with USB power 
because for me 50mA is too much. (At first it crashed sporadically because I 
was sending too much data through the serial port.) The actual USB port you 
are using may not be able to supply that much current even if the USB 
circuit is able to handle it. If it only happens occasionally it's probably 
because the sensors sometimes pull more than the average current, so a 
~100uF capacitor on the power pins would help, but you should really use a 
separate power supply for the sensors, or just power the entire Arduino 
externally.

Martin



___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] PD, arduino and sharp range detectors

2008-10-30 Thread Tim Boykett

that seems to be the case!

thanks

tim


On 30 Oct 2008, at 17:41, Martin Peach wrote:

 Tim Boykett wrote:
   We are having trouble with a PD - Arduino - Sharp IR gp2d12 IR
 range sensor.

 everything works for a while, then the arduino just stops and  
 sometimes
 takes PD down with it. once we had a warning from the OS that there
 was too much current
 being sucked on the USB port.

 we are using three such things, each uses typically 33 and up to 50
 mA. This
 should (according to the Arduino and USB specs) not be too much, but
 perhaps
 these are wrong.

 I have built a circuit with six of those sensors on an Arduino  
 Diecimila, it
 worked fine with external power, but I didn't even try it with USB  
 power
 because for me 50mA is too much. (At first it crashed sporadically  
 because I
 was sending too much data through the serial port.) The actual USB  
 port you
 are using may not be able to supply that much current even if the USB
 circuit is able to handle it. If it only happens occasionally it's  
 probably
 because the sensors sometimes pull more than the average current, so a
 ~100uF capacitor on the power pins would help, but you should really  
 use a
 separate power supply for the sensors, or just power the entire  
 Arduino
 externally.

 Martin



 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list



___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] pd/arduino pwm servo motor

2006-10-23 Thread Hans-Christoph Steiner


On Oct 21, 2006, at 6:49 PM, Martin Peach wrote:


Hans-Christoph Steiner wrote:


On Oct 20, 2006, at 4:31 PM, [EMAIL PROTECTED]  
[EMAIL PROTECTED] wrote:



David NG McCallum [EMAIL PROTECTED] said:
I can see that if you tried software PWM through pins 9-11 it  
wouldn't

be any different than using any of the other digital pins. But I
thought that pins 9-11 did hardware PWM through the analogWrite()
function in the regular Arduino C. Am I wrong on this?


I don't know. I don't have an Arduino, I'm trying to make  
something with a PIC that emulates the Arduino running Firmata.




Do you mean that hardware PWM on those pins hasn't yet been
implemented with Firmata?


That's what I meant. Also that software PWM has not been  
implemented with Firmata either AFAIK.


Hardware PWM is implemented and functional on the lastest firmata/ 
pduino release.  Software PWM and pulseOut are still lacking.   
Once one/both of those are implemented, servo control will be  
possible. Any volunteers?



Ah I see, the hardware PWM function is called analogWrite in Wiring.
My calculations based on a 16MHz arduino clock and the arduino  
firmware at :
http://svn.berlios.de/svnroot/repos/arduino/trunk/targets/arduino/ 
wiring.c

suggest that the hardware pwm is running at 490Hz.
Anyone know if this is the case?
If so, this should work for DC motors but is too fast for servos  
and too slow for audio.


The Atmel ATMEGA8 has a 30kHz hardware PWM, so it'll do audio too.   
But yes, its wy too fast for servos.


It could be used as an 8-bit DAC if a lowpass filter is placed on  
the output, something like a 10k resistor feeding a 0.1uF capacitor:


pwm/\/\/\+---filtered
10k  |
 = 0.1uF
 |
 gnd

As for software PWM it would work best if you had access to the  
timer interrupts, which would have to occur at the granularity of  
the pwm (for servos, 1/256 ms ~ 4us). I can see how to do it by  
directly writing assembly code but in the context of the Wiring  
environment I'm not sure...


There are timer interrupts available.  They are not documented in the  
Wiring stuff, but the Wiring code is literally just C++, so you can  
use the standard calls.  I haven't touched that yet though...


.hc



The arc of history bends towards justice. - Dr. Martin Luther  
King, Jr.




___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list