#avr | Logs for 2011-10-22

Back
[00:30:32] ifny_ is now known as ifny
[02:22:46] <inflex> oh hilarious - got a perfect cut-through this time but I can't remove the tape layer I used to stop the bits flying around *sigh*
[02:43:42] <amee2k> mmh, where does atmel have the parametric tables they used to have? i can't find them again >_<
[03:01:53] <soul-d> parametric you mnean those compare excell type sheets ?
[03:02:58] <amee2k> yeah, exactly these
[03:03:55] <soul-d> instead of the name click on "view parameters" -> mega avr -> http://www.atmel.com/dyn/products/param_table.asp?category_id=163&family_id=607&subfamily_id=760&OrderBy=part_no&Direction=ASC
[03:04:49] <amee2k> hmm i see
[04:59:14] <amee2k> i've got a Dallas DS12B887 rtc module. if the datasheet doesn't elaborate on the markings, any ideas on how i could identify the manufacturer's date code on it??
[04:59:46] <theBear> carbon dating ? <grin>
[05:00:27] <amee2k> the datasheet says it has an integrated lithium power source with a minimum shelf life of 10 years
[05:00:39] <amee2k> i want to find out if they're still good
[05:02:35] <theBear> if it's rechargable you could run it for a while, get a charge in there, check the datasheet for the battery "size" and do some rough maths on rundown/time-loss time
[05:03:25] <amee2k> well, the problem is the power source is not exposed and not (easily) replacable
[05:03:43] <amee2k> i don't have anything using them right now either, so i can't just stick it in and see if it works
[05:04:30] <amee2k> they were free though, i pulled them from some old P3 era mainboards when i threw them out. so they may or may not have a couple years left
[05:06:12] <amee2k> they aren't cheap, but still in production so if they work using them for projects would be an option. if it works out, i can always get a fresh replacement for permanent use
[06:34:29] <abcminiuser> I do love Reddit. "...would be like putting a koala bear in a racing car. It would have no idea what to do and eat the steering wheel."
[06:35:55] <Steffann> I hate reddit
[06:37:36] <Steffann> sometimes
[06:42:40] Steffann is now known as Steffanx
[06:59:28] <Valen> inflex: what you doin?
[06:59:37] <Valen> got a perfect cut-through this time but I can't remove the tape layer I used to stop the bits flying around *sigh*
[07:28:46] <inflex> Valen: stencils
[07:29:03] <Valen> milling them like mine?
[07:29:08] <Valen> ;->
[07:29:27] <inflex> nah, vinyl cutter
[07:29:30] <inflex> been doing it for years now
[07:29:51] <Valen> if you want some Al ones send me a can of beer and a gerber ;->
[07:29:53] <inflex> just sometimes it seems everything works against you, you find yourself not able to get a good one done :(
[07:33:07] <Steffanx> Poor you inflex :)
[07:33:49] <inflex> Steffanx: well, it's a major PITA when you waste a bunch of sheets trying to get it right
[07:35:16] <Valen> what is the material you use for the stencils inflex?
[07:36:13] <inflex> Valen: polycarbonate sheets
[07:36:30] <inflex> tough on the blade but they do last a lot of applications
[07:36:30] <Valen> didn't think they came that thin, where do you get em?
[07:36:41] <inflex> Valen: document protection society of Australia
[07:37:20] <inflex> or just use thin OHP transparencies
[07:38:38] <Valen> probably easier on the cutter than beer cans lol
[07:38:50] <inflex> true
[07:38:55] <Valen> what do you use to make the g code?
[07:40:35] <inflex> btw, I'm wrong, it's polyester - sorry
[07:41:22] <inflex> I dump HPGL from Eagle, then convert to DXF and edit in QCAD, then convert back to HPGL via my software which lets me set the number of times the blade goes over the same polygon
[07:41:47] <inflex> because I found it's near impossible to cut through it in 1 pass without shearing the sheet out from the friction rollers
[07:41:55] <inflex> but you can do it in 3 passes with ~140g pressure
[07:42:05] <inflex> http://www.preservationaustralia.com.au/products
[07:43:37] <inflex> basically I use 75um archival polyester
[07:44:12] <Valen> 10 meter roll would go a long way i'd imagine
[07:44:36] <Valen> i'll give overhead transperency sheet a go first, they are mylar too and probably cheaper
[07:44:52] <inflex> they used to sell me A4 sheets
[07:45:05] <inflex> was about $1/sheet if you bought 20+ of them, was vastly more convenient
[07:45:10] <inflex> Don't use 100um, it's just too thick
[07:45:44] <inflex> 75um is just about right for most SMD stuff in terms of getting the right amount of paste on... my preference would have been 50um though
[07:46:59] <inflex> (that's ~2 mil)
[07:48:11] * Valen prefers metric
[07:48:22] <Valen> anyway best get to bed
[07:48:25] <inflex> yeah well, 50um for you then :)
[08:12:50] <Tom_itx> inflex, at least you're not using kapton
[08:22:06] Graxe_ is now known as Graxe
[08:28:04] Graxe_ is now known as Graxe
[08:28:18] <inflex> ugh, tempco issues plaguing my LOM again
[08:28:32] <inflex> need something much bigger than 0805
[08:28:47] <inflex> 1206 is a nice start but I can only get 25ppm on that, rather than 10ppm on the 0805
[08:29:08] <inflex> and I cannot find anything in 2512 size :(
[08:29:11] <Tom_itx> for what?
[08:29:16] <Tom_itx> resistors?
[08:29:16] <inflex> my reference resistor
[08:29:24] <Tom_itx> and you can't double them up?
[08:29:51] <inflex> the tempco PPM is the bigger crux overall, so the resistor could be 1% but 10ppm and I'd be happier than with 0.1% 25ppm
[08:30:21] <inflex> mmmm... could try putting two 1206's beside each other
[08:32:06] <inflex> a nice 1W rated 0.1% 10ppm would be great
[08:32:45] <inflex> at maximum power, there's still only ~20mW going through the resistor, but it does make a noticable change in the resistance readings
[08:33:18] <inflex> (it's enough for about 7'C rise in the resistor, assuming ~350'C/W
[08:35:00] Graxe_ is now known as Graxe
[08:55:10] <inflex> someone check for me... 0.05% of 10,000 is 5 ?
[08:56:40] <inflex> which would mean that if my LOM was 0.05% accurate, it should be reading anything from 9995.00 ~ 10005.00 milliohms on my reference, which in turn means that I'm actually more like 0.025%
[08:56:43] <inflex> but I'm happy with 0.05%
[08:57:04] <Tom_itx> at least you're getting happier as time goes by
[08:57:55] * Tom_itx looks for his first wakeup cup
[09:01:44] <karl_> hah, already had three here :)
[09:05:13] <inflex> strange feeling watching something measuring 0.00005 ohms
[09:05:22] <inflex> (yes, 50micro-ohms)
[09:06:00] <inflex> and more amusing to watch the resistance of something climbing up as you hold it
[09:06:04] <inflex> (due to your body heat)
[09:20:25] <CapnKernel> inflex: You're having too much fun,
[09:28:57] <TwisteR> Is it possible to use this I2C level shifter http://pics.livejournal.com/alex_chin/pic/000013r7 for shifting 3.3V to 5V in UART?
[09:32:56] <Kevin`> TwisteR: I would expect it to work, but it's not ideal
[09:34:33] <TwisteR> why? except for not using bidirectional feature
[09:35:21] <Kevin`> it only drives low, high is handled by those resistors (as i2c normally does)
[09:35:33] <rue_bed> inflex, whats your sense current for measuring that?
[09:37:06] <TwisteR> Kevin`, what I like in this circuit is absense of signal invert and no voltage drop across p-n junction
[09:39:55] <TwisteR> are there any obstacles for UART if high level is handled by resistors?
[09:40:17] <Kevin`> ir might be too slow, depending on the baud
[09:40:25] <Kevin`> I would just stick a buffer after it
[09:40:44] <TwisteR> by baudrate is 9600
[09:40:54] <TwisteR> my*
[09:41:06] <TwisteR> so I think it should be ok
[09:55:50] <inflex> rue_bed: about 45mA
[09:56:24] <inflex> rue_bed: I've noticed a lot of commercial offerings use 250~1000mA
[10:14:57] Kevin is now known as Guest13453
[10:19:25] ifny_ is now known as ifny
[10:49:49] Tom_L is now known as Tom_itx
[10:51:57] <rue_mohr> wow, just 45 eh?
[10:52:15] <rue_mohr> thats got to be a hell of a noise compensation system
[11:14:56] <inflex> rue_mohr: mostly just good noise avoidance in the first place
[11:16:39] <devilsadvocate_> TwisteR: it wont work
[11:20:22] <TwisteR> devilsadvocate_, :(
[11:20:25] <TwisteR> why?
[11:21:01] <devilsadvocate_> TwisteR: i2c lines are open drain, so everything designed for it are specifically designed to work with open drain outputs
[11:21:53] <devilsadvocate_> TwisteR: it could work at low baud rates, though
[11:22:10] <TwisteR> is 9600 low enough?
[11:22:31] <devilsadvocate_> yeah
[11:22:43] <devilsadvocate_> and the schematic in the picture should not work for i2c
[11:36:32] ifny_ is now known as ifny
[11:55:01] <mapee> hello
[11:55:43] <rue_shop2> hey
[11:57:57] home_ is now known as home
[11:59:17] <vectory> meep
[12:39:19] <rue_shop2> :) yay my lcd's work
[12:40:22] <rue_shop2> now I just need to make a menu library
[12:47:10] <rue_shop2> anyone ever written a menu library to go with their lcd library?
[12:50:40] <rue_shop2> ok, iirc the idea is to have a control system where I can adjust some values up and down
[12:51:49] <rue_shop2> ok well I think part 2 is a working keyboard system
[12:53:03] <rue_shop2> I wonder how I should impliment a keyboard
[12:53:12] <rue_shop2> external controller?
[12:53:21] <rue_shop2> or a scanned matrix...
[12:53:43] <rue_shop2> I already have a 4 bit bus availabel from the lcd
[12:54:19] <rue_shop2> I wonder if it should be polled or interrupted
[12:54:48] <rue_shop2> should I just make a ps2 keybaord interface?
[12:54:52] <rue_shop2> hmmm
[12:55:03] <rue_shop2> na too work work decoding scancodes
[12:55:13] <rue_shop2> I want a slim library
[12:58:05] <rue_shop2> prettymuch all keyabrods are wired in matrixies
[12:59:09] <rue_shop2> I suppose the keybaord interface dosn't matter much right now,
[12:59:27] <rue_shop2> I can use anything and make a generic interface to the menu
[12:59:47] <rue_shop2> so I have 3 buttons on this screen
[13:00:08] <rue_shop2> I think I'll use the middle button to select the paramiter, and the left and right buttons to up and down the values
[13:00:15] <rue_shop2> or I could make a custom keybaords
[13:00:19] <rue_shop2> d
[13:00:20] <Steffanx> Yes, where's here rue_shop2 :P
[13:00:26] <Steffanx> *we are
[13:00:39] <rue_shop2> good stuff
[13:01:04] <rue_shop2> Steffanx, have you written a 447880 library yet?
[13:01:17] <rue_shop2> er HD44780
[13:01:48] <Steffanx> Didn't everyone write something like that at least once?
[13:01:52] <rue_shop2> there's 137 people here, I suspect 130 people here have written their own 44780 library
[13:02:02] <rue_shop2> Steffanx, so, have you?
[13:02:09] <Steffanx> Yeah, sort of
[13:02:14] <Steffanx> 3 years ago?
[13:02:19] <rue_shop2> k, did you ever make a menu system for using it?
[13:02:31] * rue_shop2 goes to dig thru his keybaords
[13:02:35] <Steffanx> No
[13:02:50] <Steffanx> I never used a LCD to show a menu
[13:03:01] <rue_shop2> OOOoo
[13:03:09] <rue_shop2> did you ever make a keyboard library?
[13:03:15] <Steffanx> No
[13:03:28] <Steffanx> ( Only in ASM for a PIC ) :P
[13:04:16] <rue_shop2> oooo I'll be the first
[13:04:52] <Steffanx> The projects i never finish never have an LCD :)
[13:06:40] <rue_shop2> hmm this little keybaord has two 74ls148 on it, wonder what their up to
[13:07:53] <rue_shop2> 8->3 priority encoder
[13:43:03] <grummund> rue_mohr: http://www.piclist.com/techref/microchip/4x4key4io8diode.htm
[13:43:13] <grummund> might be useful...
[14:39:48] <wrongle> afternoon guys :P
[14:40:07] <rue_shop2> mmm lunch
[14:41:32] <wrongle> so i've got a pretty sweet setup going on. my end goal for the next week or two is to have my board/programmer hooked up to a solar panel, read my 3.7v lithium ion battery charge, charge it and write that to an lcd. my board is up with temperature reading, light sensing, some leds a reset switch, a status rx/tx led ...
[14:41:32] <wrongle> if i were to order parts i know that i need an LCD, a solar panel, i have the battery. hmm what else?
[14:46:10] <specing> mosfets, inductors, rectifiers,..
[14:47:40] <wrongle> hmm 10 of these first? http://www.sparkfun.com/products/9541
[14:47:52] <wrongle> these + capacitors ...
[14:50:24] <specing> wrongle: buy some real cells if you want to charge a battery in your lifetime
[14:50:32] <wrongle> ok ...
[14:50:35] <wrongle> recommendations?
[14:50:45] <wrongle> I'm prototyping out a watch on a breadboard first ...
[14:50:58] <specing> Idk, I have a pile of them (10*6cm) from conrad
[14:50:59] <wrongle> with an atmega328p
[15:05:48] <grummund> Hey, anyone else on the lookout for Rosat?
[15:06:14] <Steffanx> No, link to the website with more info?
[15:06:26] <grummund> http://www.bbc.co.uk/news/science-environment-15402157
[15:06:47] <Steffanx> I actually meant a website with a map of the current position + altitude
[15:08:03] <grummund> that's what i'm looking for
[15:08:43] <grummund> might be possible to get a sighting if it overflies, but i'm not staying out in the cold all night :P
[15:08:44] <Steffanx> http://www.n2yo.com/?s=20638 there it is
[15:09:05] <grummund> http://www.n2yo.com/?s=20638 is the best so far, not sure how up to date it is though
[15:09:16] <grummund> snap :)
[15:09:20] <Steffanx> Oh, you also found that one
[15:56:18] Mowcius is now known as Guest93878
[15:57:12] Mowcius_Desktop is now known as Mowcius
[16:04:22] <rue_shop2> yay, my matrix keyboard scanner code works
[16:04:48] <rue_shop2> had to put a nop between writing to portb and reading the switches
[16:05:20] <vectory> why that?
[16:05:54] <vectory> wrote keypad code for a simulator last week, worked without nop x)
[16:06:32] <rue_shop2> good question, it seems if I read the pins right after writing to them, even with the overhead of a C if statement, its return results are erronious
[16:07:23] <rue_shop2> :) i have 4 arrow keys, an enter, and escape button
[16:07:42] <rue_shop2> key codes 246, 221, 238, 237, 235, and 189
[16:10:46] <rue_shop2> http://pastebin.com/JsNu7Bxs
[16:10:50] <rue_shop2> for anyone who is interested
[16:11:04] <rue_shop2> bits 0-2 are rows, 3-6 are columns
[16:11:14] <Landon> rue_shop2: for an actual keyboard?
[16:11:29] <rue_shop2> ...yes
[16:11:46] <rue_shop2> a 3x4 key matrix
[16:12:20] <Landon> oh, you had me confused at arrow keys, enter, and escape
[16:12:37] * Landon did keypad scanner code 2 weeks ago
[16:12:47] <rue_shop2> did you do menu code to go with it?
[16:13:23] <Landon> nope, just put a key into a buffer and left it at that for now
[16:13:31] <Landon> s/key/keycode/
[16:13:32] <vectory> same
[16:13:33] <vectory> i had the problem, that bit7 was something else and i would have to flip each bit manually, to not overwrite the 7th bit >_>
[16:14:15] <rue_shop2> you can use bitwise operators to mask in what you want
[16:15:02] <Landon> I did mine in assembly though, will be nice when I have a bit of an assembly library I can start porting to C for comparison
[16:15:04] <vectory> still, thats not as simple as rotating or shifting
[16:15:57] <vectory> at least in this case, writing in assembly
[16:45:12] <rue_shop2> well I have what I should need, a menu system I can scroll up and down thru paramiters and adjust them up and down
[16:46:42] <rue_shop2> http://pastebin.com/1AG2qm9w
[16:57:36] <rue_shop2> in the new gcc char is 16 bit...
[16:58:10] <rue_shop2> ah, no its not, interesting
[16:58:19] <rue_shop2> type conversion must be messed up
[16:58:42] <rue_shop2> its rolling between 65408 and 127
[17:31:14] <Tom_itx> rue_mohr
[17:31:29] <Tom_itx> what gcc ver are you using with the lcd code?
[18:06:38] <rue_shop2> 4.3.5
[18:07:09] <rue_shop2> and its runing at 1Mhz, so there is no way if they delay had been working that it would have been too fast
[18:45:56] marloshouse_ is now known as marloshouse
[19:08:32] ifny_ is now known as ifny
[19:55:19] <wrongle> hey guys. i see circuit diagrams all over the web. what's a good app (osx?) to document my circuit schematics?
[19:59:17] <vectory_> wrongle: eagle is free and quite popular
[19:59:42] <vectory_> then theres gEDA
[19:59:52] <vectory_> for linux at least
[19:59:57] <vectory_> and many many many others
[20:00:12] <vectory_> eagle has its caveats, i heard, never really tried
[20:01:37] <wrongle> ill check it out thx vectory_
[20:01:43] <wrongle> ty
[20:35:40] <inflex> all packages have their quirks
[20:35:52] <inflex> Eagle is nice in that it's widely available and works on multiple platforms
[20:36:43] <Tom_itx> i see 6 is on the way
[20:37:01] <wrongle> sweet
[20:37:03] <inflex> oh really... that'll be interesting
[20:37:07] <wrongle> playing with it now
[20:37:42] <theBear> and it's free for small stuff, and EVERYONE can get it in a reasonable amount of time money and effort
[20:37:49] <Tom_itx> http://www.cadsoftusa.com/
[20:37:58] <Tom_itx> they have a video
[20:38:01] <Tom_itx> i didn't watch
[20:38:21] <theBear> 6 on the way eh ? as i recall farnells first version was just adding a b.o.m and web-order integration, wonder if they've broken it or made it better with a major new version
[20:39:05] <Tom_itx> a few improvements it appears
[20:39:31] <inflex> doesn't appear to be -massive- improvements
[20:39:39] <inflex> though the reuse thing might be good
[20:39:47] <Tom_itx> i didn't fall outta my chair either
[20:40:37] <inflex> the arbritary pad shapes will be useful too in the library editor
[20:40:51] <Tom_itx> xml datafile
[20:40:54] <inflex> but it's more of an incremental thing - though I suppose the DB redesign to XML is the key aspect for moving to v6
[20:41:28] <wrongle> so this guy has a series of code that have been pretty useful, not as useful as Tom_itx s but pretty cool. One thing that i tried to figure out was PWM. his examples are all for the atmega168/328 and all work. except timers. the only thing i can think of is that i have a 16mhz external clock attached to it?
[20:41:29] <wrongle> http://pastebin.com/Q6M38SKm
[20:42:02] <theBear> xml sounds nice, not sure why yet, but easy to deal with... heck, maybe it'll become trivial to make a eagle -> netlist script
[20:42:54] <Tom_itx> yeah
[20:43:07] <Tom_itx> if it works
[20:43:44] <wrongle> i hate xml. but maybe that is because I'm used to smaller format files for fast transfer -> json (web/mobile)
[22:33:19] <geri> hi is there a channel for TI?
[22:35:25] <doublebeta> TI? Texas Instruments? You could try #Beagle.
[22:38:54] <inflex> ugh
[22:39:01] <inflex> better get to the workshop... buttload of work tod o
[22:41:55] <inflex> wth... my Xchat is crashing almost daily now
[22:42:34] * inflex prepares to submit LOM revision-14 *sigh*
[22:42:48] <inflex> this one I've changed to use 1206 or TO220-4 reference resistors
[22:43:06] <inflex> also changing the power board to provide a constant-current supply, rather than just the resistor supply
[22:52:33] <inflex> Seems silly though to be using a DPAK regulator for handling 45mA of current
[22:55:41] <geri> what is #Beagle? :D
[22:56:00] <geri> i mean texas intruments
[22:58:36] ifny_ is now known as ifny
[23:03:39] <inflex> ugh, wtf is going on
[23:53:07] <rue_mohr> Tom_itx, did you update your irq-flashled to not use the obsolete irq call?