Is it possible to use a PIR motion sensor with a mini-USB cable?

  • Thread starter Thread starter SigmaCrisis
  • Start date Start date
  • Tags Tags
    Motion Sensor
AI Thread Summary
Connecting a Parallax PIR motion sensor to a mini-USB cable presents challenges due to the differences in signal protocols. The sensor outputs a single bit signal, while USB requires a more complex communication protocol that includes differential signaling. A microcontroller with USB capabilities is necessary to convert the sensor's output into a format that a computer can understand. Although the user initially wanted to avoid using an Arduino board, it may be the most practical solution for this setup. Learning to program the microcontroller could facilitate successful integration of the PIR sensor with the USB interface.
SigmaCrisis
Messages
15
Reaction score
0
Hi all,

I am trying to connect a Parallax PIR motion sensor to a mini-usb cable.

The PIR sensor has three pins: GND (negative), VCC (positive) and OUT.
The USB cable has four connections: GND, VCC and the DATA (+ and -).

I am able to power up the sensor and see a voltage spike when motion is detected. However, I am unable to do anything with the OUT pin. I tried to connect the DATA (-) and then the DATA (+), but my system does not see anything using SnoopyPro. When I figure this out, I would like the voltage from the OUT pin to trigger a system response; perhaps a custom program to monitor this.

Any ideas? Thanks in advance.
 
Engineering news on Phys.org
This is similar to plugging an analog microphone into your ethernet port and thinking you will be able to record sound that way.

USB is more than just a digital signal. It has a rather complicated protocol that must be used. Your operating system's driver is trying to talk on USB to a single bit output, they are just not compatible. Also, you cannot drive just DATA+ or DATA-, they must be differentially signaled together.

You basically will need a "middle man" device that can convert the single bit output into something meaningful on USB that your computer can understand. They make microcontrollers with USB peripherals that have USB drivers to use those peripherals, and you could program the microcontroller to read the bit and send its status over USB. Other than that, you probably have to scrap the idea of using USB.
 
Thanks for your response. I have an Arduino board with a microprocessor that I was looking to avoid using, but I was told that I can just program the microprocessor and adapt it to a breadboard for testing. I have a bit of learning to do. Thanks again.
 
Hi all I have some confusion about piezoelectrical sensors combination. If i have three acoustic piezoelectrical sensors (with same receive sensitivity in dB ref V/1uPa) placed at specific distance, these sensors receive acoustic signal from a sound source placed at far field distance (Plane Wave) and from broadside. I receive output of these sensors through individual preamplifiers, add them through hardware like summer circuit adder or in software after digitization and in this way got an...
I have recently moved into a new (rather ancient) house and had a few trips of my Residual Current breaker. I dug out my old Socket tester which tell me the three pins are correct. But then the Red warning light tells me my socket(s) fail the loop test. I never had this before but my last house had an overhead supply with no Earth from the company. The tester said "get this checked" and the man said the (high but not ridiculous) earth resistance was acceptable. I stuck a new copper earth...
Thread 'Electromagnet magnetic field issue'
Hi Guys We are a bunch a mechanical engineers trying to build a simple electromagnet. Our design is based on a very similar magnet. However, our version is about 10 times less magnetic and we are wondering why. Our coil has exactly same length, same number of layers and turns. What is possibly wrong? PIN and bracket are made of iron and are in electrical contact, exactly like the reference design. Any help will be appreciated. Thanks. edit: even same wire diameter and coil was wounded by a...
Back
Top