Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Shame Boy
Mar 2, 2010

Rexxed posted:

The goal of the project is to not have to check the mouse traps in the basement every day and also not have dead mice fouling up the traps. So there'll be a RF transmitter with a microcontroller on each trap one and a receiver that can just alert me when the transmitter(s) are doing stuff. The Atmega328 is probably overkill for something that will be using maybe two I/O pins but I got an Arduino Uno as a gift and even "too much" microcontroller is still only like $2.

Exactly how mouse-infested is your basement anyway :cry:

Adbot
ADBOT LOVES YOU

movax
Aug 30, 2008

Parallel Paraplegic posted:

Exactly how mouse-infested is your basement anyway :cry:

It may be time to buy a cat and let the problem sort itself out.

Rexxed
May 1, 2010

Dis is amazing!
I gotta try dis!

Parallel Paraplegic posted:

Exactly how mouse-infested is your basement anyway :cry:

It's a rural area that's becoming suburban (there's a farm across the street but it's just kept as a farm so the pharma company that owns it won't have to pay higher taxes for example), so I tend to catch 40 or 50 a year, usually in the fall and summer. Sometimes I'll get a couple a day, sometimes there's no mice for a month or more. The mice are small and the house is old so it's hard to completely stop them from getting in with exclusion products. They tend to run around the ceiling areas and the tops of the walls in the basement so I don't think a cat would handle it (plus I'm allergic to cats). I don't really like having to kill so many animals but before I set traps they'd be having parties under the floor and be chewing and scratching and squeaking and running around too much. I was annoyed by the sound and I'm sure they're doing damage to stuff I can't readily access and possibly causing a fire hazard. For the last few years I've had two traps set in different places and while this project is totally unnecessary I thought it would be nice to have a way to see if the traps had gone off without going and looking at them every day.

icantfindaname
Jul 1, 2008


Okay, one more question. How do I connect stuff to the female headers on an arduino? Do I have to buy an adapter, or do I just stick a wire in it?

Bad Munki
Nov 4, 2008

We're all mad here.


Just stick a wire in like it's a breadboard. A breadboard with retarded spacing.

peepsalot
Apr 24, 2007

        PEEP THIS...
           BITCH!

icantfindaname posted:

Okay, one more question. How do I connect stuff to the female headers on an arduino? Do I have to buy an adapter, or do I just stick a wire in it?
Yeah you can just jam a wire in there, solid core wires will be a lot easier to do than stranded ones, since they are stiffer and won't fray when you push it in. If you want to plug some stranded wire in you can try tinning the end with solder to make it rigid.

I find these little pre-made jumper wires pretty handy though. You can order sets from ebay/china for about a buck shipped. The main length of the wire is stranded so it's very flexible, but with a rigid tip on each end and some nice overmolded plastic to hold it together.

just search for "jumper wires" or "solderless jumpers" or similar

Also you can find these kits which are just solid core wire that are pre-cut, stripped, bent to various lengths.

peepsalot
Apr 24, 2007

        PEEP THIS...
           BITCH!

Bad Munki posted:

A breadboard with retarded spacing.
:confused: it uses .1" spacing which is pretty standard and same as a typical breadboard.

Bad Munki
Nov 4, 2008

We're all mad here.


Except that one spot along the side where they screwed up the spacing, I think between pins 7 and 8 (on the uno and its fore bearers) and refused to fix it for the sake of backwards compatibility with the various shields.



Go ahead and try to stick a block of male header pins across that gap. I dare you. :colbert:

Bad Munki fucked around with this message at 03:32 on Jan 17, 2013

icantfindaname
Jul 1, 2008


Alright, thanks for the help.

Numeron
Mar 23, 2012

A whole new world in
the palm of my hand.
Heyo, if anyone here's interested in making a quick buck putting together a circuit diagram for me for an otherwise electronics unrelated DIY project, I have a buying post up in SA-mart here:

http://forums.somethingawful.com/showthread.php?threadid=3528833

Jonny 290
May 5, 2005



[ASK] me about OS/2 Warp
RE: pinning to Arduinos, I found a good solution if you have a pile of old motherboards hanging around.

If you yank off the 2-pin headers, rip out one row of pins and run your wires through the empty holes, you get really nice strain-relieved connectors. Hopefully pix make more sense.

http://raspberryhigh.wikia.com/wiki/WiringAndBoards

Also, you can see my 40-pin +5/GND extension bus on that page, which I'm proud of. :3:

Aurium
Oct 10, 2010

Bad Munki posted:

Except that one spot along the side where they screwed up the spacing, I think between pins 7 and 8 (on the uno and its fore bearers) and refused to fix it for the sake of backwards compatibility with the various shields.



Go ahead and try to stick a block of male header pins across that gap. I dare you. :colbert:

While it would be nice if this wasn't a fixed in place defacto standard, it really isn't difficult to deal with, even with protoboard. Just get a pair of pliers and bend the header pins. Here's a kit with some pre-bent headers, but it's pretty trivial to do your own.

Bad Munki
Nov 4, 2008

We're all mad here.


Duct-tape is all that is. :colbert:

Insurrectum
Nov 1, 2005

sixide posted:

Anything other than SMA or BNC will hit your pocketbook, but I'd look at SSMA/C for tiny threaded connectors and MCX/MMCX for snap-on.

The only thing coaxial lines and connectors are giving you in this application is ridiculously good EM rejection. There are other ways to achieve good shielding, especially if you can live with a common ground. DE9 for example would fit in 1.5". Also military-style circular connectors (JAE makes some cheap, probably not hermetics). As long as you can connect the braid of your coax to a metal backshell, it will be pretty good. If you can live with some cross-coupling and noise, your options are wide open.

SnoPuppy posted:

As long as you have a connector with a reasonable number of pins, you should be able to intermix signals and ground to provide reasonable isolation, so I wouldn't bother to restrict yourself to only RF style connectors.
I know samtec has some IP68 rated connectors, so they might even be able to provide some amount of sealing (I doubt they're rated for vacuum but you could always ask). I think samtec does custom cable assemblies as well.

PDP-1 posted:

I chatted up one of the folks in our mK lab who runs a LHe3/4 dilution system that sounds like it's similar to the one you use. They use bulkhead connectors to go from room ambient into a header box on the top of the cryostat and then a second bulkhead from the header box down into the cryogenic environment. The header box sometimes has a dry N2 bleed line into it so the inside is non-condensing as the wiring from the cryostat might be cold enough to frost up or condense water on the connections. Once inside the cryostat the cabling is wound around the pumpout line so that any conducted heat is transferred to the cold gas exiting the system (it looks like you have that part covered). On the cold end of the cryostat they had some G10 DIP socket connectors that served as a dual connector port and sample holder.

I have no idea if any of that is useful for you or not but it was fun to have an opportunity to hang around the mK lab for a bit, so thanks for that. I had no idea that their lab was basically a giant Faraday cage - apparently when you get that low in temperature things like electromagnetic power absorption from local radio stations or wifi routers becomes an important heat source. Nifty stuff.

Thanks for the help, y'all!

I'm considering two set-ups now:

1) The transmission lines all separate from being closely packed on the way down into the cryostat into their own floating MMCX jack at the bottom of the fridge (like peeling a twizzler), which I can then individually connector to the corresponding plug from the sample holder. After all the connections are made, I tape down the wires to mechanically secure them.

2) A DE-15 connector, with half of the connections as ground to help shield the signal lines from each other. I found one laying around in our lab:



And I was thinking about doing something like this:



I+ and I- lines just carry DC signals. I'm only likely going to be using 6 of 8 of the pins at once, so another two of those lines will be grounded (the entire system is going to share a common ground). The most important thing is that V+(-)2 and V+(-)1 have minimal crosstalk. I'm doing a cross-correlation measurement between the two of them, so they need to be as independent as possible. Will some grounding pattern like this actually help at all? Outside of this connection, the wires are going to be coaxial until they get to the sample holder.

I don't know if I've mentioned this yet, but all of this is contained in a pretty thick copper sheath that acts as our vacuum chamber/faraday cage, so we don't have to worry too much about outside noise. It's mostly the inter-transmission-line noise that I'm concerned about.

SnoPuppy
Jun 15, 2005

Insurrectum posted:

Thanks for the help, y'all!

I'm considering two set-ups now:

1) The transmission lines all separate from being closely packed on the way down into the cryostat into their own floating MMCX jack at the bottom of the fridge (like peeling a twizzler), which I can then individually connector to the corresponding plug from the sample holder. After all the connections are made, I tape down the wires to mechanically secure them.

2) A DE-15 connector, with half of the connections as ground to help shield the signal lines from each other. I found one laying around in our lab:



And I was thinking about doing something like this:



I+ and I- lines just carry DC signals. I'm only likely going to be using 6 of 8 of the pins at once, so another two of those lines will be grounded (the entire system is going to share a common ground). The most important thing is that V+(-)2 and V+(-)1 have minimal crosstalk. I'm doing a cross-correlation measurement between the two of them, so they need to be as independent as possible. Will some grounding pattern like this actually help at all? Outside of this connection, the wires are going to be coaxial until they get to the sample holder.

I don't know if I've mentioned this yet, but all of this is contained in a pretty thick copper sheath that acts as our vacuum chamber/faraday cage, so we don't have to worry too much about outside noise. It's mostly the inter-transmission-line noise that I'm concerned about.

MMCX is going to have the best SI and isolation, but the DE-15 won't be bad either.

That actually looks to be pretty decent pinout for the number of pins you need and a DE-15. Are you treating V+1/V-1 as halves of a differential pair? If not, I would swap the I+ with V+1, as well as I+ with V-2. Otherwise, stick with what you have.

As long as the connections to the the connector are coax, you should be fine.

Also, neither the MMCX or the DB connector will be vacuum sealed, so that will still need to be dealt with.

Silver Alicorn
Mar 30, 2008

𝓪 𝓻𝓮𝓭 𝓹𝓪𝓷𝓭𝓪 𝓲𝓼 𝓪 𝓬𝓾𝓻𝓲𝓸𝓾𝓼 𝓼𝓸𝓻𝓽 𝓸𝓯 𝓬𝓻𝓮𝓪𝓽𝓾𝓻𝓮
Speaking of stuff that uses a DE-15 connector, I'm planning to mod a VGA port onto my old Dreamcast, and I have a question about the circuit:



I want to try and design it to fit on a custom PCB (from OSH Park of course), and I'm curious about those large electrolytic capacitors. What are they there for? Does the RGB signal really need that much filtering? I know I can just use some surface mount tantalum caps instead, but I'd like to know if any smaller capacitance values would work so I can keep the circuit board small.

longview
Dec 25, 2006

heh.
Those are coupling caps, not sure what their purpose is, IIRC VGA signals are usually DC coupled so unless there's some reason for it I would build it without the caps. DC restoration is standard though, so as long as they're large enough it should work.

Nominal impedance is 75 ohms so that should be a very low frequency. I think the lowest frequency component of the signal is the vertical sync, 60 or 50 Hz.
If you size the capacitors too small the worst that could happen would probably be that an all-white/grey screen would fade to black on the right hand side.

Jonny 290
May 5, 2005



[ASK] me about OS/2 Warp
If you do use tantalums, build the circuit and check your voltages on each side of the lines those caps go in, and make sure to orient the + side towards the more-positive DC voltage. They don't like to be hooked up with reverse polarity, at all.

Delta-Wye
Sep 29, 2005
How small do the caps need to be? There are some not-so-bit electrolytic caps of that value. They don't seem that big compared to the connectors you are using, at any rate.

Insurrectum
Nov 1, 2005

SnoPuppy posted:

MMCX is going to have the best SI and isolation, but the DE-15 won't be bad either.

That actually looks to be pretty decent pinout for the number of pins you need and a DE-15. Are you treating V+1/V-1 as halves of a differential pair? If not, I would swap the I+ with V+1, as well as I+ with V-2. Otherwise, stick with what you have.

As long as the connections to the the connector are coax, you should be fine.

Also, neither the MMCX or the DB connector will be vacuum sealed, so that will still need to be dealt with.

Cool. V+1/V-1 are indeed halves of a differential pair.

What do you mean by "connections to the connector are coax"? For DE-15, it's basically a choice between solder and crimp connections.

And all of these connectors will be totally contained in vacuum, so there's no worry about vacuum sealing.

longview
Dec 25, 2006

heh.
Oh and in addition: normal voltage for an RGB signal like that is around 1V, so you can use the smallest voltage available on the caps.

Unless there is significant DC, then you'd need to add that to the rating obviously.

E: I checked some monitor schematics and as I thought they usually have input coupling capacitors, if you measure the DC potential of the video signal and it's less than a volt or two and not negative I'd say you can skip the caps.

longview fucked around with this message at 20:30 on Jan 18, 2013

SnoPuppy
Jun 15, 2005

Insurrectum posted:

Cool. V+1/V-1 are indeed halves of a differential pair.

What do you mean by "connections to the connector are coax"? For DE-15, it's basically a choice between solder and crimp connections.

And all of these connectors will be totally contained in vacuum, so there's no worry about vacuum sealing.

I just mean that the signals of interest should travel through coax to keep them isolated from one another.

It's fine if you strip out the last little bit of coax and solder it to the DE-15 cups, and have all the grounds tied together.

Silver Alicorn
Mar 30, 2008

𝓪 𝓻𝓮𝓭 𝓹𝓪𝓷𝓭𝓪 𝓲𝓼 𝓪 𝓬𝓾𝓻𝓲𝓸𝓾𝓼 𝓼𝓸𝓻𝓽 𝓸𝓯 𝓬𝓻𝓮𝓪𝓽𝓾𝓻𝓮

Delta-Wye posted:

How small do the caps need to be? There are some not-so-bit electrolytic caps of that value. They don't seem that big compared to the connectors you are using, at any rate.

There's a few different places I can mount the board, but the easiest one has space for a 2.5cm x 8cm board with about 11mm clearance. There's a couple of spots in that area where clearance goes up to 19mm because the case isn't flat. I would suspect the caps are actually necessary because the commercial solution is a breakout box with plenty of room for the caps. I think I might give it a go without the caps first, if it won't hurt anything, they might be on there out of superstition. I did find a diagram that shows the proper polarity, though.


e: Now that I've measured it, I see that there's plenty of surface mount caps that are only about 6mm tall, that'd do just fine. Would 25V rated caps be fine for RGB?

Also, 220uF ceramic caps exist. They are not cheap.

Silver Alicorn fucked around with this message at 20:46 on Jan 18, 2013

BattleMaster
Aug 14, 2000

ante posted:

The problem turned out to be that I didn't have MCLR connected, despite having it configured as an internal pullup. None of my configuration changes seem to be working properly, actually, and I haven't had time to try and figure out why.

Developing in PIC is a process of beating my head against a wall at every step of the way.

This was a while ago but it might be helpful to someone. You absolutely need MCLR hooked up for a PIC16/PIC18 programmer or debugger to work. It puts a higher voltage, 12 if I recall, to signal to the chip that it wants to talk. And maybe to erase the EEPROM, I don't know if those still need a higher voltage to flush them out or not.

Anyways, any time a device ID reports as all 0s it means there's a communications problem. It could mean the IC is busted but PICs are famously rugged. It usually means something like the data and clock pins were flipped (I forget which colour is which on the breadboard cable all the time) or in this case, it wasn't being put into talkie mode by the 12V signal.

DethMarine21
Dec 4, 2008

Numeron posted:

Heyo, if anyone here's interested in making a quick buck putting together a circuit diagram for me for an otherwise electronics unrelated DIY project, I have a buying post up in SA-mart here:

http://forums.somethingawful.com/showthread.php?threadid=3528833

This looks pretty similar to the ammunition counter project I'm currently working on. Check out my posts in the Post your projects Megathread. I wouldn't want to sell you anything since it's not completed, but maybe it will give you some ideas.

sixide
Oct 25, 2004

Insurrectum posted:

What do you mean by "connections to the connector are coax"? For DE-15, it's basically a choice between solder and crimp connections.

Go with crimp connections. It requires special tools or a resourceful mind and a willingness to go with some redneck engineering, but definitely preferable.

There's only one elegant way (that I know of) to transition from coax shield to lead, and it's solder sleeves. They cost more than $1 each, but they are definitely worth it. See http://raychem.te.com/documents/webservice/fetch.ashx?fileid=8447&docId=919

The preinstalled lead version is what you should be looking at.

Jonny 290
May 5, 2005



[ASK] me about OS/2 Warp

Silver Alicorn posted:



Also, 220uF ceramic caps exist. They are not cheap.

Don't get hung up too much on the cap values being exactly that.

Edit: I had some math in here but disregard, you may need a bigger one than I thought. I would say that 1 uF is fine but just start small and go up if you have issues.

Jonny 290 fucked around with this message at 06:15 on Jan 19, 2013

Kire
Aug 25, 2006
I was using an L7805 5v regulator to turn a 9V battery (which was only putting out ~7.2 volts) into 5V to power a breadboard. I've used these voltage regulators before, but this one got alarmingly hot (as did everything else on my breadboard) and the voltages were ~6V in, ~4V out. Is it totally busted? I replaced it with another L7805 which gives the right voltages, and I also swapped 9V batteries to one that appropriately puts out ~9V.

Should I throw out this voltage regulator, or was it all the battery's fault?


EDIT: I put the first (possibly broken) voltage reg back in using the good battery, and everything seems to be working just fine, so I think it was the semi-dead battery's fault. Why was everything on my board turning super hot, simply because the 9V battery was only outputting ~7.2V?

Kire fucked around with this message at 22:34 on Jan 19, 2013

longview
Dec 25, 2006

heh.
With cheap components like that I almost always err on the safe side and throw out suspected duds. Even working for free spending an hour mucking about because a reused transistor was broken or something similarly stupid is not worth it.

poeticoddity
Jan 14, 2007
"How nice - to feel nothing and still get full credit for being alive." - Kurt Vonnegut Jr. - Slaughterhouse Five

Kire posted:

I was using an L7805 5v regulator to turn a 9V battery (which was only putting out ~7.2 volts) into 5V to power a breadboard. I've used these voltage regulators before, but this one got alarmingly hot (as did everything else on my breadboard) and the voltages were ~6V in, ~4V out. Is it totally busted? I replaced it with another L7805 which gives the right voltages, and I also swapped 9V batteries to one that appropriately puts out ~9V.

Should I throw out this voltage regulator, or was it all the battery's fault?


EDIT: I put the first (possibly broken) voltage reg back in using the good battery, and everything seems to be working just fine, so I think it was the semi-dead battery's fault. Why was everything on my board turning super hot, simply because the 9V battery was only outputting ~7.2V?

Hopefully this isn't an issue, but if your components ever get "alarmingly hot" in a breadboard, check the breadboard afterward.

I once wired up a temperature sensor incorrectly (which made a very small heating element) and within about five seconds it had melted part of the breadboard. I only noticed it was getting hot because it started to tip over when the holes softened and enlarged. :(

ante
Apr 9, 2005

SUNSHINE AND RAINBOWS

BattleMaster posted:

This was a while ago but it might be helpful to someone. You absolutely need MCLR hooked up for a PIC16/PIC18 programmer or debugger to work. It puts a higher voltage, 12 if I recall, to signal to the chip that it wants to talk. And maybe to erase the EEPROM, I don't know if those still need a higher voltage to flush them out or not.

Anyways, any time a device ID reports as all 0s it means there's a communications problem. It could mean the IC is busted but PICs are famously rugged. It usually means something like the data and clock pins were flipped (I forget which colour is which on the breadboard cable all the time) or in this case, it wasn't being put into talkie mode by the 12V signal.

Yeah, I eventually got a rig together to put a jumper on MCLR to signal programming mode. Part of the problem was that there was over six months between design time and build time, so some design decisions had to be figured out anew. Also e/n time: after graduating two years ago and working in a completely different industry, I've lost way more knowledge than I'd like. It's actually really concerning how much I don't remember.

Shame Boy
Mar 2, 2010

Anyone have any tips or tricks for cutting perfboard? I tried to score it pretty deeply (first one side then both sides) and snap it in half on the edge of a table and it just flexed a little and refused to budge. I finally wound up using pliers to crack it off (which was very visceral and snapped in a weirdly disturbing way, like how I'd imagine spines would snap :ohdear:), and while it did crack right on the score I had made, half of the piece I was cracking off twisted and broke apart. I managed to save enough to still put my circuit on but it wasted more than I'd like since I had to throw some away. Do I need to score it even more (I think I scored it pretty drat deep but I could be misjudging) or should I just invest in a good Dremel tool? Any other ideas I missed?

sixide
Oct 25, 2004
Is this classic phenolic perfboard or some sort of FR4 circuit board in a perfboard layout?

The phenolic stuff can be cut with a boxcutter and snapped, it's pretty trivial. If that doesn't work you could try coming in from the edges with a sidecutter, it should be no problem to cut hole-to-hole one at a time.

Shame Boy
Mar 2, 2010

sixide posted:

Is this classic phenolic perfboard or some sort of FR4 circuit board in a perfboard layout?

The phenolic stuff can be cut with a boxcutter and snapped, it's pretty trivial. If that doesn't work you could try coming in from the edges with a sidecutter, it should be no problem to cut hole-to-hole one at a time.

It's "Epoxy Fiber". I guess I'll look for the "classic" kind next time.

PDP-1
Oct 12, 2004

It's a beautiful day in the neighborhood.
If the board is relatively thin and is only one or two layers, a papercutter will do the job too. It's sometimes a bit tough to get the cut started but once it is going it clips right through.

One of these:

VictualSquid
Feb 29, 2012

Gently enveloping the target with indiscriminate love.
I generally just use a fine metal saw to cut my boards.

Delta-Wye
Sep 29, 2005
I've gotten really lazy and just use a dremel cutoff wheel. It makes a mess but the last few times I've done that I've had a shop to work in.

I also tried a scroll saw for some small boards and I can't recommend that to anyone.

movax
Aug 30, 2008

PDP-1 posted:

If the board is relatively thin and is only one or two layers, a papercutter will do the job too. It's sometimes a bit tough to get the cut started but once it is going it clips right through.

One of these:


This is what we used at my old job to chop up Vector board, worked great.

Jonny 290
May 5, 2005



[ASK] me about OS/2 Warp
How I cut my boards, with really good success rate:

-Score on both sides with X-acto, lining up as close as I can
-Place on edge of lovely MDF desk (you want that hard 90 deg edge) with cut lined up with edge
-Use something like a book to hold down the part on the desk
-karate CHOP! Don't ease it, snap on that thing. You've given it the weak point.

Sometimes I go over it with a flat file afterwards to pretty it up (outside, of course)

I can do anything from perfboard to double-sided glass epoxy board with this method.

Adbot
ADBOT LOVES YOU

Shame Boy
Mar 2, 2010

Jonny 290 posted:

How I cut my boards, with really good success rate:

-Score on both sides with X-acto, lining up as close as I can
-Place on edge of lovely MDF desk (you want that hard 90 deg edge) with cut lined up with edge
-Use something like a book to hold down the part on the desk
-karate CHOP! Don't ease it, snap on that thing. You've given it the weak point.

Sometimes I go over it with a flat file afterwards to pretty it up (outside, of course)

I can do anything from perfboard to double-sided glass epoxy board with this method.

Yeah I basically did this and the fucker cut my hand open but didn't break. I guess I just got the "extra tough" stuff or something :(

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply