All times are UTC + 8 hours




Post new topic Reply to topic  [ 155 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11  Next
Author Message
 Post subject: Re: Arduino DataLogger
PostPosted: Feb 16th, '13, 01:53 
Bordering on Legend
Bordering on Legend
User avatar

Joined: Jan 18th, '11, 08:29
Posts: 481
Images: 0
Location: Western NC
Gender: Male
Are you human?: Unknown Cyborg
Location: North Carolina
I've been thinking of getting a Raspberry Pi too, it has an I2C port so it should be easy to hook a couple of DS18B20 thermal sensors (I plan on one for ambient temp, one waterproof for water temp). Probably add an RTC too since I'd like it know the time even if the network is down.


Top
 Profile  
Reply with quote  
    Advertisement
 
 Post subject: Re: Arduino DataLogger
PostPosted: Feb 16th, '13, 01:53 
A posting God
A posting God
User avatar

Joined: Dec 10th, '11, 15:03
Posts: 2089
Gender: Male
Are you human?: What is human?
Location: Perth Hills
Also, to save on the monitor, if it is network connected, over wifi for example, you could run a web server and use any device to check the results...


Top
 Profile  
Reply with quote  
 Post subject: Re: Arduino DataLogger
PostPosted: Feb 16th, '13, 02:25 
A posting God
A posting God
User avatar

Joined: Dec 10th, '11, 15:03
Posts: 2089
Gender: Male
Are you human?: What is human?
Location: Perth Hills
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=37&t=22736

http://codeandlife.com/2012/07/29/arduino-and-raspberry-pi-serial-communication/

Looks easy enough....


Top
 Profile  
Reply with quote  
 Post subject: Re: Arduino DataLogger
PostPosted: Feb 16th, '13, 04:24 
Bordering on Legend
Bordering on Legend

Joined: Jun 28th, '12, 22:36
Posts: 301
Gender: Male
Are you human?: YES
Location: Nashville, Tennessee
I may be missing something, but since the Pi is a little computer with a USB port, couldn't you just plug the Arduino USB cord into it as you would with a PC?

Anyone know if there are any remote desktop (over wifi) applications suitable for the Pi? That would remove the need for a monitor/keyboard after initial setup if you can get in via PC (or even phone).

Luckily my code posted previously echoes everything to serial (unless you tell it not to), so I could probably get away with little to no change on that side. Besides making the photoresistor a bit more functional, I suppose.


Top
 Profile  
Reply with quote  
 Post subject: Re: Arduino DataLogger
PostPosted: Feb 16th, '13, 04:51 
A posting God
A posting God
User avatar

Joined: Dec 10th, '11, 15:03
Posts: 2089
Gender: Male
Are you human?: What is human?
Location: Perth Hills
I dont know anything about arduino, but i did read on one of the threads someone mentioned using USB. The advantage of using serial though is that almost any microcontroller can use it. So as long as the microcontroller outputs the right data then anything written for the Pi would work.

My imagination taking off here, but you could have a little config file on the Pi that told it how many temp sensors you had for example and it would poll the arduino, picaxe, propeller etc that many times for temp, how many level sensors etc. Then if i wanted 37 temp sensors and you wanted 1 we could both use the same script. More work but it would be cool :D


Top
 Profile  
Reply with quote  
 Post subject: Re: Arduino DataLogger
PostPosted: Feb 16th, '13, 05:01 
Bordering on Legend
Bordering on Legend

Joined: Jun 28th, '12, 22:36
Posts: 301
Gender: Male
Are you human?: YES
Location: Nashville, Tennessee
The USB is a serial connection, though, and you get the added benefit of uploading code directly from the Pi. Much easier than making extra level shifters or voltage dividers.

Man, this is a cheap little Arduino clone:
http://dx.com/p/arduino-pro-mini-microc ... mhz-178183


Top
 Profile  
Reply with quote  
 Post subject: Re: Arduino DataLogger
PostPosted: Feb 16th, '13, 05:07 
A posting God
A posting God
User avatar

Joined: Dec 10th, '11, 15:03
Posts: 2089
Gender: Male
Are you human?: What is human?
Location: Perth Hills
If it treats the usb as a serial device it should be fairly trivial to be able to use both. The propeller can be the same thing with a ftdr device.


Top
 Profile  
Reply with quote  
 Post subject: Re: Arduino DataLogger
PostPosted: Feb 16th, '13, 05:55 
Bordering on Legend
Bordering on Legend

Joined: Jun 28th, '12, 22:36
Posts: 301
Gender: Male
Are you human?: YES
Location: Nashville, Tennessee
Well, that escalated quickly. I went ahead and ordered a Pi. I'll update once I've played around with it.


Top
 Profile  
Reply with quote  
 Post subject: Re: Arduino DataLogger
PostPosted: Feb 16th, '13, 06:34 
A posting God
A posting God
User avatar

Joined: Dec 10th, '11, 15:03
Posts: 2089
Gender: Male
Are you human?: What is human?
Location: Perth Hills
I like the way you work :thumbright:

Sent from my GT-P7100 using Tapatalk 2


Top
 Profile  
Reply with quote  
 Post subject: Re: Arduino DataLogger
PostPosted: Feb 22nd, '13, 12:55 
Bordering on Legend
Bordering on Legend
User avatar

Joined: Feb 9th, '13, 15:36
Posts: 431
Images: 0
Gender: Male
Are you human?: Yes
Location: Gawler South, South Australia
Hi all

Still waiting for the extra parts for my Arduino data logger. In the mean time I have a small windows program called Aqua Test Timer. It is setup basically to keep track of the time intervals for water testing.

Attachment:
TestTimer.jpg
TestTimer.jpg [ 65.24 KiB | Viewed 6630 times ]


It is free so just PM me if you would like a copy.


Top
 Profile  
Reply with quote  
 Post subject: Re: Arduino DataLogger
PostPosted: Feb 22nd, '13, 15:31 
A posting God
A posting God
User avatar

Joined: Dec 10th, '11, 15:03
Posts: 2089
Gender: Male
Are you human?: What is human?
Location: Perth Hills
Well, i have been playing around today.

I have my prop sending data to my rpi and displaying via a serial terminal. I also have php reading from a config file.

Just need to get the python script to dump the values into a sql database, get the php generating the python script with the setting in the config file and displaying the data stored in the sql database. Easy peasey :S

The python script generation will be easy. SQL stuff shouldnt be too hard.... Hardest part will be manipulating the sql data into an xml format for the graphing stuff to work ;)

No arduino though :P

I will be releasing the code onto GIT next week hopefully, under an MIT licence. Any MCU will be able to use it, just needs to be able to spit the data out in the right way.


Top
 Profile  
Reply with quote  
 Post subject: Re: Arduino DataLogger
PostPosted: Feb 22nd, '13, 18:05 
Legend Member
Legend Member
User avatar

Joined: Jun 21st, '12, 06:51
Posts: 545
Gender: Male
Are you human?: YES
Location: Australia, WA, Beldon
xml? Does your graphing system support json? It's a one line conversion from an array to json, and I've found json to be way easier/faster/efficienter/reliabler/better than xml.

I'm using extjs + json for my graphs.
Extjs works really well, if you can spend the learning curve time then you get an amazing tool in your arsenal.

And if you use cakephp then it does ALL the database stuff for you...

Good luck with whatever you choose, I'll be interested to see the result :-)


Top
 Profile  
Reply with quote  
 Post subject: Re: Arduino DataLogger
PostPosted: Feb 22nd, '13, 20:56 
A posting God
A posting God
User avatar

Joined: Dec 10th, '11, 15:03
Posts: 2089
Gender: Male
Are you human?: What is human?
Location: Perth Hills
The reason i am thinking xml is to try and reduce the load on the RPi. For example, say i have a graph of averages for 2012, i dont need to recompute the xml to display it later. You can just serve the same xml every time.

Can json work in that way?

Also this is just as much an exercise in coding, so a little challenge is welcome :)


Top
 Profile  
Reply with quote  
 Post subject: Re: Arduino DataLogger
PostPosted: Mar 12th, '13, 05:28 
Bordering on Legend
Bordering on Legend
User avatar

Joined: Feb 9th, '13, 15:36
Posts: 431
Images: 0
Gender: Male
Are you human?: Yes
Location: Gawler South, South Australia
Hi Everyone.

I finally got my Ardnino and other parts last week.

It is currently in the shed monitoring the temps for the fish tank, sump, outside and dead center of the Grow Bed.

But in my hast to get things ordered I forgot to order the Network shield, such is life. It should now be here in the next few days.(with another Ardnino Mega for the next project)


Top
 Profile  
Reply with quote  
 Post subject: Re: Arduino DataLogger
PostPosted: Mar 16th, '13, 22:28 
Bordering on Legend
Bordering on Legend
User avatar

Joined: Feb 9th, '13, 15:36
Posts: 431
Images: 0
Gender: Male
Are you human?: Yes
Location: Gawler South, South Australia
I have posted my version of a Arduino DataLogger to another thread as it is built on a Mega R3.

Datalogger with Arduino Mega R3
http://www.backyardaquaponics.com/forum/viewtopic.php?f=50&t=15687


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 155 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 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:  

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