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
TheLastManStanding
Jan 14, 2008
Mash Buttons!

Zero Gravitas posted:

What I ended up doing.



That bottom left resistor isn't needed. A 10K resistor connected to 5V would already give 1V at the slide pots.

Adbot
ADBOT LOVES YOU

SybilVimes
Oct 29, 2011

Zero Gravitas posted:

What I ended up doing.



Wow, 1960s British Standards schematic style rather than modern ANSI/ISO, I'm impressed :bravo:

(There's a reason why we don't use those kind of junctions or 'jumps' anymore)

Tyson Tomko
May 8, 2005

The Problem Solver.
I bought one of the handiest devices I've ever purchased a few weeks back, the Kill-a-watt electricity meter. The 2 main functions I absolutely love are the ability to see the wattage something is drawing in real time and the ability to track kwh used over a course of minutes to months+.

Anyway, I wanted to make sure my numbers were right before I started really going to town checking everything I own. The first real energy pulling appliance I've tested is the deep freezer in my garage.

Time monitored: 217 hour including weather between 48 and 78 temps
kwh recorded: 9.91kwh


My math:
# of hours in a 30 day period = 720
my average elec rate per kwh = $0.118

9.91kwh / 217 hours = 0.04567kwh used per hour
720 * 0.04567 = 32.88kwh used
32.88 * 0.118 = $3.88

So keeping in mind I'm using an average per hour used recorded over a 217 hour span, is it safe to say my deep freezer uses approximately $3.88 per month?

Gatla
Apr 29, 2004
Blah blah blah.
The math looks right to me so I'm going to say yes.

Which model of the kill-a-watt are you using?

Tyson Tomko
May 8, 2005

The Problem Solver.

Gatla posted:

The math looks right to me so I'm going to say yes.

Which model of the kill-a-watt are you using?

Thanks! I've got the P3-P4400 and it was around $20.

http://www.amazon.com/P3-P4400-Electricity-Usage-Monitor/dp/B00009MDBU/ref=sr_1_1?s=hi&ie=UTF8&qid=1399495061&sr=1-1&keywords=p3+p4400

Plasmafountain
Jun 17, 2008

hF29LMzgCuciD4RzS06t
4bXcEUHS2VZct9k8JwmN
bGWUA0pCFP1mCOkE3WDd
cpDuIqkE3nYQarqZc8pp
910O3utCBO50szV4xDnB
AChJlb8FTz53jmWwJGIy
uRsjbT7PrnZPJLkeO6cF
AOF5sn2ONpKUwjhUfN96
0afOmBUbVW8HZ2GWYxhc
T4GfHqYi9mNBuxSWnlbL

Plasmafountain fucked around with this message at 21:14 on Feb 28, 2023

longview
Dec 25, 2006

heh.
When I draw schematics by hand I usually draw both jumps and junction dots, it's more explicit that way.

Delta-Wye
Sep 29, 2005

longview posted:

When I draw schematics by hand I usually draw both jumps and junction dots, it's more explicit that way.

Don't cross the streams :colbert:

Stabby McDamage
Dec 11, 2005

Doctor Rope
Update on the jumbo 7-segment display thing. To connect them, I had an idea -- I've designed a PCB that holds one LED driver and two digits, with header sockets on either side. I ordered a run of 10 from a fab, and I can just daisy-chain them to get the number of digits I want. Now I just get to wait three weeks before I find out if it will work...

Captain Cool
Oct 23, 2004

This is a song about messin' with people who've been messin' with you

Captain Cool posted:

What do I have to do to charge a lithium battery while drawing power from it?

I want to hook up a small solar cell, a lithium battery, a microcontroller, and a servo or motor. I don't know a lot about how a lithium charge controller actually works, but I think that the power draw from the motor will drop the battery voltage enough to confuse the charge controller. Can I run a wire to interrupt the microcontroller when the charge controller is sensing voltage? Or should I run a signal the other way, to disable the charger while running the motor? Or am I on the wrong track here?
Answering my own question after I found the right words to google. TI has an app note for this issue, with a couple of schematics ranging from "add a filter cap" to "add four transistors." For occasional servo use I would also need to put some huge value cap across the servo's power rail.

Linear has a different option, a chip that works as a regulator that automatically switches in the battery when the input voltage drops. Vcc is a separate pin from battery+. That one looks like it would pair really well with this voltage booster for a 5v servo. A wider input range would make things like supercapacitors interesting, but I haven't seen very much that boosts voltage to 5v.

edit: and now I find some. Sparkfun has one that can be modded to take an input voltage of 0.3v-5.5v and output 5v.

Captain Cool fucked around with this message at 07:09 on May 15, 2014

BattleMaster
Aug 14, 2000

I haven't touched electronics in a while because I've been busy with school, but one of my roommates moved out of my apartment so I turned his room into a lab so I have more room to work on things. There's a lot I've forgotten so I decided to build some simple projects first to get back into it.

The first thing I built was a 555 timer tester. I noticed the one I was using in an experiment was busted so I built a board with a socket for a 555 timer that blinks an LED so I can pop them in there and see if it works. But that's not very interesting so I'll skip that one.

The second thing I've done so far is a PC power supply controller using a PIC10F222. This microcontroller is a cute little 6 pin thing with barely any memory and a fixed 4/8 MHz clock. They're also like 20 cents each so I bought a bunch a while ago to use for simple things like pulse generation. It turns out that you don't need a lot of pins to properly interface with a PSU so it was perfect for this job.


The circuit is hooked up to the PSU with a thermoelectric cooler hooked to the 12V rail as a test load.

It's powered by the 5V standby power from the PSU. It has a pushbutton with a pull-down resistor connected to one I/O pin and 2 LEDs connected in opposite polarities to another pin. The PSU's power on and power good lines are connect to their own I/O pins. When the microcontroller starts up it keeps the LED and power on pins in a high impedance state and checks the button. When the button is pressed (debounced in software) it puts the power on pin into an output 0 state which drives it low and signals to the PSU to turn on. It also puts the LED pin into an output 0 state which drives the red LED.

Once it's on it monitors the power good line and whenever it's high it puts the LED pin into an output 1 state which drives the blue LED instead. If power good goes low again it outputs a logic 0, illuminating the red LED again. Another button press puts the LED and power on pins into a high impedance state, shutting down the power supply.

Because of the way the LEDs are hooked up, they are both illuminated when the pin driving them is in its high impedance state. I'm thinking of getting a 2-colour red/green LED so it's yellow in standby instead of two separate LEDs.

BattleMaster fucked around with this message at 05:05 on May 15, 2014

nightchild12
Jan 8, 2005
hi i'm sexy

BattleMaster posted:

I haven't touched electronics in a while because I've been busy with school, but one of my roommates moved out of my apartment so I turned his room into a lab so I have more room to work on things. There's a lot I've forgotten so I decided to build some simple projects first to get back into it.

The first thing I built was a 555 timer tester. I noticed the one I was using in an experiment was busted so I built a board with a socket for a 555 timer that blinks an LED so I can pop them in there and see if it works. But that's not very interesting so I'll skip that one.

The second thing I've done so far is a PC power supply controller using a PIC10F222. This microcontroller is a cute little 6 pin thing with barely any memory and a fixed 4/8 MHz clock. They're also like 20 cents each so I bought a bunch a while ago to use for simple things like pulse generation. It turns out that you don't need a lot of pins to properly interface with a PSU so it was perfect for this job.


The circuit is hooked up to the PSU with a thermoelectric cooler hooked to the 12V rail as a test load.

It's powered by the 5V standby power from the PSU. It has a pushbutton with a pull-down resistor connected to one I/O pin and 2 LEDs connected in opposite polarities to another pin. The PSU's power on and power good lines are connect to their own I/O pins. When the microcontroller starts up it keeps the LED and power on pins in a high impedance state and checks the button. When the button is pressed (debounced in software) it puts the power on pin into an output 0 state which drives it low and signals to the PSU to turn on. It also puts the LED pin into an output 0 state which drives the red LED.

Once it's on it monitors the power good line and whenever it's high it puts the LED pin into an output 1 state which drives the blue LED instead. If power good goes low again it outputs a logic 0, illuminating the red LED again. Another button press puts the LED and power on pins into a high impedance state, shutting down the power supply.

Because of the way the LEDs are hooked up, they are both illuminated when the pin driving them is in its high impedance state. I'm thinking of getting a 2-colour red/green LED so it's yellow in standby instead of two separate LEDs.

That would look real slick with a bi-color red-green LED and some kind of ATX-to-banana plug conversion PCB. Something like the Sparkfun Benchtop Power Board Kit, with fixed banana plug spacing and an onboard PIC, button, and LED.

BattleMaster
Aug 14, 2000

nightchild12 posted:

That would look real slick with a bi-color red-green LED and some kind of ATX-to-banana plug conversion PCB. Something like the Sparkfun Benchtop Power Board Kit, with fixed banana plug spacing and an onboard PIC, button, and LED.

It looks like they don't actually make bicolour LEDs in a configuration that would work with the way I'm doing it, so I might revise the design to have an LED and resistor between 5V standby and ground to indicate that standby power exists, and use a two pin bicolour LED on the I/O pin to display the power off/bad/good state.

If I wanted to do 3 colours on one LED I'd need another I/O pin and I just don't have one available; it isn't very important though. I could upgrade to an 8-pin PIC12 if it turned out that I needed another pin on top of that for something else.

I'd also need to add load resistors to the 3.3V, 5V, and 12V lines to meet the ATX spec when nothing else is connected. The supply I'm testing it with is fine with just a 12V load but some will refuse to start up without everything loaded.

As for the board, when I get around to designing a board for it I wasn't really thinking of breaking out any power or signals on the PSU controller board itself. I was thinking of using the other 12V and 5V/12V connectors to power the project proper. That might be something to consider, though. Either way I'm thinking of making this my first project where I design a PCB and have it manufactured for me because there are a few things I'd like to use it for.

ante
Apr 9, 2005

SUNSHINE AND RAINBOWS

BattleMaster posted:

It looks like they don't actually make bicolour LEDs in a configuration that would work with the way I'm doing it, so I might revise the design to have an LED and resistor between 5V standby and ground to indicate that standby power exists, and use a two pin bicolour LED on the I/O pin to display the power off/bad/good state.

If I wanted to do 3 colours on one LED I'd need another I/O pin and I just don't have one available; it isn't very important though. I could upgrade to an 8-pin PIC12 if it turned out that I needed another pin on top of that for something else.


I've used tristate logic to drive two LEDs with one pin with good results before.



Pretend there are resistors in there, I forgot.

BattleMaster
Aug 14, 2000

ante posted:

I've used tristate logic to drive two LEDs with one pin with good results before.



Pretend there are resistors in there, I forgot.

I thought of doing that with a 2-pin bicolour but didn't think of doing it with a 3-pin one. That would let me get away with just one resistor instead of having to use two.

Edit: Wait, would that work? I don't think there would be any way to illuminate the lower LED.

Edit 2:

Right now I'm using this setup with two separate LEDs:


And I'm considering using this setup with a two-pin bicolour LED.


(pictures yanked from GIS and rehosted)

It wouldn't light up with a third colour when put into high-z, but it doesn't look like there's a three-pin bicolour LED with the necessary pinout to do the first setup and it looks like four-pin ones don't exist at all.

BattleMaster fucked around with this message at 07:27 on May 15, 2014

ante
Apr 9, 2005

SUNSHINE AND RAINBOWS
I am dum. do this and make sure your LED drop is greater than half your supply


movax
Aug 30, 2008

I've got a 1608 resistor footprint that is part of a SMPS compensation network, suggestions for a really really small potentiometer I can wire in there to help in tuning?

Stabby McDamage
Dec 11, 2005

Doctor Rope
Grrr, I just found out the old SCSI drive enclosure that I converted into a power supply doesn't actually produce 12V and 5V. Rather, it produces 7V and -5V, then just calls the -5V ground! So if you use it without connecting it to anything, it's fine, but if you rely on its chassis ground being the same as everyone else's, you start to fry stuff. That is, if you put a multimeter between its "ground" and the ground of anything else, you get 5V!

That explains SO MANY failed experiments.

longview
Dec 25, 2006

heh.
Just do a ground lift, live on the edge.

Kasan
Dec 24, 2006

Stabby McDamage posted:

Grrr, I just found out the old SCSI drive enclosure that I converted into a power supply doesn't actually produce 12V and 5V. Rather, it produces 7V and -5V, then just calls the -5V ground! So if you use it without connecting it to anything, it's fine, but if you rely on its chassis ground being the same as everyone else's, you start to fry stuff. That is, if you put a multimeter between its "ground" and the ground of anything else, you get 5V!

That explains SO MANY failed experiments.

...how would you forget to test the setup with a voltmeter and an ammeter before actually hooking it up to anything. :iiam:

Stabby McDamage
Dec 11, 2005

Doctor Rope

Kasan posted:

...how would you forget to test the setup with a voltmeter and an ammeter before actually hooking it up to anything. :iiam:

I did. I tested black to yellow, got the expected 12V. I tested black to red, got the expected 5V. It's for a PC-type hard drive, so that's the expected config. I even did several projects on top of it that didn't involve hooking to another ground and they worked perfectly. The only discrepancy is PSU ground to mains ground, which is bizarre.

I figured that "black=ground" in a PC-type power supply was a safe assumption...

Captain Cool
Oct 23, 2004

This is a song about messin' with people who've been messin' with you

Stabby McDamage posted:

but if you rely on its chassis ground being the same as everyone else's, you start to fry stuff. That is, if you put a multimeter between its "ground" and the ground of anything else, you get 5V!
Wouldn't that also apply if you connect the thing to a PC? How does it work at all?

Stabby McDamage
Dec 11, 2005

Doctor Rope

Captain Cool posted:

Wouldn't that also apply if you connect the thing to a PC? How does it work at all?

That's a good question. It was a SCSI external enclosure, I think for a CDROM drive. I don't know, because I cut the entire front half off years ago, leaving just the back half of the plastic enclosure with the power supply guts. I think it might have been Sun or something else semi-proprietary...maybe this -5,+7 thing was common in the past?

I have other 5V/12V PC power supplies, but I've been meaning to build a proper bench power supply...now maybe I will.

EDIT: Just to prove I'm not crazy, I took it apart again. There's a gang of wires that go to a standard molex connector. On the board, they're labeled COM (black), V1 (yellow, presumably 12V), and V2 (red, presumably 5V). I measured voltage from the black to an exposed part of the metal chassis: I got 5V. This thing's nuts.

Stabby McDamage fucked around with this message at 05:30 on May 17, 2014

CapnBry
Jul 15, 2002

I got this goin'
Grimey Drawer
I've got an inductor I'm putting into a fan buck converter circuit and one of the legs is longer than the other. I know inductors don't have polarity but what I see on the internet is that the longer leg indicates that it is either the outside or inside winding. Is there a best practice which leg gets the current in and which gets the current out?

1A 220uH Bourns inductor

EDIT: Henry not Farad, derp!

CapnBry fucked around with this message at 21:10 on May 17, 2014

ante
Apr 9, 2005

SUNSHINE AND RAINBOWS
It would matter for using as an electromagnet with direction of EMF (right hand rule and such), but it shouldn't matter if you're just using it as an inductor.


Edit: also: Henries. The unit for induction is H, not F.

Shame Boy
Mar 2, 2010

Speaking of boost converters, I was trying to make one with a 555 timer (that I adjusted to different frequencies and duty cycles), some diodes, a capacitor (that I tried different sizes of), N-type MOSFET and a 220uH inductor. I could get it to (incredibly slowly, over the course of several minutes) creep up to 10V from 5V but the second I put a load on it it would fall right back down to 5V. I'm guessing I got the frequency, inductor size or capacitance wrong and was wondering if anyone knew an easy tool where you plug values in and it tells you what you need to get a specified output voltage?

EDIT: The load wasn't massive or anything it was like various sizes of resistors between 1K and 100K

Shame Boy fucked around with this message at 19:59 on May 17, 2014

FSMC
Apr 27, 2003
I love to live this lie

Parallel Paraplegic posted:

Speaking of boost converters, I was trying to make one with a 555 timer (that I adjusted to different frequencies and duty cycles), some diodes, a capacitor (that I tried different sizes of), N-type MOSFET and a 220uH inductor. I could get it to (incredibly slowly, over the course of several minutes) creep up to 10V from 5V but the second I put a load on it it would fall right back down to 5V. I'm guessing I got the frequency, inductor size or capacitance wrong and was wondering if anyone knew an easy tool where you plug values in and it tells you what you need to get a specified output voltage?

EDIT: The load wasn't massive or anything it was like various sizes of resistors between 1K and 100K

It's probably overkill but the TI workbench comes to mind. http://www.ti.com

Bad Munki
Nov 4, 2008

We're all mad here.


I know this thread is more about circuitry and such but I've got a 1HP electric motor I'm trying to re-wire for 240 so I'm gonna cross-post this here in case someone can help me out:

Bad Munki posted:

My neighbor's old as dirt and recently went to a nursing home, so his son is cleaning the place out so it can be rented. I was over there today and saw a relatively new-looking motor on a shelf. He said it didn't work, but I wanted to try anyhow, so I told him to let me know when he dug that far back in the shop. A few hours later, I was back over there and I tried the motor out. It had a standard 120V plug on it and the plate said something like 10A so I figured great, plugged it in, and away it went, spinning great, not super loud, etc. Super duper, now I have a new motor for my jointer. It's a 1HP 3000 rpm motor, I'm stoked to have it.

Aaaaaaaanyhow, I want to wire it for 240V. Shouldn't be a problem, that's specced out on the plate, and there are the remnants of a wiring sticker that I managed to read to get the connections for both 120 and 240. However, when I cracked it open, it was wired in a way that I don't know what, and there are some extra wires I'm not sure what to do with.

Here's the motor, just for fun:



The wiring sticker someone was kind enough to paint over at some point:



Part of the sticker peeled off the plastic and stayed on the metal behind, which actually proved to be far better for reading:



All dem wires:



I managed to scrape some more paint off the sticker and read the rest of it. It reads as follows:

code:
              LOW VOLTAGE
      Line A     Line B     Together
        1,3        4          2,J

            HIGH VOLTAGE
Line A     Line B     Together     Tape
   1          4          2,3          J
Okay, that's simple enough, I can handle that.

However, when I opened it up, this is what I ACTUALLY found:

code:
               ACTUAL
Line A     Line B     Together     Tape
   1          4          2,3       brown
                       J,brown
              yellow-white,yellow-white
So it looks like it's wired for 240? But it has a 120 plug on it. Additionally, there are two random, unmarked brown wires coming out of the housing, I don't know what they're for. Also, two white/yellow wires that are connected to each other. I figure those can just stay as-is, but I'm not sure what to do with the un-marked brown wires. Also, I'm confused that this ran just happy as a clam when plugged into 120. Is it likely someone just wired this up for 240 and had a 240V circuit using 120V plugs, and when I plugged it in, it was able to run but was only doing so at half-voltage or something? In which case, I should just put a proper plug on it and call it a day? I just don't want to fry this thing, it's exactly what I've been looking for for some time now.

:confused:

and then later, this morning:

Bad Munki posted:

Ah, sweet, I actually found the technical ref for the motor. :haw:



Still not sure what those two unmarked brown wires are, though. Hmm.

e: To be clear: the two brown wires I'm worried about are an obviously different brown than the J-brown. J-brown is almost black, almost, whereas these two brown wires are a much lighter brown. I just don't know what to do with 'em. :/

Looking back, you can see the two questionable brown wires, along with one of them being connected to J, on the left side of the last pic of the motor. The only other thing I don't know about are the two yellow-white wires that are connected, but I figure this can just be left as-is. I just don't like the brown wires because one of them is connected to a wire that, according to the schematic, shouldn't be, and so I want to be sure I handle those two mystery wires correctly. If it weren't for those, I'd be done.

Bad Munki fucked around with this message at 15:59 on May 18, 2014

asdf32
May 15, 2010

I lust for childrens' deaths. Ask me about how I don't care if my kids die.

Parallel Paraplegic posted:

Speaking of boost converters, I was trying to make one with a 555 timer (that I adjusted to different frequencies and duty cycles), some diodes, a capacitor (that I tried different sizes of), N-type MOSFET and a 220uH inductor. I could get it to (incredibly slowly, over the course of several minutes) creep up to 10V from 5V but the second I put a load on it it would fall right back down to 5V. I'm guessing I got the frequency, inductor size or capacitance wrong and was wondering if anyone knew an easy tool where you plug values in and it tells you what you need to get a specified output voltage?

EDIT: The load wasn't massive or anything it was like various sizes of resistors between 1K and 100K

Assuming a standard boost topology the Wikipedia page on boost converters covers it pretty well. Voltage depends primarily on Vin and the duty cycle. All other variables matter for parasitic reasons only.

Though without a control loop, response to varying loads will be poor.

Frequency needs to be in a range fast enough where the inductor won't saturate and slow enough that the switching components can operate. 50k to a couple hundred k would be a good bet for frequency.

Also you want to stay in continuous mode so that means you want the current ripple to be a fraction of your expected load current. And you'll actually want a minimum load. Ripple is based on I, C (bigger values = smaller ripple) and frequency (faster is smaller). The voltage relationship changes if current bottoms out.

LT spice is your friend here.

asdf32 fucked around with this message at 03:44 on May 19, 2014

Cyril Sneer
Aug 8, 2004

Life would be simple in the forest except for Cyril Sneer. And his life would be simple except for The Raccoons.
Okay here's a question. Assuming precision/resolution aren't important, what's the quickest, dirtiest way I could convert a sequence of bits (lets say 8) into a DC voltage between +/- 10V?

SybilVimes
Oct 29, 2011

Cyril Sneer posted:

Okay here's a question. Assuming precision/resolution aren't important, what's the quickest, dirtiest way I could convert a sequence of bits (lets say 8) into a DC voltage between +/- 10V?

resistor ladder

Cyril Sneer
Aug 8, 2004

Life would be simple in the forest except for Cyril Sneer. And his life would be simple except for The Raccoons.

Hmm. I gather the way this would work is I shift serial bits into a parallel latch?

Blotto Skorzany
Nov 7, 2008

He's a PSoC, loose and runnin'
came the whisper from each lip
And he's here to do some business with
the bad ADC on his chip
bad ADC on his chiiiiip
Microchip's I2C DACs cost like fifty cents.

Rescue Toaster
Mar 13, 2003
Or if you have a uC, and your needed frequency is low, PWM and then a dual opamp for filter/gain to +/- 10v.

asdf32
May 15, 2010

I lust for childrens' deaths. Ask me about how I don't care if my kids die.

Cyril Sneer posted:

Okay here's a question. Assuming precision/resolution aren't important, what's the quickest, dirtiest way I could convert a sequence of bits (lets say 8) into a DC voltage between +/- 10V?

PWM into an RC filter is easiest. You can even use a serial port as a crude PWM by selecting your characters appropriately (look at their binary values) and averaging over one or more characters.

The next step up would be SPI, I2C, or a register with resistor network as suggested.

BattleMaster
Aug 14, 2000

If your project is using a microcontroller with I2C or SPI hosting (that is, pretty much all of them except old or low pin count parts) you'd probably save the most board space, have the easiest time wiring, and get the best result out of an I2C or SPI DAC.

sixide
Oct 25, 2004
The most expensive and difficult (not very) part of this conversion is converting 0 to x volts into +/-10V.

SybilVimes
Oct 29, 2011

Otto Skorzeny posted:

Microchip's I2C DACs cost like nothing, because you can get 3 samples / month and that's enough for most people

Fixed

Cyril Sneer
Aug 8, 2004

Life would be simple in the forest except for Cyril Sneer. And his life would be simple except for The Raccoons.

sixide posted:

The most expensive and difficult (not very) part of this conversion is converting 0 to x volts into +/-10V.

Yes, which is the part nobody is answering ~!

I know the PWM -> RC trick but how do you pull that to the desired range?

Adbot
ADBOT LOVES YOU

SybilVimes
Oct 29, 2011

Cyril Sneer posted:

Yes, which is the part nobody is answering ~!

I know the PWM -> RC trick but how do you pull that to the desired range?

Use the pwm to switch (bjt, fet, relay, whatever) a 10v rail, before the RC

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