⚠️ This forum has been restored as a read-only archive so the knowledge shared by the community over many years remains available. New registrations and posting are disabled.

All times are UTC + 8 hours




Post new topic Reply to topic  [ 155 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 11  Next
Author Message
 Post subject: Re: Arduino DataLogger
PostPosted: Nov 25th, '11, 13:53 
Almost divorced
Almost divorced
User avatar

Joined: Nov 11th, '09, 03:13
Posts: 1004
Gender: Male
Are you human?: The top half is
Location: Chiang Mai, NW Thailand.
Forgot to say...
On the subject of IR, it's a bloody nightmare doing anything in daylight or with fluids around.
I have done a lot of work with IR sensors, one thing I noticed while developing an IR Lap Timer was that plant life reflects huge amounts of random IR noise.
All in all making it pretty much a no go in a GB, daylight, water and plants...


Top
 Profile  
Reply with quote  
    Advertisement
 
 Post subject: Re: Arduino DataLogger
PostPosted: Nov 25th, '11, 14:32 
Newbie
Newbie

Joined: Sep 18th, '10, 19:15
Posts: 28
Gender: Male
Are you human?: yes
Location: Perth, WA
DuiNui wrote:
Is almost exactly what I did, except not constant +5v, I drove that from an output pin.
The input impedance is very high making it susceptible to noise, I think it was picking up noise from the servo driver cables, but hard to tell without a scope.

Hmmm, the only other thing i can suggest is and electrical float switch? when the float is high enough it pushes a switch in or similar?


Top
 Profile  
Reply with quote  
 Post subject: Re: Arduino DataLogger
PostPosted: Nov 25th, '11, 14:36 
Seriously, this cant be healthy.
Seriously, this cant be healthy.
User avatar

Joined: Mar 26th, '10, 20:46
Posts: 5404
Location: South Australia
Gender: Male
Are you human?: Yep
Location: South Australia
Which MicroSD shield are you using, and how did you choose it? I've never done anything with one but didn't know they were only 10 bucks. At $10 I already need a few :)


Top
 Profile  
Reply with quote  
 Post subject: Re: Arduino DataLogger
PostPosted: Nov 25th, '11, 14:37 
Newbie
Newbie

Joined: Sep 18th, '10, 19:15
Posts: 28
Gender: Male
Are you human?: yes
Location: Perth, WA
DuiNui wrote:
All in all making it pretty much a no go in a GB, daylight, water and plants...

Hmmmm, I'll have to remember that then. the thought if a level indicator did cross my mind at one point, but thought i would focus on the datalogger or before i know it i will be trying to do everything at once.
I prefer to do this sort of stuff in pieces, first log the data...then try it with an SD card, Next add an LCD, Next add a few more sensors.


Top
 Profile  
Reply with quote  
 Post subject: Re: Arduino DataLogger
PostPosted: Nov 25th, '11, 14:41 
Almost divorced
Almost divorced
User avatar

Joined: Nov 11th, '09, 03:13
Posts: 1004
Gender: Male
Are you human?: The top half is
Location: Chiang Mai, NW Thailand.
Erbey wrote:
Hmmm, the only other thing i can suggest is and electrical float switch? when the float is high enough it pushes a switch in or similar?


I considered that too, but mechanical stuff always breaks.
Thailand is also very humid, leading to problems with electrical contacts.
Floating mercury switch would be perfect, until the glass got broken ;)
I'll dig the stuff out of the box and start playing again, it's been about 9 months I think...


Top
 Profile  
Reply with quote  
 Post subject: Re: Arduino DataLogger
PostPosted: Nov 25th, '11, 14:42 
Newbie
Newbie

Joined: Sep 18th, '10, 19:15
Posts: 28
Gender: Male
Are you human?: yes
Location: Perth, WA
BullwinkleII wrote:
Which MicroSD shield are you using, and how did you choose it? I've never done anything with one but didn't know they were only 10 bucks. At $10 I already need a few :)


This is what i bought:
http://www.ebay.com.au/itm/MicroSD-SD-Shield-Arduino-UNO-Duemilanove-/250900735563?pt=LH_DefaultDomain_0&hash=item3a6ad9664b#ht_500wt_1413

Where it comes from/what it looks like (mines blue aswell):
http://www.ekitszone.com/Products/9-microsd-shield-for-arduino.aspx

Its pretty much an exact copy of this :
http://www.sparkfun.com/products/9802

Its pretty much fine the way it is. it has a 5V-3.3V digital logic convertor and a 3.3V power supply for the MicroSD and any 3.3V sensors. But I plan on soldering an RTC and RTC coin battery to it in the space provided, but wont solder any sensors because i may want to use it to sense something else some day


Top
 Profile  
Reply with quote  
 Post subject: Re: Arduino DataLogger
PostPosted: Nov 25th, '11, 14:44 
Newbie
Newbie

Joined: Sep 18th, '10, 19:15
Posts: 28
Gender: Male
Are you human?: yes
Location: Perth, WA
DuiNui wrote:
I considered that too, but mechanical stuff always breaks.
Thailand is also very humid, leading to problems with electrical contacts.
Floating mercury switch would be perfect, until the glass got broken ;)
I'll dig the stuff out of the box and start playing again, it's been about 9 months I think...


All good points. If you come up with something let us know :)


Top
 Profile  
Reply with quote  
 Post subject: Re: Arduino DataLogger
PostPosted: Nov 25th, '11, 14:56 
Seriously, this cant be healthy.
Seriously, this cant be healthy.
User avatar

Joined: Mar 26th, '10, 20:46
Posts: 5404
Location: South Australia
Gender: Male
Are you human?: Yep
Location: South Australia
Erbey wrote:
[stuff deleted]
I also bought some stuff for a chicken coop door opener, but thats another story. (feel free to ask)
[stuff deleted]



Of all the ideas, thoughts, and inventions I've played around with, I think I've spent the most time pondering the chicken door :)

I for one would love to read about it, although sadly we no longer can keep chickens so I cant see myself making one.

I even gave some thought to a fox trap as part of a few designs :)

-single chicken sized revolving door
-narrow tunnel u-turns too tight for a fox to navigate
-single chicken door with guillotine fox remover/second chicken harvester
-small solar fountain pump scales of justice door lock that stopped pumping water to the slow leaking balance after dark (and also kept their water moving)
-sprung perch that dropped a pin into a catflap to lock it when at least 3/4 of the chickens were on the perch by weight (my chickens were always all home for 1/2 an hour before any of them got on their perch)

and many others I cant remember :)

But now that I'm learning electronics, I might have to revisit it, because you can never have too many chicken door designs.


Top
 Profile  
Reply with quote  
 Post subject: Re: Arduino DataLogger
PostPosted: Nov 25th, '11, 15:14 
Almost divorced
Almost divorced
User avatar

Joined: Nov 11th, '09, 03:13
Posts: 1004
Gender: Male
Are you human?: The top half is
Location: Chiang Mai, NW Thailand.
BullwinkleII wrote:
But now that I'm learning electronics, I might have to revisit it, because you can never have too many chicken door designs.


LOL


Top
 Profile  
Reply with quote  
 Post subject: Re: Arduino DataLogger
PostPosted: Nov 25th, '11, 15:23 
Newbie
Newbie

Joined: Sep 18th, '10, 19:15
Posts: 28
Gender: Male
Are you human?: yes
Location: Perth, WA
Well, thats a small project for my mums place. chickens kept getting eaten because people kept forgetting to close the door at night.
So simple solution with another photoresistor pressure switch and an XOR digital logic gate that can be found here...
http://australia.rs-online.com/web/p/gates/0442993/

XOR truth table looks like this...

light open/close | Out
0 0 | 0
1 0 | 1
0 1 | 1
1 1 | 0

So using another voltage divider circuit with a photoresistor and a calculated resistor to match.

If its dark, V over photoresistor will be high leaving voltage over the other resistor low (so = 0)
if its dark door will be closed opening the switch so no current and also = 0
both = 0 so no output

as sun comes up and resistance over photoresistor decreases enough, and that voltage then goes over that goes down, while the voltage over the constant resistor goes up, bringing it up to HIGH or a 1.
but the door is still closed and switch open so =0
Now the output will be 1/HIGH/5V this will go to a transistor controlling a 12V actuator that will open the door until the switch closes giving a HIGH reading. where it sits until the sun does down repeating the cycle.

I haven't chosen the resistor yet because i dont know if it will be on a separate circuit to the 12v battery or not. But i'm sure it will be now, so ill calculate what resistance ill need and post my results here.

This should hopefully work, Otherwise i have just invested in 5 attiny85 microcontrollers that should do the job is it doesn't work.


Top
 Profile  
Reply with quote  
 Post subject: Re: Arduino DataLogger
PostPosted: Nov 25th, '11, 15:25 
Newbie
Newbie

Joined: Sep 18th, '10, 19:15
Posts: 28
Gender: Male
Are you human?: yes
Location: Perth, WA
BullwinkleII wrote:
But now that I'm learning electronics, I might have to revisit it, because you can never have too many chicken door designs.

Haha, your can never have too many designs for anything


Top
 Profile  
Reply with quote  
 Post subject: Re: Arduino DataLogger
PostPosted: Nov 25th, '11, 15:29 
Newbie
Newbie

Joined: Sep 18th, '10, 19:15
Posts: 28
Gender: Male
Are you human?: yes
Location: Perth, WA
Just remembered, I didn't calculate the resistor because i didn't know at what amount of light mum wanted it to switch at, And i like my sleep too much to get up at the crack of dawn with a multimeter waiting for the chooks to decide whether it was the right amount of light to go outside or not.


Top
 Profile  
Reply with quote  
 Post subject: Re: Arduino DataLogger
PostPosted: Nov 25th, '11, 17:17 
Newbie
Newbie

Joined: Sep 18th, '10, 19:15
Posts: 28
Gender: Male
Are you human?: yes
Location: Perth, WA
Ok, I have been busy. Just finished coding it to read out a number in milli seconds from a file called commands.txt and to use that in the delay function to pause between reading the sensors. The code is a bit haggard but ill try clean it upp and comment it later.

http://dl.dropbox.com/u/19981222/MicroSD%20Datalogger/greenhouseSDReadWrite.pde

For some reason when it prints wait after the setup function its comming out about 10X what it have in the command.txt file, Don't know why yet but its not hard to divide by 10 just to get it to what it needs to be and i can't be bothered going through it at the moment, but if anyone notices anything let me know.
cheers


Top
 Profile  
Reply with quote  
 Post subject: Re: Arduino DataLogger
PostPosted: Nov 25th, '11, 17:57 
Newbie
Newbie

Joined: Sep 18th, '10, 19:15
Posts: 28
Gender: Male
Are you human?: yes
Location: Perth, WA
changed my mind, had another look and did some calculations by hand and on line 57 the "1" should have been a "2" so it all works perfectly now, will probably add more commands in the future, i just don't know of any needed now?


Top
 Profile  
Reply with quote  
 Post subject: Re: Arduino DataLogger
PostPosted: Nov 25th, '11, 19:46 
A posting God
A posting God
User avatar

Joined: Oct 16th, '11, 06:12
Posts: 2019
Gender: Male
Are you human?: 0110010110
Location: Brisbane, qld
DuiNui wrote:
Erbey wrote:
I personally would have made a simple digital water sensor with two strips of metal next to each other.
One constantly at 5V with the other connected to a digital input pin.

Is almost exactly what I did, except not constant +5v, I drove that from an output pin.
The input impedance is very high making it susceptible to noise, I think it was picking up noise from the servo driver cables, but hard to tell without a scope.
I added some code to drive the output pin high for a set period and then measure that time on the input pin from the sensor.
That made things much better, but that was about the time I ran out of time, moving house etc. etc.


Good idea, switching the power one only when sampling would help, even better to do say 4-5 samples right after each other (switching off the power each time and take an average) Yes the high impedance of the water will be an issue. I would use as high a voltage as possible, say 12v at least (switched by a transistor). The higher the voltage the more noise immunity you will have. Then use a voltage divider to go into the ADC. Also important to add some noise filtering as close as possible to the ADC input.
Use a basic RC low pass filter, which is just a cap between the ADC input and ground, and a series resistor right before the cap. Should check values but something like a 100n cap and 50-100ohm resistor should be ok, just make sure its not too slow.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 155 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 11  Next

All times are UTC + 8 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Powered by phpBB® Forum Software © phpBB Group
Portal by phpBB3 Portal © phpBB Türkiye
[ Time : 0.075s | 14 Queries | GZIP : Off ]