hello, i am building a automated greenhouse controller. the Ardiouno uno needs to receive commands from the network( via Ethernet card) and save them to the SD card. The SD card should be read for the variables( temp, humidity, watering times, light times). it will output to the free pins data to a more advanced MC for controlling relays. Please help!
Ask me anything but not the source code as I don't have it anymore:
http://www.cs.helsinki.fi/u/ljlukkar/hydrobot/
What is driving this requirement?
a more advanced MC for controlling relays.
Have you considered using a Mega so you only need one MC?
I would but he output voltage for it are better for my aplecation
lilrags16:
hello, i am building a automated greenhouse controller. the Ardiouno uno needs to receive commands from the network( via Ethernet card) and save them to the SD card. The SD card should be read for the variables( temp, humidity, watering times, light times). it will output to the free pins data to a more advanced MC for controlling relays. Please help!![]()
You say "building" but I think you should stop immediately, sit down, take a deep breath, do some sensible research, and start over again - with a different concept.
For starters, an Arduino is quite capable of running the relays. You may need a Mega but that is merely mega, not more advanced.
While using an SD card may be a good idea, it need only be used to record what Arduino did. What you are suggesting is that it be used to tell Arduino what to do, and I believe there are simpler, cheaper and easier ways to do that.
You probably don't need an ethernet. You might need one if you cannot install the Arduino in the greenhouse. You might need one if you want it to communicate with the outside world, but that is not what you are suggesting.
Nick_Pyner:
lilrags16:
hello, i am building a automated greenhouse controller. the Ardiouno uno needs to receive commands from the network( via Ethernet card) and save them to the SD card. The SD card should be read for the variables( temp, humidity, watering times, light times). it will output to the free pins data to a more advanced MC for controlling relays. Please help!![]()
You say "building" but I think you should stop immediately, sit down, take a deep breath, do some sensible research, and start over again - with a different concept.
For starters, an Arduino is quite capable of running the relays. You may need a Mega but that is merely mega, not more advanced.
While using an SD card may be a good idea, it need only be used to record what Arduino did. What you are suggesting is that it be used to tell Arduino what to do, and I believe there are simpler, cheaper and easier ways to do that.
You probably don't need an ethernet. You might need one if you cannot install the Arduino in the greenhouse. You might need one if you want it to communicate with the outside world, but that is not what you are suggesting.
- There is allredy an Ethernet cable heading out there.
2.there is a room beside the greenhouse where the ardiuno will go.
3.the Ethernet is so I can how remote setting of the system
lilrags16:
3.the Ethernet is so I can how remote setting of the system
OK, that is communicating with the outside world.
I don't see any actual questions, so I don't know what help you're looking for. You seem to have decided on some hardware, therefore you need to acquire one of each (SD, Ethernet, etc) bit of hardware and write a simple Arduino program to talk to each device. Then integrate them all together with whatever control logic you want.
Better yet, think like an engineer and be more formal in your design. Google up "requirements analysis" and "functional/physical allocation", draw out your functional flow diagram, etc. Then you will understand what you are doing and the only remaining questions should be device-specific things.
We can't do your design for you.
polyglot:
I don't see any actual questions, so I don't know what help you're looking for. You seem to have decided on some hardware, therefore you need to acquire one of each (SD, Ethernet, etc) bit of hardware and write a simple Arduino program to talk to each device. Then integrate them all together with whatever control logic you want.Better yet, think like an engineer and be more formal in your design. Google up "requirements analysis" and "functional/physical allocation", draw out your functional flow diagram, etc. Then you will understand what you are doing and the only remaining questions should be device-specific things.
We can't do your design for you.
I am in an engeneing class. I have diagrams/charts. I'm just making sure I'm noting going to get screwed.
lilrags16:
polyglot:
I don't see any actual questions, so I don't know what help you're looking for. You seem to have decided on some hardware, therefore you need to acquire one of each (SD, Ethernet, etc) bit of hardware and write a simple Arduino program to talk to each device. Then integrate them all together with whatever control logic you want.Better yet, think like an engineer and be more formal in your design. Google up "requirements analysis" and "functional/physical allocation", draw out your functional flow diagram, etc. Then you will understand what you are doing and the only remaining questions should be device-specific things.
We can't do your design for you.
I am in an engeneing class. I have diagrams/charts. I'm just making sure I'm noting going to get screwed.
OK so what you have to do is to map out your various input/output requirements and the systems you wish to control. This is a perfect scenario for a state based machine. You are making it way harder and more complex if you bring a 2nd and different Mc into the mix - stick with what people are telling you and get a mega with ethernet.
You want to be careful about using the SD card to control the actions of the mega if you have ethernet access to it then have the Mega act as a basic web client and it can source any updated variables etc from an external web server
What are these "out of this world" relays that need to be controlled - i would be very surprised if there is not a relay shield or an external board that you can source to do the job.
- Map out what needs to be controlled - heater, roof etc
- Map out what needs to be measured - temp, humidity, time etc etc
- Map out what information you wish to make available to the outside world
Have a look at NearBus
A very simple way to have your system send and receive data from the internet and pump it out to google (drive, sheets etc) and respond to inputs from there.
Craig
lilrags16 wrote:
I am in an engeneing class
Me too, four years ago, I couldn't spell injuneer, and now I are one ]
But seriously, like other have already said, sit yourself down and start putting together a functional description, you should at least know how to do that. Then, you will have a better idea of what your criteria and scope of your project will be.
All too often we hear the words of "Please Help", usually not even written properly.
Paul