#avr | Logs for 2013-04-12

Back
[04:14:43] <bitd> Hm, anyone else use Lubuntu in here?
[04:14:47] <langoliers> h
[04:15:03] <bitd> h, as in?
[04:15:04] <bitd> ;D
[04:15:21] <langoliers> :)
[04:15:23] <langoliers> -
[04:15:32] <langoliers> dislike ubuntu
[04:15:43] <bitd> Ah oke.
[04:15:55] <bitd> Looking for something else, but there is a lot of choice :P
[04:15:56] <langoliers> scientific linux is way more cool
[04:16:20] <langoliers> or gentoo, slackware, or for small system > lunar linux
[04:16:36] <bitd> SL sounds cool.
[04:16:38] <langoliers> linuxfromscratch, hardenedlinuxfromscratch
[04:16:52] <langoliers> yeah it is stable and all, if something works
[04:17:17] <langoliers> note that everything is outdated on it, and not all sw can be compiled from src
[04:17:31] <langoliers> it is like RHEL
[04:17:51] <bitd> Well, looks to be something I'd use.
[04:18:11] <bitd> Tried gentoo, but that seems to be out of date a bit aswell.
[04:18:37] <langoliers> no, itis source based distrib
[04:18:57] <bitd> Yes, but the sources have not been updates in a long ass time.
[04:19:14] <langoliers> if there is nothing to fix why update?
[04:19:15] <langoliers> ^^
[04:19:38] <bitd> Well, it supposed to be bleeding edge. So there is always something to update <.<
[04:19:38] <langoliers> i think a code can be written without bugs
[04:20:08] <langoliers> ofc not if anybody touches your code
[04:20:30] <bitd> Haha, yeah that tends to mess it up <.<
[04:20:51] <langoliers> and since these things are open source, you can imagine the chaos with the sources
[04:21:13] <bitd> Every wackjob gets his own show kinda deal.
[04:21:36] <langoliers> and sometimes trojans, worms get included in linux kernel too
[04:23:04] <langoliers> 11:08am up 104 days 14:18, 1 user, load average: 0.09, 0.08, 0.12
[04:35:28] <bitd> langoliers, your specs?
[04:35:43] <langoliers> still SL 6
[04:35:51] <bitd> Ah :)
[04:35:52] <langoliers> custom kernel
[04:36:04] <bitd> Nice..
[04:36:09] <langoliers> 3.4.9-rt17 #3 SMP PREEMPT RT Tue Aug 28 09:50:26 CEST 2012 x86_64 GNU/Linux
[04:36:16] <langoliers> outdated ;/
[04:36:27] <bitd> Haha :P
[04:36:33] <langoliers> must reboot to start the new
[04:36:48] <bitd> Downloading a new kernel update at this moment :P
[04:37:03] <bitd> Brb.
[04:37:05] <langoliers> i prefer compiling configuring my own
[04:39:13] <langoliers> i prefer compiling configuring my own
[04:39:35] <bitd> Hmm, well I do aswell, but right now I have a tight time schedual :(
[04:40:55] <Valen> I'm tempted to try kubuntu
[04:41:05] <Valen> its really only unity i dislike
[04:41:11] <langoliers> maybe zubuntu will be the best?
[04:41:46] <langoliers> or zzubuntu
[04:41:47] <Valen> never heard of it
[04:41:56] <langoliers> ssuming it goes from a-z
[04:42:00] <Valen> no
[04:42:05] <Valen> kubuntu uses kde
[04:42:10] <Valen> xubuntu uses xfce
[04:44:38] <langoliers> oh then use xubuntu
[04:45:28] <bitd> Christ, lubuntu updated Eagle.
[04:45:29] <bitd> Gahh.
[04:45:54] <langoliers> lubuntu uses lubricant?
[04:46:31] <bitd> Haha, doesn't feel like it now <.<
[04:46:54] <langoliers> killall -KILL firefox chrome
[04:47:18] <langoliers> this shoud help
[04:47:30] <bitd> No chrome installed here :D
[04:47:53] <bitd> I had 3.16 Eagle running.
[04:47:58] <langoliers> ifound it to be a smaller piece of shit than ff, and used it, but now it said my system is not supported anymore
[04:48:12] <langoliers> that crap gave me the finger
[04:48:14] <bitd> Lubuntu thought it would be a good idea to update to 5.xx
[04:48:34] <bitd> Hmmm, chrome is weird, sometimes I like it, sometimes its even slower than FF
[04:48:48] <langoliers> it uses javascript bloatware
[04:48:49] <langoliers> :)
[04:48:53] <langoliers> install no plugins
[04:49:05] <langoliers> kill every adsite on machine
[04:49:21] <langoliers> then it might work for some time
[04:49:50] <bitd> Right now, struggeling with the ROS library.
[04:49:56] <bitd> That shit is like malware.
[04:50:22] <langoliers> the shit that killed Elvis!
[04:51:32] <langoliers> currently chrome is causing minute length nonresponsiveness ion my comp
[04:51:39] <bitd> No, the shit that is killing my inner child :P
[04:51:53] <bitd> Thats always a good rage starter.
[04:51:58] <langoliers> 11 tabs
[04:52:33] <langoliers> but i bet if i close all and open a blank one it won't get better ;)
[04:52:45] <langoliers> worms just stay attached in bg
[05:14:05] <kdehl> What is the name of the corresponding ISR vector in avr-gcc for USART_RXC_vect when I have several USARTS, like in Atmega1284p?
[05:19:59] <kdehl> Ah, found it.
[05:20:25] <kdehl> I found /usr/lib/avr/include/avr/iom1284p.h
[05:20:48] <kdehl> And in it: #define USART0_RX_vect _VECTOR(20) /* USART0, Rx Complete */
[05:38:00] <cluelessperson> question, in ASM. When the instruction sheet says "1/2/3" clocks, what does that mean?
[05:43:49] <Steffanx> That it depends on 'something' how many cycles it takes cluelessperson
[05:44:24] <Steffanx> Where 'something' is described in the avr instruction set manual
[05:44:48] <Steffanx> SPSE for example: http://share.naffets.nl/a-20130412-123113.png
[05:46:18] <RikusW> cluelessperson: usually for branches
[05:46:30] <RikusW> 1 if not taken
[05:46:34] <RikusW> 2 if taken
[05:47:27] <RikusW> the skip instructions will take 3 if the next instruction is a 2 cycle one like LD
[06:24:22] <jc5134> I'm sorry to ask here but I can't talk on ##electronics (wont register)
[06:24:57] <jc5134> I have 2 diodes, anode 1 on 24V source, anode 2 on 12V source. cathodes connected together, through resistor and to common ground. Current should flow only through the 24V diode, right ?
[06:25:08] <Steffanx> Why not just register lol? :)
[06:25:33] <RikusW> jc5134: /msg nickserv help register
[06:25:51] <RikusW> I think you're right about the 24V diode
[06:25:54] <jc5134> I don't want to register, I don't want to give anyone my personal information
[06:26:05] <megal0maniac_afk> haha :)
[06:26:11] <RikusW> create a fake email address ?
[06:26:15] <jc5134> well the thing is for some reason the current is splitting
[06:26:25] <jc5134> and 24V doesn't get on the 12V source
[06:26:26] <RikusW> you don't even have to give your email...
[06:26:41] <megal0maniac> RikusW: You do for a password, don't you?
[06:26:52] <jc5134> know of a failure mode that could cause this ?
[06:26:52] <RikusW> yep, if you ever forget it....
[06:27:06] <jc5134> imo it should either be a short circuit or a gap
[06:27:23] <RikusW> megal0maniac: after a few months you could ask in #freenode to have the nick scrapped if its not used and reregister it :-P
[06:27:58] <megal0maniac> I know :)
[06:27:58] <RikusW> jc5134: maybe you're using zeners ? :-P
[06:28:09] <jc5134> RikusW, nope, schottky diodes, 100% positive
[06:28:35] <jc5134> and the exactly same thing seems to happen with a different pair of schottky diodes too
[06:28:38] <jc5134> regular BAT42s
[06:28:58] <RikusW> megal0maniac: to make your head hurt http://en.wikipedia.org/wiki/WGS84
[06:29:27] <RikusW> and then go do conversions between different systems...
[06:29:28] <jc5134> RikusW, well.. technically after 30V or so, they are 'zeners' ;)
[06:30:16] <megal0maniac> RikusW: Why do you do this to me? :P
[06:30:23] <jc5134> but when the 12V diode is reverse biased, it should have -12V on it, right ?
[06:30:33] <jc5134> so I think its way below the 30V limit
[06:30:56] <langoliers> no.
[06:31:26] <langoliers> a 12V zener diode is a normal diode in forward mode.
[06:32:28] <langoliers> zener brealdown voltage is reverse breakdown voltage
[06:32:34] <jc5134> langoliers, I have 2 diodes, anode 1 on 24V source, anode 2 on 12V source. cathodes connected together, through resistor and to common ground.
[06:32:37] <langoliers> breakdown
[06:32:44] <jc5134> langoliers, I was reffering to the 12V diode in that configuration
[06:33:03] <langoliers> oh ok that will be about +-12.6v
[06:33:10] <jc5134> thought so
[06:33:15] <jc5134> langoliers, they're schottky diodes
[06:33:28] <langoliers> wtf you doing?
[06:33:31] <jc5134> langoliers, for some reason in a real app, the current is splitting and 24V doesn't get on the 12V source
[06:33:54] <jc5134> langoliers, a DC UPS basically
[06:34:10] <langoliers> are you sure you are up to the task?
[06:34:28] <jc5134> langoliers, everything works except this
[06:34:47] <langoliers> well it is definitely wrong
[06:34:56] <jc5134> langoliers, and I already did a lipofe charge manager with coulomb counting, so yes, I think so
[06:35:25] <jc5134> langoliers, just needed a sanity check
[06:35:26] <langoliers> hm, ok if you recalibrate it , because they age
[06:35:49] <jc5134> langoliers, you're not the only person on planet who knows how li-ion chemistry works
[06:36:11] <langoliers> i thought so
[06:36:27] <langoliers> but i bet you didn't know li-po burns underwater :)
[06:36:44] <langoliers> and if your circuit fails then it's nasty
[06:37:00] <jc5134> langoliers, and I bet you don't know there's a little thing called a fuse
[06:37:21] <langoliers> that will not save your house
[06:37:40] <megal0maniac> Or your boeing
[06:37:40] <jc5134> langoliers, it won't be on a house, it will be in a foreign country on a lighting pole somewhere
[06:37:52] <megal0maniac> :)
[06:38:05] <langoliers> ok that's fine
[06:38:06] <langoliers> :)
[06:38:30] <langoliers> not much chance it explodes and ignites some pedestrians around
[06:38:44] <jc5134> everything in the UPS works very well, is well tested and has multiple redundancies
[06:38:59] <jc5134> only thing that doesn't work is this load changeover circuit I'm talking about
[06:39:11] <jc5134> I wanted a sanity check from more people because we can't figure it out here :)
[06:39:19] <langoliers> post sch and i take a few mins to read it
[06:39:25] <jc5134> I kept thinking we made a really stupid and elemental mistake
[06:39:36] <jc5134> langoliers, already did
[06:39:51] <jc5134> langoliers, I have 2 diodes, anode 1 on 24V source, anode 2 on 12V source. cathodes connected together, through resistor and to common ground.
[06:40:05] <langoliers> where?
[06:40:27] <jc5134> langoliers, that description. I want to focus only on that little circuit
[06:40:36] <jc5134> langoliers, because that alone doesn't work
[06:40:59] <langoliers> sure i asked if... and you were saying something about schottky diodes, so i have no clue what are you up to now
[06:41:03] <jc5134> langoliers, on a breadboard, it does. But apparently those diodes might have a nasty fault condition or something we didn't think about and we're doing something stupid
[06:41:16] <jc5134> relays and everything are protected through 1N4148s
[06:41:59] <jc5134> the breakdown voltage is cutting it a little close though, its about 30V for those power schottky diodes
[06:42:13] <jc5134> and we have a 24V and 12V sources.. could it somehow add up? I don't think so
[06:45:54] <jc5134> to be specific: they are 15SQ045 (datasheet here: http://www.gme.cz/dokumentace/223/223-168/dsh.223-168.1.pdf )
[06:46:26] <langoliers> <jc5134> langoliers, you're not the only person on planet who knows how li-ion chemistry works < if you take it this way, $60/h and i am available for support
[06:47:00] * megal0maniac coughs
[06:47:16] <jc5134> langoliers, you were implying I was stupid :)
[06:48:28] <jc5134> langoliers, allright, do you know what's wrong with that little circuit? If so, I'll consider it
[06:49:24] <RikusW> jc5134: what does it do wrong ?
[06:49:32] <RikusW> sounds like it should work...
[06:50:09] <jc5134> RikusW, for some reason, when both voltage sources are connected, there is like 1A flowing through the 12V diode and about 2A through the 24V one (and 3A through load)
[06:51:00] <jc5134> RikusW, well not exactly.. but you get the picture
[06:51:24] <jc5134> 2.5 from 24V maybe
[06:51:52] <jc5134> RikusW, I was just wondering whether there was a fundamental flaw with that circuit..
[06:52:15] <jc5134> I just see now that the reverse rated voltage for those power schottkys is 45V, so they're definitely safe
[06:52:32] <Horologium> how is the weather in the Czeck Republic today anyhow?
[06:52:34] <jc5134> max forward curent is 15A, that was never exceeded
[06:52:42] <RikusW> what voltage do you measure at the cathodes at that time ?
[06:53:10] <jc5134> RikusW, when 12V source is connected, little below 12V and when 24V source is connected, little below 24V
[06:53:17] <langoliers> nah finished eating
[06:53:26] <jc5134> RikusW, so exactly as expected..
[06:53:51] <RikusW> at 24V the 12V side should be reverse based with no current flow....
[06:54:04] <jc5134> RikusW, yep.. that's what we all here figure :(
[06:54:24] <RikusW> try normal diodes and see what happens ?
[06:54:31] <jc5134> well of course some tiny current will flow anyway
[06:54:44] <jc5134> RikusW, they'll burn I think :)
[06:55:06] <jc5134> would have to get some seriously heavy duty types :(
[06:55:11] <langoliers> hey master Horologium
[06:55:18] * RikusW got some 6A ones
[06:55:21] <jc5134> they have like a 0.6V drop, those schottkys have 0.1
[06:55:39] <RikusW> P600M iirc
[06:55:46] <jc5134> RikusW, allright.. thanks for the sanity check, I'm genuinely grateful :)
[06:56:04] <jc5134> RikusW, I think we really have to take it apart and start measuring everything carefully :(
[06:56:13] <RikusW> heh
[06:56:17] <jc5134> RikusW, you have some paypal or something ? :)
[06:56:24] <RikusW> something like that will drive me nuts too ;)
[06:56:43] <jc5134> oh hell yes, considering how much time we spent on this already :( Such a simple annoyance
[06:57:07] <langoliers> jc5134<= i have 10 year experience in how to and how not to blow up lithium packs, and i do electronics every day since 1998
[06:57:25] <jc5134> langoliers, and you're also not a nice person to talk to so I won't :)
[06:58:53] <langoliers> maybe sometime you will know how is it like to be asked for things like can i connect this led to 12v thousands of times
[06:59:30] <RikusW> langoliers: via a resistor ofc...
[06:59:49] <jc5134> langoliers, maybe sometime you will know how is it like to be working on a project on 16 hour shifts for multiple weeks and have a really stupid probably common sense thing come in the way
[06:59:58] <jc5134> langoliers, I gladly help those people
[07:00:03] <RikusW> jc5134: http://sites.google.com/site/megau2s/home
[07:00:22] <megal0maniac> jc5134: You should get one of those :P
[07:00:47] <megal0maniac> I am the U2S marketing team for #avr XD
[07:01:02] <jc5134> RikusW, I see no donate button :)
[07:01:23] <langoliers> jc5134<= i had that once yeah, mysoftware rasterization drawn white dots around the spheres, and could not figure out what was causing it, finally after weeks i have noticed it was the CPU overheating and causing it to miscalculate
[07:01:33] <megal0maniac> RikusW: Why _don't_ you have a Paypal account?
[07:01:41] <RikusW> megal0maniac: I do
[07:01:50] <RikusW> but no easy way to get moeny out yet
[07:01:54] <megal0maniac> Ah
[07:02:00] <jc5134> RikusW, wire is freaking expensive :(
[07:02:14] <jc5134> RikusW, I'm from Czech Republic as someone already pointed out :(
[07:02:18] <jc5134> for now :)
[07:02:19] <RikusW> jc5134: you can help me on another day :)
[07:02:26] <jc5134> RikusW, very gladly :)
[07:03:26] <RikusW> jc5134: so what kind of experience do you have ? eg analog digital programming etc ?
[07:03:31] <jc5134> RikusW, so you really can't use any money on your paypal account? ;)
[07:04:12] <RikusW> I could probably get it out with some effort
[07:04:27] <RikusW> or just use it again to buy something else without getting it out
[07:04:30] <jc5134> RikusW, programming, mainly embedded and also electronics :)
[07:04:51] <RikusW> analog ? RF ?
[07:05:08] <jc5134> RikusW, digital/analog, not RF
[07:05:15] <jc5134> boss has RF experience
[07:05:25] <langoliers> jc5134<= if you know programming that does not imply you know electronic as much, programmers used to do stupid things in electronics.
[07:05:51] <jc5134> langoliers, don't really care what you think
[07:06:26] <jc5134> RikusW, ok PM me, maybe you'll buy somethiong through paypal someday :)
[07:08:29] <RikusW> jc5134: which direction is the current flowing in the 12V diode ?
[07:08:39] <RikusW> in reverse or forward ?
[07:08:58] <langoliers> 1 picture is worth more than a thousand words
[07:09:08] <jc5134> RikusW, ok, sent you $10 for being a helpful soul :)
[07:09:14] <RikusW> to or from the battery..
[07:09:32] <jc5134> RikusW, from battery
[07:09:36] <RikusW> thanks :)
[07:09:45] <jc5134> RikusW, you already earned it :)
[07:09:52] <RikusW> thats very weird indeed
[07:10:52] <jc5134> and now, massive frustration and more over time - time :(
[07:14:33] <RikusW> megal0maniac: something you'd like http://en.wikipedia.org/wiki/Biltong ;)
[07:15:18] <megal0maniac> Just finished a bag last week :P
[07:15:51] * RikusW like a bit of yellow fat on the side :)
[07:15:58] <RikusW> the oily kind
[07:16:06] <megal0maniac> Its tasty
[07:16:17] <megal0maniac> I'd like to try volstruis
[07:16:50] <RikusW> how about donkey :-D
[07:16:56] <megal0maniac> Noooooooo
[07:17:00] <RikusW> lol
[07:17:35] <RikusW> I've heard of some guys using baboon meat...
[07:17:49] * RikusW don't want to befriend those...
[07:18:03] <megal0maniac> That's unpleasant...
[07:18:24] <megal0maniac> We used to make it, but it wasn't much cheaper than buying it and lots of effort and time
[07:18:54] <RikusW> not that much effort either
[07:19:20] <RikusW> we put on some salt and coriander and stack it up in a bucket overnight
[07:19:30] <RikusW> and hang to dry the next day
[07:19:39] <langoliers> Horologium:= do you have rgb to R-GN-B-M-Y-lC-lM-G-lG-mK-pK-E format for printing with hp printer?
[07:19:40] <kdehl> Note to self: learn difference between bit and byte. I just bought what I thought was 256 kbyte memory chips that turned out to be 32k. I already have 128 kbyte of RAM in the controller, so this was completely useless.
[07:20:22] <langoliers> Horologium:= maybe a quick tiff printing util?
[07:23:53] <langoliers> kdehl<= consult datasheet, they usually know the difference :)
[07:24:50] <langoliers> an online stoore can have whatever in the description
[07:24:52] <kdehl> langoliers: Yeah, it was an impulse purchase.
[07:25:08] <kdehl> Or something.
[07:25:16] <kdehl> At least I bought it without thinking. At all.
[07:25:39] <jadew> about the diode discussion, I just read it all, how exactly are those diodes connected? cuz the way I see it, the behaviour seems normal (I'm a noob btw, just trying to understand)
[07:25:43] <kdehl> Anyway, luckily for me, ebay is cheap.
[07:25:45] <langoliers> i bought a "dfn packaged battery charger" for example that is actually a led driver switched mode power supply ic :) but i don't care what they call it
[07:25:59] <jadew> is there a schematic somewhere, because I might have imagined it wrong
[07:26:17] <langoliers> jadew<= yeah i was asking that too, no there isn't
[07:26:44] <langoliers> jadew<= it is a secret commercial project
[07:28:28] <jadew> I was just wondering about the diodes + resistors arrangement
[07:33:24] <jc5134> jadew, the equivalent circuit is this: http://imageshack.us/photo/my-images/515/circuitf.png/
[07:34:03] <RikusW> jc5134: and the 12/24V sources are batteries ?
[07:34:08] <RikusW> not something like PWM ?
[07:35:05] <jc5134> RikusW, yep, solid filtered DC. The 12V is a LiFePo4 battery and 24V is a well designed 24V DC (from mains) source that behaves correctly
[07:35:31] <jc5134> RikusW, the 24V source is not even a switching PSU. But it has a huge cap on output anyway
[07:36:15] <jadew> jc5134, thanks
[07:36:23] <RikusW> the 12V diode's cathode will have to go below 12V before it starts to conduct...
[07:36:40] <RikusW> in theory at least
[07:36:45] <jc5134> RikusW, exactly what everyone I talked to (including me) think
[07:37:07] <jc5134> RikusW, also on a breadboard, it seemed to work.. Was wondering whether it was some weird failure condition or something
[07:37:12] <RikusW> try a 1n4007 or something for the 12V diode
[07:37:49] <jc5134> RikusW, yep.. I'll have to take that whole elaborately put up thing apart and start experimenting with it
[07:38:14] <RikusW> iirc 1n5148 is a bit beefier
[07:39:15] <jc5134> maybe not worth mentioning but the 'load' is actually another step up/step down PSU that outputs solid 12V
[07:39:38] <megal0maniac> Was just wondering about that
[07:39:43] <jc5134> only thing I know 100% is there is definitely no inductive load or AC stuff present
[07:40:54] <jc5134> I bet it'll be something really stupid, always is, lol
[07:41:36] <jc5134> but I'm glad the principle behind it is sound, I think enough eyeballs went over it already :)
[07:41:55] <RikusW> jc5134: short on you pcb maybe ?
[07:42:08] <jc5134> RikusW, could be..
[07:42:18] <jadew> what's the voltage drop across the 12v diode?
[07:42:32] <jc5134> RikusW, or maybe the thermal insulation around the diode now behaves like a conductor or something, lol
[07:42:33] <jadew> well, the potential
[07:42:45] <jadew> it should be -12, right?
[07:43:07] <jc5134> hmm.. I assume it's -12V.. but I'll check, actually didn't do that yet
[07:43:28] <tzanger> is the 12V "load" a buck/boost regulator? it's doubtful it'll regulate 12V from a 12V source
[07:43:31] <jadew> if it's positive it might mean the load is shorted
[07:44:42] <tzanger> that circuit will have the 12V source doing nothing as long as teh 24V source is present and above ~12.7V
[07:45:18] <jadew> unless the load is shorted, in that case the potential on the cathode will be 0
[07:45:25] <jadew> so both of them will be open
[07:45:37] <tzanger> jadew: yes, depends on how stiff the 24v source is
[07:45:48] <jc5134> something around -11V
[07:45:51] <jadew> I'm just guessing here, I'm the noobiest person in the channel
[07:46:06] <Tom_itx> O_o
[07:46:15] <tzanger> also, if the 24V regulation sensor is before the diode, you can also see some weirdness when you're "dual-homing" a load
[07:46:45] <jc5134> tzanger, already said its a step up and step down converter :) It can do 12V from 9V - 30V
[07:47:33] <tzanger> I ran into that problem (24VAC source feeding a 15V reguator sourcing a net that was also sourced by a 12V battery) -- on a light load the 15V regulator was working fine, but due to the light load and the capacitive network after the diode, my "15V net" was actually at 29V
[07:47:49] <tzanger> moved the adjust input to the actual net I wanted to regulate and things looked much better
[07:48:06] <tzanger> I was dangerously close to blowing the 5V regulator hanging off the 15V net when it was up at 29V
[07:49:09] <jc5134> tzanger, there is always solid 24V on that source, it's pretty stiff
[07:49:59] <jc5134> tzanger, it can put out 6A and has a low voltage and short circuit protection.. shouldn't really be a problem
[07:50:15] <jc5134> measured it, it has about 24.01V
[07:50:38] <jc5134> srsly I think the UPS is haunted now or something :)
[07:52:32] <jc5134> maybe I'm paranoid and stuck the meter probes somewhere other than the battery shunt resistor and I'll be publicly executed in a short while, also possible, lol
[07:54:15] <jc5134> whoa I think I found the problem !
[07:55:03] <jc5134> there's another board in there also connected to the 12V battery and 24V at the same time
[07:55:34] <jc5134> if a diode burst in that, it would source current from the battery instead of the step-up/down supply because it has a slightly higher voltage now
[07:58:25] <Tom_itx> ok, i've got a question here. Say i have 2 avrisp mkii programmers. Can i set one up to work with the jungo driver in Studio and have the other one on the same machine set up to work with avrdude using the libusb driver?
[07:58:49] <Tom_itx> I do know the 2 usb drivers conflict
[07:59:57] <tzanger> if they're using libusb you can make the user software look at vid/pid *and* serial or something to that effect
[08:00:18] <tzanger> it's definitely not a standard scenario but if you have control of the source you can hack something together
[08:00:43] <Tom_itx> what about different serial numbers or something like that?
[08:00:57] <Tom_itx> they should appear as 2 separate devices i think
[08:01:48] <RikusW> Tom_itx: if they use different serials it might be possible
[08:02:20] <Tom_itx> I think it's a bad idea but someone was asking me.
[08:02:28] <RikusW> or use a different PID and hack avrdude
[08:03:53] <megal0maniac_afk> Serial number should do it
[08:04:21] <Tom_itx> i may give it a try later on.
[08:04:49] <megal0maniac> Line 181 in AVRISPDescriptors.c
[08:05:09] <jc5134> Tom_itx, if avr studio can connect to a gdb server, you could set one up in a virtual machine
[08:05:28] <RikusW> don't think that will work.
[08:06:14] <Tom_itx> well, the guy has 2 programmers and want's one set up in Studio and the other set up for avrdude
[08:06:22] <Tom_itx> not real sure why
[08:06:45] <jc5134> Tom_itx, maybe he's flashing 2 different parts on the same board or something
[08:08:55] <jc5134> loool
[08:09:02] <jc5134> RikusW, want to be seriously amused? :)
[08:09:11] <RikusW> yep :)
[08:09:34] <jc5134> RikusW, the 24V source is connected on a different side of the shunt resistor for money-saving reasons
[08:09:48] <jc5134> RikusW, so the current flows through the diode, the shunt resistor back to the 24V source
[08:10:12] <RikusW> PCB problem then ?
[08:10:13] <jc5134> RikusW, rendering the shunt resistor useless while the 24V source is connected. And we all forgot about it :)
[08:10:34] <jc5134> RikusW, nope, it's correct behavior :) We aren't supposed to use the shunt resistor when on mains
[08:10:44] <jc5134> RikusW, noone just realized, lol
[08:10:49] <RikusW> ugh
[08:10:54] <RikusW> and wasted some time ;)
[08:11:02] <jc5134> RikusW, the current isn't flowing into the battery, its flowing into the 24V source and it's correct ;P
[08:11:06] <jc5134> RikusW, yep, totally
[08:11:08] <jc5134> *from
[08:11:24] <jc5134> RikusW, I totally said it will be something really stupid, lol
[08:11:34] <RikusW> it usually is :-P
[08:11:47] <Tom_itx> RikusW, do you recall where dean puts the serial number in lufa for it?
[08:14:12] <RikusW> Tom_itx: Projects\AVRISP-MKII\descriptors.c
[08:14:18] <Tom_itx> thanks
[08:15:01] <RikusW> PID is also in there
[08:15:37] <Malinuss> can anyone into data processing? How do I from top image into bot, hehe? http://i.imgur.com/oonLdMs.png
[08:16:07] <Tom_itx> you're not native english.
[08:17:07] <Tom_itx> but i still don't have an answer
[08:17:10] <Malinuss> Tom_itx, I guess my attempt at being funny didn't work ;D
[08:17:21] <Malinuss> Let me rephrase then
[08:17:30] <Tom_itx> no don't bother :D
[08:18:35] <Malinuss> Any of you guys have experience with data processing? I have big fluctuation and I'm guessing I have to use avarges :P. This is how my graph looks like: http://i.imgur.com/oonLdMs.png
[08:19:04] <Tom_itx> english dude will get good answer err he wait
[08:19:44] <Tom_itx> that looks like a noisy power supply to me
[08:19:59] <Malinuss> Tom_itx, It's my pulse ;P
[08:20:01] <Tom_itx> or a dead body flatlined
[08:20:10] <Tom_itx> hehe
[08:21:24] <Tom_itx> i looked into some of those bio sensors at one point but never got any to play with
[08:27:19] <Malinuss> Tom_itx, It's no bio sensor. Just a red LED and a LDR
[08:27:29] <Malinuss> dead-simple :)
[08:36:16] <RikusW> athis is nice to have com0com.sourceforge.net
[08:38:17] <antto> i recommend that too
[08:38:49] <antto> used it to make a "pipe" in order to see how to program a bootloader
[10:06:59] <qubyte> hi
[10:07:32] <qubyte> Where can I look up the function of things like .org or <<?
[10:09:06] <RikusW> dns
[10:09:27] <RikusW> top level domains
[10:14:19] <langoliers> .org is the starting address only
[10:15:18] <langoliers> remember org 100h in old dos? ;>
[10:15:26] <qubyte> RikusW I don't mean DNS/Domain stuff. I meant this: .org 0x00000
[10:15:38] <langoliers> code starts at 0.
[10:19:34] <qubyte> langoliers start adress fo what? Isn't there a documentation?
[10:20:01] <langoliers> for the executable, it is documented in your asm compiler docs
[10:20:39] <langoliers> different systems, oses may need different starting offsets
[10:21:18] <langoliers> (and differing executable format, different instruction set)
[10:21:39] <langoliers> but if you use C, then you can port it to other systems.
[10:24:33] <qubyte> langoliers thanks
[10:32:21] <qubyte> Does .org OVF0addr mean, jump at this position if a timer overflow occurs?
[10:32:38] <langoliers> no that is interrupt
[10:32:53] <langoliers> your interrupt service routine
[10:33:36] <langoliers> do you need .org on a microcontroller? i'm not in arduino stuff
[10:34:19] <langoliers> .org 0x00000 < means nothing
[10:48:07] <Tom_itx> langoliers, no but you can use one
[10:48:10] <qubyte> langoliers for avr yes. atmega8, I'm a absolute newbie. So if an interrupt occurse, in thsi case an timer overflow (?), it does the rjmp? So i can think of it as some kind of event
[10:48:11] <Tom_itx> default is 0x0000
[10:48:21] <Tom_itx> i think
[10:48:30] <Tom_itx> unless it's defined in a header somewhere
[10:53:08] <qubyte> Anyway, I do have a different problem. Trying to dim a LED via PWM -> an opto edison led (350ma at 2,4-3,4-3,6 rgb). the problem is, that it doesn't use 350ma but a lot less. we are using a buz71 mosfet. the whole thing gets 5v. Why doesn't the led take the 350? what could be the problem? The resistors are correct.
[10:55:47] <langoliers> leds have a voltage drop over them you must calculate in your resistor value
[10:56:45] <langoliers> red 1.6V amber 1.7V green 1.8V White 3.3V nominal.
[11:13:47] <langoliers> qubyte<= buz71 is not logic level btw, it will not be fully enhanced at 5V, if recalculating resistor values don't help, use a logic level gate fet.
[22:39:44] <homeflix> hi!
[22:43:39] <homeflix> currently iam in the middle of building my first avr project: an usb avr programmer (usbasp by fischl). i used an premade eagle layout from here: http://www.keinschnickschnack.de/?page_id=143 ... and i either did a HUGE mistake or iam too sleepy and my brain is stuck
[22:44:01] <homeflix> iam a complete beginner, so please understand ;)
[22:44:29] <homeflix> i etched the board, soldered it
[22:44:42] <homeflix> and during the final connectivity test i ran into a problem
[22:45:16] <homeflix> according to the schematics pin 4 should be connected to pin 15 (not that important right now). while probing, i noticed, that the ic pinout is somehow flipped -.-
[22:45:59] <homeflix> how could this happen... is only printed the premade "etch-layout-pcb" and changed nothing.
[22:46:31] <homeflix> could somebody look into the etch-layout-pdf and tell me, if iam wrong, or the pcb layout is false...
[22:46:41] <homeflix> would help me alot :) thanks in advance!
[22:47:38] <homeflix> the pcb is a standard through-hole pcb
[22:47:41] <homeflix> no smd parts
[22:48:19] <homeflix> i looked into the eagle files, but didnt noticed it... is there any option in eagle where i can change the parts to through-hole/flipped or something?
[22:50:18] <Casper> homeflix: often you have to print... mirrored
[22:50:24] <homeflix> i did that
[22:50:32] <homeflix> thats why iam so confused...
[22:50:53] <homeflix> is there anything else, i might have forgotten?
[22:51:32] <Casper> let me find the stuff
[22:51:40] <homeflix> thanks alot!
[22:51:44] <homeflix> http://www.keinschnickschnack.de/?page_id=143
[22:51:50] <homeflix> http://www.keinschnickschnack.de/wp-content/uploads/2011/12/USBASP_Z_standard_all.zip
[22:52:42] <homeflix> meh, i used this layout only cause it had gerber files and all that prof. stuff... so i assumed that theres everything right
[22:53:17] <homeflix> ahhh, doh
[22:53:22] <homeflix> i think i found my mistake
[22:53:23] <homeflix> -.-
[22:53:25] <homeflix> arghhh
[22:53:41] <homeflix> i think these layouts were made for photo-sensitive pcbs :/
[22:54:00] <Casper> shouln't matter
[22:54:05] <homeflix> i used the laser-printer method
[22:54:21] <homeflix> and ironed it onto the pcb
[22:55:12] <Casper> looking for the pdf
[22:55:25] <homeflix> its inside this zip archive: http://www.keinschnickschnack.de/wp-content/uploads/2011/12/USBASP_Z_standard_all.zip
[22:55:31] <Casper> yeah can't see it
[22:55:35] <homeflix> USBasp_Aetzmaske_voll.pdf
[22:56:37] <homeflix> ist german
[22:56:41] <homeflix> *its
[22:57:05] <Casper> hmmm
[22:57:20] <Casper> not sure
[22:57:27] <homeflix> if i solder the ic on the copper-side, directly
[22:57:31] <homeflix> it would fit the pin-out
[22:57:38] <homeflix> discribed in the schematics
[22:57:43] <Casper> but then your usb jack would be an issue
[22:57:54] <homeflix> yeah, thats all fine
[22:58:06] <homeflix> checked gnd + vcc
[22:58:12] <homeflix> *probed
[22:58:26] <homeflix> works all fine, even the asp-programmer-isp-pinout fits
[22:58:40] <Casper> can't say... I don't have a working eagle installed
[22:58:44] <homeflix> DAMN...worked for like 5 hours on that
[22:59:05] <Casper> my package manager decided to update it... and the license broke due to that
[22:59:05] <homeflix> sry, the damn wasnt pointed at your last line
[23:00:09] <Casper> it can be frustrating
[23:00:11] <Casper> do you have eagle?
[23:00:16] <homeflix> yes
[23:00:31] <Casper> the board view is from the top down
[23:00:33] <homeflix> thanks for looking into it :)
[23:00:42] <Casper> i.e. component side
[23:01:03] <Casper> so when you look at the copper side, it shouln't match what you see on the screen
[23:01:09] <Casper> it should be mirrored
[23:03:16] <homeflix> its the same -.-
[23:03:24] <homeflix> pdf + eagle show the same layout
[23:03:55] <homeflix> i printed the layout through eagle, after i checked it the output with the pdf files
[23:04:11] <homeflix> and inside eagle i checked the "mirror" option
[23:04:36] <homeflix> short form: i opened the .brd file and printed it with "mirroring" checked
[23:05:35] <homeflix> and when i look at my final pcb now, it fits the eagle layout on the screen
[23:05:49] <homeflix> wait. it shouldnt.
[23:06:07] <homeflix> :(
[23:06:21] <homeflix> ah... ill open a beer, and just go to bed
[23:10:53] <homeflix> its rly frustrating... the etching came out rllly nice on that one :( damn simple foolish mistake -.-