Is My ESP32-Cam + PIR Sensor + FTDI Assembly Correct According to Diagram?

  • Thread starter Thread starter julianorodrigues0316
  • Start date Start date
  • Tags Tags
    Sensor
AI Thread Summary
The discussion revolves around verifying the assembly of an ESP32-CAM project that integrates a PIR sensor and an FTDI interface. The user seeks confirmation that their setup aligns with a provided schematic, specifically regarding the correct placement of a transistor. Responses highlight the need for additional components, such as a 10k resistor and a 1k resistor, which are missing in the user's assembly. There is also a caution regarding the orientation of the transistor and the importance of checking the pinout against the datasheet. Overall, the user is encouraged to ensure all components are correctly connected before testing the circuit.
julianorodrigues0316
Messages
3
Reaction score
1
Hello people...
I'm learning about ESP32-cam and I'm new to electronics, so I need some help. I want to do a project in which esp32-cam takes a picture and sends it to me, when he "sees" movement. For this, I use a pir. It has a schematic of how to do it, with an esp32-cam, a pir, and an ftdi. But together, you have to put a transistor, and I want to know if the assembly I made is the same as the diagram, in photo number 2. So I want to know if the diagram in photo 2, is done right as in diagram 1.

foto_completa2.png
Thank you.
 
Engineering news on Phys.org
julianorodrigues0316 said:
Hello people...
I'm learning about ESP32-cam and I'm new to electronics, so I need some help. I want to do a project in which esp32-cam takes a picture and sends it to me, when he "sees" movement. For this, I use a pir. It has a schematic of how to do it, with an esp32-cam, a pir, and an ftdi. But together, you have to put a transistor, and I want to know if the assembly I made is the same as the diagram, in photo number 2. So I want to know if the diagram in photo 2, is done right as in diagram 1.

View attachment 269161Thank you.
Welcome to PhysicsForums. :smile:

It's a bit hard for us to try to check your assembly work from just a picture, but I do have a few questions:
  • I assume the flying lead transistor in the upper left of your picture is Q1?
  • The drawing shows 2 modules (PIR and ESP32), but you appear to have 3 modules in the picture. What is the 3rd module?
  • The drawing shows a 5V battery, but I don't see it in the picture. What are you using for a "5V battery"? Also, you should probably add a decoupling capacitor or two to the 5V rail, unless the PIR and ESP have them included.
  • There are a lot more wires in the picture compared to the drawing. Could you post a list of the wire signals by wire color?
  • Have you tested the circuit yet, and are asking for help because it doesn't work? Or are you just wanting to check before you first turn it on to test it?
EDIT/ADD -- Is the 3rd module the FTDI USB interface module that you allude to? If so, it would help if you would post the full schematic including everything and the wire color list. Thanks.
 
berkeman said:
It's a bit hard for us to try to check your assembly work from just a picture, but I do have a few questions:
  • I assume the flying lead transistor in the upper left of your picture is Q1?
  • The drawing shows 2 modules (PIR and ESP32), but you appear to have 3 modules in the picture. What is the 3rd module?
  • The drawing shows a 5V battery, but I don't see it in the picture. What are you using for a "5V battery"? Also, you should probably add a decoupling capacitor or two to the 5V rail, unless the PIR and ESP have them included.
  • There are a lot more wires in the picture compared to the drawing. Could you post a list of the wire signals by wire color?
  • Have you tested the circuit yet, and are asking for help because it doesn't work? Or are you just wanting to check before you first turn it on to test it?
EDIT/ADD -- Is the 3rd module the FTDI USB interface module that you allude to? If so, it would help if you would post the full schematic including everything and the wire color list. Thanks.

Hello, photo 2 is correct with the assembly, what was missing was for me to add this transistor, which I don't know if it's right. The battery and capacitors will not be included. I just wanted to know in telecommunication that transistor, if it is correct, in relation to the diagram in photo 1. If the assembly is correct in relation to the transistor, and / or I did not put the transistor "turned".

Thank You
 
julianorodrigues0316 said:
I just wanted to know in telecommunication that transistor, if it is correct, in relation to the diagram in photo 1. If the assembly is correct in relation to the transistor, and / or I did not put the transistor "turned".
For a 2N3904 NPN transistor in a TO-92 plastic package, that looks correct. Looking at the face of such a transistor, I just remember "E-B-C" for the pinout. It's always best to check the datasheet, though, to be sure. Here is a picture that I got from Google Images:

https://www.rs-online.com/designspark/basics-of-2n3904

1599767149091.png
 
berkeman said:
For a 2N3904 NPN transistor in a TO-92 plastic package, that looks correct. Looking at the face of such a transistor, I just remember "E-B-C" for the pinout. It's always best to check the datasheet, though, to be sure. Here is a picture that I got from Google Images:

So, I set it up right, is that it? From what I saw now that you sent me, I had another question. What is connected in number 1, could it be connected in number 3, in this project of mine? In other words, is there a "side" of the transistor in my project?
 
julianorodrigues0316 said:
So, I set it up right, is that it? From what I saw now that you sent me, I had another question. What is connected in number 1, could it be connected in number 3, in this project of mine? In other words, is there a "side" of the transistor in my project?
For NPN and PNP transistors, they work best one way. The "E" (emitter) pin is the one with the arrow -- the arrow points out for NPN transistors, and the arrow points in toward the middle base pin for PNP transistors.

What learning resources have you been using so far to learn basic electronics? Basic transistor and opamp circuits are fairly easy to learn, IMO.
 
Actually, depending on the color code of the wires, you might have the transistor backwards. The base is correctly going to the PIR sensor, but I can't tell what the orange collector wire is going to...
 
I see three problems:

  • The 10k resistor, R2, is missing.
  • The transistor Collector, pin3, is connected directly to both the PIR and FTDI. That transistor pin 3 should connect to the missing 10k resistor, and the other end of the 10k resistor should connect only to the ESP32 camera pin GPIO13.
  • The 1k resistor, R1, is missing.
 
  • Like
Likes berkeman
Back
Top