Go to Post Exercise, eat properly, work hard, live hard, play hard, laugh hard, inspire people, solve problems. And leave the world around you a little better place than you found it. - ebarker [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 20-02-2008, 16:54
Yanko693 Yanko693 is offline
Registered User
no team
 
Join Date: Feb 2008
Location: Ohio
Posts: 5
Yanko693 is an unknown quantity at this point
pic code

ok this is for pic not a robot or anything though. i was recamended to come here for what i need. i need to get this into a 8pin pic.

first i need to make for example 3 differant modes which when you push a button it cycles through and changes a multi collored led. now for the first mode would be one push of a differant button = one release of current to an electric valve. now for the second we will say if you hold in the button it continues to release current at a set amount per second. say 10 pulses of current so the valve opens 10 times a second. and for the 3rd mode we will say it needs to be the first 3 button pushs = the same as mode one but once you get to the 4th it goes into like mode 2.

thanks
  #2   Spotlight this post!  
Unread 20-02-2008, 18:11
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: pic code

OK

I would gladley help you, but:

you need to organize what you wrote, I don't understand anything.

mention what PIC are you using, what language?

good luck,
Ran.
__________________
Redefining the word "Rookie". (for 2 years now..)


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

  #3   Spotlight this post!  
Unread 20-02-2008, 18:36
Yanko693 Yanko693 is offline
Registered User
no team
 
Join Date: Feb 2008
Location: Ohio
Posts: 5
Yanko693 is an unknown quantity at this point
Re: pic code

i dont know what im going to use yet but im looking for an 8pin and it has to be compact. i dont know if your familiar with paintball but i want to make a board for my gun. in case you dont know it has a solenoid to release the air, 9volt battery, microswitch to activate which is pushed by the trigger.

well first there has to be two buttons. one will power it on and one will change settings. the first mode will be semi auto. one trigger pull equals one shot. the second mode can be full auto. if you hold the trigger it fires for a predetermined amount a second. for example twenty. the third mode will be what is called ramping in paintball terms. you pull the trigger three times in the set timeframe for example one second.once you get to the fourth pull it will jump up and start going fullauto for as long as you hold the trigger. there will be more modes but this will start. and there also has to be a setting called dwell or how long the solenoid stays open to determine how much air is released. and there are also "eyes" which are infared breakbeam so when a paintball is not in the breach blocking the eyes from seeing eachother it will not fire. this is to avoid breaking paint by the bolt.

i hope this is easier to understand.
  #4   Spotlight this post!  
Unread 20-02-2008, 19:42
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: pic code

OK,
how do you switch modes, at first you mentioned 2 buttons,
then, 4 pulls in the Time Frame, which is correct, or am I mistaken?

in what language do you program? ASM? C?
if you have some exprience, read the datasheet, it shouldn't be hard to do.
if you don't, it would be very hard to do this over the internet.
__________________
Redefining the word "Rookie". (for 2 years now..)


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

  #5   Spotlight this post!  
Unread 20-02-2008, 19:54
Yanko693 Yanko693 is offline
Registered User
no team
 
Join Date: Feb 2008
Location: Ohio
Posts: 5
Yanko693 is an unknown quantity at this point
Re: pic code

ok one two buttons in the circuit total. one turns power on and off and toggles the eye mode. press once power on. tap again eyes off. hold in power off. and the other button is pressed to cycle fireing modes. and i want to do this in C. i have some basics under my belt.
  #6   Spotlight this post!  
Unread 21-02-2008, 16:56
Yanko693 Yanko693 is offline
Registered User
no team
 
Join Date: Feb 2008
Location: Ohio
Posts: 5
Yanko693 is an unknown quantity at this point
Re: pic code

anyone?
  #7   Spotlight this post!  
Unread 25-02-2008, 16:42
Yanko693 Yanko693 is offline
Registered User
no team
 
Join Date: Feb 2008
Location: Ohio
Posts: 5
Yanko693 is an unknown quantity at this point
Re: pic code

bump?
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
Problems integrating CMUCAM code and IFI Default Code Windward Programming 2 06-02-2007 16:48
how to convert Easy C code into real code? TheHolyLancer Programming 1 29-01-2006 09:09
problems using gyro/adc code with camera default code tanstaafl Programming 7 22-01-2006 23:09
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 31-01-2005 22:28
WRRF Code wrapper for Innovation FIRST Code FotoPlasma Programming 0 02-02-2004 19:28


All times are GMT -5. The time now is 19: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