1022Re: Arduino Control of Scorbot
- Jan 4, 2014I've just uploaded a schematic to the file repository for using L298N boards to control the Scorebot-ER III motors. I need to put some annotations in that the Arduino is a MEGA and the L298N chips in the diagram are actually intended to be breakout boards that are common on the market. If they were the actual chip then I would need to put in diodes and a voltage regulator...etc.
I will update as time permits. If anyone sees any errors please let me know and I will correct them.
--- In ScorbotUserGroup@yahoogroups.com, Walker Archer <warcher1@...> wrote:
> I see what you're saying now.Â I very much underestimated the number of ports I'm going to need.Â The L298N board needs one PWM port for the enable pin and two digital ports for the input pins.Â So 3 ports per motor... a total of 15 ports just for the motors.Â That almost leaves nothing left to read the limit switches and encoders.Â I'll have to build this with a Mega.
> From: KM6VV <KM6VV@...>
> To: ScorbotUserGroup@yahoogroups.com
> Sent: Thursday, January 2, 2014 5:47 PM
> Subject: Re: [ScorbotUserGroup] Re: Arduino Control of Scorbot
> You can use Pololulu PWM bridges to drive each motor, or a shield.
> Maybe get two motors per UNO? There are two interrupt lines, you might
> be able to get by with a single interrupt line per encoder. Add a
> little logic to "OR" the lines and get an edge, and read two bits from
> each encoder. Motor controller board takes a few lines.
> Alan KM6VV
> On 1/2/2014 2:21 PM, Walker Archer wrote:
> > Multiple UNO's might very well be an option. I wouldn't be at all
> > suprised to find some reason that I can't use all of the ports on the
> > UNO... although I can't think of any right now.
> > *From:* KM6VV <KM6VV@...>
> > *To:* ScorbotUserGroup@yahoogroups.com
> > *Sent:* Thursday, January 2, 2014 5:12 PM
> > *Subject:* Re: [ScorbotUserGroup] Re: Arduino Control of Scorbot
> > I'd consider multiple UNO boards, or a Mega.
> > Alan KM6VV
> > On 1/2/2014 1:50 PM, Walker Archer wrote:
> > >
> > >
> > > Looks kind of pricey. The controllers I see on Pololu only handle two
> > > motors at a time... and the 5amp model goes for $70. For that kind of
> > > money I'd rather try to process the encoders using the Arduino
> > > processor. Granted there is a chance that I might find that encoder
> > > events get lost once the UNO is fully processing all of the inputs. I
> > > might have to opt for a Mega, or Due to get enough processing power. Or
> > > maybe I will have to find a chip that can give me interrupt capability
> > > on those digital signals.
> > >
- << Previous post in topic Next post in topic >>