wireless data analyser
EKS29
Posts: 10
Hey guys , i do need help . i am trying to build a wireless device that can detect analog signal (amplitude between 0- 5mV) and set the threshold for this signal. Then after setting the threshold i just need it to send one or zero based on the threshold. I dont know if i can do this with BS2 specially when there is a threshold already set for BS2 which is 1.4v ?????
Please help
Thanks
Please help
Thanks
Comments
Post Edited (Paul Baker) : 2/16/2005 5:52:51 AM GMT
without filtering out the unwanted signals (as there are lots of signals all about) you'll be picking up any signal and it would probably trigger your 5mV level.· A flourescent tube would probably do it too.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Steve
http://members.rogers.com/steve.brady
"Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
·
Hope this clears the issue for you,
Paul
5mV device -> short connection wire -> lowpass filter -> opamp -> analog comparator -> stamp
··································································································· ^··················· ·|
·························································································digital potentiometer <---
in this configuration the digipot's high voltage feed is whatever the max output of the opamp is. The reason the opamp is needed is comparison of two analog voltages (ADC's do this too but the other voltage is generated internally) has a thing called common mode rejection, meaning when the two voltages are close there can be some ambiguity (can be thought of as a tolerance), so you want an analog comparator that has a high CMRR (last R stands for ratio), but in the max swing in the millivolts, even high CMRR analog comparators can still find it difficult, so you boost the signal.
Correction: I defined CMRR wrong, CMR is when comparing two voltages which are equal, regardless of their value, the result should be 0 (In1-In2 when In1=In2). CMRR is the measure of an opamp's ability to amplify the signal between the positive and negative terminals (the AC component) and reject the common mode (the DC component or the DC bias that is common between the two terminals)
Offset voltage is what I was trying to refer to which represents a degree of uncertainty of the sign of the output when the two signals to be compared are very close to each other (ie an offset voltage of 1mV means if the two inputs are within 2mV of each other, you cannot be sure the sign of the output is correct, in analog comparator terms this means an output error)
Post Edited (Paul Baker) : 2/16/2005 5:54:16 PM GMT
Thanks alot
Post Edited (Paul Baker) : 2/16/2005 6:50:56 AM GMT
http://www.intersil.com/cda/deviceinfo/0,1477,X9440,00.html#data
x9440 the one you recomended. ???
Dual Digitally Controlled Potentiometer (XDCP™[noparse];)[/noparse] & Voltage Comparator
after i get the digitalized signal can i also initiate time to know when did the high output occured ???
As far as the time stamp is concerned, I'm not the best person to ask, I don't use a stamp (I develop on the SX). Theoretically it can be done on stamp using the PULSIN command on the signal, which will provide a delta time measurement (time since last transition). By keeping an accumulation register you could provide a traditional timestamp to associate with the transition.
Post Edited (Paul Baker) : 2/16/2005 5:31:36 PM GMT
Can you explain what and how ??
The SX does have a built in analog comparator and I talk about what your trying to acomplish using a SX in this thread: http://forums.parallax.com/showthread.php?p=526402
But development on the SX requires investing in another development kit, and learning how to program it. If you are new to the world of embedded programming, I wouldn't suggest switching to the SX. There is nothing about this project that would truely justify switching platforms, unless the frequency in which you need to take measurements is something the stamp cannot handle (we haven't discussed how fast you need to collect data). Especially since the chip we've been discussing is less than $10, a switch just doesn't really make sense.
I got my feet wet learning how to program using BASIC on the original apple back in '82, moved to the TRS-80 (also in BASIC and dabbled in the assembly language too) in '84, transitioned to C++ with my first PC in '89, then embedded programming in '92 on the HC11. As you can see I have had two decades of experience and gradually moved from very high level languages down to low level languages. This is the easiest method of learning to program, if you just learned to crawl your not going to do very well if you enter yourself in a 10K run. Its better if you wait until you feel competent with what your using before transitioning to something more complicated.
*how fast ; i think what i need is something that can take samples every 1 mili second or less . is this possible for basic stamp2p ???
If your interested in the SX read http://www.parallax.com/dl/docs/prod/sx/SxUsersManualV31.pdf·I read this document more than half a dozen·times over a year before deciding to get the development package. It explains everything you need to know to program a SX.
Post Edited (Paul Baker) : 2/17/2005 2:49:19 AM GMT
i can use SX20AC/SS : The SX20AC/SS's on-chip functions include a general-purpose 8-bit timer, an analog comparator, watchdog timer, a power-save mode with wakeup capability, a configurable internal oscillator and high-current outputs.
.. i can do this using LabView programms
Do you already have a stamp?
Have you chosen a wireless module (if so what frequency/protocol)?
Do you plan on having a microcontroller on both ends of the wireless connection,·or do·you·plan on having the PC connected to the tranceiver (not all wireless protocols will do this easily)?
What is the size you are looking for your remote gadget?
What is your experience with soldering surface mount parts?
The SX development kit is $99 or $130 including the books (which I strongly recomend, I find Geunther's book invaluable) and this is only compatible with the SX28-DP, to program an SS variety youll need to put a header on your board for in circuit programming (occupying pcb real estate) or buy an SOIC prototyping socket which are >$50, unless you want to desolder it off your DIP converter and resolder it onto your PCB.
The device we've been talking about is a 28-SOIC which contains both the analog comparator and digipot it, the package dimensions are 7.5x15.3mm, draw it out on paper, its pretty small, the stamp will dwarf it in comparison. If you put it on an adapter board it will be about the size of the stamp. But its up to you, doing it the SX way will still require external components, including an opamp, and resisistors for the DAC portion, but if your comfortable soldering speck size components you can go with 0402 or 0603 resistors and I do mean they are tiny. My current board Im getting back tomorrow is using 0603's and I recieved the components today and thier size frightens me. I have solder paste but I should have also bought a hair size needle for the syringe because the aperature of the included needle is twice the size of the pads on the board, I will likely have to use a stick pin to remove and dab miniscule amounts of solder to put on the pads. I don't want to scare you unessesarily but I don't want you to plunge over the deep end and regret jumping. But if you have access to a reflow oven, wave solderer or vapor solderer and stenciling then this wont be an issue.
Jim
i will draw a schematic diagram for the design we were discussing and i will post it so we can discuss more of it later. Thanks for all ur help PAUL