-1
\$\begingroup\$

Hi guys I had a breadboard design set up using an ATMEGA328P-PU and ESP8266-01 and a PIR sensor. I replicated this circuit exactly and it will not work.

First of all I started a new PCB circuit and left out the ESP as I had found out the the ATMEGA was actually not outputting of port B5 when motion was detected.

I have done continuity tests and everything seems fine, when I wave my hand in front of the PIR I can detect using a multimeter that the it is working and can also detect off pin AC0 that that is being detected by the ATMEGA. What isn't happening is on detection output from port B5 to turn on an LED and Port B4 to turn on the ESP, no out put is coming out of those pins at all. I have checked with multimeter and 4.89v is going into bot VCC and AVCC correctly ground is connected to pin 8 and pin 22 (VCC and AVCC pin 7 and pin 20) I have a 16 clock with 2 x 22 capacitors connected to ground, 10k resistor connected to pin 1 and vcc. Power is a 12v mains plug going through a 10uF and then a 5v regulator and a final 10uf.

This is exactly the same setup as the breadboard which I have had functioning for some time yet it will not work any ideas please guys.

Thanks in advance.

UPDATED IMAGES WITH THE HELP OF THE COMMUNITY:

enter image description here

enter image description here

\$\endgroup\$
  • 5
    \$\begingroup\$ First of all you should give us a schematic to help you and layout as well. \$\endgroup\$ – Stefan Merfu Jul 16 '16 at 12:04
  • 3
    \$\begingroup\$ Take a loupe and inspect the holes for leftover copper wires, and the space between soldered lanes for solder bridges. And check wthere the circuit is eactly the same. Watch out for mirroring errors. Check that the correct uC pins get power. \$\endgroup\$ – Wouter van Ooijen Jul 16 '16 at 12:23
  • 1
    \$\begingroup\$ Where are the decoupling caps on supply into the IC? I would remove those 2 white wires and jumper the ends of the caps directly to the black wire next to them. \$\endgroup\$ – brhans Jul 16 '16 at 12:27
  • 1
    \$\begingroup\$ I may be wrong but looking at the bottom photo, it looks like you only cut the copper under the DIP chip. It looks like everything that is installed vertically (caps, resistor, LED, etc.) are shorted out by the copper strips. \$\endgroup\$ – DoxyLover Jul 16 '16 at 12:36
  • 1
    \$\begingroup\$ Decoupling caps are typically ceramics and are placed right at the IC pins. Anything else is not a decoupling cap. \$\endgroup\$ – brhans Jul 16 '16 at 12:36
4
\$\begingroup\$

enter image description here

I don't see any evidence that the tracks beneath the XTAL's capacitors are cut.

Also I don't see any power supply decoupler caps on the pins of the device.

\$\endgroup\$
  • \$\begingroup\$ Good catch - the XTAL is simply being shorted to Gnd... Similarly the vertically oriented resistors don't have breaks in the tracks beneath them. \$\endgroup\$ – brhans Jul 16 '16 at 12:38
  • 2
    \$\begingroup\$ Decouplers are usually 100 nF and go directly close to the chip's pins. \$\endgroup\$ – Andy aka Jul 16 '16 at 13:09
  • 2
    \$\begingroup\$ 0.1uF decoupling caps should be as physically close to the VCC and GND pins as possible. Some people even put the cap over the ic. The placement here seems a bit far. But the shorting issue is the most important. \$\endgroup\$ – Passerby Jul 16 '16 at 13:12
  • 1
    \$\begingroup\$ I'm just a guy a million miles away who pointed out some serious errors with tracks not being cut. Now you may have damaged your device (xtal pin which is an output being shorted indefinitely) or there may be other errors. I don't see your circuit, I don't understand your code, I don't even now if there's code in the chip or what you constitute as "not working". I can't help any further without driving to your house or you sending the board to me. I have pointed out several things wrong, now you find the remainder. Visual inspection is where you begin. \$\endgroup\$ – Andy aka Jul 16 '16 at 15:16
  • 4
    \$\begingroup\$ @AKB What makes you think this is a support forum? This is a question and answer site where answers are provided by volunteers. We have nothing to do with the any of the companies that produced or sold you any of the parts. \$\endgroup\$ – DoxyLover Jul 16 '16 at 18:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.