Author Topic: First circuit and PCB  (Read 1233 times)

0 Members and 1 Guest are viewing this topic.

Offline gcainTopic starter

  • Contributor
  • Posts: 10
  • Country: au
First circuit and PCB
« on: April 19, 2026, 09:52:56 pm »
Hi Guys,

I need a small temp and humidity circuit for a sensor that's already been built so decided to use this as a learning exercise.

Could someone please eyeball this and make sure I haven't done anything dumb. Here is the IC being used. The typical application is on page one, the circuit is attached as an image.

The goal is to create a small PCB with temp and humidity interfaced via I2C.



Thanks in advance.


Edit: I just noticed I have pin 1 on the connector as VDD but it looks like it should really be ground?
« Last Edit: April 19, 2026, 10:03:23 pm by gcain »
 

Offline gcainTopic starter

  • Contributor
  • Posts: 10
  • Country: au
Re: First circuit and PCB
« Reply #1 on: April 20, 2026, 05:43:37 am »
I think I've made some progress.

Changed the 5pin header to just 5 holes so I can solder leads to them. The order of the pinout seems more sane now. There's a PCB layout too.



 

Offline negativ3

  • Frequent Contributor
  • **
  • Posts: 600
  • Country: th
Re: First circuit and PCB
« Reply #2 on: April 20, 2026, 06:07:27 am »
Just an example of creating your own schematic symbols, can make layout much neater and easy to decipher, while keeping pin numbers properly aligned with the footprint.

A very important skill to practice, the more into design/layout you get.

 

Offline gcainTopic starter

  • Contributor
  • Posts: 10
  • Country: au
Re: First circuit and PCB
« Reply #3 on: April 20, 2026, 06:12:26 am »
Oh, that is handy!

Thank you for the tip. I'll clean it up now.
 

Online gamalot

  • Super Contributor
  • ***
  • Posts: 1945
  • Country: au
  • Correct my English
    • Youtube
Re: First circuit and PCB
« Reply #4 on: April 20, 2026, 06:22:41 am »
Place a decoupling capacitor near the power supply pin.
I'm a poet, I didn't even know it. |  https://youtube.com/@gamalot | https://github.com/gamalot
 

Offline pcprogrammer

  • Super Contributor
  • ***
  • Posts: 6112
  • Country: nl
Re: First circuit and PCB
« Reply #5 on: April 20, 2026, 06:32:06 am »
Your second version of the schematic is even worse, and placing text on the copper layer is fine, but don't have it overlap your trace. It is better to put text on the silk screen layer. Does not cost any extra.

To make it a bit more usable, you might want to add a jumper setup to allow address selection of the IC. Can be done with a pullup resistor and a shorting jumper to ground, or a jumper that allows switching between supply and ground. This way you can have two of those modules on the same I2C bus.

I second the decoupling capacitor.

Offline gcainTopic starter

  • Contributor
  • Posts: 10
  • Country: au
Re: First circuit and PCB
« Reply #6 on: April 20, 2026, 09:12:54 am »
Your second version of the schematic is even worse, and placing text on the copper layer is fine, but don't have it overlap your trace. It is better to put text on the silk screen layer. Does not cost any extra.

I didn't understand what the issue was with the text until you mentioned it being on the wrong layer. Fixed now.

To make it a bit more usable, you might want to add a jumper setup to allow address selection of the IC. Can be done with a pullup resistor and a shorting jumper to ground, or a jumper that allows switching between supply and ground. This way you can have two of those modules on the same I2C bus.

I'll play around and try implement this.

I second the decoupling capacitor.
:-+
 

Offline gcainTopic starter

  • Contributor
  • Posts: 10
  • Country: au
Re: First circuit and PCB
« Reply #7 on: April 20, 2026, 09:13:39 am »
Place a decoupling capacitor near the power supply pin.

I've used a 100nF from VDD to ground.
Will post an updated image once I work out the IC address jumper.
 

Offline xvr

  • Frequent Contributor
  • **
  • Posts: 924
  • Country: ie
    • LinkedIn
Re: First circuit and PCB
« Reply #8 on: April 20, 2026, 12:42:57 pm »
IC pad should be connected to GND

Take a look at page 36 in datasheet (https://www.ti.com/lit/ds/symlink/hdc2022.pdf) with layout example
« Last Edit: April 20, 2026, 12:45:32 pm by xvr »
 
The following users thanked this post: gcain

Offline gcainTopic starter

  • Contributor
  • Posts: 10
  • Country: au
Re: First circuit and PCB
« Reply #9 on: April 21, 2026, 09:52:54 am »
Thanks to everyone for the direction so far! It's been a steep learning curve.

How's this one looking now?



If it helps any I am using EasyEDA for this, for no reason other than it's the first application I made some progress in.

I'm not sure how to represent the through holes on the far right yet. Doing it this way appears correct on the 3d render of the PCB.
« Last Edit: April 21, 2026, 09:55:05 am by gcain »
 

Offline xvr

  • Frequent Contributor
  • **
  • Posts: 924
  • Country: ie
    • LinkedIn
Re: First circuit and PCB
« Reply #10 on: April 21, 2026, 10:19:33 am »
Add pull down resistor to ADDR pin
Move resistor R3 up so that it is not crossed by the wire.

Quote
I'm not sure how to represent the through holes on the far right yet.
I'm not sure how this can be done in EasyEDA, but in KiCAD it can be achieved by placing a "MountingHole" component on the schematic. Perhaps it can be done similarly in EasyEDA.
 

Offline gcainTopic starter

  • Contributor
  • Posts: 10
  • Country: au
Re: First circuit and PCB
« Reply #11 on: April 21, 2026, 10:31:07 am »
R5 added to pull ADDR down.
I left it alone initially because in the docs it stated: "Address select pin – connect to VDD, GND or float." Thinking about it a little more, I'd imagine you'd want a definitive declared value for the address selection.

Will look into the mounting hole option.


 

Online gamalot

  • Super Contributor
  • ***
  • Posts: 1945
  • Country: au
  • Correct my English
    • Youtube
Re: First circuit and PCB
« Reply #12 on: April 21, 2026, 11:21:48 am »
If you read the datasheet carefully, you'll notice that pulling the ADDR pin low or leaving it floating ends up doing the same thing. An external pull down resistor is redundant, because the chip already has one inside.
I'm a poet, I didn't even know it. |  https://youtube.com/@gamalot | https://github.com/gamalot
 

Offline SCSKITS

  • Regular Contributor
  • *
  • Posts: 144
  • Country: us
  • Retired electrical engineer
Re: First circuit and PCB
« Reply #13 on: April 21, 2026, 11:47:26 am »
Looking better. I would set up C1 so the ground symbol is facing down like the one on U2 pin 7. Also, why U2, it should be U1 since there are no other ICs on the board. Also try to avoid text overlapping wires. Spread things out a bit if needed. On the IC symbol, I would have the VCC pin on the top (like the ground on the bottom). Move R3 up next to R4. Re-annotate to start with R1. Try to avoid having wires/connections under part symbols.
SCS, DIY upgrades for older test equipment
 

Offline xvr

  • Frequent Contributor
  • **
  • Posts: 924
  • Country: ie
    • LinkedIn
Re: First circuit and PCB
« Reply #14 on: April 21, 2026, 12:09:54 pm »
Quote
I left it alone initially because in the docs it stated: "Address select pin – connect to VDD, GND or float."
Yes, it can be left unused if the pin is not connected. However, if you connect a header to it, it may pick up noise. I don't know if the built-in pull-up resistor is sufficient to maintain a stable low level on this pin, so an external pull-up resistor may be desirable (in some cases). Just reserve space for it, but don't install it unless you'll have problems with I2C addressing.
 
The following users thanked this post: gamalot

Offline Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 5370
  • Country: nl
Re: First circuit and PCB
« Reply #15 on: April 21, 2026, 12:29:01 pm »
For the address selection, I would add another resistor to VDD. That way you can choose later which of the resistors you place on the PCB.

Placing the text of R5 over a wire is not good. Fix that.
For values of capacitors and resistors and such: Be at least consistent. If you don't add "Ohm" to resistors, then also do not add an "F" to capacitors. It's very common to just use the value without the units, thus just "100n" for capacitors.

According to: https://en.wikipedia.org/wiki/RKM_code It's correct to use a capital "K" for resistors in the kilo ohm range, but in practice this is very rare. It creates confusion with K used as units for Kelvin. You are also not consistent here by using a lower case n in "100nF".
 

Offline PGPG

  • Super Contributor
  • ***
  • Posts: 1337
  • Country: pl
Re: First circuit and PCB
« Reply #16 on: April 21, 2026, 12:48:57 pm »
If GND text at arrow (bottom right of schematic) sets the wire net to be GND (I'm not sure as it can be for example only text and not label) then:
GND symbol under IC pin 7 is not needed (but the dot would be needed).
If this GND text is only text than pin2 is not connected to GND (dot would be needed).
 

Offline negativ3

  • Frequent Contributor
  • **
  • Posts: 600
  • Country: th
Re: First circuit and PCB
« Reply #17 on: April 21, 2026, 02:45:47 pm »
Link pin7 to ground (thermal pad).
Avoid additional resistors as detailed in the datasheet.
Be aware of datasheet recommendations regarding layout/ground planes and polling frequency.
Naming all the nets can be very useful for you when laying out the PCB, plus it's just good practice.
It's quite acceptable to keep decoupling caps off the circuit for neatness but just off to one side, or in an area on the schematic sheet(s) dedicated to decoupling. Keeping track of them is the most important part when you start laying out the PCB.
In my example, the header P1 can be left unpopulated and connect the pads by solder blob, the determining factor for even including the header is how many sensors will share the same bus? If only one sensor, just link ADDR to GND and keep it simple. It's one of the many decisions you make at the outset of designing, in this case I2C bus architecture.

You've already built the sensor circuit? Possible to post up a picture?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

-->