Author Topic: Circuit Board Help  (Read 17040 times)

0 Members and 1 Guest are viewing this topic.

Offline MidasTopic starter

  • Regular Contributor
  • *
  • Posts: 73
Circuit Board Help
« on: December 08, 2014, 06:19:13 am »
Hello I am trying to get a circuit board together I am a total rookie pertaining to this. I have read books so far, but I am still a bit confused regarding this. The issue that I am having is determining whether I am even right regarding my logic overall. I am trying get a motion sensor working. I don't even know whether I need an integrated circuit, but it seems like I do. I am just going by intuition. I also have a feeling that I don't need the integrated circuit, but I wonder is it better without. The red and black cords shown is the external battery. I do need a resistor which is shown in the pics. I feel I need a capacitor, but I am not sure as well. I also feel like I need another resistor somewhere.
 

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5550
  • Country: us
Re: Circuit Board Help
« Reply #1 on: December 08, 2014, 06:28:08 am »
First of all you have VCC, Ground and Out shorted on that board. It's a good thing you don't have the ground connected to the board, or that board will be toast.

Second, you have to read more, you can't go on feelings.

I have no idea what you are trying to do with the motion sensor, I mean once you have the board powered right then what is the final goal? You will have to do something with that output signal.
« Last Edit: December 08, 2014, 06:30:06 am by miguelvp »
 

Offline MidasTopic starter

  • Regular Contributor
  • *
  • Posts: 73
Re: Circuit Board Help
« Reply #2 on: December 08, 2014, 04:11:14 pm »
I am sorry I am such an idiot I thought I wrote it in the first post I am trying to connect the sensor to a digital camera, so the camera will take a picture when it detects motion. I thought I put it there and then when I clicked post it said my session timed out -_-, so I had to write it over again.
 

Offline MidasTopic starter

  • Regular Contributor
  • *
  • Posts: 73
Re: Circuit Board Help
« Reply #3 on: December 08, 2014, 04:16:01 pm »
First of all you have VCC, Ground and Out shorted on that board. It's a good thing you don't have the ground connected to the board, or that board will be toast.

Second, you have to read more, you can't go on feelings.

I have no idea what you are trying to do with the motion sensor, I mean once you have the board powered right then what is the final goal? You will have to do something with that output signal.

Yes I don't have anything connected I know my strengths and weaknesses enough not to have anything plugged up  ;D. I know I shouldn't go off on feeling at all, I have googled and I am not sure how to determine whether I even need an IC or not. If I do need it, can you explain why I am would need it. I am a beginner so I apologize for my ignorance in advance. Can you explain this --> First of all you have VCC, Ground and Out shorted on that board.
 

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5550
  • Country: us
Re: Circuit Board Help
« Reply #4 on: December 08, 2014, 04:30:45 pm »
Row 10 on the breadboard connects F-G-H-I-J together.

Here is how the breadboard is wired internally.



Edit: As for what is your purpose with the motion sensor, seems like that board will output something on out, what do you want to trigger with the sensor?

For example the user manual shows how to hook it up to an arduino, I think this is the one you are using?
http://demandware.edgesuite.net/aasr_prd/on/demandware.static/Sites-radioshack-Site/Sites-radioshack-Library/default/v1418050826492/Support/ProductManuals/2760347_PM_EN.pdf

So I guess the question is what do you want to do with the signal that detects movement?

« Last Edit: December 08, 2014, 04:36:35 pm by miguelvp »
 

Online PA0PBZ

  • Super Contributor
  • ***
  • Posts: 5126
  • Country: nl
Re: Circuit Board Help
« Reply #5 on: December 08, 2014, 04:31:06 pm »
The 3 pins on the pcb you plugged into that breadboard are all connected to each other, the breadboard has little metal strips going from A-E and F-J for each row ( 1, 2, 3 etc.) So the way you plugged in the pcb connects the three pins together, better rotate it 90o.
Then you have to find out what the signal on the "out" pin on the pcb is, how does it give a signal? Does it switch the "out" pin to ground when it detects movement, does it give a positive voltage, something else?
Next is to find out how you can control the camera, what kind of input does it have, what kind of signal does it need to take a picture?

Lots of work to do as you can see  :)
Keyboard error: Press F1 to continue.
 

Offline MidasTopic starter

  • Regular Contributor
  • *
  • Posts: 73
Re: Circuit Board Help
« Reply #6 on: December 08, 2014, 04:52:55 pm »
Row 10 on the breadboard connects F-G-H-I-J together.

Here is how the breadboard is wired internally.



Edit: As for what is your purpose with the motion sensor, seems like that board will output something on out, what do you want to trigger with the sensor?

For example the user manual shows how to hook it up to an arduino, I think this is the one you are using?
http://demandware.edgesuite.net/aasr_prd/on/demandware.static/Sites-radioshack-Site/Sites-radioshack-Library/default/v1418050826492/Support/ProductManuals/2760347_PM_EN.pdf

So I guess the question is what do you want to do with the signal that detects movement?

The signal that detects movement I want to take a pciture and yes you are correct I am using that sensor. I have seen people use it without an arduino and I was wondering would I be able to use the sensor for that.
« Last Edit: December 08, 2014, 05:11:22 pm by Midas »
 

Offline MidasTopic starter

  • Regular Contributor
  • *
  • Posts: 73
Re: Circuit Board Help
« Reply #7 on: December 08, 2014, 05:09:20 pm »
The 3 pins on the pcb you plugged into that breadboard are all connected to each other, the breadboard has little metal strips going from A-E and F-J for each row ( 1, 2, 3 etc.) So the way you plugged in the pcb connects the three pins together, better rotate it 90o.
Then you have to find out what the signal on the "out" pin on the pcb is, how does it give a signal? Does it switch the "out" pin to ground when it detects movement, does it give a positive voltage, something else?
Next is to find out how you can control the camera, what kind of input does it have, what kind of signal does it need to take a picture?

Lots of work to do as you can see  :)

Yes I do have work cut out for me and I am willing to do it, but jeez  :palm: I knew it was not going to be a walk in the park. Everything you typed was a bit overwhelming, but I am willing to understand it.
 

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5550
  • Country: us
Re: Circuit Board Help
« Reply #8 on: December 08, 2014, 05:12:26 pm »
Here is a project that uses an arduino and your sensor to make an alarm. It should be a good start.

http://makezine.com/projects/pir-sensor-arduino-alarm/

Edit: maybe not exactly your sensor but similar enough, it seems yours has two output modes according to that small manual I linked before.

Quote
    Re-trig sends a continuous signal when
movement is detected.
    N-Retrig pulses a signal of approximately 4
seconds when movement is detected.


Edit: a more detailed tutorial:
https://learn.adafruit.com/pir-passive-infrared-proximity-motion-sensor/
« Last Edit: December 08, 2014, 05:21:17 pm by miguelvp »
 

Offline MidasTopic starter

  • Regular Contributor
  • *
  • Posts: 73
Re: Circuit Board Help
« Reply #9 on: December 08, 2014, 05:20:53 pm »
Here is a project that uses an arduino and your sensor to make an alarm. It should be a good start.

http://makezine.com/projects/pir-sensor-arduino-alarm/

Edit: maybe not exactly your sensor but similar enough, it seems yours has two output modes according to that small manual I linked before.

Quote
    Re-trig sends a continuous signal when
movement is detected.
    N-Retrig pulses a signal of approximately 4
seconds when movement is detected.

Yes I have seen that and other examples using that, but I was hoping to use it without the arduino.
 

Offline hans maree

  • Contributor
  • Posts: 10
Re: Circuit Board Help
« Reply #10 on: December 08, 2014, 08:37:00 pm »
For getting a usable signal out of the sensor you definitely don't need an arduino. The sensor will output a high signal (voltage from the battery) if motion is detected and a low signal (zero volts) if no motion is detected.
You should be able to test this by connecting the OUT pin to an LED in series with a resistor (anything from 100 ohm to 1k should do).

Whether or not you need an arduino to make the camera take a picture is another story. We would need some info on what camera you are using to help you with that.

Note that I have not used a motion detector like this, so if I'm wrong someone please correct me.
 

Offline MidasTopic starter

  • Regular Contributor
  • *
  • Posts: 73
Re: Circuit Board Help
« Reply #11 on: December 09, 2014, 05:03:26 pm »
For getting a usable signal out of the sensor you definitely don't need an arduino. The sensor will output a high signal (voltage from the battery) if motion is detected and a low signal (zero volts) if no motion is detected.
You should be able to test this by connecting the OUT pin to an LED in series with a resistor (anything from 100 ohm to 1k should do).

Whether or not you need an arduino to make the camera take a picture is another story. We would need some info on what camera you are using to help you with that.

Note that I have not used a motion detector like this, so if I'm wrong someone please correct me.

I am using a vivtar 3715 camera 3 MP
This is the camera I am using
 

Offline hans maree

  • Contributor
  • Posts: 10
Re: Circuit Board Help
« Reply #12 on: December 09, 2014, 08:16:10 pm »
From a quick glance at the manual, that camera does not appear to have any external trigger capability. So unless you can figure out how to do it from the USB connection (if that is even possible) you will need to open it up and do some soldering. What you basically need to do is have a transistor bypass the shutter button.

But before you start with any of that you should first try to light an led using the motion controller output like i described in the last post. Let us know how it goes or if you need any more help.
 

Offline MidasTopic starter

  • Regular Contributor
  • *
  • Posts: 73
Re: Circuit Board Help
« Reply #13 on: December 10, 2014, 01:34:33 pm »
Ok so I made some changes to the board and I am assuming that the out part on the sensor gives a signal to the camera. So, basically is that the wire that I may need to solder to the shutter. I have already opened the camera and I already assumed that I would need to solder somewhere around the shutter. I saw a youtube video that discussed soldering the shutter to create a trigger that would allow you to take a picture. Which would be helpful in this case as well because once the sensor detects presence, it should trigger the shutter to take a photo. I am also curious now do I even need an integrated circuit for this. I think I do because from what another poster said I need to figure out what sort of signal the out part of the sensor would send. I think he assumed I was assuming an arduino. I just need to send one signal. I really appreciate your help regarding this and everyone who answered on this board.  :)
 

Offline hans maree

  • Contributor
  • Posts: 10
Re: Circuit Board Help
« Reply #14 on: December 10, 2014, 09:56:01 pm »
No you definitely don't need an Arduino to do something like this. You can probably get away with a simple transistor and some passive components.

I have attached the schematic for a circuit that I think should work.
The capacitor and resistor form a high-pass filter that shortens the pulse coming from the sensor. This might not be necessary, but the camera may expect the button to be pressed for only a short amount of time.
The resulting pulse is then used to switch on a MOSFET that will trigger the camera. I used a 2N7000, but pretty much any logic level N-channel MOSFET will do.

Also attached is a picture of the breadboard version I made. In this OUT of your sensor would come in where my red oscilloscope probe is connected. You would connect the black wire behind the transistor to the negative side of the trigger button and the white wire to the positive side of the trigger button. To determine what the positive side is you should probably measure this with a multimeter when the camera is on.

EDIT: whoops, I had positive and negative reversed in my explanation :palm: fixed now.
« Last Edit: December 10, 2014, 10:32:33 pm by hans maree »
 

Offline MidasTopic starter

  • Regular Contributor
  • *
  • Posts: 73
Re: Circuit Board Help
« Reply #15 on: December 11, 2014, 06:07:41 pm »
 :) Thanks I am  a bit lost with your schematic so I followed the picture. Could you happen to explain the diagram to me and seeing if I did it correctly I was a bit lost on where you put the capacitor?
 

Offline MidasTopic starter

  • Regular Contributor
  • *
  • Posts: 73
Re: Circuit Board Help
« Reply #16 on: December 15, 2014, 04:59:54 am »
I forgot to ask do you think i need to purchase a mosfet I am not sure?  :-//
 

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5550
  • Country: us
Re: Circuit Board Help
« Reply #17 on: December 15, 2014, 05:06:11 am »
For what I can see, the only thing you have missing is a jumper wire from 10 (the capacitor) to 14 (the out pin from the PIR)

The 2N7000 is a mosfet, I thought you had it in there, but I can't tell what kind of transistor you placed there.

I was waiting for hans to reply.
« Last Edit: December 15, 2014, 05:08:58 am by miguelvp »
 

Offline MidasTopic starter

  • Regular Contributor
  • *
  • Posts: 73
Re: Circuit Board Help
« Reply #18 on: December 15, 2014, 01:36:34 pm »
I have this type of transistor http://www.radioshack.com/2n3904-npn-small-signal-transistor/2762016.html#start=2. Do I also need the external battery still as well?
 

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5550
  • Country: us
Re: Circuit Board Help
« Reply #19 on: December 16, 2014, 07:38:14 pm »
Since we don't know what voltage the camera trigger needs I would go for the Mosfet that hans recommended.

As for external battery, the PIR module can be powered from 3.3V to 5V. (3 AAA batteries should work)

http://www.radioshack.com/radioshack-passive-infrared-sensor/2760347.html

I guess you could power the PIR module with the camera power but, if I was you I would just test it by itself first (not even triggering the camera just yet).

A secondary circuit with an LED with a protection resistor could be placed between VCC and the Mosfet's drain to see if it lights up when heat is present.
 

Offline MidasTopic starter

  • Regular Contributor
  • *
  • Posts: 73
Re: Circuit Board Help
« Reply #20 on: December 17, 2014, 02:26:31 am »
Since we don't know what voltage the camera trigger needs I would go for the Mosfet that hans recommended.

As for external battery, the PIR module can be powered from 3.3V to 5V. (3 AAA batteries should work)

http://www.radioshack.com/radioshack-passive-infrared-sensor/2760347.html

I guess you could power the PIR module with the camera power but, if I was you I would just test it by itself first (not even triggering the camera just yet).

A secondary circuit with an LED with a protection resistor could be placed between VCC and the Mosfet's drain to see if it lights up when heat is present.

I have a 9 V external battery but i can get an external battery between the 3.3 and 5 range if you feel 9 is to much it seems like it now that i see the link yikes i dont want to destroy the sensor
 

Offline MidasTopic starter

  • Regular Contributor
  • *
  • Posts: 73
Re: Circuit Board Help
« Reply #21 on: December 19, 2014, 07:14:29 pm »
Any input from anybody regarding this?  :-//
 

Offline sunnyhighway

  • Frequent Contributor
  • **
  • Posts: 276
  • Country: nl
Re: Circuit Board Help
« Reply #22 on: December 20, 2014, 10:40:50 am »
I have a 9 V external battery but i can get an external battery between the 3.3 and 5 range if you feel 9 is to much it seems like it now that i see the link yikes i dont want to destroy the sensor

The 9V DC block cell is way too much.
You have to power your circuit on the breadboard with at least 3.3V DC but no more than 5V DC.
3 penlight batteries would be ideal.
This minimizes the risk of destroying something if you make a mistake.
 

Offline hans maree

  • Contributor
  • Posts: 10
Re: Circuit Board Help
« Reply #23 on: December 20, 2014, 12:31:07 pm »
Hi,

sorry again for the late response. Like I said in the PM my response last week got lost somehow and I had a pretty busy week.

Yes, you will need an external battery for this circuit, as you said yourself between 3.3 and 5V. It is possible to run everything of the internal battery, but we would need to modify the circuit based on how the button is wired up inside the camera (either to ground or to V+). The circuit I gave you does not care about this and should work either way.

I will try to explain the circuit by describing what happens when a signal arrives.
1. When there is no motion detected the sensor outputs a LOW signal. The transistor will also receive a LOW input which means it is turned OFF and it does not conduct any current.
2. When motion is detected the sensor will output a HIGH signal. At first this signal is just passed through the capacitor to the input of the transistor, turning the transistor ON, which will allow current to flow through it.
3. Because of the resistor to ground there will flow a current through the capacitor. When a current flows through a capacitor, the voltage across that capacitor increases (it is charged, kind of like a mini battery). This makes the voltages on the input pin of the transistor slowly drop, which will turn it OFF, making it not conductive again.
4. When no more motion is detected the sensor outputs a LOW signal again. This will discharge the capacitor, which basically resets the circuit to it's starting position.

So the capacitor-resistor combination effectively shortens the pulse coming from the sensor. The length of this pulse can be tuned by changing the values for the capacitor and resistor, the higher the values, the longer the resulting pulse.
The transistor is in this case used as an electrically controlled 'button'. The resistor you use should work just fine.
 

Offline MidasTopic starter

  • Regular Contributor
  • *
  • Posts: 73
Re: Circuit Board Help
« Reply #24 on: December 21, 2014, 07:57:00 am »
No you definitely don't need an Arduino to do something like this. You can probably get away with a simple transistor and some passive components.

I have attached the schematic for a circuit that I think should work.
The capacitor and resistor form a high-pass filter that shortens the pulse coming from the sensor. This might not be necessary, but the camera may expect the button to be pressed for only a short amount of time.
The resulting pulse is then used to switch on a MOSFET that will trigger the camera. I used a 2N7000, but pretty much any logic level N-channel MOSFET will do.

Also attached is a picture of the breadboard version I made. In this OUT of your sensor would come in where my red oscilloscope probe is connected. You would connect the black wire behind the transistor to the negative side of the trigger button and the white wire to the positive side of the trigger button. To determine what the positive side is you should probably measure this with a multimeter when the camera is on.

EDIT: whoops, I had positive and negative reversed in my explanation :palm: fixed now.

In this picture I couldnt really see the capacitor is it in the same line as the jumper wires that connect to the camera and i couldnt see the row as well. Thank you for the reply i really appreciate it :)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf