MatLab data acquisition using soundcard

  • Context: MATLAB 
  • Thread starter Thread starter cronxeh
  • Start date Start date
  • Tags Tags
    Data Matlab
Click For Summary
SUMMARY

This discussion focuses on acquiring image data using the microphone input of a soundcard, specifically utilizing a 640x480 or 320x240 pinhole camera. The soundcard specifications include 2 analog channels, a sampling rate of 44.1 kSamples/second, and a frequency range of 20 Hz to 20,000 Hz. Participants suggest using a photocell connected to the mic jack, ensuring the input voltage is within safe limits to avoid damaging the soundcard. Data can be recorded with an oscilloscope program and subsequently processed in MATLAB.

PREREQUISITES
  • Understanding of soundcard specifications, including sampling rates and frequency ranges.
  • Familiarity with MATLAB for data processing.
  • Basic knowledge of electronics, particularly regarding photocells and audio inputs.
  • Experience with oscilloscope software for data recording.
NEXT STEPS
  • Research how to connect a photocell to a microphone input safely.
  • Learn about data acquisition techniques using MATLAB.
  • Explore the capabilities of oscilloscope software for audio data recording.
  • Investigate alternative methods for video processing inputs in MATLAB.
USEFUL FOR

This discussion is beneficial for electronics hobbyists, MATLAB users, and anyone interested in unconventional data acquisition methods using soundcards.

cronxeh
Gold Member
Messages
1,006
Reaction score
11
Has anyone ever tried acquiring an image using the microphone input on the soundcard? I take it you have 2 analog channels (left, right), 44.1 kSamples/second bandwidth, 16 bit, with frequency range of 20 Hz - 20,000 Hz. Is there a way to acquire an image from a 640x480 pinhole camera (or 320x240) via the mic input using composite cable
 
Physics news on Phys.org
I know it is possible to solder up a photocell to a mic jack and use it in your microphone input (assuming the input voltage of the photo cell is not>>the rated voltage your sound card is designed to handle, so you don't blow up your card). Then you can record the data in some oscilloscope program and export it to a text file; then process that data in MATLAB.

As for processing *video* as an input; I have no experience in the matter, sorry.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
15K
  • · Replies 1 ·
Replies
1
Views
48K
  • · Replies 2 ·
Replies
2
Views
5K