#avr | Logs for 2013-04-18

Back
[04:19:15] <megal0maniac> Ha! Screw you, proxy :D
[04:20:10] * megal0maniac made Dropbear instance listen on port 443.
[04:27:35] <blathijs> Hmm, is there any way to change the colling convention of a C++ method (or function) to let the callee save all registers instead of the caller?
[04:28:15] <blathijs> I'm calling a method from an interrupt handler, but this causes gcc to save a whole lot more registers which, AFAICS, isn't strictly necessary since the called function doesn't actually use them
[04:56:12] <blathijs> Hmm, problem might have been something different, never mind
[07:28:43] <Tom_itx> http://www.pcbweb.com/register
[07:29:05] <Tom_itx> http://www.pcbweb.com/
[07:29:09] <Steffanx> A new one?
[07:29:33] <Tom_itx> Complete integration with Digi-Key catalog and bill of materials manager
[07:33:50] <Steffanx> Tom_itx. Why you didn't tell me: "Sorry, this browser does not support Microsoft Silverlight. Please use either Firefox or Safari"
[07:34:45] <Steffanx> Funny though. This browser, Chrome, perfectly supports silverlight.
[08:06:30] <pingec> What would be a good way to measure current in the range 1-10A on 220V AC with a uC or r.Pi ?
[08:10:49] <pingec> I'm looking at the ACS712 chip
[08:35:05] <twnqx> Tom_itx: but how am i guaranteed that my schematic stays with me? :P
[08:45:23] <langoliers> h
[09:14:37] <Steffanx> twnqx you can download it.
[09:15:40] <twnqx> i'll just stick to eagle + seeed
[10:03:18] <megal0maniac> Just hit myself in the face with the back of a solder sucker. Obviously getting too close :)
[10:04:04] <twnqx> i oushed the tip of a soldering iron down on a PCB earlier this year
[10:04:08] <twnqx> with bare fingers
[10:04:09] <langoliers> tried the other end of the soldering iron yet?
[10:04:26] <theBear> oooh don't say that
[10:06:37] <twnqx> 2am, a few bears, you stop thinking
[10:06:47] <twnqx> beers*
[10:07:00] <megal0maniac> Appropriate mistake :P
[10:07:24] <theBear> nah, you just aint practiced drinking enough
[10:08:14] <theBear> then again, i don't advocate drinking, i just do it
[10:09:20] <OndraSter_> anybody built S/PDIF receiver + stereo audio DAC board?
[10:09:49] <megal0maniac> Me obviously
[10:09:58] <megal0maniac> (No, not really..)
[10:09:58] <OndraSter_> I am tempted with wolfson stuff -- wm8804+wm8523
[10:10:08] <OndraSter_> I was expecting that reply :D
[10:10:13] <theBear> OndraSter_, i've dabbled around the area
[10:10:40] <langoliers> twnqx<= 11 Lazard - 4 O'Clock In The Morning.mp3
[10:10:50] <theBear> if i'm ever in the mood i'm gonna take this little i2s codec off a broken board from a warranty last year and hack it into a little 2in/2out thinger
[10:10:53] <megal0maniac> OndraSter_: Nice combo
[10:11:08] <theBear> it's small tho
[10:11:21] <OndraSter_> I don't need multiple inputs
[10:12:06] <theBear> over the years i been more interested in inputs than outputs most of the time
[10:12:23] <theBear> pc hardware lacks inputs, and these days there are always more outputs than you need
[10:15:01] <OndraSter_> the WM8253 is only 16bit :o
[10:15:02] <OndraSter_> nvm
[10:15:02] <OndraSter_> I ment to say 8523 :D
[10:17:58] <langoliers> so, how would you measure each cell's voltage in a 3s, 4s li-po? :)
[10:18:28] <megal0maniac> Screw it. I give up
[10:18:33] * megal0maniac hates desoldering
[10:18:36] <langoliers> without loading any cell more than the other, and preferably with same, and good resolution.
[10:18:36] <megal0maniac> So, so much
[10:18:55] <theBear> langoliers, if it doesn't have per-cell connections, you can't do it in any way accurately
[10:19:47] <langoliers> theBear<= i put a gold lated female jumper connector on the packs i assemble ;)
[10:19:51] <langoliers> *plated
[10:20:02] <theBear> oh, so err, just measure the voltages ?
[10:20:15] <langoliers> undervoltage protection
[10:20:27] <langoliers> the proper way it to measure each cell
[10:20:35] <langoliers> is
[10:20:38] <theBear> yep
[10:20:46] <theBear> and the only reliable way to
[10:20:47] <theBear> o
[10:21:56] <OndraSter_> nice, the wm8804 (SPDIF receiver) is 2.7€ on mouser, wm8523 (stereo audio DAC with control for volume etc, 2Vrms output) is less than 1€ on farnell
[10:21:56] <OndraSter_> not bad
[10:22:00] <langoliers> jfet input opamps? :)
[10:22:08] <langoliers> diff amps?
[10:22:15] <OndraSter_> put it into some nice box, hook some LCD on it with some status display (if required) and done :)
[10:23:00] <langoliers> the output is not cool in the basic jfet opamps though, and rrio cmos opamps have a max working voltage of 15V
[10:23:15] <OndraSter_> to what?
[10:23:26] <langoliers> a cd4066 has a working voltage of 15V too
[10:23:52] <langoliers> bucket switch mode would work too
[10:24:38] <langoliers> charging a floating capacitor with each cell, then switch low side to the microcontroller adc
[10:26:21] <OndraSter_> lol, the evaluation board contains WM8804 and WM8523
[10:26:26] <OndraSter_> (and some 8051-ish controller)
[10:37:14] <twnqx> megal0maniac: depends on what you try to desolder
[10:37:16] <twnqx> i hate BGA chips :P
[10:37:38] <twnqx> i also have 100% fail rate to get them back in :(
[10:46:03] <OndraSter_> :D
[10:46:38] <OndraSter_> I have 100% fail rate of getting them off
[10:57:11] <twnqx> that's not difficult
[10:58:05] <jadew> I can imagine "the meeting": I found a solution to our problem! This footprint will keep hobbyists at bay!
[10:58:08] <megal0maniac> Stupid question, I know, but I'm struggling to get this. I have a 10K pot. I want it to be a 1k8 pot, so I add a 2k2 carbon film resistor in parallel. Where the hell does it go?
[10:59:31] <jadew> where what goes?
[10:59:36] <megal0maniac> The 2k2
[10:59:45] <jadew> in paralel with the pot
[11:00:06] <jadew> 1--2|2--3
[11:00:10] <jadew> between 1 and 3
[11:00:16] <jadew> well, on 1 and 3
[11:00:21] <megal0maniac> Ah!
[11:00:24] <megal0maniac> So I need 2x?
[11:00:25] <langoliers> OndraSter_<= take a screwdriver and ...
[11:00:39] <langoliers> you'll have 50% success rate with that
[11:02:24] <jadew> lol, while looking for a tool to draw that thing, I found this:
[11:02:33] <jadew> http://www.doodletoo.com/#/lobby
[11:03:17] <megal0maniac> jadew: So one between 1-2 and another between 2-3?
[11:03:25] <jadew> megal0maniac, no, just one
[11:03:29] <jadew> you have 3 pins on a pot
[11:03:33] <megal0maniac> Yes
[11:03:54] <jadew> you put the 2k2 connected to the ones at the extremities
[11:04:01] <langoliers> Jaren & Josie yodeling in harmony (ish...) http://www.youtube.com/watch?v=mF92gLfBGzU
[11:04:07] <OndraSter_> :D
[11:04:07] <OndraSter_> twnqx, well I am interested in chipsets usually
[11:04:08] <OndraSter_> with hundreds of BGA balls
[11:04:08] <OndraSter_> keychain..
[11:05:02] <langoliers> OndraSter_<= fun thing is when the board has thin tracks and come off easily
[11:05:13] <jadew> megal0maniac
[11:05:15] <jadew> |
[11:05:15] <jadew> ---| pot |---
[11:05:15] <jadew> | |
[11:05:15] <jadew> ---| res |---
[11:05:17] <langoliers> riping down a twfp does no harm to the device
[11:05:26] <langoliers> ripping down a tqfp
[11:05:35] <twnqx> OndraSter_: i put the PCB on an IR preheater and then use a hot air gun to heat the whole chip
[11:07:06] <megal0maniac> jadew: Gotcha. Thanks
[11:07:11] <jadew> np
[11:11:50] <OndraSter_> langoliers, but where is fun in that
[11:13:52] <langoliers> OndraSter_<= it is fun when you are doing power consumption reduction in a cd mainboard because you only need the main drive motor controller :)
[11:14:23] <OndraSter_> :)
[11:15:28] <langoliers> they are 12V 1A approximately
[11:15:44] <langoliers> mini dremel ?
[11:22:08] <disq> i'm trying to find a connector, need a second one. i thought there would be a find-connector webapp but couldn't find one
[11:25:11] <disq> took some pics -> http://imgur.com/a/6ejKM
[11:25:27] <disq> molex site isn't at all helpful (these might not be molex of course)
[11:26:09] <megal0maniac> Looks a bit like JST
[11:26:56] <disq> ah, they have a better site, at least a catalog of some kind :)
[11:27:33] <megal0maniac> You'd have better luck if you measured everything
[11:28:15] <disq> too lazy to work my "analog" caliper :P
[11:33:28] <theBear> connectors are tricky, there's so damned many of them.. specially jst/mini molex style
[11:35:39] <jadew> when everything else fails, cut the wires and solder them directly
[11:47:16] <megal0maniac> Dammit. Volume isn't changing :/
[11:48:34] <theBear> note that paralleling a resistor across a pot like that does funny things to the curve of the pot
[11:49:02] <theBear> but that's not why the volume isn't changing... you got input and output connected to different legs ?
[11:49:21] <megal0maniac> I was wondering about that. Especially on a logarithmic pot. But it shouldn't make the resistor constant.
[11:49:49] <theBear> been a long time since i did the maths, but it's easy to imagine, just do the maths for 1/4, 1/2, 3/4 and full either way
[11:51:50] <jadew> can it be corrected?
[11:52:45] <theBear> erm, not practically
[11:52:55] <jadew> what would happen if you connected 1k from one pin to the middle and 1k from the middle to the other pin?
[11:52:57] <theBear> tho there's generally no good reason for wanting to make a pot smaller unless yer in pure passive land
[11:53:04] <theBear> then you get another even crazier curve
[11:53:27] <theBear> consider the same 1/4 and 3/4 examples
[11:53:35] <jadew> it would be interresting to plot
[11:53:46] <theBear> as you get closer to each end, either one becomes increasingly tiny in effect
[11:55:17] <megal0maniac> Oh ffs. My pin 3 pulled off
[11:55:22] <jadew> lol
[11:55:51] <theBear> that'd explain why it wasn't working, they get real loose before they come off
[11:55:53] <jadew> now we know why the volume wasn't changing
[11:56:04] <megal0maniac> Yeah. The 2k2 was still there
[11:56:40] <jadew> why do you have to make it smaller tho, as theBear said you normally don't have to
[11:57:48] <megal0maniac> http://www.soundonsound.com/sos/jan07/articles/eventalp5.htm
[11:58:05] <megal0maniac> They come in a pair. One volume pot died and I only have 10K
[11:58:18] <jadew> so what?
[11:58:25] <megal0maniac> So what what?
[11:58:30] <theBear> so replace a pair
[11:58:35] <jadew> just replace it
[11:58:51] <theBear> they sure as hell aint gonna line up with a resistor across a 10k vs a 2k pot
[11:58:53] <megal0maniac> I've been busy with this one for 3 hours
[11:59:02] <megal0maniac> Lol
[11:59:05] <jadew> I don't think he even has to replace the pair, they're probably independent, no?
[11:59:12] <megal0maniac> Yeah, they are
[11:59:39] <jadew> then why don't you just replace it, the value shouldn't matter that much
[11:59:43] <megal0maniac> They'll be balanced by ear. I figured 10K || 2K with a funny curve would be better than 10K by itself
[11:59:47] <theBear> you only need to do the pair if you want them to match nicely
[12:00:05] <theBear> depends how it's setup, but chances are 10k by itself will be almsot identical
[12:00:21] <theBear> quick and easy to test
[12:00:32] <jadew> a pot is normally used as a voltage divider so 1k 10k 100k doesn't matter that much for the output, it will be the same voltage it matters for power consumption and noise sometimes
[12:01:59] <theBear> meh, power is never an issue in signal stages of audio, and it's gonna be a shitty design if a 10k pot makes it noticably noisier
[12:02:46] <jadew> yeah, I don't think it would matter much either
[12:03:50] <megal0maniac> Well, since it's more effort to take out the 2k2 than to leave it in right now, does it matter?
[12:07:57] <jadew> I'm sure it's not that much trouble to take it out...
[12:08:59] <megal0maniac> Just did a quick test. Min volume doesn't mute it :/
[12:09:04] <megal0maniac> So out comes 2k2
[12:09:11] <megal0maniac> Curve isn't too far off though
[12:09:27] <jadew> min volume should mute it, regardless of the 2k2
[12:09:38] <jadew> unless you didn't mount it properly
[12:10:43] <megal0maniac> Very possible
[12:10:51] <megal0maniac> But what exactly do you mean by that?
[12:11:16] <jadew> I'll have to draw this so we can make sense of it
[12:11:43] <megal0maniac> Let me take out the 2k2 first and see..
[12:12:46] <OndraSter_> hmm
[12:12:48] <OndraSter_> SPI vs i2c
[12:12:50] <jadew> https://www.circuitlab.com/circuit/e2g7ek/test/#postsave_link_and_share
[12:13:01] <OndraSter_> I think I will stay with SPI :P
[12:13:05] <OndraSter_> i2c is COMPLICATED!
[12:13:24] <jadew> so... if you connect a resistor between 1 and 3, when you're at maximum, you'll have max voltage on 2 and when you're at minimum, you'll have minimum voltage on 2, regardless of the resistors presensece
[12:14:02] <jadew> now, if you connected the resistor between 1 and 2 or 3 and 2 then you might be feeding some voltage, that skips the pot, back to the amplifier
[12:15:48] <jadew> well, some voltage that *partially skips the pot
[12:17:14] <jadew> OndraSter_, i2c is quite easy and you can control multiple devices with only 2 lines, that must count for something
[12:17:55] * jadew is going to make burgers
[12:20:59] <megal0maniac> jadew: That makes sense. And it's still doing it with 2k2 out. But I don't think it matters, it's not a lot of bleed and they'll never be turned down so low anyway. There's a power switch for that
[12:21:09] <megal0maniac> Will check to see if the good one does the same
[12:21:15] <megal0maniac> Might just be the design
[12:21:55] <megal0maniac> Oh lol. The other one bleeds more :P
[12:30:13] <megal0maniac> theBear: Found the bugger. You were right http://www.ti.com/product/tl072
[12:32:24] <theBear> huh ? i didn't say anything about opamps
[12:32:42] <megal0maniac> theBear> this starts to imply maybe they're in a feedback loop of a opamp
[12:33:27] <theBear> hmmm, you should really know that tl072/4, ne5532/4, lm741, ne4558 are all common opamps
[12:33:43] <theBear> probly few others too
[12:33:53] <megal0maniac> lm358
[12:33:58] <theBear> isn't that a comparator ?
[12:34:08] <megal0maniac> 385?..
[12:34:27] <megal0maniac> No, its 358
[12:34:54] <theBear> oh opamp, i always get that mixed up with the other one
[12:35:00] <theBear> 341 maybe
[12:35:18] <theBear> 301 maybe
[12:35:21] <theBear> hard to say
[12:35:25] <megal0maniac> I haven't dealt much with this stuff, I'm still in Electronics 1 at Uni :P
[12:35:31] <megal0maniac> Can't speak much for experience
[12:36:09] <theBear> mmm, there's a few chips you learn pretty early, all those common opamps, 78/79xx series regs, 74-soemthing and 4000 series and derivitives
[12:37:54] <theBear> between those you can guess what 90% of circuits/layouts are doing almost instantly
[12:42:09] <megal0maniac> Min gain is a bit different, max is indistinguishable
[12:42:19] <megal0maniac> I say success! :D
[12:42:38] <megal0maniac> theBear: I've come across most of those, still got a long way to go :)
[12:56:59] <jadew> the burgers were good
[15:33:46] <twnqx> theBear: i just don't do analog electronics :P
[15:34:21] <twnqx> or well, very rarely. and then i require spice to check if my guesses are right.
[16:00:29] <specing> twnqx: Ah so you've mastered the art of spice
[16:00:35] <specing> many of us are not as fortunate
[16:04:34] <twnqx> i don't trust my non-ic abilities
[16:11:55] <OndraSter_> :D
[16:12:04] <OndraSter_> the issue with analog is - you can't fix it by software :P
[16:12:11] <OndraSter_> (unless you are using DSP)
[16:12:17] <OndraSter_> but then it is fake analog!
[16:16:21] <jadew> there's nothing you can't test with a cheap, affordable function generator: cheap function generator: http://www.ebay.co.uk/itm/Agilent-HP-81180A-Arbitrary-Waveform-Generator-4-2-GS-s-Option-264-/310652117378?pt=LH_DefaultDomain_0&hash=item48544f2182
[16:18:45] <jadew> the problem with analog is that you never know when it's gonna start oscillating because of something you didn't know
[16:19:20] <jadew> at least that seems to be the recurring theme in my last projects
[16:20:36] <jadew> but I'm a noob, I'm sure that after a few years of analog design, digital would seem messy and slow
[16:22:01] <RikusW> my new pc's case :)
[16:22:29] <jadew> is it oscillating? :P
[16:22:32] <OndraSter_> :P
[16:22:58] <RikusW> http://raidmax.com/chassis/superhurricane.html
[16:23:00] <specing> http://www.aliexpress.com/item/100Pcs-Lot-RJ45-RJ-45-CAT5-Modular-Plug-Network-Connector-Free-Shipping-096/608776325.html
[16:23:18] <jadew> that looks nice RikusW
[16:23:23] <OndraSter_> RikusW, reminds me of Aurora 3D
[16:23:24] <RikusW> thanks :)
[16:23:25] <OndraSter_> which I wanted
[16:23:36] <RikusW> they have more http://raidmax.com/chassis.html
[16:23:54] <RikusW> http://raidmax.com/psu/rx_730ss.html#tab3
[16:24:09] <RikusW> should have gotten that psu in the first place
[16:24:34] <RikusW> the current psu's cables are too short :S
[16:24:44] <specing> I think I've collected enaugh cases through the years though
[16:25:21] <jadew> this is my case: http://www.coolermaster-usa.com/product.php?product_id=2810
[16:25:22] <RikusW> got the MSI Z77-G43 MB
[16:25:26] <jadew> I don't think I'm gonna change it soon
[16:25:37] <RikusW> *Z77A-G43
[16:26:00] <RikusW> and for now intel G2020
[16:26:11] <RikusW> nice
[16:26:19] <jadew> looks like a nice system
[16:26:22] <specing> Z77 otherboard for a locked pentium?
[16:26:30] <OndraSter_> :D
[16:26:36] <OndraSter_> Raidmax PSU?
[16:26:40] <OndraSter_> why not something more known?
[16:26:43] <OndraSter_> Enermax, Tagan..
[16:26:55] <jadew> I have a cheap $20 psu
[16:27:10] <OndraSter_> I have got expensive $100 PSU
[16:27:12] <RikusW> my cpu was $54
[16:27:13] <OndraSter_> well, $120
[16:27:20] <OndraSter_> my CPU was $270 :X
[16:27:30] <jadew> mine was pretty expensive when I got it too
[16:27:42] <RikusW> will get a graphics card and i5 cpu much later
[16:27:46] <RikusW> don't need that now
[16:28:12] <RikusW> got this ram AP8G-DDR310600K2-B
[16:28:16] <specing> I just ordered components for an ivy rig from Deutschland
[16:28:23] <specing> local prices are 125 %
[16:28:40] <OndraSter_> :)
[16:29:20] <specing> Should put together the exact same build using local prices
[16:29:22] <RikusW> that ram's color scheme would have fitted better with the MSI gaming version of my MB
[16:29:29] <specing> I think I save about 100 Euro
[16:29:45] <RikusW> its heatsings are black+red and shaped like a dragon's head
[16:29:59] <twnqx> yeah, fun that we have about the cheapest prices in europe :P
[16:30:35] <jadew> you know.. I think the fact that I always used a cheap ass psu, made me upgrade my pc
[16:30:48] <jadew> because I end up changing pretty much everything when something gets fried
[16:30:58] <RikusW> http://www.msi.com/product/mb/Z77A-G43.html vs http://www.msi.com/product/mb/Z77A-G43-GAMING.html
[16:31:01] <specing> twnqx: Im jelly
[16:31:04] <jadew> trying to figure out what's wrong is too much trouble
[16:31:08] <specing> twnqx: you also have much higher wages
[16:31:14] <twnqx> bah
[16:31:19] <twnqx> not really
[16:31:33] <specing> bought two Be Quiet PSUs for 2 * 40 Euro
[16:31:34] <jadew> RikusW, that looks bad ass :P
[16:31:40] <jadew> would go well with a transparent case
[16:31:40] <twnqx> people claim the reason we are so competetive is that we have lower wages than greece, austria, france, spain, portugal...
[16:31:55] <specing> I hope they are quality-made, the website certainly smelled like quality
[16:32:10] * twnqx looks at the dead be quiet! psu
[16:32:14] <specing> :(
[16:32:20] * twnqx also looks at the dead enermax and antec
[16:32:40] <twnqx> well, it's not dead
[16:32:45] <twnqx> it might have been undersized
[16:32:58] <twnqx> it normally took 4-5 on-off cycles until the PC would turn o
[16:33:00] <twnqx> n
[16:33:10] <twnqx> then suddenly it started to turn off during work, which was... annyoing
[16:33:22] <OndraSter_> specing, be quiet is shit
[16:33:27] <OndraSter_> :P
[16:33:30] <twnqx> now i have another be quiet
[16:33:38] <twnqx> :/
[16:33:40] <jadew> my psu is energon, haven't heard of them before
[16:33:42] <jadew> http://dumb.ro/files/pccase2.jpg
[16:33:44] <specing> I have a 12 years old MACRON 350W still chugging along
[16:33:53] <twnqx> 350 wouldn't cut it
[16:34:05] <twnqx> sales guy looked at me weirdly when i wanted a 450 for my rig
[16:34:14] <specing> twnqx: what do you have in it?
[16:34:24] <twnqx> i7 950 + gtx 460
[16:34:44] <jadew> mine seems to do fine with the 550w one
[16:34:52] <OndraSter_> 525W enermax here
[16:34:58] <jadew> and tbh, I thought it wouldn't be enough
[16:35:16] <jadew> I have 5 hdds and 2 graphic gards
[16:35:33] <specing> twnqx: that consumes nowhere near 300W
[16:35:37] <twnqx> i use a laptop with synergy for the third display :P
[16:35:51] <jadew> oh, how does that synergy works out?
[16:35:54] <jadew> is it any good?
[16:35:59] <twnqx> "mostly"
[16:36:08] <jadew> I see
[16:36:18] <twnqx> doesn't work with fullscreen games in windows
[16:37:04] <RikusW> jadew: only the normal version was available..
[16:37:18] <RikusW> but I certainly like the black + red looks :)
[16:38:09] <specing> I bought an A6-5400K APU for windows use
[16:38:27] <specing> Already nuked one install because I "tweaked" it too much
[16:38:35] <OndraSter_> I got a keygen for vmware for linux use :< :D
[16:38:51] <twnqx> would be the opposite for me, the occasional gaming or demo watching is my only reason to have windows at all
[16:39:13] <twnqx> but since i do video encoding on linux... can't have enough power either way
[16:39:31] <RikusW> twnqx: psu troubles is usually bad caps
[16:39:48] <twnqx> haven't looked inside yet
[16:39:59] <RikusW> I bet you the caps are swollen
[16:40:15] <RikusW> or at the very least much lower uF than it should be
[16:40:34] <RikusW> if you do replace make sure you use low impedance ones and 105C
[16:40:49] <jadew> problem is, with the kind of dust you find in a PSU, you're better off buying a new one
[16:40:51] <RikusW> and I prefer a much higher voltage rating too
[16:40:59] <RikusW> like 25V forthe 12V caps
[16:41:03] <specing> jadew: why not just clean it?
[16:41:19] <RikusW> use a compressor
[16:41:26] <jadew> specing, cuz you still get dust everywhere, I only clean PSU's so I can get components out of there
[16:41:28] <twnqx> RikusW: you need to double the voltage to keep the rated capacitance anyway
[16:41:29] <RikusW> or go to a garage
[16:41:45] <jadew> I was them in the shower
[16:41:49] <jadew> *wash
[16:41:54] <specing> jadew: ... buy a dust filter?
[16:42:06] <RikusW> compressed air works quite well, without getting it wet
[16:42:20] <jadew> RikusW, not in an apartment
[16:42:27] <jadew> specing, like... an air cleaner for the room?
[16:42:34] <jadew> or for the psu?
[16:42:45] <specing> for all the intakes on the case
[16:42:53] <RikusW> jadew: of course outside
[16:42:59] * RikusW sneezes...
[16:43:06] <jadew> I couldn't find any, it has 3 intakes, quite big
[16:43:34] <specing> jadew: how big?
[16:43:35] <jadew> I just vacuum clean it from time to time
[16:43:45] <jadew> http://www.coolermaster-usa.com/product.php?product_id=2810
[16:43:48] <RikusW> it seems like motherboards are becoming and artwork these days
[16:43:55] <jadew> one on the front, one on the side and another one under it
[16:44:44] <twnqx> RikusW: caps look alright
[16:44:50] <specing> jadew: chinese are selling dust filters of all fan sizes
[16:45:28] <jadew> I'll check them out, at one point I was considering covering them with pantyhose
[16:45:35] <twnqx> only thing is the 16V caps for the 12V line
[16:48:10] <specing> jadew: haha
[16:48:13] <RikusW> twnqx: not even the slightest bulging ?
[16:48:24] <specing> jadew: that might be an even better idea
[16:48:37] <specing> jadew: I'll ask my mother if she has any old ones, haha
[16:48:43] <RikusW> 16V on 12V lines is the usual
[16:48:46] <jadew> it's deffinitely an option
[16:48:59] <jadew> and they're cheap so you can easily replace them
[16:49:29] <twnqx> just nothing, no
[16:50:29] <RikusW> look at the 5Vsb caps
[16:51:17] <twnqx> 10V, no bulges
[16:51:44] <RikusW> got a Cap meter ?
[16:53:17] <twnqx> not one that i could use with this
[16:53:23] <twnqx> and i don't really care tiehr
[16:53:37] <twnqx> maybe i'll blindly replace them some day
[19:01:27] <Vutral> mzm
[19:16:14] <MarkX> hi there
[19:16:30] <MarkX> i had a few questions about this device i just bought >> https://code.google.com/p/micropendous/wiki/Micropendous_32U2
[19:17:37] <MarkX> actually let me try something first :P
[19:28:29] <MarkX> blah
[19:28:31] <MarkX> yea i need help
[19:28:49] <MarkX> 1. how do i know when the device is in programming mode or code execution mode?
[19:29:00] <Tom_itx> the U2?
[19:29:05] <MarkX> yep
[19:29:13] <Tom_itx> it will communicate with FLIP if it's in program mode
[19:29:18] <Tom_itx> other than that you don't know
[19:29:21] <MarkX> well im using DFU
[19:29:29] <MarkX> let me load up flip
[19:29:42] <Tom_itx> to get it there, you take HWB to GND then pulse RESET to GND
[19:29:47] <Tom_itx> both together
[19:30:15] <Tom_itx> showertime then maybe i can help
[19:30:18] <MarkX> kk
[19:30:25] <MarkX> btw i did that :)
[19:30:35] <MarkX> and i got a program uploaded but i can never tell
[19:30:38] <MarkX> if its in that mode or not
[19:30:38] <MarkX> :P
[19:30:54] <Tom_itx> flip is more interactive
[19:31:28] <MarkX> kk i'll try it now
[19:51:29] <Tom_itx> guess we're done here then.
[20:18:16] <MarkX> hmmm, it appears flip is unable to program for some reason
[20:18:37] <MarkX> i can erase and blank check but i get a red light on program
[20:18:55] <Tom_itx> do you have the right usb driver installed?
[20:19:16] <MarkX> i installed the USB driver that came with DFU, is there a different one that comes with FLIP?.
[20:20:31] <Tom_itx> there is one that comes with flip, yes
[20:20:35] <MarkX> http://pastebin.com/1jLnFjpX
[20:20:37] <MarkX> that is the debug
[20:20:42] <MarkX> ah k, let me install the flip one
[20:24:21] <MarkX> Tom_itx: same thing with the flip driver
[20:25:40] <MarkX> http://pastebin.com/FJp1svz7
[20:25:48] <MarkX> new debug (almost exact same to the old one)
[20:26:00] <Tom_itx> i don't know how paul's custom bootloader works, i've never had a teensy
[20:26:16] <MarkX> iirc its just the basic DFU by atmel
[20:26:31] <Tom_itx> it's a teensy right?
[20:26:35] <Tom_itx> 32u2
[20:26:36] <MarkX> nope
[20:26:40] <MarkX> well its a 32u2
[20:26:43] <Tom_itx> oh
[20:26:43] <MarkX> but not a teensy
[20:26:44] <Tom_itx> ok
[20:26:48] <MarkX> https://code.google.com/p/micropendous/wiki/Micropendous_32U2
[20:26:56] <Tom_itx> what have you done with it so far?
[20:26:59] <MarkX> from my understanding its a breakout board for the 32u2
[20:27:08] <MarkX> ....
[20:27:11] <MarkX> i just needed to run flip
[20:27:13] <MarkX> as admin
[20:27:16] <MarkX> and it wrote/verified
[20:27:17] <MarkX> XD
[20:27:32] <Tom_itx> linux?
[20:27:58] <Tom_itx> i run as admin on all my windows boxes
[20:28:59] <MarkX> nope win7
[20:29:11] <MarkX> but the program didnt work :(
[20:29:14] <MarkX> gotta figure that out now
[20:30:11] <Tom_itx> what did it do?
[20:30:50] <MarkX> nothing at all
[20:30:51] <MarkX> http://pastebin.com/Muz1vvEG
[20:30:54] <MarkX> thats the code
[20:31:00] <MarkX> based it off a tutorial video
[20:31:03] <MarkX> very simple
[20:32:09] <Tom_itx> blink PD6
[20:32:40] <MarkX> yep
[20:32:46] <MarkX> and PD6 is the status led
[20:32:53] <MarkX> according to the micropendous page
[20:34:22] <MarkX> the led works fine when given power
[20:34:28] <MarkX> but not through the code
[20:35:46] <Tom_itx> http://tom-itx.dyndns.org:81/~webpage/avr/at90usb162/
[20:35:48] <Tom_itx> try that one
[20:36:11] <Tom_itx> ignore the comments
[20:36:14] <MarkX> ok sec
[20:36:43] <Tom_itx> change the makefile to suit your chip
[20:36:51] <Tom_itx> it should work anyway though
[20:37:03] <Tom_itx> the 162 and 32U2 are basically the same
[20:37:20] <MarkX> that one works great
[20:37:51] <Tom_itx> i disabled the wdt
[20:37:54] <Tom_itx> you didn't
[20:37:59] <MarkX> ahhh
[20:38:06] <Tom_itx> add that to yours and try again
[20:42:57] <Tom_itx> write 1 to portd for output
[20:45:03] <Tom_itx> DDRB |= (1 << PD6)
[20:46:14] <Tom_itx> DDRD |= (1 << PD6)
[20:46:18] <Tom_itx> sry
[20:47:18] <MarkX> hmmm
[20:47:22] <MarkX> i did all that
[20:47:27] <MarkX> and the light blinks
[20:47:35] <MarkX> but my delay is bigger
[20:47:50] <Tom_itx> well i'm not using the built in delay as you are
[20:47:56] <MarkX> ah
[20:48:05] <MarkX> so what is a proper delay?
[20:48:12] <MarkX> cause right now i have it set to 500milliseconds
[20:48:15] <Tom_itx> whichever one works for you
[20:48:16] <MarkX> but its ~4 seconds
[20:48:30] <Tom_itx> that's also because you probably have ckdiv8 set
[20:48:37] <Tom_itx> so it's running slower than you think it is
[20:48:49] <MarkX> aahh
[20:48:54] <MarkX> damn i have a lot more reading to do
[20:48:59] <MarkX> ok so now i have code execution
[20:49:00] <Tom_itx> it's running at 2 mhz instead of 8 or 16
[20:49:02] <Tom_itx> probably
[20:49:36] <MarkX> ok time to read up on wdt
[20:49:41] <MarkX> and clkdiv8
[20:49:45] <Tom_itx> figure out what clock it's running at and set the F_CPU to that
[20:49:56] <Tom_itx> don't change the clock or the bootloader may not work right
[20:50:05] <MarkX> k
[20:50:15] <MarkX> i got that number
[20:50:19] <MarkX> from the micropendous page though
[20:50:25] <MarkX> (very bottom)
[20:50:34] <Tom_itx> probably 8 or 16mhz?
[20:50:41] <MarkX> 16mhz xtal
[20:51:11] <Tom_itx> you can't set fuses with FLIP
[20:51:18] <Tom_itx> you need ISP for that
[20:51:32] <Tom_itx> but if you mess too much with ISP you may erase the bootloader
[20:51:35] <Tom_itx> so be careful
[20:51:55] <MarkX> i don't want to touch fuses
[20:52:01] <MarkX> till i have a better understanding of whats going on
[20:52:37] <Tom_itx> well, it blinks.
[20:52:51] <MarkX> yep
[20:52:56] <MarkX> thanks for all the help
[20:53:06] <Tom_itx> np
[20:55:39] <Dan39> ok im looking at simple example code with "PORTD ^= (1<<0);" isnt (1<<0) the same thing as just 1? or would just "1" be regular integer 1 instead of binary like 0b00000001?
[20:56:03] <Dan39> just want to make sure i have the basics down well before moving on :P
[20:56:05] <Tom_itx> it's different
[20:56:44] <Dan39> care to explain? or should i just read more beginner stuff? :P
[20:56:47] <Tom_itx> well maybe not
[20:56:52] <Dan39> >_<
[20:57:12] <Tom_itx> not sure why you would use a shift there
[20:57:17] <Tom_itx> instead of just a mask
[20:57:22] <Dan39> i was thinking he just did (1<<0) since thats what is always done when speciying a pin like for pine 3 (1<<3)
[20:57:39] <Tom_itx> that would be to set a pin or port value
[20:57:51] <Dan39> yea
[20:57:53] <Tom_itx> the xor will toggle
[20:57:56] <Dan39> yes
[20:58:05] <Tom_itx> i'd use a bit mask with the xor personally
[20:58:10] <Dan39> like...?
[20:58:35] <Tom_itx> PORTD ^= 0x01;
[20:58:43] <Tom_itx> will toggle PORTD0
[20:59:25] <Dan39> why 0x?
[20:59:44] <Tom_itx> PORTD ^= 0x40; will toggle PORTD6
[20:59:55] <Tom_itx> because we think in hex
[20:59:59] <Dan39> heh
[21:00:17] <Dan39> well then i have to remember what each port in hex is :P
[21:00:44] <Dan39> which i would actually prefer in my code tbh
[21:00:56] <Dan39> why shift if i dont have to...
[21:01:12] <Tom_itx> you may want to change one bit in a register
[21:01:34] <Tom_itx> then you would use the |=(1<<bit)
[21:01:41] <Dan39> yes
[21:01:43] <Tom_itx> or clear it
[21:01:53] <Tom_itx> then you would use the &|=~(1<<bit)
[21:01:55] <Dan39> but couldnt you do that with just the bitmask also
[21:02:00] <Dan39> in hex
[21:02:01] <Tom_itx> then you would use the &=~(1<<bit)
[21:02:22] <Tom_itx> you could but you don't know the state of the other bits
[21:02:33] <Dan39> you would still being doing an OR
[21:02:45] <Tom_itx> what if you wanted to clear it?
[21:02:59] <Dan39> dunno
[21:03:14] <Tom_itx> it's easier to read the (1<<bit)
[21:03:24] <Dan39> yes
[21:03:49] <Tom_itx> http://tom-itx.dyndns.org:81/~webpage/avr/c_bits/bits_index.php
[21:05:01] <Dan39> wait... how would 0x40 toggle portd6?
[21:05:19] <Dan39> isnt 0x40 64
[21:05:28] <Tom_itx> change it to binary and see
[21:05:52] <Dan39> ah your right
[21:05:58] <Dan39> i see
[21:06:06] <Tom_itx> it is 64 decimal
[21:06:09] <Dan39> yes
[21:06:20] <Dan39> but thes 6th bit over :D
[21:07:04] <Tom_itx> bit mask and bit shift both have their place
[21:07:57] <Dan39> so back to my original question, would PORTD ^= 1 do the same thing as PORTD ^= (1<<0) or PORTD^= 0x1?
[21:08:22] <Tom_itx> probably so
[21:08:50] <Dan39> hmm so could i even just give it regular decimals? instead of bit shifts or hexadecimal...
[21:09:10] <Dan39> like for portd6 just do PORTD ^= 64?
[21:09:32] <Tom_itx> i'm not sure if you have to preface it with something but it would work
[21:09:40] <Tom_itx> don't get used to using decimal
[21:09:44] <Tom_itx> get used to hex
[21:09:45] <Dan39> ok
[21:10:59] <Tom_itx> some guys like binary
[21:11:09] <Tom_itx> b0100000
[21:11:17] <Tom_itx> or 0x40
[21:11:25] <Dan39> heh and this tutorial i found uses bit shifts for everything
[21:11:54] * Dan39 switches to avrbeginners.net :P
[21:12:25] <Tom_itx> http://tom-itx.dyndns.org:81/~webpage/how_to/atmega168/mega168_howto_main_index.php
[21:13:43] <Dan39> doesnt work with 328?
[21:13:51] <Tom_itx> it should
[21:14:07] <Tom_itx> i think i wrote that before the 328
[21:14:23] <Dan39> is there much differences besides size of flash available?
[21:14:38] <Dan39> if you havnt guessed by now, ive started with arduino :P
[21:14:41] <Tom_itx> nope
[21:14:52] <Tom_itx> they're the same except flash size etc
[21:15:23] <Tom_itx> 48 88 168 328 are all the same family chips
[21:15:40] <Dan39> just getting into it a little, and learned about whats really behind arduino etc. and it seems going straight to avr c code may be better
[21:15:55] <Tom_itx> i would
[21:16:44] <Dan39> wow thats like a super nooby tutorial
[21:16:56] <Tom_itx> it was meant to be
[21:18:19] <Dan39> im ok at some theory, but now i just need to learn some standards like with basic circuits and good practices (like recently learned about using flyback diode when switch a solenoid with a transistor :P, or adding decoupling capacitors to stop all the dam interference i seemed to get)
[21:19:23] <Dan39> bad power supplies super annoying too
[21:19:28] <Tom_itx> proper ground paths too if you get into making your own boards
[21:19:59] <Dan39> like large grounds? or just good solid connections to the devides/sensors etc.?
[21:20:10] <Tom_itx> star grounds
[21:20:25] <Tom_itx> opposed to running one ground from chip to chip to chip
[21:20:37] <Tom_itx> each one should have a return path to the supply
[21:20:38] <Dan39> hmmm
[21:21:20] <Tom_itx> you can use a 'flood' to acomplish that sometimes
[21:22:36] <Dan39> yea
[21:22:42] <Dan39> ive done no PCB design
[21:22:45] <Dan39> id love to tho
[21:22:59] <Dan39> tinkered with EAGLE a bit just looking at designs
[21:23:08] <Tom_itx> it can be addictive
[21:23:58] <Dan39> well thanks for the help. im going to watch Bladerunner now
[21:24:03] <Dan39> never seen it before, i hear it is good :P