MODCHIP
Junior Member level 3
- Joined
- Feb 13, 2008
- Messages
- 29
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,283
- Activity points
- 1,495
hello evrybody help please
i have to make a commande in 15 valves
im using pic 18f452 at 20mhz
the fact is the way of opning this valves (i mean in programmation not pratique )
the problem is
each valve have a variable opning time from 0 to 9 like this
0= 0.00s
1=0.10s
2=0.14s
3=0.20s
4=0.28s
5=0.39s
6=0.54s
7=0.76s
8=1.10s
9=1.50s
s mean second this is the time that the valve must be keep open
other thing that all the valve have another parameter wich is
how many opening time in one minute
this parameter can be between 00 and 64
Exemple for one valve that have the parametre :
3 = 0.20s and have 15 times opened in minute
so it will be have a square wave that have 15 on 1 logic and 15 off 0 logic
this square wave for the "1" logic 0.20s and the "0" logic is 3.8s
i have this equation (60/opning times ) - the opning time
so i m stuck how to programm this by generate all 15 valves with each one have a particular opening time
excuse me for my bad english
please help
i have to make a commande in 15 valves
im using pic 18f452 at 20mhz
the fact is the way of opning this valves (i mean in programmation not pratique )
the problem is
each valve have a variable opning time from 0 to 9 like this
0= 0.00s
1=0.10s
2=0.14s
3=0.20s
4=0.28s
5=0.39s
6=0.54s
7=0.76s
8=1.10s
9=1.50s
s mean second this is the time that the valve must be keep open
other thing that all the valve have another parameter wich is
how many opening time in one minute
this parameter can be between 00 and 64
Exemple for one valve that have the parametre :
3 = 0.20s and have 15 times opened in minute
so it will be have a square wave that have 15 on 1 logic and 15 off 0 logic
this square wave for the "1" logic 0.20s and the "0" logic is 3.8s
i have this equation (60/opning times ) - the opning time
so i m stuck how to programm this by generate all 15 valves with each one have a particular opening time
excuse me for my bad english
please help