#avr | Logs for 2013-11-12

Back
[00:18:21] <bsdfox\> Casper, yeah from factory
[01:32:34] <theBear> there's a dip30 arm that looks quite comprehensive
[01:32:44] <theBear> err, 28maybe
[02:30:21] <megal0maniac_afk> Ooh, that's actually pretty nice
[02:30:55] <megal0maniac_afk> Can't get them here though
[02:31:31] <megal0maniac_afk> 4KB is a bit small though, for 32bit instructions
[02:33:42] <megal0maniac_afk> theBear: This one? http://za.mouser.com/ProductDetail/NXP/LPC1114FN28-10212/?qs=5C9Q4QJFsuOrjcFyS2YjEA%3d%3d
[02:53:23] <ambro718> huh, I wasn't aware anyone is making ARM uCs in non-SMD forms
[03:10:04] <theBear> probly, it was lpc something something something for sure
[03:10:23] <theBear> people keep saying that, but the time to say that was weeks ago now
[05:44:28] <ambro718> I've been moving my strings to program memory but avr-size still stays there's 10 bytes in the data section. What could this be?
[05:44:58] <ambro718> Contents of section .data: 800200 4d016401 77018401 9301 M.d.w.....
[06:10:55] <v0kehc_> global or static var?
[09:36:14] <Fornaxian> http://hackaday.com/2013/11/12/keep-your-sd-cards-data-safe-with-the-sd-locker/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+hackaday%2FLgoM+%28Hack+a+Day%29
[09:39:24] <Fornaxian> nifty little toy
[09:39:31] <Fornaxian> could have been done with an attiny143
[09:39:33] <Fornaxian> grrr
[09:39:38] <Fornaxian> attiny13
[10:05:59] <tzanger> that is a neat little hack
[10:21:27] <Fornaxian> yeah, isn't it though? I can see making one much smaller with an attiny surface mount and one button to toggle the lock bit along with a coin cell to power it.
[12:34:44] <megal0maniac_afk> Fornaxian: I got angry with the comments and responded: http://hackaday.com/2013/11/12/keep-your-sd-cards-data-safe-with-the-sd-locker/comment-page-1/#comment-1099455
[12:35:21] <rektide> is there any particular reason why 1.62 is the threshold voltage
[12:35:30] <rektide> it seems like a weirdly chosen number to me
[12:35:49] <rektide> why not 1.59 or 1.68
[12:36:46] <rektide> is the tinyAVR the only one that does 0.7v operation?
[12:48:04] <Fornaxian> megal0maniac_afk, you are karl?
[12:50:31] <Fornaxian> rektide, I suspect it is the physical threshold voltage of the semiconductor in question...as in, a limitation/feature of the actual hardware
[12:54:02] <megal0maniac_afk> Fornaxian: Haha no. Comment pending moderation, only realised now
[12:56:28] <megal0maniac_afk> Basically, write protect switch is 99% of the time adhered to. Even the cheap chinese readers where the card goes half way in read the switch. And if the controller says read only, software can't do a damn thing about it
[12:57:04] <Fornaxian> yeah.
[12:57:14] <Fornaxian> but it's easy enough to slide that little switch lever.
[12:57:39] <Fornaxian> although, you can do like my wife's cousin did,,accidentally.
[12:57:45] <Fornaxian> remove the little slider
[12:58:02] <Fornaxian> then camera wouldn't write to it...she was gonna throw away a 32GB SD because of it.
[12:58:20] <megal0maniac_afk> Also, it's a cool hack. Obviously there are ways around it, but they guy isn't trying to create fort knox on an SD card :/
[12:58:22] <Fornaxian> I took it and glued a bit of plastic in place and use it myself.
[12:58:35] <megal0maniac_afk> Haha! Nice :)
[12:59:38] <Fornaxian> and that guy who suggested multiple microSDs in a single case to boot from...why not just,,,umm,,I dunno,,,MULTIBOOT ONE!!!
[13:00:08] <Fornaxian> I have a single thumbdrive that boots debian live or windows 7 installer dvd.
[13:01:00] <Fornaxian> yanno, I hate to say it, but some of these pic chips are looking mighty nice compared to the AVRs I've been using.
[13:01:27] <megal0maniac_afk> Well that's handy to know. It reads the absence of the switch
[13:01:37] <Fornaxian> this pic32mx250f128b is a 32bit mips core in a 28 pin dip...can execute code from onboard flash or sram.
[13:02:38] <megal0maniac_afk> Yeah, me too. 8gb class10 in my wallet is my toolkit. Hirens bootcd, some other bootable tools, linux mint and 7 install dvd
[13:02:39] <Fornaxian> yeah..if you remove the slider you effectively write protect the SD.
[13:03:13] <megal0maniac> Fornaxian: Is your 7 install all the flavours or just 1?
[13:03:36] <Fornaxian> I have 32 and 64 bit versions on there...up to ultimate...
[13:03:51] <Fornaxian> friend of mine made it for me.
[13:03:59] <megal0maniac> Ah, cool. Was going to suggest that to you otherwise :)
[13:04:17] <Fornaxian> I avoid windows mostly myself but occasionally need it.
[13:04:32] <Fornaxian> want to make one that actually boots win7 for the fun of it.
[13:09:46] <carabia> not this it support bs again
[13:10:11] <megal0maniac> I love it support
[13:10:19] <carabia> clueless helping the clueless
[13:10:31] <megal0maniac> It is best to halp :D
[13:11:02] <megal0maniac> Make people satifsy
[13:11:02] <carabia> instead do something productive and find me a wiring diagram or a hi res photo of a raymarine board "3015-233" issue F. mmkay
[13:11:21] <carabia> i need to identify a burned out so8
[13:11:40] <carabia> do your it support thing then
[13:11:42] <megal0maniac> carabia: Please hold. Your call is important to us
[13:12:51] <megal0maniac> carabia: Your search - raymarine 3015-233 - did not match any documents.
[13:12:56] <megal0maniac> Sorry for not halp
[13:13:33] <carabia> I sort of expected when I read "my toolkit is 8gb class10"
[13:13:38] <carabia> You're fucking packing
[13:14:10] <carabia> Hey honey i'm sorry i'm a total fucking googloid i'm not sure how to get the cat out of the tree I have no google merely a 8gb class10
[13:14:38] <Fornaxian> man,,,one has to watch when buying real cheap thumbdrives from china....guy I work with just bought 50 32GB thumbdrives.
[13:14:46] <Fornaxian> none of them can store more than 512MB.
[13:16:38] <megal0maniac> carabia: I have a 16gb UHS-I too
[13:16:55] <carabia> I have a 32gb IDGAF
[13:16:58] <megal0maniac> And my laptop's reader is PCIe, not shitty USB. Now THAT'S packing
[13:17:28] <megal0maniac> carabia: I bought it right now off ebay just for please you :(
[13:17:43] <carabia> #it or #electronics
[13:17:50] <carabia> or #othernumbnuts
[13:18:13] <megal0maniac> #we<3carabia
[13:18:21] <carabia> thanks buddy
[13:19:26] <Fornaxian> I'm sorry, but <3 just looks like a ballsack to me.
[13:19:41] <megal0maniac> Maybe it is?
[13:46:24] <Guest37749> hello all :)\
[13:46:53] <Guest37749> tzanger even impossible is possible :D
[13:46:54] <Guest37749> http://foto3.inbox.lv/rofedo/links/mPSU.jpg
[13:47:06] <Guest37749> 5V 500mA
[13:47:19] <Guest37749> can be made twice smaller as i see
[13:49:20] <Guest37749> http://www.seekic.com/uploadfile/ic-circuit/s20113302203978.gif
[13:49:27] <Guest37749> aproximatelly circuit..
[13:51:59] <amee2k> that shit circuit is going to have piss poor regulation... i've got a bunch of different phone chargers using variations of that
[13:52:07] <amee2k> unloaded, the voltage goes up to almost 10V
[13:52:21] <Guest37749> there is resistor paralel as load
[13:53:00] <amee2k> unloaded meaning no *external* load... i.e. including any load resistors built in
[13:53:16] <Guest37749> don't know
[13:53:23] <amee2k> under nominal load the voltage on some goes down to ~4V lol
[13:53:28] <Guest37749> my voltage is steady 5V for now
[13:53:46] <Guest37749> ok 5.5V without no load :P
[13:53:57] <Guest37749> i will test now..
[13:54:02] <Guest37749> i just need 100mA max
[13:54:08] <Guest37749> 40mA min
[13:54:18] <Guest37749> as small as possible
[13:54:33] <Guest37749> even without transformer if it saves space
[13:55:41] <amee2k> if terrible regulation is okay, this comes to mind: http://i1.ytimg.com/vi/aO3Wwwu2T_M/maxresdefault.jpg?feature=og
[13:57:10] <Guest37749> AVR can work under big range of U
[13:57:55] <Guest37749> ok.. first test with fingers... not to burn oscilloscope from hot leak..
[13:58:26] <amee2k> AVRs are also kinda picky about overvoltage :3
[13:58:53] <amee2k> at that little load you can oversize it by a few volts and put a 7805 / 78L05 after it to stabilize the output at 5V
[14:04:27] <Guest37749> avr operating voltage - 2.7 to 6V
[14:04:31] <Guest37749> great!
[14:04:44] <amee2k> 6 sounds like an "absolute maximum" rating to me
[14:04:51] <Guest37749> dat is it
[14:05:23] <amee2k> "absolute maximum" means it won't take immediate and irreversible damage... its not supposed to be used that way
[14:05:26] <Guest37749> that means it would not blow on 5.5V :D
[14:05:55] <amee2k> and at less than 4.5, it won't neccessarily run stable at the full rated speed
[14:06:06] <Guest37749> my PSU works good
[14:06:27] <Guest37749> 5.5V without load and 5.18V with 100mA
[14:06:50] <amee2k> :)
[14:06:56] <Guest37749> 1MHz needed
[14:07:17] <jacekowski> 5.5 is bit on the high side for 5V PSU
[14:08:08] <Guest37749> ou it working better than i was imaging
[14:08:16] <amee2k> its a shitty unregulated off-line forward converter with some self-oscillating 2-transistor circuit
[14:08:26] <Guest37749> it even not hit my fingers with 220V when i touched wires :D
[14:08:33] <amee2k> IMO it is working pretty well for that
[14:08:42] <amee2k> but you could drop it by half a volt with a series diode, just to be sure
[14:08:46] <jacekowski> and as much avr will take a lot of abuse, it's not going to be happy with it in long term
[14:09:24] <Guest37749> amee2k + for saying about diode - it will be apsolutely perfect circuit! :D
[14:09:34] <jacekowski> i've had AVR take 24V into one of the ADC input pins and there was no obvious damage done
[14:09:42] <jacekowski> yet it died few hours later
[14:09:47] <Guest37749> :D
[14:09:52] <Guest37749> in painfull death
[14:09:52] <amee2k> heh
[14:10:18] <Guest37749> good to him that he was not connected to pain detector
[14:10:56] <Guest37749> ok time to connect oscilloscope..
[14:12:58] <Guest37749> hmm
[14:13:10] <Guest37749> it seams like oscilloscope died before tests..
[14:13:16] * Guest37749 restarting pc
[14:25:11] <Guest37749> pc oscilloscope lie and don't get red...
[14:25:51] <Guest37749> multimeter shows 5.15V but usb oscilloscope doesn't show even 1V..
[14:35:24] <FFD> boop?
[14:35:46] * amee2k bark
[14:50:31] <FFD> bye
[15:27:20] <Guest37749> amee2k what about making tiny PSU with one transistor oscilator?
[15:27:42] <Guest37749> do you think it's possible?
[15:28:16] <Guest37749> like that diode blinker from empty AA batteries.. forget that circuit name...
[15:29:09] <Guest37749> j elektronics
[15:30:42] <amee2k> Guest37749: you're probably better off using a TOPxxx series SMP controller IC
[15:31:10] <Guest37749> can sugest any?
[15:32:12] <Guest37749> google not finding anything on these codewords amee2k
[15:32:31] <amee2k> http://circuits.datasheetdir.com/293/TOP221-circuits.jpg
[15:32:56] <amee2k> thats non-isolating though
[15:33:08] <amee2k> or wait, it is. nevermind
[15:33:18] <Guest37749> but size same as my :D
[15:33:53] <amee2k> the biggest single component already is the transformer anyway
[15:34:02] <amee2k> and you won't change much about that
[15:34:28] <Guest37749> but i can leave only transformer :D
[15:34:54] <amee2k> then you'll need a line frequency transformer, which isn't smaller either ;)
[15:35:44] <Guest37749> ok then i can leave transistor and transformer :D
[15:35:47] <Guest37749> http://foto3.inbox.lv/rofedo/links/mPSU.jpg
[15:35:51] <Guest37749> look at this
[15:35:56] <OndraSter_> do you know what do you need?
[15:36:00] <Guest37749> transformer takes only 1/3 of place
[15:36:01] <OndraSter_> SMPS controlled by attiny
[15:36:05] <OndraSter_> right bea
[15:36:07] <OndraSter_> oh he is not here
[15:36:09] <amee2k> there are some single transistor converters but they're icky to get running right, especially with variable load
[15:37:17] <amee2k> http://dev.emcelettronica.com/use-e-line-transistors-dc-dc-converters
[15:37:35] <megal0maniac_afk> That's a horrible icky chinese piece of crap firehazard, that is. I bet it squeals while in use
[15:37:43] <megal0maniac_afk> @ Guest37749
[15:38:18] <amee2k> like all the cheap vagoo phone chargers you can buy from china :P
[15:38:22] <Guest37749> i make something like this
[15:38:29] <hetii> Hi :0
[15:38:33] <Guest37749> but it needs lov voltage DC
[15:39:00] <megal0maniac_afk> amee2k: Yes, but I didn't need to see the inside. That's too much
[15:39:10] <megal0maniac_afk> Guest37749: I bloody well hope you make it better
[15:39:17] <Guest37749> megal0maniac_afk http://foto3.inbox.lv/rofedo/links/mPSU.jpg
[15:39:24] <Guest37749> thats what i made so far
[15:39:46] <Guest37749> 5.5V without load and 5.15V with 100mA
[15:39:54] <megal0maniac_afk> You made that?
[15:39:56] <Guest37749> but i need smaller
[15:40:05] <Guest37749> i shrink phone charger :D
[15:40:14] <Guest37749> delete unnecessary parts :D
[15:40:18] <amee2k> its not going to get much smaller than that
[15:40:21] <megal0maniac_afk> Yeah, that has China written all over it
[15:40:25] <Guest37749> no it will!
[15:40:33] <amee2k> from what i can see, that includes the output filter capacitor o.o
[15:40:35] <Guest37749> one transistor oscillator will help
[15:40:59] <megal0maniac_afk> Output filter cap? We don't need that!
[15:41:09] <Guest37749> why we need that?
[15:41:17] <Guest37749> we don't ! :D
[15:41:19] <megal0maniac_afk> Nothing like some ripple to brighten your day
[15:41:32] * amee2k crawls under the bed and cries
[15:41:51] <Guest37749> what good is of that cap if every AVR hav cap in input? :D
[15:42:08] <Guest37749> 2 caps is not economic :D
[15:42:33] <amee2k> you need a minimum size specific for the converter for it to work
[15:42:47] <Guest37749> it work..
[15:42:49] <Guest37749> :D
[15:42:52] <hetii> Q: If i compile some c source by avr-gcc is it important for final hex to remove not used functions ? Or compiler will do it for me and not include it ?
[15:42:53] <megal0maniac_afk> For now
[15:42:57] <Guest37749> minimums size achieved
[15:43:37] <Guest37749> i just think there is too much ferrite for 1/5 of power
[15:43:46] <megal0maniac_afk> hetii: Well comment out an unused function and compare output
[15:43:49] <Guest37749> thinking of taking some ferrite off :D
[15:43:57] <megal0maniac_afk> But I /think/ it will compile away
[15:44:36] <Guest37749> amee2k did you see smaller ferrite cores than that?
[15:44:41] <megal0maniac_afk> Even a volatile function should be compiled away if the compiler can prove it will never be executed
[15:47:03] <amee2k> http://www.techcn.com.cn/uploads/200906/1244273692cKUsFdGC.jpg << they make ferrite cores down to under a millimeter in size
[15:47:03] <hetii> megal0maniac_afk: as i check the size of hex is bigger when i add not used function.
[15:47:40] <amee2k> but they're way too small to wind the required number of turns on them that would be neccessary for their magnetic properties
[15:48:00] <amee2k> and even if you could, it wouldn't be able to work at any practically useful power level anymore
[15:48:19] <hetii> is there some flag for compiler to not include them ?
[15:48:46] <jeffmurchison> Anyone know of a document like this one (http://www.atmel.com/Images/doc2525.pdf) that shows AVR device codes and signatures, but for more ATmega and ATtiny AVRs? This one doesn't really have that many.
[15:49:13] <hetii> The point is that i want to have one common header file with own methods that i could share over different projects.
[15:50:29] <Guest37749> ok thank you
[15:50:59] <Guest37749> will try to develop 100mA 5V single transistor PSU 8)
[15:51:50] <blathijs> jeffmurchison: I guess avrdude sources or config has a lot?
[15:52:07] <jeffmurchison> hmm, good idea
[17:35:15] <Fornaxian> jeffmurchison, the original that avrdude uses is in atmel studio...previously avr studio. There is an xml file in there somewhere with all that information.
[18:47:51] <rektide> i'm looking for a cheap uC that has a large number (more better, minimum 14) ADCs, at least one SPI. need an analog front end for some other microprocs
[18:48:15] <rektide> not sure how to differentiate between the different avr product lines
[18:50:46] <malinus> rektide, if you actually looked at atmels website first, you would find this: http://www.atmel.com/v2pfresults.aspx#(actives:!(),data:(area:'',category:'34864',pm:!(),view:list),sc:1)
[19:06:17] <Fornaxian> rektide, there are plenty of AVR chips that fit the ADC requirement...
[19:06:34] <Fornaxian> however, really, they only have one ADC with a multi-channel multiplexer.
[19:07:00] <Fornaxian> not sure what you mean by "an analog front end" however.
[19:07:55] <Fornaxian> http://www.atmel.com/v2pfresults.aspx#(actives:!(8238,8394,8362,8282,8431,8300,8358,8392,8378,8445,8236,8449,8474,8248,8264,8447,8256,8254,8286,8462,8429,8458,8466,8400,8302,8278),data:(area:'',category:'34864',pm:!((i:8238,v:!(0,18)),(i:8394,v:!(0,20)),(i:8362,v:!(2,40)),(i:8282,v:!(0,1,2,3,4,5,6,7,8,9,10)),(i:8431,v:!(0,36)),(i:8300,v:!(1,9)),(i:8358,v:!(1,67)),(i:8392,v:!(0,1)),(i:8378,v:!n),(i:8445,v:!(0,3,4,5,6,7,8)),(i:8236,v:!(0,30)),(i:8449,v:!(0,1
[19:07:55] <Fornaxian> 0)),(i:8474,v:!(0)),(i:8248,v:!(0,1)),(i:8264,v:!(0,5)),(i:8447,v:!(0,1)),(i:8256,v:!(1,2,3,4)),(i:8254,v:!(10,15)),(i:8286,v:!(0,3)),(i:8462,v:!(0,8)),(i:8429,v:!(1,10)),(i:8458,v:!(0,5)),(i:8466,v:!(1,2,3,4)),(i:8400,v:!(0,20)),(i:8302,v:!(0,1,2)),(i:8278,v:!(0,1,2))),view:list),sc:1)
[19:07:58] <Fornaxian> hmm
[19:07:59] <Fornaxian> hmmth
[19:08:03] <Fornaxian> that didn't paste well.
[19:08:06] <Tom_itx> holy crap
[19:08:41] <Fornaxian> yeah.
[19:09:01] <Fornaxian> I took the one from malinus and did the search for 14 or more ADC channels.
[19:15:28] <Fornaxian> dang..attiny828 has 28 adc channels.