Go to Post Success is making a difference. - SlamminSammy [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 04-07-2004, 21:45
dumbo dumbo is offline
Registered User
no team
 
Join Date: Jul 2004
Location: usa
Posts: 5
dumbo is an unknown quantity at this point
another newbie

I know you hate to see this another dum newbie.
I am very interested learning to do simple programs. I have a back ground in motor controls with some PLC logic. I have some simple programs that I would like to do to replace relay logic. looking at the microchip flash starter kit
for 8 and 14 pin chips. Is this a place that I can get some help. if not then I will just go away.
  #2   Spotlight this post!  
Unread 04-07-2004, 21:53
sanddrag sanddrag is offline
On to my 16th year in FRC
FRC #0696 (Circuit Breakers)
Team Role: Teacher
 
Join Date: Jul 2002
Rookie Year: 2002
Location: Glendale, CA
Posts: 8,519
sanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond repute
Re: another newbie

Quote:
Originally Posted by dumbo
I know you hate to see this another dum newbie.
I am very interested learning to do simple programs. I have a back ground in motor controls with some PLC logic. I have some simple programs that I would like to do to replace relay logic. looking at the microchip flash starter kit
for 8 and 14 pin chips. Is this a place that I can get some help. if not then I will just go away.
We never hate to see another "dum" newbie. We all practice gracious professionalism to its fullest extent on these boards. Anyway, I am no programmer but these boards deal with the FIRST robotics competition which uses the C programming language. A good amount of PBASIC help may be available as well. Chances are someone here will know the answers to your questions, but that person is not me.
__________________
Teacher/Engineer/Machinist - Team 696 Circuit Breakers, 2011 - Present
Mentor/Engineer/Machinist, Team 968 RAWC, 2007-2010
Technical Mentor, Team 696 Circuit Breakers, 2005-2007
Student Mechanical Leader and Driver, Team 696 Circuit Breakers, 2002-2004
  #3   Spotlight this post!  
Unread 05-07-2004, 00:18
phrontist's Avatar
phrontist phrontist is offline
Proto-Engineer
AKA: Bjorn Westergard
FRC #1418 (Vae Victus)
Team Role: College Student
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Falls Church, VA
Posts: 828
phrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond repute
Send a message via AIM to phrontist
Re: another newbie

Quote:
Originally Posted by dumbo
I know you hate to see this another dum newbie.
I am very interested learning to do simple programs. I have a back ground in motor controls with some PLC logic. I have some simple programs that I would like to do to replace relay logic. looking at the microchip flash starter kit
for 8 and 14 pin chips. Is this a place that I can get some help. if not then I will just go away.
Quote:
Originally Posted by What you won't find hear
Yeah, $@#$@#$@#$@# n00b! Comin' here wantin' all's us to be given' him them thar teachin!!! We're l33t h4x0rzzzs around h3re pH33R my l33333t skillz0rs!!!
Hey! Glad to see you're interested. Are you in FIRST (just curious)? Regardless, here are my reccomendations:

(1) If you don't know anything about programming, you shouldn't start with embedded (embedded meaning low level circuit-y stuff) projects. Start with BASIC on a PC or perhaps html and javascript.

(2) If you DO know something about programming, but nothing about embedded programming you have two routes.

(2.1) Take the hard (but really cheap) road and start out with PIC microcontrollers.

(2.2) Get a BASIC Stamp from parrallax

IM me with questions: etherkill
__________________

University of Kentucky - Radio Free Lexington

"I would rather have a really big success or a really spectacular crash and failure then live out the warm eventual death of mediocrity" - Dean Kamen
  #4   Spotlight this post!  
Unread 05-07-2004, 00:46
Max Lobovsky's Avatar
Max Lobovsky Max Lobovsky is offline
Fold em oval!
FRC #1257 (Parallel Universe)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Scotch Plains, NJ
Posts: 1,026
Max Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant future
Send a message via AIM to Max Lobovsky
Re: another newbie

I must disagree with Phrontist on point (1). If you are unfamiliar with programming, do not start with BASIC or web scripting. Start with a good book focusing on fundamentals and take a look at something like C++ or Java. Of cousre, if you are the type that loses interest easily and can't live without quick results, Phrontist is right.
__________________
Learn, edit, inspire: The FIRSTwiki.
Team 1257


2005 NYC Regional - 2nd seed, Xerox Creativity Award, Autodesk Visualization Award
2005 Chesapeake Regional - Engineering Inspiration Award
2004 Chesapeake Regional - Rookie Inspiration award
2004 NJ Regional - Team Spirit Award
  #5   Spotlight this post!  
Unread 05-07-2004, 03:33
ZACH P. ZACH P. is offline
Insert Custom User Title
#0321 (Robolancers)
 
Join Date: Jan 2003
Location: Philly!!
Posts: 228
ZACH P. is on a distinguished road
Send a message via AIM to ZACH P.
Re: another newbie

Quote:
Originally Posted by maxlobovsky
I must disagree with Phrontist on point (1). If you are unfamiliar with programming, do not start with BASIC or web scripting. Start with a good book focusing on fundamentals and take a look at something like C++ or Java. Of cousre, if you are the type that loses interest easily and can't live without quick results, Phrontist is right.
I definately wouldn't suggest C++ as a starter language, I'd say Java or Python.
__________________
pi is exactly 3

IM me at: zmstr265
  #6   Spotlight this post!  
Unread 05-07-2004, 06:37
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: another newbie

Quote:
Originally Posted by ZACH P.
I definately wouldn't suggest C++ as a starter language, I'd say Java or Python.
They're actually very similar and for a new comer, I think, equally easy to learn. Personaly opinion, of course.

Oh, yeah. I'm always happy to answer 'newbie' questions. It feeds my ego to be able to give answers to people who don't know something.
__________________

  #7   Spotlight this post!  
Unread 05-07-2004, 08:10
Venkatesh Venkatesh is offline
Registered User
FRC #0030
 
Join Date: Jan 2003
Rookie Year: 2002
Location: USA
Posts: 260
Venkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to beholdVenkatesh is a splendid one to behold
Re: another newbie

Hello,

What kind of relay-logic circuits are you looking to replace? If your circuits are simple enough, a good FPGA will suffice. They are not very hard to program, I have used a program called WinCUPL with them. I have only worked for a short time with them, but they sure beat using arrays of gates.

Also, I will suggest you take a look at Circuitmaker. It is a very useful tool for people working/learning/messing around with electronics. There is a student version of Circuitmaker 6 available for free on the Microcode website. There is also a trial version of Circuitmaker 2000 available (30 days only). I have used both the student version of Circuitmaker 6 and the full version of Circuitmaker 2000, and there aren't many differences between them.

PM me or IM me if you need any help and Good luck.
__________________
-- vs, me@acm.jhu.edu
Mentor, Team 1719, 2007
Team 30, 2002-2005
  #8   Spotlight this post!  
Unread 05-07-2004, 16:54
dumbo dumbo is offline
Registered User
no team
 
Join Date: Jul 2004
Location: usa
Posts: 5
dumbo is an unknown quantity at this point
Re: another newbie

ok here is what I need to do.
this operates a camera using a pir motion.
when the pir is tripped it has a output for 4sec. (adjustable)
what I need to do is
when the pir trips I need
1 output to stay on for 20sec (adjustable) from the time the pir trips then off
1 output to turn on 4 sec. (adjustable) after the pir trips and stay on for 4sec. (adjustable).then off.
if the pir trips again dearing this cycle. it has no effect.
  #9   Spotlight this post!  
Unread 05-07-2004, 17:12
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: another newbie

Quote:
Originally Posted by dumbo
ok here is what I need to do.
this operates a camera using a pir motion.
when the pir is tripped it has a output for 4sec. (adjustable)
what I need to do is
when the pir trips I need
1 output to stay on for 20sec (adjustable) from the time the pir trips then off
1 output to turn on 4 sec. (adjustable) after the pir trips and stay on for 4sec. (adjustable).then off.
if the pir trips again dearing this cycle. it has no effect.
I don't know exactly what you are using to do this/what language you are using/etc, but the basic logic for this would look something like this:

Code:
Loop forever
    Check if pir tripped
        If it was, then
            Turn Output on and wait 20sec
            Turn Output on and wait 4sec
        End of tripped situation
    End check
End of loop
The 20 and 4 could be variables which are settable in some way.

That help?

==EDIT==
Looks like this is in C, so, slightly more detail:
Code:
#define TRIPPED 1 // Whatever the "tripped" setting for the pir reads in the program

while(1)
{
    if(pir == TRIPPED)
    {
         // Turn on outputs and wait approriate times.
         // I'm not sure how'd you do this using your specific stuff.
    }
}
__________________


Last edited by Ryan M. : 05-07-2004 at 17:15.
  #10   Spotlight this post!  
Unread 05-07-2004, 18:31
dumbo dumbo is offline
Registered User
no team
 
Join Date: Jul 2004
Location: usa
Posts: 5
dumbo is an unknown quantity at this point
Re: another newbie

thanks Texan
that the thing
I can do it with relays and 555 timer
I can do it with plc logic.
I would like to do it with a microcontroller.
Iam looking at buying the mirochip flash starter kit
to LEARN how too. if that would be a good choice?
I know this is real simple stuff for the people on this forum
Iam just a old man trying to stay with the times
  #11   Spotlight this post!  
Unread 05-07-2004, 18:54
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: another newbie

Quote:
Originally Posted by dumbo
thanks Texan
that the thing
I can do it with relays and 555 timer
I can do it with plc logic.
I would like to do it with a microcontroller.
Iam looking at buying the mirochip flash starter kit
to LEARN how too. if that would be a good choice?
I know this is real simple stuff for the people on this forum
Iam just a old man trying to stay with the times
It's real simple to us because it comes premade. You, however, do not have that luxery.
  #12   Spotlight this post!  
Unread 05-07-2004, 19:52
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: another newbie

Quote:
Originally Posted by dumbo
I would like to do it with a microcontroller.
Iam looking at buying the mirochip flash starter kit
to LEARN how too. if that would be a good choice?
I did look at some of the stuff on the FLASH starter kit. It appears that you do program it in C. I couldn't find the documentation on actual programming things such as output/input, so you're on your own there, but the outline I gave you above should help. (I hope)

Also, not sure on exactly what might be required in programs for it, but if you're lucky, you might just be about to have one file like this:

In the file called pir.c (just as an example, it could be anything)
Code:
// Here you could put in any '#include's which are required for input/output
// You'll have to find a manual to tell you what to do exactly
// Example: #include <example.h>


#define PIR_IS_TRIPPED pir_in == 1 // In place of the pir_in == 1 here, you would put
                                // whatever you need to do to determine if the pir is tripped

int main(int argc, char **argv) // What this is exactly depends somewhat on the compiler
                              // For instance, it might just be int main(void), instead
{
  while(1)
  {
      if(PIR_IS_TRIPPED)
      {
         // Turn on outputs and wait approriate times.
         // I'm not sure how'd you do this using your specific stuff.
      }
  }
  return 1;
}
Quote:
Originally Posted by dumbo
I know this is real simple stuff for the people on this forum
Iam just a old man trying to stay with the times
Well, simple might be an exageration...

And, yes, for all you forum police out there, I am aware I duplicated some of that code... Don't bug me about it.
__________________

  #13   Spotlight this post!  
Unread 05-07-2004, 20:14
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: another newbie

Quote:
Originally Posted by Texan
Code:
// Here you could put in any '#include's which are required for input/output
// You'll have to find a manual to tell you what to do exactly
// Example: #include <example.h>


#define PIR_IS_TRIPPED pir_in == 1 // In place of the pir_in == 1 here, you would put
                                // whatever you need to do to determine if the pir is tripped

int main(int argc, char **argv) // What this is exactly depends somewhat on the compiler
                              // For instance, it might just be int main(void), instead
{
  while(1)
  {
      if(PIR_IS_TRIPPED)
      {
         // Turn on outputs and wait approriate times.
         // I'm not sure how'd you do this using your specific stuff.
      }
  }
  return 1;
}
In the macro, wouldn't you want to use a C style comment? I think it compiles as:
Code:
//...
      if(pir_in == 1 // In place of the pir_in == 1 here, you would put)
//...
Correct me if I'm wrong.
  #14   Spotlight this post!  
Unread 05-07-2004, 20:17
dumbo dumbo is offline
Registered User
no team
 
Join Date: Jul 2004
Location: usa
Posts: 5
dumbo is an unknown quantity at this point
Wink Re: another newbie

Thanks again you must be bored to help some one like me.
ok you now know were Iam coming form and were Iam going.
what would you think would be easyest,cheapest, best way to get there,
the pic kit was just something I saw. I am very much open for ideals

astrouth that my problem everything I do is homemade not premade

http://community.webshots.com/user/richardslaton

  #15   Spotlight this post!  
Unread 06-07-2004, 00:53
Spaztik Duck's Avatar
Spaztik Duck Spaztik Duck is offline
Registered User
AKA: Audrey
#0116 (Epsilon Delta)
Team Role: Student
 
Join Date: Apr 2004
Rookie Year: 2003
Location: Herndon Va
Posts: 44
Spaztik Duck has a spectacular aura aboutSpaztik Duck has a spectacular aura about
Send a message via AIM to Spaztik Duck
Re: another newbie

Quote:
Originally Posted by dumbo
Thanks again you must be bored to help some one like me.
ok you now know were Iam coming form and were Iam going.
what would you think would be easyest,cheapest, best way to get there,
the pic kit was just something I saw. I am very much open for ideals

astrouth that my problem everything I do is homemade not premade

http://community.webshots.com/user/richardslaton

Not bored at all, we enjoy doing stuff like this. That's one reason why we have this board, cuz we like being n3rds.
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
navigate and default code newbie question alan koch Programming 2 17-02-2004 22:25
the question only a newbie would ask.. archiver 2001 2 23-06-2002 23:17
Gratitude from a newbie archiver 2000 1 23-06-2002 22:52
newbie Mrs. Flynn General Forum 6 23-05-2002 17:45
Total newbie to the Chairman's Award A. Leese Chairman's Award 4 06-06-2001 22:03


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

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