Go to Post I betcha the FIRST officials in the know come in here from time to time and either gasp and think of how to make next year's clue harder or fall off their chair laughing. - Sparks333 [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-04-2008, 23:00
mluckham's Avatar
mluckham mluckham is offline
Registered User
FRC #0758 (Sky Robotics)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Ontario, Canada
Posts: 116
mluckham will become famous soon enoughmluckham will become famous soon enough
Re: Digital Electronics project - servos and more

Quote:
Originally Posted by efoote868 View Post
I would like to use PID control for the servos I create; but I would definitely need a micro controller for that.
http://www.ecircuitcenter.com/Circui...pid/op_pid.htm
  #2   Spotlight this post!  
Unread 21-04-2008, 10:01
efoote868 efoote868 is offline
foote stepped in
AKA: E. Foote
FRC #0868
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2005
Location: Noblesville, IN
Posts: 1,404
efoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond repute
Re: Digital Electronics project - servos and more

Quote:
Originally Posted by mluckham View Post
Alright, so there is a way to do it without a micro controller, but I don't want to try to tune an analog PID...

I think what I need to know is how much of this circuit I would build myself, and how much I would buy just in chips (make my own H-bridge vrs. buying one, make my own analog to digital converter or getting it on board with the PIC, etc.)
Any thoughts?
__________________
Be Healthy. Never Stop Learning. Say It Like It Is. Own It.

Like our values? Flexware Innovation is looking for Automation Engineers. Check us out!
  #3   Spotlight this post!  
Unread 22-04-2008, 21:18
efoote868 efoote868 is offline
foote stepped in
AKA: E. Foote
FRC #0868
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2005
Location: Noblesville, IN
Posts: 1,404
efoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond repute
Re: Digital Electronics project - servos and more

(Sorry for the double post, but I'm going to answer a few of my own questions)
I do not have to build any part of the circuit myself if it is available, for instance, the H-bridges, I can just buy as is, or the analog to digital converter can be embedded in the PIC, as well as the PWM outputs.

I've got a question as far as the PIC goes, which of the line have analog inputs, and pwm outputs? Which chips are able to be programmed in C?
__________________
Be Healthy. Never Stop Learning. Say It Like It Is. Own It.

Like our values? Flexware Innovation is looking for Automation Engineers. Check us out!
  #4   Spotlight this post!  
Unread 24-04-2008, 13:07
mluckham's Avatar
mluckham mluckham is offline
Registered User
FRC #0758 (Sky Robotics)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Ontario, Canada
Posts: 116
mluckham will become famous soon enoughmluckham will become famous soon enough
Re: Digital Electronics project - servos and more

Quote:
Originally Posted by efoote868 View Post
I've got a question as far as the PIC goes, which of the line have analog inputs, and pwm outputs? Which chips are able to be programmed in C?
Get onto Microchip's website and dig into the manuals.
  #5   Spotlight this post!  
Unread 25-04-2008, 04:32
Jay Lundy Jay Lundy is offline
Programmer/Driver 2001-2004
FRC #0254 (The Cheesy Poofs)
Team Role: Alumni
 
Join Date: Jun 2001
Rookie Year: 2001
Location: Berkeley, CA
Posts: 320
Jay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to all
Re: Digital Electronics project - servos and more

If you decide to use a PIC, you can either go with the PIC16 or PIC18 series.

PIC18:
This is the same product family as the one in the RC, so you can use the same development environment (MPLAB + mcc18, but not IFI loader). Most of these come in non-DIP packages or are too large for what you need, but given your requirements the PIC18F1220 will work.

PIC16:
These are generally smaller and less powerful than the PIC18, but still plenty powerful for your needs. The problem with PIC16 is there are no free fully featured C compilers for it (as far as I know), but there are some free limited ones you may be able to use. The assembler is free if you're insane. There are too many PIC16s that match your requirements, so use Microchip's product comparator to find the right one for you (get one with flash memory, ie 16F series, and at least one CCP for PWM). The PIC16F88 is a popular choice.

With any PIC you'll need to find a programmer (to actually get the code onto the processor). You can buy one from microchip, but they can be pretty expensive. Or you can try to google some cheap versions you can build/buy (make sure to get the software you need too).

A good alternative to a PIC is an AVR. Unlike PICs, there is an AVR gcc C/C++ compiler that comes with a great set of tools. You can compare AVRs here, but I recommend the ATtiny44. You'll also need a programmer for the AVRs. There are some cheap ones, but you'll have to find one that works with a ATtiny.
  #6   Spotlight this post!  
Unread 12-05-2008, 14:48
keen101's Avatar
keen101 keen101 is offline
Ubuntu Linux User
no team
Team Role: College Student
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Loveland, CO
Posts: 228
keen101 is a jewel in the roughkeen101 is a jewel in the roughkeen101 is a jewel in the roughkeen101 is a jewel in the rough
Re: Digital Electronics project - servos and more

http://ladyada.net/make/mshield/index.html
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
More than 6 RC digital input interrupts? Jared Russell Programming 2 06-02-2007 15:41
pic: More Electronics Christian Extra Discussion 7 28-11-2006 12:47
More Digital I/O Help RedOctober Programming 1 28-01-2006 17:32
More Digital I/O Help RedOctober Technical Discussion 1 28-01-2006 17:32
More on Project Unicorn archiver 2000 4 23-06-2002 22:59


All times are GMT -5. The time now is 10:53.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi