Small Ardurino Project

Completato Pubblicato 5 anni fa Pagato alla consegna
Completato Pagato alla consegna

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++;

}

Arduino Ingegneria Elettrica Elettronica Ingegneria Meccanica Microcontrollore

Rif. progetto: #18583100

Info sul progetto

18 proposte Progetto a distanza Attivo 5 anni fa

Assegnato a:

maxbul

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.

$20 USD in 0 giorni
(104 valutazioni)
5.9

18 freelance hanno fatto un'offerta media di $24 per questo lavoro

soltracker

Yes buddy,,,a very easy project to be done,,,You will feel brotherhood,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

$25 USD in 1 giorno
(74 valutazioni)
4.9
AbdRao

Hi Dear, I read your job description thoroughly, you explain the requirements very well. I am excited to say that I can do your work and love to this work. I am an Electrical Engineer with specialization in Electroni Altro

$50 USD in 1 giorno
(9 valutazioni)
4.8
Tomorrow1201

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 Altro

$25 USD in 1 giorno
(8 valutazioni)
4.8
LTEDeveloper

HEllo, i have sow your idea , and i can make your code to work. i will provide full tested code. Regards, Sandu

$20 USD in 1 giorno
(25 valutazioni)
5.0
AbdouSam

Good morning, That s a good project by the way, I can help you with the code and the hardware if you are having problems, i have run through the code you sent, and i can see many problems with it (obvious problems for Altro

$30 USD in 1 giorno
(10 valutazioni)
3.9
gms10ur

I can easily do it with rich communication. I’m very experienced with arduinos. Also, I’m a student and living on my own without any support. So any support will be appreciated. Please consider giving me a chance to wo Altro

$20 USD in 2 giorni
(10 valutazioni)
3.1
AF1122

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

$20 USD in 1 giorno
(2 valutazioni)
1.2
yeissontyrangel

I have experience in one, mega, micro arduino projects, with sensors, actuators, displays , shields.

$20 USD in 7 giorni
(1 Recensione)
0.7
omarasu

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.

$17 USD in 3 giorni
(0 valutazioni)
0.0
tagentechnology

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,

$25 USD in 1 giorno
(0 valutazioni)
0.0
emilelombard2

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 Altro

$17 USD in 2 giorni
(0 valutazioni)
0.0
Alek123

Hello, I am an electric engineer with years of experience in the automation of industrial processes. I can help you.

$25 USD in 2 giorni
(0 valutazioni)
0.0
ankitkumar983940

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

$30 USD in 2 giorni
(0 valutazioni)
0.0
kdeepalakshmi22

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 Altro

$25 USD in 1 giorno
(0 valutazioni)
0.0
Mohab001

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 .

$25 USD in 5 giorni
(0 valutazioni)
0.0
rakeshpundir407

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 Altro

$11 USD in 1 giorno
(0 valutazioni)
0.0
filipdj1

I can find the solution, but maybe the solution is not only in the software but also in the design.

$21 USD in 2 giorni
(0 valutazioni)
0.0