Talk:Measure: Difference between revisions
Line 11: | Line 11: | ||
Measuring voltages outside 0.3V - 1.9V would require an external probe, the development of which is also in the pipeline.--[[User:Arjs|Arjs]] 02:37, 15 August 2007 (EDT) |
Measuring voltages outside 0.3V - 1.9V would require an external probe, the development of which is also in the pipeline.--[[User:Arjs|Arjs]] 02:37, 15 August 2007 (EDT) |
||
What is the maximum voltage I can put into the mic/input port on the XO without risking damaging it? -- [[User:67.163.5.104|67.163.5.104]] 15:59, 21 January 2008 (EDT) |
|||
== What about the reverse? == |
== What about the reverse? == |
Revision as of 22:02, 21 January 2008
quote
It is said "Give the child a hammer, and the world are his nails".
I need the source for this, I remember hearing it somewhere.--Arjs 12:11, 20 July 2007 (EDT)
I don't know the source and I've never heard it until now. But from watching my young son play with his plastic hammers, I'd say it's probably true. Anything noticeably higher than its surroundings is a fair target. Bouncey 01:30, 13 January 2008 (EST)
line voltage
Never minding the fact that all round (non-USB) ports should tolerate line voltage, how might one make a safe connection? This is useful for showing line frequency and for showing the waveform. Waveforms from UPSes might be particularly interesting. Not being an EE, I can think of a few ideas: transformer, capacitor, resistor. Each of those can be done nicely, with proper electronic parts, or crudely with makeshift parts. 24.110.144.116 00:42, 1 August 2007 (EDT)
Measuring voltages outside 0.3V - 1.9V would require an external probe, the development of which is also in the pipeline.--Arjs 02:37, 15 August 2007 (EDT)
What is the maximum voltage I can put into the mic/input port on the XO without risking damaging it? -- 67.163.5.104 15:59, 21 January 2008 (EDT)
What about the reverse?
Measure turns the audio input into a generic input over a certain voltage range with essentially 0 current. Would it be possible to do the same for the audio output? This could run simple robotics, or allow switching between sensors. Obviously it would NOT be usable as a DC power source, just for switching transistors. Homunq 20:38, 7 August 2007 (EDT)
I have been thinking about that too. It would be interesting if I am able to achieve that. One of the other things that I have been thinking about is a simple generic USB based I/O interface. USB to Parallel chips aren't that expensive too...--Arjs 02:35, 15 August 2007 (EDT)
See Electrical output for further discussion of this and related possibilities...
Im guessing that it would be better to manage the USB ports, because the XO has three of this inputs/outputs, also there are thousands of electronics applications especially designed to USB user:RafaelOrtiz
The USBs although more versatile and flexible , would require us to mostly look at more and more external hardware. --Arjs 08:12, 17 September 2007 (EDT)
agree with, this is a long term shot.RafaelOrtiz
Maximum frequencies
hi Arjs where can i find the specs of measure..i.e maximum frequencies and stuff..?
The maximum sampling rate of the Ad188 sound chip is 48khz , minimum is 4khz Voltage input is from 0.3V to 1.96V when Capture Gain is 0dB and Mic Boost (+20dB) is switched off. --Arjs 13:12, 25 October 2007 (EDT)
- Minimum is 4kHz?! 4Hz, surely... :) --Tomhannen 14:32, 5 January 2008 (EST)
- 4khz is the minimum set-able sampling rate to ALSA. Which means that if one wants to sample say at 1khz, one would need to get data at 4khz and downsample in one's data to 1khz. Also, since the sound chip also supports DC mode one could correctly say that the minimum sampling rate is 4hz (or even 0Hz) :-) --Arjs 15:02, 5 January 2008 (EST)
User feedback
- When the activity first starts, it is taking audio as input. But talking, clapping, etc, may or may not create any visible change in the display. It might be nice if the default settings yielded some clean response to vocal input. To provide a positive very-first experience. Perhaps just show volume? If you can't whistle, it's not clear you can easily play with it. Build 581. MitchellNCharity 18:41, 15 September 2007 (EDT)
- (Moved from User talk:MitchellNCharity): Thanks for your feedback. Voice is hard to characterize (and hence display something concrete) - as it also contains harmonics and there is ambient noise etc. A whistle is relatively much cleaner source of frequency. However I do appreciate your idea and am trying to think how can I prevent a more intuitive first experience...please feel free to leave ideas on the discussion page.--Arjs 08:18, 17 September 2007 (EDT)
- Is it possible to do dc level, and screen width of several seconds? That might both respond understandably to noises, and provide a foundational physical intuition for what the app is doing. MitchellNCharity 12:00, 17 September 2007 (EDT)
- Voice looks good on a spectrogram or waterfall plot, which you definitely ought to have. It looks even better on a cochleagram, such as this one. (ignore the distracting cartoons) AlbertCahalan 01:26, 18 September 2007 (EDT)
- Some of the visualization ideas on the box-of-tricks page are really quite fun. (Good catch Albert.) Someone should make a game out of them. --Walter 04:19, 18 September 2007 (EDT)
- (Moved from User talk:MitchellNCharity): Thanks for your feedback. Voice is hard to characterize (and hence display something concrete) - as it also contains harmonics and there is ambient noise etc. A whistle is relatively much cleaner source of frequency. However I do appreciate your idea and am trying to think how can I prevent a more intuitive first experience...please feel free to leave ideas on the discussion page.--Arjs 08:18, 17 September 2007 (EDT)
- Doing a demo, I noticed the wave of a high pitched whistle-with-lips was overlayed with an even higher frequency wave. Turned out the room had an ultrasonic motion detector to turn off the lights. :) MitchellNCharity 15:18, 19 September 2007 (EDT)
- A common oscilloscope demo is to touch the leads and watch your body resonating at 60Hz with the local grid. While this might not actually work for much of our target audience, is there an easy way to do it? The plastic case seems to prevent you from just using your finger. MitchellNCharity 15:18, 19 September 2007 (EDT)
Proposal for a concrete, viseral osciliscope interface
(Ted Selker) -A scroll on the left lets paper out, it wrinkles at the right side of the screen. -Imagine the input looks like a lightning bolt with its end pointy. The lightning goes up and down on a vertical area that looks a little like a scroll bar, the right side of the scroll bar has a dimple in the center that is attached by springy material to the inside of the bar. -In AC mode, the lightening bolt is attached to a spring at the center of the slider that constrains it to move around the center where it touches the side of the bar ink flows onto graph paper. -In DC mode the lightening bolt goes up and down, where its tip touches the right of the slider, ink flows out onto the graph paper that is rolling out of a spindle accross the screen and is all crunched up on the right, -The freaquency of the scan is controlled by pulling on a handle at the right which pulls paper out faster. -The gain is controlled by grabing the top andto stretch the graph paper vertically, of course numbers in millivolts and millisenconds and lines corroboarate the changes in gain and speed. -To look at old readings, one can grab the folded up area and scroll back in time. It is also possible to have a bunch of wrinkled paper between two streched out pieces to compare an old reading to a current reading on the oscilliscope. -For the frequency domainthe motor on the reals for the paper get replaced with a dashpot damped spring, the faster the frequency is the more often it is pushing the spring tighter, to go to the right it has to keep banging the system with the top of the wave. there is probably a flucrum and a hammer on a teater toter that is self adjusting to make the tops of waveforms or spikes bang the dashpot. In this way a graph of voltage / frequency can be made. -Other input sliders can be made; -an integratng input is just a slider in a viscous liquid, -a logic analyser is just a bystable spring that is either sprung or unsprung. Alternatively imagine a bubble in a level that is upside down so that the middle is the lowest place: if the level indicator is turned slightly to an angle, the bubble goes all the way to one, if the indicator is tipped the other way, the bubble goes all the way to zero.
The point of all these visual elements is to replace words and huge numbers of knobs with a concrete viserally changing things that can be fiddled with. By fiddling with these contiguous controls, one can see how changing them effects the recording device.
Proposal for a physical input sensor kit
(Ted selker) I am told that personal stereo earbuds are available for $.50 in third world countries.
If we plug the earphone into the mic input it does produce a signal that can be used as a microphone or to pickup vibration. If it is attached to a door, one could get a signal each time the door is closed.
-Because the laptop can bias or not bias the input, we can switch this bias on and off. When we do this across the coil, its resistance and reactance will make the characteristic low current until the coil is saturated LR curve on an oscilloscope. I expect these ear bud to have about 100 milli-henrys but need to measure it. In this way the bias can be applied and taken off repeatedly as a square wave watching the thresholds of time change allows an algorithm to measure the inductance of the coil variously inserted completely or taken away from the magnetic core. This gives a DC response from the voice coil that allows us to make a LVDT linear sensor in software.
-If we poke a small stick through the perforated holes without puncturing the diaphragm, it can push on the voice coil. If the stick is set up as a lever against the hole it goes through as a fulcrum, the sticks position against the springy diaphragm can be used as a measuring tool. if the apparatus is jiggled the stick will push the coil up and down as an accelerometer.
this can be used to measure pendulum motion of a playground swing being the same frequency with different weight people, it can be used to show how much acceleration and deceleration a pulled sled, wagon or car has...
-If the stick is positioned near some solid object as an anvil, a piece of paper can be slipped between the stick and the anvil to move the voice coil depending on the thickness of the stick.
-If a hair is hung from the stick, it will deflect the stick connection to the voice coil a bit. if the stick is long enough the hair can be weighed by the deflection. If the stick is shorter, the hair can attach the stick to a paper clip that weighs envelopes, if the stick is very short, it can weigh a coin in a plastic bag hanging from the stick... other mechanical arrangements can change the ratios further for weighing many coins, or the such.
-A piece of paper or leaf can be attached to the stick for it to measure blowing or wind.
-The sensor can be enhanced considerably by affixing a stiff material over the part of the voice coil that covers the magnet. This shouldn't change the spring constant of the diagram and will make a better coupling to the lever. I suggest any tiny plastic circle cut from a soda bottle or packing material would be fine. The affixment could be super glue or a tiny bit of chewing gum. For that mater, connecting the lever to the voice coil with a tiny amount of chewing gum or even tree sap would probably be good. Also the perforated holes in the ear bud might be excellent fulcrums, but of course changing them with a knife or making a fulcrum that is placed farther away from the diaphragm will give a simpler to control mechanical system
Linear frequency scales are often yucky
This is how DC to 48000 kHz matches up with the sounds we use. A440, the concert tuning pitch, is just a few millimeters from the left edge of the screen on an XO. The rightmost "A" is 28160 Hz. Normal voice contains little useful data above 4000 and almost nothing above about 12000, placing the limit 1 to 3 octaves below that 28160 Hz A. That's about 1 to 3 cm from the left edge of the XO screen. AlbertCahalan 01:14, 25 October 2007 (EDT)
The above assumes a full 1200 pixel width. Obviously, a reduced width makes things worse. AlbertCahalan 01:14, 25 October 2007 (EDT)
BTW, displaying a keyboard like this would help people to understand what they are looking at. AlbertCahalan 01:14, 25 October 2007 (EDT)
- The keyboard would look great in an activity that primarily focuses on sound. Not sure how this fit into the context of Measure which has broader applications. Perhaps a different activity built around sound would be really interesting... --Arjs 09:11, 25 October 2007 (EDT)
- The keyboard makes things way less confusing. When somebody starts up FFT mode, how are they to even know what they are looking at? The keyboard also gives a quick way to tell linear scales from logrithmic scales. Measure's FFT mode does not really have broader applications than dealing with periodic waves; the keyboard thus makes sense. With the input port in AC mode and/or the microphone in use, you really can't do stuff much outside the range of human hearing anyway. You certainly can't do ultrasonic. In DC mode you could manage subsonic, but that's still frequency data -- and thus appropriate to represent with the keyboard. AlbertCahalan 12:20, 25 October 2007 (EDT)
scales needed in FFT mode
horizontal
- linear frequency (currently the only choice)
- logrithmic frequency (base 2 log)
- linear wavelength, possibly negated
- logrithmic wavelength, possibly negated (base 2 log)
vertical
- linear: sqrt(real*real+imag*imag)
- logrithmic: log10(sqrt(real*real+imag*imag))
Some inspiration for you
http://en.wikipedia.org/wiki/Image:Visual_Analyzer_oscilloscope.png
Note that the FFT graph is logrithmic in both directions.
- Thanks for the link - some ideas to incorporate for future releases...but I believe one must also keep simplicity and ease of use an important goal too --Arjs 03:39, 3 November 2007 (EDT)
measure the gravitational constant
A thought I've had: to measure the gravitational constant by dropping a small cylindrical magnet down a straw or tube, around which are wrapped some coils of wire (have got to try this, obviously). The trick will be to record the signal as the magnet drops past two (probably three) coils of wire.
What is learned:
- Induction: A moving magnetic field induces a voltage in a coil,
- The + end of the magnet will induce a voltage in one "direction", the - end will induce a voltage in the "other direction". So you should see a sort of S-shaped wiggle as the magnet passes through the coil.
- Velocity: The distance between coils #1 and #2 divided by the time elapsed between the magnet's travel through the coils
- Acceleration: The notion of acceleration: while the distance between coils #1 and #2 are the same as between coils #2 and #3, the time is less between #2 and #3,
- Gravitational constant: The measurement of distance between the three coils plus the times of travel allows you to compute the gravitational constant.
- Magnets: I have bought 20 cylinder magnets magetized along their lengths (my interpretation of this is that there's a north at one end and a south at the other -- this is required for the experiment) -- 4 mm x 12.5 mm -- from www.supermagnetman.net, for $0.55 US each in qty of 10 or more (part number Cyl0134). These are neodymiumu-iron-boron (or something to that effect). We shall see what they are like when they appear on my doorstep. Magnets are brittle and can break easily if dropped -- hard shock also causes them to loose their magnetization -- so the experiment requires a cushion at the bottom of "the chute" that the magnet falls down. Bill Wvbailey 13:44, 7 January 2008 (EST)
But what I need here is a "scope trigger" such that, as the magnet flies through the coil and induces a (e.g.) + voltage in the top-most coil, the 'scope triggers and starts its trace -- slowly enough so that the entire event appears on the screen, this plus a time-measurement "tool" that can be used to measure the time between "events" (e.g. positive humps on the waveform).
Question #1: what input-protection is available for the Analog Devices chip?
Question #2: I need a schematic. Can I get one that I can look at without fancy software.
Question #3: I am presuming here that (1) the Analog Devices chip and the laptop are wired for stereo (?), (2) When a person plugs in a e.g. earbuds audio jack (stripped back to reveal the wires inside) that there's a switch that inputs the external signal rather than the internal microphone to the AD chip.
Thoughts? Thanks, Bill
It appears that the microphone input is using a monaural channel (white), and the other channel (red) is "dead". Is this correct? All's a person has to do to see (distorted) 50-60 hertz is put their finger on the center-conductor and turn up the gain.
- 24 inch wire attached (ball clip) to end of monaural white input: distorted 60 cycles is visible. Touch exposed condutor's end, a saturating, distorted signal is evident.
- Given a smallish (1 inch x 1 inch) General (name of manuf) Alnico horseshoe magnet, even a straight wire will pick up enough induction to move the y-axis if you put the wire between the poles of the magnet and pull it away fast (the effect is speed dependent). A few turns (e.g. three) of wire in a coil and a similar fast motion so the wires "cut the lines of force", makes the experiment far more sensitive and convincing.
- It looks like the above "gravity" experiment will work if (i) a y-amplitude 'trigger' is available to trigger the screen, (2) the x-sweep is slower, and (3) the machine can "capture" and "hold" the trace so the results of the experiment can be measured, (4) some cylindrical magnets and a tube of some sort is available around which to wrap the wire (e.g. 28 gauge insulated "magnet" wire).
Bill Wvbailey 16:56, 24 December 2007 (EST)
- There is good input protection available in the sound circuit. So don't worry about that (but please don't plugin the mains supply and do read the specifications for the range of input voltage given on the Measure main or talk page) However one doesn't really need to worry about exceeding the specs, because as I said the input is well protected. I am working on implementing triggerred logging as it is certainly an important feature. For the schematic (do carry out the experiment right?) let me get back to you in a day or two. This seems like an interesting experiment. I will try and provide as much details as possible (and also simultaneously carry it out myself) but it'd be great if you could help me document it as a learning Activity too :-)
--Arjs 15:07, 5 January 2008 (EST)
- RE the microphone input: My measurements of raw DC greater than +5 volts and less than ~0.6 volts into the mic input showed very large currents (excess of 100 milliamps). I suspect TVS suppressors or diodes at the 'front end' as static protection are responsible. When I can see a schematic I will rewrite as much as necessary.
- RE center-screen potentiometer adjustment: do you know if the AD1888 derives its internal reference from a bandgap voltage? My experience so far has been that the circuit I've proposed can put the trace in center-screen and it stays there nicely (except for the highest gain).
- RE a "reference frequency": (see the next post). I made an cheap squarewave oscillator running at about 150 HZ -- I'm finding that having the "1:20" probe really facilitates circuit design. I'm actually using the laptop in place of a oscilloscope as I work on simple circuits. The 3rd, 5th etc harmonic "lobes" at the 100 Hz input were beautiful. Ditto for when I tested at higher harmonics -- really interesting stuff. Bill Wvbailey 15:38, 5 January 2008 (EST)
The speaker output as a source of square, triangle and sine waves but in the Measure activity
My AD1888 spec sheet says the chip puts out +1 volt rms (2.828 V peak-to-peak) centered around +1.414 volt. This exactly matches the microphone-input spec. This opens some really interesting possibilities -- i.e. a "waveform generator" that is in the "measure" activity, and "outputs" on the speaker plug. Then the student can put the "output" into the "input" and see what happens. The other very interesting possibility is modulation, waveform generation etc etc that presents both sound output and visualization. But I seems to me that all this would have to be in the same activity. Bill Wvbailey 15:38, 5 January 2008 (EST)
- Sounds great. The same audio API(gstreamer) can easily be used to generate wave too. If you can code it up i'd be happy to include it in the Activity.--Arjs 15:42, 8 January 2008 (EST)
Holding place: Information re the Measure/Temperature activity
Where the information and spec sheet at National Semiconductor can be found (the pdf is the actual spec sheet):
Cost at Digi-key -- $1.75 USD each, $0.954 each in qty 100.
Output is 0 mV + 10 mV/deg C. So 25 C => 0.250 volt. To place this center-screen would require an offset of 1.18 volt, i.e. the output would be at 1.18 + 10 mV/deg C.
More to follow. Bill Wvbailey 23:33, 14 January 2008 (EST)