Small Ardurino Project
$10-30 USD
Paid on delivery
The purpose of this project it to build a very simple controller that will rinse liquid waste out of the cat litter box. It consists of a solenoid valve, a pump, normally open float sensor, relay, and the Ardurino. It should operate:
Pump:
If sensor=water pump on
If sensor /=water pump off
If sensor=water for >x seconds solenoid valve off and alarm (shutdown to to pump failure)
Solenoid Valve:
y times per day solenoid valve open z seconds
I had some code written and have two problems with it that I can't repair:
1. The pump operates intermittently when with water tank is full and stays on until I unplug the Ardurino. Sometimes unplugging and plugging it back in will turn the pump on.
2. The solenoid valve never turns on.
This is the code I have been running:
#define VALVE 2
#define PUMP 3
#define SENSOR 4
#define ALARM 13
long cleaning_number = 12; // How many operations should be executed for day
long interval = long((1000L*60L*60L*24L)/cleaning_number); // Interval beetwen cleanings in miliseconds
int valve_time=15; // Time of opening valve in seconds
int pump_time= 25; // Time of working pump in seconds
int counter=0;
long counter2=0;
void setup() {
pinMode(VALVE, OUTPUT);
pinMode(PUMP, OUTPUT);
pinMode(ALARM, OUTPUT);
pinMode(SENSOR, INPUT_PULLUP);
digitalWrite(VALVE, HIGH);
digitalWrite(PUMP, HIGH);
digitalWrite(ALARM, LOW);
[login to view URL](115200);
[login to view URL]("Start programming");
[login to view URL]("Interval: ");
[login to view URL](interval);
}
void loop() {
if(counter2*5000 > interval){
counter2=0;
digitalWrite(VALVE, LOW);
delay(valve_time*1000);
digitalWrite(VALVE, HIGH);
[login to view URL]("Valve activation");
}
if(digitalRead(SENSOR)){
digitalWrite(PUMP, LOW);
while(digitalRead(SENSOR)){
counter++;
delay(500);
if(counter>pump_time*2){
digitalWrite(PUMP, HIGH);
while(true){
digitalWrite(ALARM, HIGH);
delay(300);
digitalWrite(ALARM, LOW);
delay(300);
}
}
}
digitalWrite(PUMP, HIGH);
counter=0;
}
delay(5000);
counter2++;
}
Project ID: #18583100
About the project
Awarded to:
Hello. I can fix your code quickly I work with Arduino since 2010 and have more than 20 years of experience in programming and electronics.
18 freelancers are bidding on average $24 for this job
Yes buddy,,,a very easy project to be done,,,You will feel brotherhood,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Hi there. I offer you the services for Arduino , I complete the jobs in Arduino module. I am new on freelancer site, but I am designer expert with 10+ years of experience in Circuit designs, PCB designs, Zigbee/bluet More
HEllo, i have sow your idea , and i can make your code to work. i will provide full tested code. Regards, Sandu
electrical and electronic engineer specialist in hardware and software design also professional in altium program for pcb design and i can help you with this project
I have experience in one, mega, micro arduino projects, with sensors, actuators, displays , shields.
I am sure I can finish the task perfectly working in time. Please be sure its a piece of cake for an embedded software developer with mechatronics background.
Hi! We are an expert in : - 3D/CAD Design (AutoCAD, Inventor) - Electronic circuit design, PCB Layout - Microcontroller, Arduino Looking forward to working with you! Regards,
Based on the information given, I believe that I know what the problem with this circuit is and how to address it. I'm also confident that it would take only 1 to 2 days to get it done. Since I'm new to freelancer.c More
Hello, I am an electric engineer with years of experience in the automation of industrial processes. I can help you.
hello I always work in time this code is SO simple I will provide this code in two days for any hardware discission report me thanks of lot
I have already tried your code using my Arduino Uno. The reasons why you had this issues could be: 1. The pump operates intermittently when with water tank is full and stays on until I unplug the Ardurino. Sometimes More
hi I'm c,cpp programer I can create more powerful code just send me circuit. and components names and what actually you want to create using it .
Hi There, Thanks for considering me, my expertise include embedded electronics system design & Code development, I have over 3 years of experience under my belt. I can provide any kind of corporate and More
I can find the solution, but maybe the solution is not only in the software but also in the design.