#avr | Logs for 2013-10-18

Back
[02:30:10] <megal0maniac_afk> http://www.design.caltech.edu/erik/Misc/Twain_english.html
[02:41:52] <megal0maniac_afk> If one has multiple interrupts set, do you just make multiple ISR() function (overloading?) with the different vectors?
[03:00:16] <Valen> megal0maniac_afk: yes
[03:50:32] <vsync_> are those usb scopes any good? got a pretty good bench scope at work but was thinking maybe could get something more compact for home
[03:50:54] <vsync_> or i mean pc scopes
[03:52:51] <twnqx`> mh, there was some kind of test in one of the recent EDN newsletters
[03:53:01] <twnqx`> let me see if i can find it, in case that helps
[03:53:33] <vsync_> sure
[03:56:19] <Valen> http://dx.com/p/usb-av-usb-power-current-voltage-tester-translucent-blue-silver-235090 looks kinda handy
[03:56:33] <Valen> oh crap, i'm browsing DX
[03:56:38] <Valen> SOMEBODY HELP
[03:57:55] <twnqx`> hm, can't find it :(
[03:58:05] <twnqx`> but i remember he was saying that those are quite nice
[03:58:22] <twnqx`> but have pretty different software
[04:01:32] <vsync_> mmeh
[04:01:57] <vsync_> checking out picoscopes... can get the older model rigol with the same price, and i still think bench scopes are better...
[04:02:10] <vsync_> disappointing
[04:02:14] <twnqx`> http://www.embedded.com/electronics-blogs/break-points/4025528/Scoping-out-palm-sized-USB-oscilloscopes
[04:02:26] <twnqx`> browser history for the win
[04:03:15] <vsync_> thanks1
[04:03:18] <vsync_> !
[04:04:45] <vsync_> yeah. those are way beyond what i want to pay for a home scope though
[04:04:51] <vsync_> like the pico is 200 MHz
[04:07:15] <Valen> what about those ones with like the 3.5" screen?
[04:07:41] <Valen> I'm suprised there isn't a bluetooth one with an android app where the whole thing is built into the probe
[04:09:21] <w|zzy> http://www.osciprime.com
[04:10:10] <w|zzy> vsync_: which country are you in?
[04:13:21] <twnqx`> if i would ever buy a scope i wouldn't go below 200
[04:13:57] <twnqx`> hell, 80mhz is what you can find on SPI these days
[04:16:15] <Joggl> for your applications the dso-nano is doing well twnqx` ;)
[04:16:18] <w|zzy> I've got a rigol ds1102e
[04:16:32] <twnqx`> wtf happend with my nick
[04:16:58] <Joggl> agilent DSO3000-series ftw!!
[04:23:08] <w|zzy> expensive
[04:27:36] <Valen> I am seriosuly thinking a logic analiser would be more useful to me than a scope is
[04:27:48] <Valen> I mean most of what i do is digital
[04:28:57] <w|zzy> where do you live Valen ?
[04:29:29] <Valen> sydney australia
[04:29:36] <Valen> (penrith to be precise)
[04:30:07] <Valen> I do have a tek700mhz scope but theres been more than a few times lateley a logic analiser would have been really helpfull
[04:30:34] <w|zzy> Cool. I don't go out there much anymore. I can send you and ols to play with. what os?
[04:31:23] <Valen> what is an ols?
[04:31:44] <Valen> http://dangerousprototypes.com/docs/Open_Bench_Logic_Sniffer ?
[04:32:08] <w|zzy> yes
[04:41:08] <Roklobsta> Valen: what are you makign?
[04:41:28] <Valen> lots of stuff
[04:42:08] <Roklobsta> work or play?
[04:42:14] <Valen> work
[04:42:48] <Roklobsta> company url?
[04:44:48] <Valen> eh nothing has been made onto there
[04:44:54] <Valen> but vapourforge.com
[04:45:01] <Valen> thats my computer stuff
[04:47:37] <Valen> some stuff i have made electronics wise is here http://valen00.imgur.com/all/
[04:50:08] <Roklobsta> not public
[04:50:13] <Roklobsta> interesting.
[04:50:24] <Roklobsta> capour i mean
[04:50:26] <Roklobsta> v
[04:54:18] <Valen> Roklobsta: try http://imgur.com/a/S5ObE
[04:54:46] <Roklobsta> i smell lufa
[04:54:58] <Valen> yup
[04:55:20] <Roklobsta> what does that do and will you get it ctick approved?
[04:55:25] <w|zzy> What are they?
[05:39:45] <zmo> hi!
[05:40:17] <zmo> I'm using the AVR Dragon as ISP flasher at the time being, and I'd like to use it to reset my target MCU
[05:41:12] <zmo> at the time being I'm using "avrdude -V -F -p atmega2560 -P usb -c dragon_isp -b 115200" to make it reset
[05:41:25] <zmo> but I'd prefer a faster solution, if there is any
[05:42:10] <zmo> I mean, it's basically asking the dragon to put the RST line LOW
[05:42:25] <zmo> but I don't find an avrdude command that can tell the dragon to do so
[05:43:45] <megal0maniac_afk> man avrdude?
[06:33:30] <zmo> megal0maniac_afk - well, I've read it, there's only the -E who handles the reset signal with the reset/nreset values
[06:33:47] <zmo> but I'm not sure it's a fast way to get it done, and if does actually what I'd like it to do
[06:37:28] <zmo> and anyway, `WARNING: -E option not supported by this programmer type` for the avr dragon
[06:39:27] <GargantuaSauce> zmo: have you tried just -p and -c with no other options
[06:39:51] <GargantuaSauce> it resets for me in the process of getting the device signature
[06:40:59] <zmo> GargantuaSauce - indeed, but I'd love to have the reset done without having it getting the device signature, and taking like 1s only getting and display it
[06:41:11] <zmo> just reset and exit
[06:41:11] <GargantuaSauce> 1s??
[06:41:43] <GargantuaSauce> it takes 180 milliseconds for me
[06:41:51] <GargantuaSauce> with an avr-isp / atmega8
[06:42:22] <zmo> it taikes 3.878 total, using "time avrdude ..."
[06:42:32] <GargantuaSauce> i dunno about fancy jtag and dragons but that's slow as balls
[06:42:35] <zmo> whereas it's only 0.15s to read the signature
[06:42:44] <zmo> I'm using the dragon as isp, not jthag
[06:42:47] <zmo> -h
[06:50:50] <GargantuaSauce> tried my 2560
[06:50:52] <GargantuaSauce> 180ms
[06:51:09] <GargantuaSauce> conclusion: use a $5 programmer instead of an overpriced piece of garbage
[06:52:39] <GargantuaSauce> http://dx.com/p/148046
[07:08:02] <vsync_> this comp so slow, can't open link. Does that do HV?
[07:10:28] <zmo> GargantuaSauce - did you test it with `time` ?
[07:10:48] <vsync_> that thing looks like the usbasp, with which i had a lot of trouble with extremeburner
[07:10:49] <zmo> GargantuaSauce - I only bought the dragon because I can use debugwire with it
[07:10:50] <GargantuaSauce> real 0m0.183s
[07:11:05] <zmo> GargantuaSauce - it's not the real that matters, it's the total
[07:11:24] <vsync_> happened with flashing bigger hexes, it always failed the verification
[07:11:26] <zmo> I don't care how much it took from the CPU, I care about how long it took the terminal
[07:12:18] <GargantuaSauce> that's what real is
[07:13:31] <GargantuaSauce> vsync_: yes it is usbasp, and i don't think it does hv programming
[07:14:00] <zmo> I haven't got the GNU time, I got the BSD/Darwin/Apple one
[07:14:02] <zmo> 0.03s user 0.09s system 3% cpu 3.878 total
[07:14:57] <GargantuaSauce> real 0m0.183s user 0m0.017s sys 0m0.003s
[07:15:30] <GargantuaSauce> real is equivalent to total. and i would also be happy to blame apple :V
[07:15:38] <zmo> :-)
[07:15:46] <zmo> I'm always happy to blame apple
[07:16:16] <zmo> I'm on a mac only because I got one for free, and I never spit on a >$2000 hardware that I can get for free
[07:20:50] <Steffan-> i remember i had similar issues with the avrispmkii ( clone from abcminiuser and tom )
[07:20:57] <Steffan-> Also avrdude + os x
[07:22:21] <zmo> ok
[07:22:35] <Steffan-> Never solved it, and gave up on it :(
[07:23:57] <zmo> well, ultimately, I guess my best option will be to either change my laptop
[07:24:06] <zmo> or do a reset with my screwdriver
[07:24:43] <Steffan-> run a vm :P
[07:25:21] <RikusW> the Lufa clone won't work in VirtualBox
[07:25:30] <RikusW> It seems the dragon won't either :(
[07:25:55] <Steffan-> it did for me iirc.
[07:26:27] <Steffan-> but it's a long long time ago
[07:27:40] <twnqx> given that the stk600 only works in vbox with an old firmware i guess avr doesn't like vbox
[07:33:55] <vsync_> GargantuaSauce: yeah usbasp doesn't
[07:34:22] <vsync_> and it's generally crap also
[07:35:09] <GargantuaSauce> haven't had any issues with it but also haven't used it too thoroughly
[09:40:19] <beaky> hello
[09:40:45] <beaky> i am building a switched mode power suply with avr
[09:40:52] <beaky> wish me luck :D
[09:41:01] <beaky> hope i dont explode anything...
[09:41:11] <beaky> (has anyone else done it before?)
[09:45:10] <theBear> which part of "you are not building a smps" did you not understand ?
[10:16:06] <megal0maniac_afk> Oh, but he is
[10:17:13] <theBear> nothing like a complex smps to save the resistor drop driving an led of an io pin
[10:28:16] <specing> beaky: been there done that
[10:28:30] <specing> And no, I will not hold your hand through it
[11:21:32] <beaky> http://www.atmel.com/zh/cn/Images/Atmel-42183-Design-a-Buck-Converter-with-XMEGA-E_AP-Note_AT04204.pdf atmel has a good guide on it
[11:24:47] <specing> jackpot
[13:46:26] <N1njaneer> 0/~ You're a rich girl, and you've gone too far 'cause you know it don't matter anyway... o/~
[13:46:34] <N1njaneer> Because it's ALWAYS time for Hall And Oates.
[14:43:24] <beaky> how do i minimize avr power cosuption
[14:47:43] <vsync_> keep it idle
[14:47:53] <vsync_> ";D"
[14:48:13] <vsync_> better yet, unplug it
[14:48:46] <beaky> maybe I can pwm the power suply
[14:49:18] <vsync_> i'm not sure was he kidding or not
[14:51:45] <twnqx> he is so cluless
[14:51:51] <twnqx> that i'd say "not"
[14:52:29] <vsync_> pwming the power supply should be put on the topic
[14:53:04] <twnqx> it's like SMPSsing a LED. in software.
[14:53:24] <twnqx> i almost cracked my skull headdesking
[14:53:49] <vsync_> why haven't they ever figured this out in bigger scale
[14:53:54] <vsync_> think of all the energy saved
[14:55:05] <vsync_> everyone should pwm themselves, less energy wasted ergo less food needed
[14:55:25] <inkjetunito> lol
[14:57:03] <theBear> he was not kidding, he's been obsessed with smpsing things he doesn't comprehend all night
[14:57:15] <theBear> and this week he's started giving advice in the other channel, it's fucking horrible
[14:57:35] <N1njaneer> Why not use one of the nice little 8-pin SOIC's that require a diode, inductor, and couple resistors?
[14:57:59] <N1njaneer> Switching-mode, without the BANG
[14:58:26] <vsync_> everything requires power and everything wastes it as heat
[14:58:28] <theBear> because he'd rather ask 100 abstract questions and ignore the answers than read a datasheet he opens
[14:58:58] <theBear> the other day he asked something literally explained at length with maths on the ENTIRE first page of a datasheet
[14:59:10] <N1njaneer> vsync: Not my peltier junction! I put hot and cold on it an it MAKES power! :D
[14:59:53] <N1njaneer> theBear: So, he's like an armchair engineer with a microphone. :)
[15:00:58] <theBear> he's like an asylum inmate
[15:02:21] <vsync_> hmmmm
[15:02:57] <vsync_> maybe
[15:03:03] <vsync_> could come up with something here
[15:06:14] <vsync_> or not. Should give him something to do then, though
[15:16:41] <theBear> and he somehow didn't workout that if components fall off when you shake a soldered veroboard that it's a construction problem, not veroboard sucking
[15:18:42] <N1njaneer> Perhaps he should persue a job at Microsoft working on Win8
[15:18:56] <N1njaneer> Because that sounds about on par with how engineering is approached over there
[15:20:29] <theBear> heh
[15:20:54] <theBear> anyone remember how old he is ? i'm sure we squeezed it outta him some months ago, but my memory aint what it useed to be
[15:23:11] <specing> 21:38 < vsync_> pwming the power supply should be put on the topic
[15:23:12] <specing> 21:38 < twnqx> it's like SMPSsing a LED. in software.
[15:23:16] <specing> HAHAHAHAHAHAHAHAHHAHAAHHAHA
[15:23:57] <twnqx> <theBear> nothing like a complex smps to save the resistor drop driving an led of an io pin <-- in case you need context
[15:24:40] <twnqx> in reply to <beaky> hello
[15:24:40] <twnqx> <beaky> i am building a switched mode power suply with avr <beaky> wish me luck :D <beaky> hope i dont explode anything...
[15:26:25] <theBear> this from a guy who smoked SOMETHING with a simple 2 resistor + shunt at VERY low test current circuit 2 days ago, and still can't solder a veroboard so components don't FALL OUT
[15:27:00] <theBear> and still spends half his time asking/saying what is the best
[15:27:07] <theBear> as in "what is the best transistor"
[15:30:20] <juri_> what is the best way to jump from bootloader code to application code on an m8535? ;)
[15:30:53] <twnqx> what is the best way to clean a laptop keyboard that is sticky from an exploded apple juice-soda bottle? :X
[15:31:19] <inkjetunito> get a replacement
[15:32:03] <twnqx> it's already the second :X
[15:32:26] <prpplague> twnqx: a spray bottle of alcohol and a can of compressed air
[15:36:01] <juri_> and a lighter.
[15:47:40] <vsync_> and an oxygen tank
[15:49:50] <vsync_> step one, remove the sprayer cap from the bottle and drink the booze
[17:20:23] <megal0maniac_afk> beaky is fun to listen to
[17:20:33] <megal0maniac_afk> theBear: Where was he giving advice?
[17:31:45] <jadew> ColdKeyboard, hey, I'm available now
[18:09:50] <TechIsCool> anyone worked with the nrf24l01? I am having difficulties sending to more than one device not sure what I am doing wrong.
[18:19:23] <N1njAway> Tech: Try yelling and use a bigger hammer. :D
[18:19:28] <N1njAway> +at it
[18:19:32] <N1njAway> A METRIC hammer
[18:19:36] <N1njAway> I'm out! :D
[18:24:23] <theBear> megal0maniac_afk, electronics channel :(
[18:24:38] <theBear> why are these nrf24l things so damned popular this week ?
[18:25:35] <twnqx> why are people combining 8bit µCs with ethernet >_>
[18:25:42] <OndraSter__> same thing twnqx
[18:25:52] <OndraSter__> 10Gbit ethernet is the same as 16MHz atmega
[18:26:30] <TechIsCool> N1njAway: I wish
[18:26:40] <TechIsCool> theBear: They are cheap
[18:27:40] <theBear> but they're just proms, why that specific one this week ? i never heard of nrf proms till this week
[18:27:45] <theBear> least i assume they proms from the number
[18:28:13] <TechIsCool> I have brought it up twice or so this week
[18:28:38] <theBear> not just you, random people in electronics channel been asking too
[18:28:54] <TechIsCool> might have been me I was cross posting
[18:29:02] <TechIsCool> just to see if I could get traction
[18:29:35] <theBear> with a different name and asking what micros can do spi and i2c and being pleased to discover avrs ?
[18:29:41] <theBear> for a most recent example
[18:29:46] <TechIsCool> oh no not me
[18:29:47] <jadew> theBear, they're RF chips
[18:30:00] <jadew> cheap way into 2.4Ghz
[18:30:27] <TechIsCool> I think it could actually be cheapest since I have yet to see anything cheaper
[18:30:44] <theBear> really ? why they called 24l01 then ? that's a bit confusing
[18:31:02] <jadew> http://www.ebay.co.uk/itm/1X-NRF24L01-2-4GHz-Antenna-Wireless-Transceiver-Module-For-Microcontroller-ItS7-/400584228283?pt=UK_BOI_Electrical_Test_Measurement_Equipment_ET&hash=item5d44ae3dbb
[18:31:10] <TechIsCool> https://www.sparkfun.com/datasheets/Components/SMD/nRF24L01Pluss_Preliminary_Product_Specification_v1_0.pdf
[18:45:20] <Fornaxian> theBear, hence the nrf in front of the numbers..
[18:45:31] <Fornaxian> nordic rf devices.
[18:46:06] <theBear> mmmm, lotta proms over the years had letters in front
[18:46:14] <theBear> atmel ones for example, if i'm not mistaken
[22:04:43] <MarkX> hi
[22:07:45] <juri_> hio!