Show Posts
Pages: 1 ... 39 40 [41] 42 43 ... 50
601  Topics / Science and Measurement / Any experience with this ADC? PCM1850A PCM1851A on: February 01, 2012, 07:10:42 am
I took a brief interest in this ADC due to its low cost and high performance. For example, it could be really nifty for power measurements since it offers oodles of sampling speed, a built-in PGA, 6 channel MUX for each of the two built-in 24-bit ADCs, etc.) All in a package that has a reasonable cost and which which can be interfaced with easily via I2C.

But the documentation could be better and one aspect in particular has me stumped: Although this is a unipolar ADC design, it does not allow DC inputs. All external pins require a de-coupling pin but there is no differential input as I would have expected. How is this supposed to work?
602  Using Arduino / Sensors / Re: DHT22 accuracy on: February 01, 2012, 06:59:09 am
Not strange at all if there is an element of self-heating going on. How do the temperatures compare?

From what I recall (and memory = leaky) the DHT may be using a resistive humidity sensor that requires (among other things) a 1kHz alternating signal to be applied to it. The resulting output has to be run through an op-amp (or a sensitive ADC) and temperature-compensated. It wouldn't surprise me if this humidity sensor and the thermistor providing the correcting temperature are self-heating at different rates depending on the voltage input. Have you tried blowing a fan across the DHT22?

BTW, I don't think the unit is supposed to be run at 6V.
603  Using Arduino / Microcontrollers / Re: Current Logic Analyzer Choices... on: February 01, 2012, 06:53:35 am
Hi Skyjumper,
If I had a bigger budget, buying 'separates'  would have been the way to go. Sort of like stereo systems... But for now, the QA seems to offer a very nice package and the forums seem to be well-supported also. 
604  Using Arduino / Sensors / Re: increasing flow of a water flow sensor on: January 31, 2012, 07:17:08 pm
No, don't drill the case. I just seemed to recall a bunch of those drill pumps having clear cases, which would make a visible-light approach possible.
605  Using Arduino / Sensors / Re: increasing flow of a water flow sensor on: January 31, 2012, 06:58:35 pm
A ratiometric approach may certainly work. The drill pump is a good idea also. You may be able to skip the hall effect sensor and use a infra-red system as well if the vanes are visible. Such a sensor might be easier to mount and more rugged.
606  Using Arduino / Sensors / Re: DHT22 accuracy on: January 31, 2012, 06:55:04 pm
He'd be getting errors if he was trying to read faster than the allowed 2s/cycle rate, no? At least that's what I remember happening to me when I did it accidentally.
607  Using Arduino / Sensors / Re: increasing flow of a water flow sensor on: January 31, 2012, 03:41:48 pm offers nice bronze units with 1pulse/gallon, see datasheet here. They are not cheap, but any water meter with any sort of accuracy at this port size (i.e. low restriction) is expensive. That's still not the world's best resolution but better than nothing (i.e. ~8lb / pulse).

Depending on how sensitive your pumps are to dead-heading, the flow restriction is not an issue - review the pump curve. Thus, if speed is not an issue (i.e. you're OK with waiting 2x+ longer than usual) you may be able to use those cheapie sensors you referenced. I wouldn't use such hardware below the water line, however.

A less expensive option (open-loop) is to put a current switch on the pump. Measure the length that the pump has been running, multiply by a known flow rate (and that has to be verified with the local head conditions!) and voila. Current switches are cheap, Current Magnetics is one company that sells them.
608  Using Arduino / Microcontrollers / Re: Current Logic Analyzer Choices... on: January 31, 2012, 02:46:35 pm
I looked those up... thanks. In the end, I went with something more obscure, the QuantAsylum QA100. Not cross-platform but 100MHz sampling rate, very nice ADC resolution (10bit), waveform generator, and 12-channel logic analyzer. I can see why RuggedCircuits would prefer a standalone oscilloscope, but one thing I am after is being able to have both signals on one screen to see what the analog inputs are doing and what the CPU is doing in response. The cost of this solution (~$350) is also a factor, the Salae logic analyzer 16 only does LA... though very pretty and well-thought out LA, for sure.

My point of comparison was adding up the cost of a Rigol DS1102E, Salae16, and a Waveform generator for similar functionality. 2x-3x the cost... Not a fair comparison, but the QA100 is offering a lot of capability for the money.
609  Using Arduino / Sensors / Re: Current Sensing on: January 31, 2012, 02:12:38 pm
If getting an accurate kWh measurement is important, this approach will not work for you.  You would be far better off using a chip designed for this purpose: Can't beat that price, right?  It's a simple serial communication with Arduino, and voila!  You get really accurate energy measurement! On the other hand, you can try to simulate what it does with the Hall effect sensor and code - you will get close for purely resistive loads, but you'll be way off for inductive/capacitive loads.

I tried going that route. For example, Olimex offers a shield with a like chip to do the work. They even have a library that should making measurements easy. However, the devil is in the details.

Not as simple as I would have hoped, the calibration methods are difficult at best unless you have a nice benchtop power supply that can (among other things) provide voltage and power out of phase with each other. In the end, I stuck with the Arduino ADC. Simple to understand, easy to debug, easy to calibrate via the openenergy software. If the power signal is steady enough you can even take advantage of decimation to increase your power measurement accuracy to close to 16 bits with the measurements you can make across a second of time (20MHz Atmel, 128:1 pre-scaler, using direct analog reads = 5,500+ samples per second on each channel).

If I ever want to go to something more sophisticated/accurate, I'll opt for a dedicated ADC instead, the MAX1169 is one example of a easy-to use I2C device that gets me 58ksps with 16 bit resolution. Put a 2 channel MUX in front and you get over 24ksps per channel and you still have a input that is drop-in ready for the openenergymon routines. With this sort of ADC, you can get a theoretical 22bit resolution through decimation if you need the data on a second-by-second basis (i.e. sample 24k => average six times of 4096 samples = base ADC resolution + 6 bits).  
610  Using Arduino / Sensors / Re: DHT22 accuracy on: January 31, 2012, 07:02:52 am
There may be an element of self-heating at play here that in turn influences the readings - the DHT manufacturer may be using a thermistor in there to help establish the actual humidity. Turning the chip on and off may help with that thermistor experiencing too much self-heating.  If the offset is consistant and constant, the easiest approach may be to simply map the differences and code an offset instead.

Keep in mind that the accuracy of the DS18B20 is only +/- 0.5*C per the datasheet.

Turning the DHT22 on and off is likely permissible, but I'd check with the manufacturer to be sure. Using the Arduino in this fashion is likely OK as well, but I'd verify that the Atmel CPU can handle the required currents at all times (also consider all other external loads, there is a hard limit for the Atmel chip). If the CPU can do it and you have oodles of remaining power handling capacity, fine. Otherwise, consider switching the power on and off with an external transistor.
611  Using Arduino / Microcontrollers / Current Logic Analyzer Choices... on: January 30, 2012, 10:42:24 pm
... if you were to buy a good entry level logic analyzer, which would it be? So far, I am aware of two apparently good choices that come in sturdy enclosures and which offer cross-platform compatibility, i.e. the
The Salae appears to have a slightly nicer UI, but the bitscope also offers a waveform generator. Thoughts?
612  Using Arduino / Microcontrollers / Re: Chinese clones on: January 30, 2012, 10:07:27 am
Patents have their place and are an important part of pushing science forward by creating a financial incentive to pursue all sorts of research with the hope that something will come of it. Some companies now derive 100% of their value from patents - see Kodak and Nortel, for example. IIRC, Micron Technologies sold off its entire IP portfolio to a patent troll to monetize it.

That said, allow me to disagree a bit with your statement that not only the big guys benefit. A good friend of mine was sued in patent court, left penniless, before the other side dropped all charges before a judgement would be rendered (because they would have lost). A small inventor has no hope of prevailing against the big guns unless he/she can enlist the help of a patent troll with their resources (though for a pretty commission, I am sure). It comes down to not only being able to claim a patent but also to defend it.

This is yet another instance where I wish the US would feature the 'loser pays' policy for civil trials used in the EU to keep frivolous suits out of the courts and to level the playing field between big and small parties at the negotiating table. In the US, if the stakes are high enough, it simply pays to bankrupt a smaller opponent through court costs rather than pay for the royalties. A perversion of justice for sure but a daily reality also.
613  Using Arduino / Microcontrollers / Re: Chinese clones on: January 30, 2012, 07:00:34 am
"Chinese clone" is more of a statement about lax adherence to intellectual property law (and custom) than a statement about quality...

Spot on. That said, the extremes to which special interests have been able to pervert copyright law (120 years?) and patent law (business models, software?) in the west is not healthy either.

Note how the titans of the tech industry now pursue an oligopolistic system where they cross-license all sorts of patents as a means of limiting market entry by others who are not in 'the club', i.e. non-tariff barrier to entry. Patent trolls are thriving, owning a lot of IP, but not making any attempt to actually manufacture something.

But, as long as it's as cheap as it is to buy votes in Congress with money in the right places and some tearful testimony and/or a healthy dose of testilying, special interests will continue to make end-runs around the interests of the public. Unlike limited, and hence notable exceptions, I haven't seen anyone demonstrate in public re: perversions like ACTA, SOPA, PIPA, etc. So, copyrights will keep getting extended to keep Mickey Mouse out of the public domain an as a result, stagnation will set in.
614  Using Arduino / Microcontrollers / Re: Chinese clones on: January 30, 2012, 01:21:10 am
Just have to add something here.  It's crazy when people use "Chinese" to imply low-quality products, especially regarding electronics.  The fact is, China is the worldwide center of excellence for electronics manufacturing.  If you missed it, see the NY Times' article, How the U.S. Lost Out on iPhone Work.  Yes there are low-quality counterfeit products to be had from China.  It's a big country.  We shouldn't tar the whole country's industry on the basis of the bad actors.
I couldn't agree more. Manufacturing is a passion of mine and I see no reason why location has to determine anything re: quality. It's all about the people, the systems they are given, the quality of the design, suppliers, etc. not the country it's made in. Otherwise, we'd be seeing things in the USA like differential sticker pricing based on whether a Toyota was made in the USA or Japan. (That used to be the case for VW, BTW). Even 'small' car brands like Porsche can have multiple, multi-national manufacturing sites and the only clue re: origin is the VIN number.

But let me use a better example, one that many of us are familiar with, PCB manufacturing. I've used DorkBot PDX and Iteadstudio. Which of the two do you suppose allows you to run smaller lines, gaps, and holes? Which is the faster service? You'd think the locals would have the advantage here, and they don't. I don't even mind the significant $/in^2 upcharge on a per-board basis, this is prototyping after all, but the slower service is starting to get to me.

I have nothing but the highest respect for Laen for running this service of his, but two boards I submitted weeks ago still have not even garnered a response from him while the folks at iTeadstudio replied within minutes even though their New Year celebrations are going on. Granted, the boards won't be made until Feb 1, but at least they will be made. It's hard to stay in business if you don't respond to customers. Nuts.
615  Using Arduino / Sensors / Re: DS18S20 giving slightly to high readings on: January 30, 2012, 01:07:31 am
I need a temperature sensor for my project with a resolution of 0.1°C (actually I only need it between 0-80 Degrees, to be honest even less, but it should cover this area) and found this 1-Wire Digital Sensors and decided to try out the DS18S20.
As I recall, the output of the S series is 9 bit and the B series is 12bit. Are you accounting for that in your code? There are encapsulated versions of the series out there... easy enough to stick one of those into a ice/boiling bath of water to establish some goal posts.

Lastly, it wouldn't surprise me if your room thermostats are off, none of the thermostats I have looked at used such nice sensors... too expensive.
Pages: 1 ... 39 40 [41] 42 43 ... 50