Go to Post Andymark has everything! - nighterfighter [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 17-06-2007, 16:29
ZZII 527's Avatar
ZZII 527 ZZII 527 is offline
"Scale Electric Vehicle"
AKA: Shane Colton
FRC #0097
Team Role: College Student
 
Join Date: Feb 2004
Rookie Year: 2003
Location: Cambridge, MA
Posts: 366
ZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond repute
Send a message via AIM to ZZII 527
Re: Private bot - which PIC microcontroller?

www.machinescience.org has a great set of tools for PIC programming based on the PIC 16F877. I think you can still get free FIRST accounts for their web-based IDE. They've streamlined a lot of the programming by having a bootloader and serial programmer, similar to how the FRC controller works, but the microcontroller is fully-functional and you write code for it just like you would in any other development environment.

What are you using to drive the DC motors?

Edit: http://www.machinescience.org/firstoffer.html
__________________
MIT Mechanical Engineering
>> College Mentor, Team 97: Cambridge Rindge and Latin School with The Edgerton Center, MIT Mechanical Engineering, Bluefin Robotics, and Draper Laboratory
>> Alumnus, Team 527: Plainedge HS

Last edited by ZZII 527 : 17-06-2007 at 16:32.
  #2   Spotlight this post!  
Unread 17-06-2007, 22:57
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
Re: Private bot - which PIC microcontroller?

I believe the 16f84 and 16f877 are the 2 good begginer PICs. But why a PIC? Why not an AVR? or a BASIC Stamp?

I know from expirience it is much much easier to start with an AVR. it is the same thing as a PIC but made by atmel and not microchip. You can go get a programmer for 50 - 80$ if you want the best cheap board. if you wanna go cheap you can easily go to 20$ for the programmer. the compilers are free, ad there is even a huge underground world for AVRs.......www.avrfreaks.net

-John
  #3   Spotlight this post!  
Unread 04-07-2007, 13:20
3dude_2231's Avatar
3dude_2231 3dude_2231 is offline
no one messes with a Thingy =|
AKA: Menscher,Ran Menscher =]
FRC #2231 (Onyxtronix)
Team Role: Leadership
 
Join Date: Feb 2007
Rookie Year: 2007
Location: Shoham, Israel
Posts: 233
3dude_2231 is a jewel in the rough3dude_2231 is a jewel in the rough3dude_2231 is a jewel in the rough
Send a message via MSN to 3dude_2231
Re: Private bot - which PIC microcontroller?

hi, thanks a lot for your replies.

(sorry it took me so long to respond)..

so, I got my hand on a cheap Microchip PICKIT2.
+ a bunch of 16f690s.

played a lot with it, and currently learning the basics of PWM signals.

ZZII, I had no idea that there are offers like this,

what does this offer actually provide?
forwarded it to me "superiors"

John,
thank you, looks cool, but too late for me.

thanks a lot!!
Ran.
__________________
Redefining the word "Rookie". (for 2 years now..)


Israeli Off Season Games: WINNERS!
check out this cool project I'm into..


Last edited by 3dude_2231 : 04-07-2007 at 19:13.
  #4   Spotlight this post!  
Unread 04-07-2007, 20:33
danshaffer's Avatar
danshaffer danshaffer is offline
Stanford 2012
AKA: if it quacks like a duck...
FRC #0008 (Paly Robotics)
Team Role: Mentor
 
Join Date: Apr 2007
Rookie Year: 2007
Location: Palo Alto, CA
Posts: 190
danshaffer is just really nicedanshaffer is just really nicedanshaffer is just really nicedanshaffer is just really nice
Re: Private bot - which PIC microcontroller?

i'm working on avrs (specifically the 169, as found in the butterfly) for my summer project. butterfly is a nice $22 board with a screen, speaker, etc., plus open-source starter code for all of the built-in functions. you don't need an expensive programmer, just solder up a three-pin connector to serial (i can send you in the right direction if you decide to go this route). AVRs are more powerful and built for C, while PICs are generally built for Assembly, which is a pain and not really relevant to FIRST at all (I hope).

Hope this helps!
__________________
FRC8 Co-Captain 2007-2008
FRC8 Mentor 2008-present
CalGames Ref 2008, 2009

Stanford 2012, Computer Science
  #5   Spotlight this post!  
Unread 04-07-2007, 22:44
Adam Y.'s Avatar
Adam Y. Adam Y. is offline
Adam Y.
no team (?????)
 
Join Date: Mar 2002
Location: Long Island
Posts: 1,979
Adam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to behold
Send a message via AIM to Adam Y.
Re: Private bot - which PIC microcontroller?

Quote:
Originally Posted by danshaffer View Post
i'm working on avrs (specifically the 169, as found in the butterfly) for my summer project. butterfly is a nice $22 board with a screen, speaker, etc., plus open-source starter code for all of the built-in functions. you don't need an expensive programmer, just solder up a three-pin connector to serial (i can send you in the right direction if you decide to go this route). AVRs are more powerful and built for C, while PICs are generally built for Assembly, which is a pain and not really relevant to FIRST at all (I hope).

Hope this helps!
I really wouldn't recommend using a serial cable. Just get one of their cheap programmers (Dragon/STK500) and you won't have to deal with any problems with the home built ones. They will help you get started much faster.
__________________
If either a public officer or any one else saw a person attempting to cross a bridge which had been ascertained to be unsafe, and there were no time to warn him of his danger, they might seize him and turn him back without any real infringement of his liberty; for liberty consists in doing what one desires, and he does not desire to fall into the river. -Mill
  #6   Spotlight this post!  
Unread 04-07-2007, 23:20
karlcswanson's Avatar
karlcswanson karlcswanson is offline
Registered User
FRC #0111 (WildStang)
Team Role: Alumni
 
Join Date: Nov 2005
Rookie Year: 2005
Location: Arlington Hts.
Posts: 63
karlcswanson is just really nicekarlcswanson is just really nicekarlcswanson is just really nicekarlcswanson is just really nicekarlcswanson is just really nice
Re: Private bot - which PIC microcontroller?

I would recommend an Arduino, It is a little board with an ATmega8 or 168 and a built in programmer, so you get it and its ready to work. There are USB and serial versions. All of the code open source and you program it in C. It supports everything you need it to do.
__________________
  #7   Spotlight this post!  
Unread 05-07-2007, 03:32
danshaffer's Avatar
danshaffer danshaffer is offline
Stanford 2012
AKA: if it quacks like a duck...
FRC #0008 (Paly Robotics)
Team Role: Mentor
 
Join Date: Apr 2007
Rookie Year: 2007
Location: Palo Alto, CA
Posts: 190
danshaffer is just really nicedanshaffer is just really nicedanshaffer is just really nicedanshaffer is just really nice
Re: Private bot - which PIC microcontroller?

Quote:
Originally Posted by Adam Y. View Post
I really wouldn't recommend using a serial cable. Just get one of their cheap programmers (Dragon/STK500) and you won't have to deal with any problems with the home built ones. They will help you get started much faster.
yeah, i know that feeling. BUT if you have some pins lying around and you know how to use a soldering iron, it isn't really THAT bad.
__________________
FRC8 Co-Captain 2007-2008
FRC8 Mentor 2008-present
CalGames Ref 2008, 2009

Stanford 2012, Computer Science
  #8   Spotlight this post!  
Unread 07-07-2007, 11:38
Adam Y.'s Avatar
Adam Y. Adam Y. is offline
Adam Y.
no team (?????)
 
Join Date: Mar 2002
Location: Long Island
Posts: 1,979
Adam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to behold
Send a message via AIM to Adam Y.
Re: Private bot - which PIC microcontroller?

Quote:
Originally Posted by danshaffer View Post
yeah, i know that feeling. BUT if you have some pins lying around and you know how to use a soldering iron, it isn't really THAT bad.
Yeah but it's so much more useful because of the number of different ways you can program the Atmegas. Also, you might accidentally program the fuses in the chip in ways that you can only fix by using a commercial programmer.
__________________
If either a public officer or any one else saw a person attempting to cross a bridge which had been ascertained to be unsafe, and there were no time to warn him of his danger, they might seize him and turn him back without any real infringement of his liberty; for liberty consists in doing what one desires, and he does not desire to fall into the river. -Mill

Last edited by Adam Y. : 07-07-2007 at 12:16.
  #9   Spotlight this post!  
Unread 08-07-2007, 11:17
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
Re: Private bot - which PIC microcontroller?

Quote:
Originally Posted by Adam Y. View Post
I really wouldn't recommend using a serial cable. Just get one of their cheap programmers (Dragon/STK500) and you won't have to deal with any problems with the home built ones. They will help you get started much faster.
The butterfly has a built in boot loader and already pre-assembled. Which means you can't take the uC off. Soooo....the serial cable si the only way to program it. Check it out.

http://smileymicros.com/

The arduino is nice. It is basically the BASIC Stamp of the AVR world. I looks like you can only program it using the "arduino language" which to me is not good. It is better to learn how to do it right the first time. I also can't find a price for it.

The stk and dragon are nice, but they are nor rally made to be put onto a robot. They are good to use as a ISP programmer if you have a seperate board with ISP headers, or if you have a chip that needs to be flashed then put into a socket somewhere. But I have found that with my STK since it has no holes and no other good way to mount it anwhere that I use it strictly for a dev. board.

-John
  #10   Spotlight this post!  
Unread 08-07-2007, 11:31
Adam Y.'s Avatar
Adam Y. Adam Y. is offline
Adam Y.
no team (?????)
 
Join Date: Mar 2002
Location: Long Island
Posts: 1,979
Adam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to behold
Send a message via AIM to Adam Y.
Re: Private bot - which PIC microcontroller?

Quote:
Soooo....the serial cable si the only way to program it. Check it out.
No it isn't the only way. Look at the documentation again for the Butterfly. You can either program it using an ISP or a JTAG programmer. High voltage parallel programing is also supported but I have no idea why anyone would want to go that route unless somehow you screw up the fuse settings. Some assembly is required though because all of the ports are missing the header pins. I've used JTAG to program microcontrollers before. It's so nice seeing the program run and watching the registers change on the computer.
Quote:
The stk and dragon are nice, but they are nor rally made to be put onto a robot. They are good to use as a ISP programmer if you have a seperate board with ISP headers, or if you have a chip that needs to be flashed then put into a socket somewhere. But I have found that with my STK since it has no holes and no other good way to mount it anwhere that I use it strictly for a dev. board.
I didn't actually say it should be placed on a robot. The dragon is just a bare bone pcboard with no way of mounting anything to it without some more assembly.
Quote:
The arduino is nice. It is basically the BASIC Stamp of the AVR world. I looks like you can only program it using the "arduino language" which to me is not good. It is better to learn how to do it right the first time. I also can't find a price for it.
http://www.sparkfun.com/commerce/pro...oducts_id=8164
__________________
If either a public officer or any one else saw a person attempting to cross a bridge which had been ascertained to be unsafe, and there were no time to warn him of his danger, they might seize him and turn him back without any real infringement of his liberty; for liberty consists in doing what one desires, and he does not desire to fall into the river. -Mill

Last edited by Adam Y. : 08-07-2007 at 12:19.
  #11   Spotlight this post!  
Unread 08-07-2007, 17:08
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
Re: Private bot - which PIC microcontroller?

Quote:
Originally Posted by Adam Y. View Post
No it isn't the only way. Look at the documentation again for the Butterfly. You can either program it using an ISP or a JTAG programmer. High voltage parallel programing is also supported but I have no idea why anyone would want to go that route unless somehow you screw up the fuse settings. Some assembly is required though because all of the ports are missing the header pins. I've used JTAG to program microcontrollers before. It's so nice seeing the program run and watching the registers change on the computer.
I didn't actually say it should be placed on a robot. The dragon is just a bare bone pcboard with no way of mounting anything to it without some more assembly.
http://www.sparkfun.com/commerce/pro...oducts_id=8164
I never said you did say to mount it on the robot. I am just that that is one down side. I know what the dragon and STK are. I have used them both and own an STK.

I didn't know about the JTAG because I have never used it. From the stuff I hear about it I should start using it to at least debug programs. From my understanding you can run the program on the uC step by step from the computer?

-John
  #12   Spotlight this post!  
Unread 08-07-2007, 18:26
Adam Y.'s Avatar
Adam Y. Adam Y. is offline
Adam Y.
no team (?????)
 
Join Date: Mar 2002
Location: Long Island
Posts: 1,979
Adam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to behold
Send a message via AIM to Adam Y.
Re: Private bot - which PIC microcontroller?

Quote:
Originally Posted by John Gutmann View Post
I never said you did say to mount it on the robot. I am just that that is one down side.

-John
But Im really confused. The fact that you can't mount the STK500 and the Dragon onto a circuit board isn't really a disadvantage. I can't even think of a reason why you would want to.
Quote:
I didn't know about the JTAG because I have never used it. From the stuff I hear about it I should start using it to at least debug programs. From my understanding you can run the program on the uC step by step from the computer?
Yeah. I remember using the JTAG port in that regard on a DSP. It's really quite nice because you can see the actually ports on the microcontroller change in response to external stimuli.
__________________
If either a public officer or any one else saw a person attempting to cross a bridge which had been ascertained to be unsafe, and there were no time to warn him of his danger, they might seize him and turn him back without any real infringement of his liberty; for liberty consists in doing what one desires, and he does not desire to fall into the river. -Mill
  #13   Spotlight this post!  
Unread 08-07-2007, 18:30
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
Re: Private bot - which PIC microcontroller?

Quote:
Originally Posted by Adam Y. View Post
But Im really confused. The fact that you can't mount the STK500 and the Dragon onto a circuit board isn't really a disadvantage. I can't even think of a reason why you would want to.
Well there are many reasons. Me an everyone I know that uses them wishes they could. It is a development board. which means it is used to develop there have been more then a few project where we have needed to just mount it to a robot really quick so we can have a PWM pulse gen on the bot. But it was harder to mount this. Now don't just go and say create a PCB because we needed the serial port for the USART, etc. It isn't something that is permanent. But it certainly would have helped.

-John
  #14   Spotlight this post!  
Unread 08-07-2007, 19:01
karlcswanson's Avatar
karlcswanson karlcswanson is offline
Registered User
FRC #0111 (WildStang)
Team Role: Alumni
 
Join Date: Nov 2005
Rookie Year: 2005
Location: Arlington Hts.
Posts: 63
karlcswanson is just really nicekarlcswanson is just really nicekarlcswanson is just really nicekarlcswanson is just really nicekarlcswanson is just really nice
Re: Private bot - which PIC microcontroller?

Quote:
Originally Posted by John Gutmann View Post
The arduino is nice. It is basically the BASIC Stamp of the AVR world. I looks like you can only program it using the "arduino language" which to me is not good. It is better to learn how to do it right the first time. I also can't find a price for it.
The Arduino is has a bootloader that emulates an STK500, and a standard 6 pin ISP header. The "Arduino Language" is just some functions that they include to make it easier to program, you can add in standard avr code, or not use the arduino stuff at all. I like the arduino because it is pretty good for prototyping things, I recently purchased a STK500 and dragonfly bundle from digikey and i still use the arduino more.
__________________
  #15   Spotlight this post!  
Unread 08-07-2007, 19:22
Adam Y.'s Avatar
Adam Y. Adam Y. is offline
Adam Y.
no team (?????)
 
Join Date: Mar 2002
Location: Long Island
Posts: 1,979
Adam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to behold
Send a message via AIM to Adam Y.
Re: Private bot - which PIC microcontroller?

Quote:
Originally Posted by karlcswanson View Post
The Arduino is has a bootloader that emulates an STK500, and a standard 6 pin ISP header. The "Arduino Language" is just some functions that they include to make it easier to program, you can add in standard avr code, or not use the arduino stuff at all. I like the arduino because it is pretty good for prototyping things, I recently purchased a STK500 and dragonfly bundle from digikey and i still use the arduino more.
That solution sounds a bit expensive. If the Arduino's source code is open source might as well turn any of the Avrs that it supports into a a boot loadable device because essentially that is what you are paying for.
Quote:
Well there are many reasons. Me an everyone I know that uses them wishes they could. It is a development board. which means it is used to develop there have been more then a few project where we have needed to just mount it to a robot really quick so we can have a PWM pulse gen on the bot. But it was harder to mount this. Now don't just go and say create a PCB because we needed the serial port for the USART, etc. It isn't something that is permanent. But it certainly would have helped.
That really wouldn't be the way I would do it though. Namely because it's $80.00 which is cheap for what it does but not cheap enough that Im willing to stick it on a robot. The Dragon has no use on a robot because of it's limited prototyping area.
__________________
If either a public officer or any one else saw a person attempting to cross a bridge which had been ascertained to be unsafe, and there were no time to warn him of his danger, they might seize him and turn him back without any real infringement of his liberty; for liberty consists in doing what one desires, and he does not desire to fall into the river. -Mill

Last edited by Adam Y. : 08-07-2007 at 19:33.
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
pic: Team 241: This Years Bot Lifting Last Years Bot Dantvman27 Robot Showcase 3 21-02-2007 07:04
Embedded Microcontroller major? John Gutmann Career 5 27-07-2006 23:49
Propeller Microcontroller Adam Y. Electrical 4 20-04-2006 13:27
217 Vs. 229 - Which Bot is Prettier? Swan217 General Forum 73 02-12-2005 13:30
microcontroller selection¿ Rickertsen2 Programming 11 25-05-2003 10:52


All times are GMT -5. The time now is 03:42.

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