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
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.
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.
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.
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.