#avr | Logs for 2012-05-29

Back
[00:00:11] <Casper> yup
[00:00:12] <Casper> HV
[00:00:31] * nevyn yay's he knew an answer ;)
[00:01:37] <iR0b0t1> Hmm
[00:01:49] <iR0b0t1> Does the AVR ISP mkII do high voltage?
[00:03:00] <iR0b0t1> nope, and I guess that was kinda a stupid question
[00:05:27] <drgreenthumb> 110VAC is pretty high voltage. that'll program it real hard. just ignore that smoke.
[00:07:00] <drgreenthumb> actually heh no that's a good question. I only have LV programmers here too
[00:08:15] <Casper> I wonder if the difference is only 12V instead of 0....
[00:10:48] <drgreenthumb> ah the stk500 did it but seems to be discontinued. what do the kids use these days? dragon?
[00:11:37] <Casper> ... arduino junk...
[00:11:40] <drgreenthumb> heh a web search brings up tons of home brew devices
[00:11:57] <Casper> but HV is alot more rare
[00:19:57] <iR0b0t1> balls
[00:20:02] <iR0b0t1> I really wanted that extra IO pin
[00:20:31] <drgreenthumb> heh this does it. only $999.95 ;) http://www.digikey.com/product-detail/en/PPM4-MK1%28UN%29/483-1021-ND/2004076
[00:21:08] <drgreenthumb> clarly I'm in the wrong business. I should be making ridiculously expensive AVR programmers.
[00:22:41] <iR0b0t1> I've always looked at those motor control boards and wondered... how many of those do they sell?
[00:22:53] <iR0b0t1> Saw them in a Jameco catalog.
[00:22:56] <iR0b0t1> Like.
[00:23:05] <iR0b0t1> $350ea, just casually put there...
[00:24:41] <drgreenthumb> for people who'd spend money rather than use their brain. thinking is hard.
[00:25:15] <drgreenthumb> making motor controllers is actually pretty hard :P
[00:25:50] <iR0b0t1> They're like these dumb USB things though
[00:25:56] <iR0b0t1> not like plug-in modules
[00:26:03] <iR0b0t1> I mean, for industrial control maybe
[00:26:04] <iR0b0t1> but
[00:26:04] <iR0b0t1> hm
[00:26:11] <iR0b0t1> I just don't see the market that must exist for those things
[00:26:25] <drgreenthumb> hrm even in industrial use USB motor control seems pretty odd.
[00:26:47] <iR0b0t1> And actually, you can often just buy a single-chip thing, produce the reference design, and then have a working motor controller.
[00:27:03] <slicetech> Hi all.... I'm looking for a good diagram to help me get a 2N7000 MOSFET working with my Nerdkits. I seem to have everything wired correctly, but can't get the nerdkits to turn off the mosfet. Anyone have an exampple?
[00:30:10] <iR0b0t1> ... you hook it up correctly?
[00:30:21] <iR0b0t1> MOSFETs are polarized.
[00:30:25] <iR0b0t1> They only work one direction.
[00:31:28] <slicetech> I think. If I hook the MOSFET gate to ground it turns off, if I hook it to voltage the MOSFET passes current... that works
[00:31:59] <slicetech> But when I supply current to the MOSFET using the Nerdkits it only turns on... taking away the current doesn't turn off the MOSFET
[00:32:55] <iR0b0t1> That means the gate wasn't connected to ground.
[00:33:23] <iR0b0t1> MOSFETs work on charge potential, so no current actually flows into or out of the gate pin. So if you turn it on and then leave it floating it can stay like that for a while.
[00:33:32] <slicetech> Thats the part I dont understand. The nerdkit is powered on a 5v circuit, and the mosfet is controlling a larger current... so its on a different circuit. How do I connect the MOSFET gate to ground using an MCU on a seperate circuit?
[00:33:39] <iR0b0t1> (Additionally, this is why they sell MOSFET drivers - the gate pin acts like a capacitor.)
[00:34:05] <iR0b0t1> slicetech: Tie the two grounds together
[00:34:08] <slicetech> MCU = the nerdkit
[00:34:41] <slicetech> looking for a wire, one sec
[00:37:39] <slicetech> OMG it works! iR0b0t1 you rock!
[00:37:45] <slicetech> Ive been at that for hours!
[00:38:59] <drgreenthumb> iR0b0t1 is not rock! he's lead and aluminium.
[00:39:10] <iR0b0t1> Actually I'm RoHS compliant.
[00:39:14] <drgreenthumb> hehe
[00:39:30] <iR0b0t1> slicetech: yes that occasionally bites me in the ass
[00:41:42] <slicetech> Haha, look at it... Little RC cart just took off... This is my first PC to RC project.
[00:42:07] <iR0b0t1> :D
[06:04:15] <anystupidnicknam> maybe a trivial question but i am trying to start some inline assembler. how do i get the value from a known adress in sram to a working register?
[06:04:58] <anystupidnicknam> is this the correct thing to do with the adress in Y? LD Rd, Y Load Indirect Rd ← (Y)
[06:07:23] <specing> yeah
[06:07:48] <specing> See avr-libc's inline asm guide
[12:04:33] <Tom_itx> haha ppl must have really griped about the load time on studio 5
[12:05:11] <Tom_itx> 25% better startup performance ... so the studio6 ad email says
[12:07:51] <OndraSter> it still takes ages here :P
[12:08:11] <Tom_itx> i downloaded it the other day but still haven't installed it
[12:08:23] <drgreenthumb> they probably removed a few "speed up loops" :P http://thedailywtf.com/Articles/The-Speedup-Loop.aspx
[12:08:25] <Tom_itx> i don't have a week's vacation to burn on that
[12:09:20] <Tom_itx> df, there were some patches for the studio framework ms came out with for 5 that was supposed to help. maybe they just encorporated them into it
[12:10:13] <drgreenthumb> heh I haven't even tried Studio in years. I actually like avr-gcc and make for some reason.
[12:11:33] <Tom_itx> that's what i use
[12:11:42] <Tom_itx> i download with studio and that's about it
[12:12:15] <drgreenthumb> really? huh I would have thought avrdude.
[12:12:26] <drgreenthumb> I mostly use that and Flip.
[12:13:37] <drgreenthumb> mmm my LCD should come today hopefully. this afternoon should be fun :)
[12:14:41] <drgreenthumb> read in their forums that this thing http://www.newhavendisplay.com/nhdffc37-p-2483.html comes with solder on the pads already.
[12:14:53] <drgreenthumb> weird right? what kind of solder can you ship on a board?
[12:15:30] <Tom_itx> rohs so tin
[12:15:46] <Tom_itx> just pretinned boards
[12:16:03] <drgreenthumb> oh. heh. well that's easy.
[12:16:19] <drgreenthumb> I thought it would be wet solder paste or something :)
[12:16:52] <drgreenthumb> probably try to replicate the technique when I make a board.
[12:49:24] <Tom_itx> just order them pretinned
[12:50:53] <drgreenthumb> maybe. but then it'll get cooked three times. guess that's not a big deal.
[12:51:16] <drgreenthumb> I could just tin it with solder paste while I do the SMT stuff
[12:51:31] <drgreenthumb> then go back with an iron and affix the LCD
[12:55:14] <drgreenthumb> beeeeep! coffee ready.
[13:21:17] <OndraSter> Tom_itx, when you were building your oven, did you use some tutorial or made it all up? :)
[13:22:15] <Steffanx> Iirc he got part of his code from inflex, so perhaps he knows more ..
[13:24:36] <Tom_itx> inflex helped quite a bit
[15:10:14] <amee2k> hmm
[15:10:39] <amee2k> if something like a power strip is rated for 250Vac, is it generally safe to use it for ~300-350Vdc ?
[15:11:39] <prpplague> hehe
[15:11:49] * prpplague would like to see someone using 300Vdc
[15:12:02] <amee2k> actually, i want to use just that
[15:12:24] <prpplague> amee2k: what are you driving at 300Vdc?
[15:14:00] <amee2k> various SMP loads. i've got a project idea to make a big APFC box that feeds a 320Vdc bus
[15:14:24] <amee2k> all the SMP loads with rectifier front-ends don't care if they're fed with AC or DC (as long as you don't run them in voltage-muliplier configuration
[15:14:53] <amee2k> more of a gadget project really, but i'd use regular mains wiring stuff to distribute the DC bus
[15:16:26] <amee2k> hence why i'm wondering if that would exceed the ratings required by regulation from 230V mains equipment
[15:16:49] * prpplague is not familiar with the acronyms of SMP(symetrical mutli-processing) and APFC
[15:17:04] <amee2k> Switch Mode Power supply, and Active Power Factor Correction
[15:17:23] <prpplague> amee2k: ahh interesting
[15:18:30] <amee2k> :)
[15:18:49] <prpplague> not my area, hehe
[15:18:59] <amee2k> the idea popped up when i noticed how small and simple the APFC module in my computer power supply really is
[15:19:34] <amee2k> if i pull the magnetic cores from some old power supplies, i think i could make a few-hundred-watt class APFC box for stand alone use
[15:24:03] * prpplague doesn't do much power supply work
[17:32:44] <drgreenthumb> doh! just got tracking #. LCD doesn't arrive till Thursday. ah well, I'll try to write some code in prep.
[17:33:56] <drgreenthumb> this looks pretty easy to port. http://www.newhavendisplay.com/app_notes/NHD-1-8-128160ZF.txt
[17:38:08] <OndraSter> hmm the LCD has builtin driver?
[17:40:42] <drgreenthumb> LED driver or controller?
[17:42:33] <drgreenthumb> the LED circuit is dead simple and on my actual board I'll put a constant current driver. just a resistor for prototyping.
[17:42:58] <drgreenthumb> the controller means I don't have to constantly send RGB signals
[17:43:11] <drgreenthumb> so in other words, it has it's own memory.
[17:43:25] <drgreenthumb> 8080 interface or something like that, according to the docs.
[17:43:27] <OndraSter> LCD controller
[17:43:38] <OndraSter> I said LCD :P
[17:43:40] <OndraSter> yes
[17:43:43] <OndraSter> it has then builtin
[17:43:58] <OndraSter> I want to use either 640x480 or 800x480 with RGB interface
[17:44:05] <OndraSter> and probably use CPLD with external memory as the controller
[17:44:11] <OndraSter> because it will be easier to work with
[17:44:16] <OndraSter> "easier"
[17:44:23] <OndraSter> = it will be working as DRAM controller, too
[17:44:32] <drgreenthumb> heh you can just build a resistor ladder and cut up an old VGA monitor panel
[17:44:38] <drgreenthumb> easy
[17:44:55] <drgreenthumb> oh heh. except for having enough RAM ;p
[17:45:27] <drgreenthumb> timing in an AVR without a DRAM hardware controller would be tight
[17:45:52] <drgreenthumb> you'd have to read pixels in during the porch pixels or something.
[17:48:53] <OndraSter> you don't fit VGA monitor in your pocket usually
[17:49:04] <OndraSter> software DRAM controller is not a problem on AVR :P
[17:49:27] <OndraSter> 1MB DRAM back from 386 I had here lying around (30pin SIMM) takes about 10% of the CPU to refresh @ only 8MHz
[17:49:48] <OndraSter> took me really like an hour or so to wire it up and write the controlling firmware for it
[17:49:52] <OndraSter> (mixing asm with C)
[18:00:01] <drgreenthumb> oh heh for something portable. well still, don't those have pixel clocks similar to VGA? so like a 25MHz+ dot clock?
[18:00:42] <drgreenthumb> did AVRs suddenly get really fast when I wasn't looking? ;p
[18:03:26] <OndraSter> no
[18:03:33] <OndraSter> dot clocks are like 6.5MHz for 320x240
[18:03:37] <OndraSter> haven't checked for higher resolutions
[18:03:41] <OndraSter> but it is proportional :)
[18:03:46] <OndraSter> resolution * 60
[18:04:55] <OndraSter> + something more
[18:05:00] <OndraSter> there are pixels "not being drawn" outside
[18:05:06] <drgreenthumb> oh so only 23Mhz for your 800x480 one then :P
[18:05:16] <OndraSter> that's why I said CPLD :)
[18:05:18] <drgreenthumb> yes thats what I meant by "porch pixels"
[18:05:27] <drgreenthumb> you can do other work while that's happening
[18:05:32] <OndraSter> ye
[18:05:50] <OndraSter> again, CPLD that has internal clocks reaching 400MHz it is not really a problem :)
[18:06:26] <drgreenthumb> oh somehow I missed the CPLD idea the first time. yeah that could work.
[18:06:38] <drgreenthumb> make it be like a shift register to the AVR
[18:07:12] <OndraSter> actually there won't be AVR
[18:07:17] <OndraSter> there will be 100 - 400MHz ARM :)
[18:07:18] <drgreenthumb> or whatever uC :P
[18:07:20] <drgreenthumb> heh
[18:07:43] <OndraSter> I thought about picking up some with external DRAM interface
[18:07:45] <drgreenthumb> this is actually #avr :P
[18:07:49] <OndraSter> but it is hard to find something that would fit my needs
[18:07:50] <OndraSter> yeah
[18:08:34] <drgreenthumb> heh with an ARM just get one with memory and LCD controller built in
[18:08:41] <drgreenthumb> why mess with CPLD
[18:08:53] <OndraSter> the LCD controllers are hard to find that would fit my needs
[18:09:08] <OndraSter> plus you need a lot of IOs to handle these LCDs + external memory... and it is all BGA :(
[18:09:11] <OndraSter> usually
[18:09:14] <drgreenthumb> heh yeah
[18:09:21] <OndraSter> CPLDs are in 208 pin QFPs
[18:09:28] <OndraSter> MCUs or MPUs not much
[18:09:35] <OndraSter> I think TI could have something
[18:09:36] <drgreenthumb> lol that's a beast
[18:09:42] <OndraSter> not really :)
[18:09:50] <OndraSter> there are 800+ pin CPLDs :P
[18:09:57] <OndraSter> 900+ pin as well
[18:09:59] <OndraSter> BGAs
[18:10:01] <drgreenthumb> I mean a 208 QFP
[18:10:02] <OndraSter> of course!
[18:10:03] <OndraSter> oh
[18:10:10] <OndraSter> still not a beasty enough!
[18:10:14] <drgreenthumb> heh
[18:10:23] <drgreenthumb> what is it like 2 inches across? :P
[18:10:24] <OndraSter> if I had reflow oven I would try BGA
[18:10:29] <OndraSter> heh nope
[18:10:35] <OndraSter> 1x1 or so
[18:10:38] <drgreenthumb> heh
[18:11:14] <drgreenthumb> I like components that I can pick and place with tweezers easily :P
[18:11:19] <OndraSter> :D
[18:11:26] <OndraSter> BGAs! they don't have any legs :P
[18:11:29] <drgreenthumb> hehe
[18:12:51] <OndraSter> holy cow, those ARMs with LCD from TI (looking at cortex a8 or ARM9) have even 1gbit ethernet
[18:12:54] <OndraSter> I don't need one!
[18:13:13] <OndraSter> I don't need CAN bus either
[18:13:24] <drgreenthumb> so you can stream all those pixels to fill the LCD :P
[18:14:17] <drgreenthumb> walking around with your handheld tethered to an ethernet cable does kinda suck. especially in traffic.
[18:15:07] <OndraSter> arrgh all are NFBGA
[18:15:12] <OndraSter> :D
[18:15:19] <OndraSter> http://eu.mouser.com/ProductDetail/Texas-Instruments/XAM3359ZCZ/?qs=Brs2XCuyt3fgPulzoDQTgvJ9ApN6Y6DutuCjwF%2f7vs0%3d
[18:16:17] <drgreenthumb> 23.3 GBP? bit expensive eh?
[18:16:30] <OndraSter> 23.3 eur
[18:16:35] <OndraSter> well
[18:16:35] <drgreenthumb> oh
[18:16:36] <OndraSter> yes
[18:16:38] <drgreenthumb> well still
[18:16:39] <OndraSter> but that is 1pcs
[18:16:47] <OndraSter> if you go for big projects you expect to make hundreds :)
[18:16:55] <OndraSter> 100 is "only" 19€
[18:17:00] <drgreenthumb> heh
[18:17:03] <OndraSter> 250 is 17€
[18:17:06] <OndraSter> anyway
[18:17:23] <OndraSter> http://eu.mouser.com/ProductDetail/Atmel/ATXMEGA256A3U-MH/?qs=HbI%2fMOA3e15fnIiDkevT%252bwT3iygj8uhPX6GR9qR6sjc%3d
[18:17:29] <OndraSter> this is my current hit I am making breakout board for
[18:17:34] <OndraSter> still thinking about some "bootloader" button
[18:18:14] <OndraSter> I posted here images of the board earlier previous week(s)
[18:18:26] <drgreenthumb> oh is it that long DIP shaped board?
[18:18:32] <OndraSter> ye
[18:18:36] <drgreenthumb> cool, looks nice
[18:18:48] <OndraSter> I need some animal as a symbol for it, though!
[18:18:56] <OndraSter> my other board I was working on and now is iced has Tiger :D
[18:19:14] <drgreenthumb> just do what Tom_itx did. tie HWB to ground through a resistor and then connect reset as a PGM button. that's right isn't it Tom_itx?
[18:19:32] <OndraSter> I know what I should do
[18:19:38] <OndraSter> but I am not sure whether I should do it :)
[18:19:40] <OndraSter> I suppose I could
[18:19:49] <OndraSter> and if it is pressed and MCU resets, I can read it in bootloader and stay there longer
[18:19:50] <OndraSter> for example
[18:20:20] <OndraSter> guys, what push buttons @ mouser do you use? I find milions but they are like .5€ :o
[18:21:12] <OndraSter> by milions I mean 137
[18:21:38] <drgreenthumb> are you looking at tactiles?
[18:21:56] <OndraSter> yes
[18:22:00] <OndraSter> http://cz.mouser.com/Electromechanical/Switches/Pushbutton-Switches/_/N-5g30?P=1z0z7ptZ1z0jlvr&Keyword=push+button&FS=True&Ns=Pricing|0
[18:22:44] <drgreenthumb> heh I have a bunch of those 506-1571563-9
[18:22:55] <drgreenthumb> they don't fit so great on a breadboard :/
[18:23:04] <drgreenthumb> they pop off like toast popping up :o
[18:23:05] <OndraSter> these are all SMD
[18:23:08] <OndraSter> heh
[18:23:13] <OndraSter> I have thruholes here too
[18:23:14] <drgreenthumb> oh. heh well same model but with pins.
[18:23:17] <OndraSter> and they pop out as wel
[18:23:18] <OndraSter> well
[18:23:50] <drgreenthumb> oop laura wants to play some games, bbl!
[18:24:07] <drgreenthumb> probably fallout new vegas. maybe we'll finish someday.
[18:24:20] <OndraSter> laura?
[18:24:24] <drgreenthumb> wifey
[18:24:27] <OndraSter> wow
[18:24:31] <OndraSter> gaming wifey?
[18:24:35] <drgreenthumb> :)
[18:24:48] <OndraSter> let alone fallout wifey!
[18:25:16] <OndraSter> arrgh since updating adobe reader this morning it keeps telling me "haven't checked for updates for too long!"