coffee vending machine controllers
Hai friends.....
i am an young entrepreneur.i am doing coffee vending machine controllers.
it is not exactly a uniform circuit.it is only a small level circuit found by me.that is one dc motor & 8051 micro -controller.
the operation of the circuit is ,the delay-time is already pre-defined in the microcontroller.the delay -time only depends on the the cup size.one dc motor is connected to mc.when the input of mc is high. o/p is high i.e motor is turned on.the liquid or any liquid materials get out of bowl.
simultaneously,the delay function is performed.if the delay function is complete,the motor is turned-off.i.e the motor will be in initial position.
my doubt is ,is it possible to make a timer circuit without using dc motor ?
at the same time do i use electronic volve instead of dcmotor?
program:
#include<regx51.h>
void main()
void delay unsigned int time()
{
int c=0;
if(p0.1==1) /*switch input*/
{
p1.0=1;/*motor input turn-on*/
delay(20ms);
p1.0=0;/*motor input turn-off*/
/*in between gap the liquid material is get out*/
}
else
{
p1.0=0;
}
}
void delay unsigned int time();
{
int i=0;
for(i=0;i<=20;i++)
{
c++;
}
}
this is my client url:#-Link-Snipped-#
i am an young entrepreneur.i am doing coffee vending machine controllers.
it is not exactly a uniform circuit.it is only a small level circuit found by me.that is one dc motor & 8051 micro -controller.
the operation of the circuit is ,the delay-time is already pre-defined in the microcontroller.the delay -time only depends on the the cup size.one dc motor is connected to mc.when the input of mc is high. o/p is high i.e motor is turned on.the liquid or any liquid materials get out of bowl.
simultaneously,the delay function is performed.if the delay function is complete,the motor is turned-off.i.e the motor will be in initial position.
my doubt is ,is it possible to make a timer circuit without using dc motor ?
at the same time do i use electronic volve instead of dcmotor?
program:
#include<regx51.h>
void main()
void delay unsigned int time()
{
int c=0;
if(p0.1==1) /*switch input*/
{
p1.0=1;/*motor input turn-on*/
delay(20ms);
p1.0=0;/*motor input turn-off*/
/*in between gap the liquid material is get out*/
}
else
{
p1.0=0;
}
}
void delay unsigned int time();
{
int i=0;
for(i=0;i<=20;i++)
{
c++;
}
}
this is my client url:#-Link-Snipped-#
0