In Progress

Arduino Eazy program needed

Need to control a relay based on a few inputs and conditions.

Small device like Arduino Pro Micro

Atmel MEGA328P processor

Two analog 0-5v inputs:

1. CO2 sensor (actually 0-4VDC output but we'll make it easy and call it 0-5 = 0-255)

2. Light sensor (photocell -analog input level TBD)

Digital inputs:

2 inputs connect to a SPDT switch so use can select between three CO2 levels

1 input to override light sensor

1 input to select that we will use the light sensor override input


Device will connect to 5VDC, GND & V-OUTPUT from CO2 sensor (0-4VDC)

0-4V = 0-2000ppm CO2

want to be able to control CO2 level so that the level can be set to 1300ppm, 1200ppm & 1100ppm with differential of 200 (hysterisis)

If set for 1300ppm, the relay will turn ON when the CO2 level drops below 1100 and turn OFF when the desired level of 1300ppm is reached.

If set for 1200ppm, the relay will turn ON when the CO2 level drops below 1000 and turn OFF when the desired level of 1200ppm is reached.

If set for 1100ppm, the relay will turn ON when the CO2 level drops below 900 and turn OFF when the desired level of 1100ppm is reached.

Relay only turns on when photocell detects light (no CO2 needed in the dark)

For safeguard (sensor failure), the relay will not turn on of the CO2 level detected falls below 300.

I know that for somebody who does this programming all the time can do this in 15 minutes but for me, it would take a day or two and I still might not get it right! I would like somebody to write this code for me so that I can change the inputs outputs levels, etc (please leave comments in the code so I know what is what). Any future tweaking will be on an hourly basis with a minimum (I know nobody wants to get paid for five minutes).

I'll be using an Arduino UNO & breadboard for testing so if we can go ahead and output on digital out pin 13

Digital in from select switches pins 2,4,7,8

Use analog pins A0 for CO2 levele, A1 for input from photocell (straight connection 5v through cell)

(I'll make changes in I/O if needed - I can figure that out myself!)

Might later need to add an I2C display to show CO2 level and relay state, etc - Not needed for current project because CO2 unit has display onboard.

I don't mean to discriminate but my only language is english so need designer with good english writing ability so we can effectively communicate.

Please only bid if you have time to do this immediately.

Thanks! Dan Weddle / DX Hydro

Skills: Engineering, Software Architecture

See more: write three wants, what programming language does arduino use, what does writing mean, what does mean in c programming, tbd software testing, i can write want to get paid, get paid program, get paid for writing software, get arduino, future of software testing, digital designer needed, arduino uno programming, software unit testing, arduino programming language, a0, micro processor , i2c, i need an engineering designer, hydro, dx, code arduino, breadboard, atmel, atmel arduino, arduino

About the Employer:
( 1 review ) des moines, United States

Project ID: #4491197

Awarded to:


Hi, check PM.

$30 USD in 0 days
(5 Reviews)

4 freelancers are bidding on average $53 for this job


Sounds like a great project

$73 USD in 6 days
(0 Reviews)

I have been working in Arduino projects for the last three years.

$50 USD in 3 days
(0 Reviews)

Dear dxco, I have experience with programming microcontrollers, especially with Arduino. I Have developed automated monitoring and control systems, such as a vacuum monitoring systems for a UHV chamber, gas flow rat More

$59 USD in 3 days
(0 Reviews)