www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2011/12/21/13:47:31

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Authority-Analysis: v=2.0 cv=I83ntacg c=1 sm=0 a=6jktZp3dcHAl1vye2O6wCg==:17 a=O7eMSDLu23oA:10 a=_zQ4Cw4pZVQA:10 a=6WB07kdHjWAA:10 a=8nJEP1OIZ-IA:10 a=ZVFmHcPHmv3aB2m5hCcA:9 a=wPNLvfGTeEIA:10 a=6jktZp3dcHAl1vye2O6wCg==:117
X-Cloudmark-Score: 0
X-Originating-IP: 70.113.67.117
Message-ID: <4EF229B4.8050008@ecosensory.com>
Date: Wed, 21 Dec 2011 12:47:16 -0600
From: John Griessen <john AT ecosensory DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16
MIME-Version: 1.0
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] Design suggestions...
References: <CALSZ9godJsJDhBd_PaCiWPx9M8GyKz8PW1wVUs6NxVgtrOS-Fw AT mail DOT gmail DOT com> <201112211816 DOT pBLIGsaf016475 AT envy DOT delorie DOT com>
In-Reply-To: <201112211816.pBLIGsaf016475@envy.delorie.com>
Reply-To: geda-user AT delorie DOT com

On 12/21/2011 12:16 PM, DJ Delorie wrote:
>   You
> need an interrupt frequency only a few times your effective PWM cycle
> time to get something that "works" (although faster is better:)
>

That, and add a little capacitance to the DC motors/potentiometers so
PWM of them effectively creates a sigma delta DAC with an output smoothing filter.

When you say potentiometers, are they carrying the full DC motor current?
or is there some kind of motor control there already?

On 12/21/2011 11:11 AM, Rob Butts wrote:
 > The documentation for that microprocessor says the pmw can be set up for one, two or four channels but it has just one pwm module.

That probably means, "every interrupt, set each PWM channel pin high or low according to its stored duration and state."
So, it's not limiting you.  Two DC motors is easy for it timing-wise.
Maybe one channel for forward, one for reverse -- where
the logic for which leg of an H-bridge gets the PWM signal comes from which channel it is also.  might need an inverter
or just select pfets and nfets to get that effect from the PWM signal polarity you have.

You would use all 4 PWM channels, (fwd1, rev1, fwd2, rev2 ), but minimize external parts needed.

Each PWM requires external power FETs in a H-bridge for forward reverse and  stop, right?

John

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019