Author Topic: miniLOG - Standalone Data Logger  (Read 12526 times)

0 Members and 1 Guest are viewing this topic.

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: miniLOG - a Precision Standalone Data Logger
« Reply #25 on: February 23, 2014, 12:44:04 am »
Quote
It still uses 15mA

Not sure what "it" is. Posting a schematic / measurement point would be helpful.

What were you expecting?
================================
https://dannyelectronics.wordpress.com/
 

Offline fencluTopic starter

  • Regular Contributor
  • *
  • Posts: 121
  • Country: pl
Re: miniLOG - a Precision Standalone Data Logger
« Reply #26 on: February 23, 2014, 09:29:36 am »
Quote

If it doesn't increase the size of the board, I'd pick an SD card slot. Those with MicroSD cards can use a dirt cheap adapter, and that way, both types of card work. Alternatively, just log to an eeprom and output the data over the serial interface?

If you're going to use EEPROM, you might as well use something cooler (but a bit more expensive) like FeRAM.

For example, you could use this: http://uk.farnell.com/ramtron/fm33256b-g/fram-mpu-support-256k-14soic/dp/2103831

Datasheet here: http://www.cypress.com/?docID=42548

It's a 256 kbit feram with real time clock, alarm , event counter, works with 2.7-3.6v, 100 trillion writes, the works. Save money on separate rtc chip, lower power consumption because it uses less power than eeproms and it's fast (almost instant) etc etc.

I actually settled for an SD card a long time ago. Thanks though, that's something to consider.


Quote
Not sure what "it" is. Posting a schematic / measurement point would be helpful.

What were you expecting?

I meant the entire circuit is drawing 15mA from the battery (it's about 23mW). I was expecting something below 10mW. I mean come on, there only an Atmega chip, barely powered MCP3201 (not even talking to the microcontroller) and a 74HC595 shift register for multiplexing LEDs (all LEDs are off). That's even without the SD card.

Here's the latest schematic http://1drv.ms/1mnuZAe
If anything can go wrong, it will.
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: miniLOG - a Precision Standalone Data Logger
« Reply #27 on: February 23, 2014, 01:38:53 pm »
The avr, depending on the frequencies it is running at, may consume 10ma all by itself. so 15ma isn't out of this world.

For low current consumption, think about putting the mcu to sleep in between sampling or to run at different speeds.

Power consumption is more of a software thing than a hardware thing.
================================
https://dannyelectronics.wordpress.com/
 

Offline fencluTopic starter

  • Regular Contributor
  • *
  • Posts: 121
  • Country: pl
Re: miniLOG - a Precision Standalone Data Logger
« Reply #28 on: February 23, 2014, 02:31:35 pm »
Do you think it might have something to do with the fact that I'm running it with an Arduino bootloader and 16MHz crystal?
If anything can go wrong, it will.
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: miniLOG - a Precision Standalone Data Logger
« Reply #29 on: February 23, 2014, 02:40:01 pm »
With 16Mhz crystal, you are likely in the 10ma+ range and 15ma is reasonable.

Slow it down: current consumption is almost proportional to speed.
================================
https://dannyelectronics.wordpress.com/
 

Offline fencluTopic starter

  • Regular Contributor
  • *
  • Posts: 121
  • Country: pl
Re: miniLOG - a Precision Standalone Data Logger
« Reply #30 on: February 23, 2014, 08:59:48 pm »
I'll try to underclock the MCU by modyfying the Arduino bootloder. 1MHz oughta do it for SPI controlled ADC and SD card?
« Last Edit: February 23, 2014, 09:22:05 pm by fenclu »
If anything can go wrong, it will.
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: miniLOG - a Precision Standalone Data Logger
« Reply #31 on: February 23, 2014, 09:22:43 pm »
Depending on your current budget. 1Mhz will get you to about 1ma (on the avr).

If your avr idles a lot - typical for a logger, you really should think about putting it to sleep: the current consumption there is in terms of ua / na vs. ma in the run state.
================================
https://dannyelectronics.wordpress.com/
 

Offline fencluTopic starter

  • Regular Contributor
  • *
  • Posts: 121
  • Country: pl
Re: miniLOG - a Precision Standalone Data Logger
« Reply #32 on: February 23, 2014, 09:29:26 pm »
I found this Arduino library: https://code.google.com/p/narcoleptic/

I'll try and use it, should my 30kB flash memory allow it.
If anything can go wrong, it will.
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: miniLOG - a Precision Standalone Data Logger
« Reply #33 on: February 23, 2014, 10:03:04 pm »
I am partial to the arduino bootloader: I blow it out every time, :)

Arduino boards are great in terms of their availability and low prices (for the clones). I buy them and then program then via icsp.
================================
https://dannyelectronics.wordpress.com/
 

Offline fencluTopic starter

  • Regular Contributor
  • *
  • Posts: 121
  • Country: pl
Re: miniLOG - a Precision Standalone Data Logger
« Reply #34 on: February 23, 2014, 10:05:33 pm »
It's really more about the environment. Yes, I'm lame and can't program in real C... :)
If anything can go wrong, it will.
 

Offline fencluTopic starter

  • Regular Contributor
  • *
  • Posts: 121
  • Country: pl
Re: miniLOG - a Precision Standalone Data Logger
« Reply #35 on: March 15, 2014, 04:52:56 pm »
I published my project at Hackaday Projects as a beta tester: http://projects.hackaday.com/project/194-miniLOG---Standalone-Data-Logger

I probably need to mention why I'm actually doing this project. I'm a high school student and a beginner. This project is supposed to help me pay for a basic lab. I don't have a scope, a logic analyzer or even a decent multimeter, that's why it's a big challenge for me. I need some way to get the money, I was even thinking about a small Indiegogo campaign to get small funds for a basic lab, as some guy did before.
If anything can go wrong, it will.
 

Offline linux-works

  • Super Contributor
  • ***
  • Posts: 1999
  • Country: us
    • netstuff
Re: miniLOG - a Precision Standalone Data Logger
« Reply #36 on: March 15, 2014, 05:33:46 pm »
I like the idea of data loggers.

being a networking person, I would like to have wireless data streaming.  sd cards can fail (and fail horribly!).  there goes your data.

otoh, if you use wireless (of some kind, lots of choices here) then you can upload data from many sensors to one host (a linux host would be my pref, of course) and that can save data to raid disks for reliability.  in fact, if you multicast (xbees can do that for free, btw; if they are all tuned to the same channel, one transmits and they all see the same data coming in to them) then you can have nearly free reliability via redundancy.  xbees also travel pretty far and they do offer encryption, if that matters.

there are cheap digital radio modules, too.

there is IR if you have line-of-sight and only need to send data one-way.  I would checksum the packets and sequence number them (like tcp) for reliability.

having a local cache of data is fine; but I'd want to get the data off the sensors and onto something reliable.  for times where the remote upload host is not reachable, you buffer the data locally and keep trying to connect to the upload host and when you do, you flush the buffers.

Offline fencluTopic starter

  • Regular Contributor
  • *
  • Posts: 121
  • Country: pl
Re: miniLOG - Standalone Data Logger
« Reply #37 on: March 16, 2014, 10:34:18 am »
That's partly the reason why I put the UART connector on the board. If only there is some memory left on the microcontroller it should be possible to hack it to use bluetooth or Xbee module. Not really my piece of cake so I'll left it to the user/community.
If anything can go wrong, it will.
 

Offline fencluTopic starter

  • Regular Contributor
  • *
  • Posts: 121
  • Country: pl
Re: miniLOG - Standalone Data Logger
« Reply #38 on: April 14, 2014, 08:48:22 pm »
Crap...I'm now running the board at 4MHz and the power consumption. I'm out of ideas. Obviously I need to put the MCU to sleep, maybe increase the values of LED resistors. I'm just curious, why slowing the processor down 4 times didn't make any difference?
If anything can go wrong, it will.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf