Author Topic: Dummy Check/Will this work?  (Read 896 times)

0 Members and 1 Guest are viewing this topic.

Offline GhostDogTopic starter

  • Newbie
  • Posts: 8
  • Country: au
Dummy Check/Will this work?
« on: July 31, 2021, 02:17:19 am »
Hi All,
First post on the forum, although I've been doing electronics for about 9 years at this point.
I've just finished a project using the ATTINY85 micro-controller, and (hopefully) transported it to a PCB design.
This is my first ever time designing a PCB, and will also be my first time soldering SMD components (although I do have a rework gun, as well as about 20 different tips for my iron).
I wanted to check that I've gotten my PCB design correct (and if there's any best practices i should be following), and that it will also work as it has on the breadboard I've been using.


And my breadboard layout: (excuse the terrible Fritzing drawing, couldn't get KiCad to do a breadboard drawing for some reason)
 

Offline sleemanj

  • Super Contributor
  • ***
  • Posts: 3046
  • Country: nz
  • Professional tightwad.
    • The electronics hobby components I sell.
Re: Dummy Check/Will this work?
« Reply #1 on: July 31, 2021, 02:45:36 am »
C1206 is incorrect

Your input ground is not connected

I assume there is a good reason you are using different sized resistors

Aesthetically the 4-way intersection under the switch is ugly, and aesthetically the right angle connection just below C1206 could be pushed into a nice 45 degree.

Equivalence to the breadboard or functional correctness not examined other than above.
~~~
EEVBlog Members - get yourself 10% discount off all my electronic components for sale just use the Buy Direct links and use Coupon Code "eevblog" during checkout.  Shipping from New Zealand, international orders welcome :-)
 

Offline GhostDogTopic starter

  • Newbie
  • Posts: 8
  • Country: au
Re: Dummy Check/Will this work?
« Reply #2 on: July 31, 2021, 03:04:58 am »
Knew something felt a bit off  ;D
I can see a few more mistakes now too, Any tips for fixing the ugly-ness of the intersection beneath the switch?
(P.S. the only reason I'm using different sized resistors is they act as convenient jumpers in some spots, and I'd need them anyway)
I've also added a filtering cap between VIN and GND on the regulator as per the datasheet.
« Last Edit: July 31, 2021, 03:11:25 am by GhostDog »
 

Offline sleemanj

  • Super Contributor
  • ***
  • Posts: 3046
  • Country: nz
  • Professional tightwad.
    • The electronics hobby components I sell.
Re: Dummy Check/Will this work?
« Reply #3 on: July 31, 2021, 05:11:48 am »
I would probably have done like this...



rather than a single 4 way intersection 2x 3way ones.  Of course, its purely aesthetic.

If you are fabbing the PCB yourself (hence using resistors to jump rather than double sided) then you migh as well make the traces fatter too, make it much easier to etch reliably.
~~~
EEVBlog Members - get yourself 10% discount off all my electronic components for sale just use the Buy Direct links and use Coupon Code "eevblog" during checkout.  Shipping from New Zealand, international orders welcome :-)
 

Offline Bassman59

  • Super Contributor
  • ***
  • Posts: 2501
  • Country: us
  • Yes, I do this for a living
Re: Dummy Check/Will this work?
« Reply #4 on: July 31, 2021, 05:33:18 am »
Oh, where to start.
  • The tab of the regulator must connect to its pin 2, and you really want to connect it to a large copper area so it can act as a heat sink. I know the circuit probably doesn't draw much power at all, but still if your input voltage is at the 6V max there's a decent voltage drop across the regulator.
  • What is your input voltage, anyway? If you're clever and you know the current draw you can dial it down to 3.6 V. The regulator will still work and you don't drop much in it.
  • The regulator output on Pin 3 goes nowhere.
  • Corollary to that, you need to put the 1uF cap between regulator output Pin 3 and ground, which is regulator Pin 2. Regulator Pin 3 needs to go to the micro's VCC pin 8 and that other stuff.
  • The Fritzing drawing is terrible. Why not screen-shot the Kicad schematic? That would help us a bunch.
 

Offline sleemanj

  • Super Contributor
  • ***
  • Posts: 3046
  • Country: nz
  • Professional tightwad.
    • The electronics hobby components I sell.
Re: Dummy Check/Will this work?
« Reply #5 on: July 31, 2021, 06:15:22 am »
Oh, where to start.
  • The tab of the regulator must connect to its pin 2

It would be a strange regulator if pin 2 and the tab were not connected internally, there should be no need electrically to connect them externally, you can draw current from either.

For heatsinking, yeah you want some more copper on the tab if it's going to be passing any significant current.


« Last Edit: July 31, 2021, 06:17:50 am by sleemanj »
~~~
EEVBlog Members - get yourself 10% discount off all my electronic components for sale just use the Buy Direct links and use Coupon Code "eevblog" during checkout.  Shipping from New Zealand, international orders welcome :-)
 

Offline magic

  • Super Contributor
  • ***
  • Posts: 7226
  • Country: pl
Re: Dummy Check/Will this work?
« Reply #6 on: July 31, 2021, 07:23:33 am »
excuse the terrible Fritzing drawing, couldn't get KiCad to do a breadboard drawing for some reason
It may have a schematic drawing function, though ;)
 

Offline TomS_

  • Frequent Contributor
  • **
  • Posts: 851
  • Country: gb
Re: Dummy Check/Will this work?
« Reply #7 on: July 31, 2021, 07:50:28 am »
My 2ยข

The center pin on each side of the switch is common, so will be connected internally, and thus you don't have to connect the two externally. So pick one side and connect to it, and that will help alleviate the aesthetic blemish people are moaning about.

220 ohm pull down resistors are overkill. Increase them to 10k and save quite a few mA depending on the position of the switch.

3.3V / 220ohm = 15mA
3.3V / 10Kohm = 330uA
 

Offline GhostDogTopic starter

  • Newbie
  • Posts: 8
  • Country: au
Re: Dummy Check/Will this work?
« Reply #8 on: August 01, 2021, 06:13:39 am »
I've made a bunch of "improvements" (from what i can judge, so probably mistakes at this point lmao), and have tried to make sure everything atleast work...
I've also used a different BCD switch as it is easier to get.
Thanks a heap again for everyone's help.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf