#avr | Logs for 2013-09-09

Back
[00:00:01] <jadew> well, I wouldn't say no to 1mV resolution either, I like things to be precise :)
[00:00:12] <jadew> heh w|zzy
[00:00:21] <Casper> jadew: then the pic I saw is the wrong one.. on the back it's the trigger input
[00:00:33] <jadew> I really want to get the 4000 series, but then again... I'd rather get a car
[00:01:03] <w|zzy> no way i could swing $4000 past the mrs
[00:01:16] <w|zzy> I must control my urges.
[00:01:17] <jadew> Casper: http://int.rigol.com/download/Oversea/DS/Datasheet/DS1000Z_DataSheet_EN.pdf
[00:01:24] <w|zzy> I only use the damn scope a couple of times a week!
[00:01:40] <jadew> w|zzy, same here, but it's so cool :D
[00:02:07] <jadew> hopefully I'll get a decent scope at some point
[00:02:16] <Casper> jadew: that's the non-sig gen
[00:02:19] <jadew> I need 4 channels and high bw
[00:02:49] <jadew> Casper: page 2
[00:02:50] <w|zzy> I have a mate with a Leroy wave surfer
[00:02:55] <w|zzy> so beautiful
[00:02:58] <Casper> oh I see...
[00:02:58] <jadew> Source 1 and Source 2 are the outputs I think
[00:03:10] <Casper> not trigger, but source...
[00:03:54] <jadew> w|zzy, that must be expensive
[00:04:19] <w|zzy> he paid 10k
[00:04:51] <jadew> damn...
[00:05:23] <w|zzy> he designs drive systems
[00:05:30] <Casper> so... basically, the sig gen and non-sig gen enabled one are the same... hmm
[00:05:37] <Casper> I wonder the cons of the combo unit
[00:05:38] <jadew> I could get that kind of money past the wife, because I mentioned the 4000 series to her
[00:05:48] <Casper> space is also a reason why I want to replace my scope
[00:05:51] <jadew> however she said: "but don't tell anyone how much you paid for it"
[00:05:56] <Casper> a 2 in 1 is interresting
[00:06:28] <w|zzy> Casper look around on eevblog..
[00:06:41] <w|zzy> might be a way to unlock the Sig gen in software
[00:07:03] <Casper> w|zzy: I doubt it, I doubt that they put the hardware in it
[00:07:18] <jadew> yeah, I don't think they put the hardware in
[00:07:40] <jadew> I'm planning on making my own sig gen
[00:07:42] <w|zzy> fair.
[00:07:52] <jadew> but I'm not 100% sure it's still worth it
[00:07:58] <w|zzy> make it nice and I'll buy one jadew
[00:08:45] <jadew> w|zzy, that's my plan, to make it nice :)
[00:09:26] <jadew> speaking of which...
[00:09:43] <jadew> any idea what exactly 25Mhz means when talking about a AWG?
[00:09:57] <jadew> because an AWG outputs POINTS
[00:10:28] <jadew> you specify your wave and it outputs it, now... what exactly is considered a full wave in order to give 25Mhz / s?
[00:10:39] <jadew> your wave could have 3 points, or it could have 1k
[00:11:50] <jadew> ok, now I know
[00:12:02] <jadew> for example this one: http://www.rigolna.com/products/waveform-generators/dg1000/
[00:12:11] <jadew> only 100MSa/s
[00:12:21] <jadew> and it's advertised as a 20Mhz AWG
[00:12:42] <jadew> so they are considering that 5 points are enough for a full wave
[00:13:21] <Casper> look like it might be hackable to add functions too
[00:13:35] <jadew> the scope?
[00:13:36] <jadew> yeah
[00:13:46] <jadew> you can enable the serial decoders IIRC
[00:13:54] <Enma_Hinobara> Anybody have any idea why ADC will only trigger once on a timer when that timer's interrupt is disabled, but works repeatedly when the interrupt is enabled? Is it triggering off the interrupt flag or something, and the flag never gets cleared if there's no interrupt handler invoked?
[00:14:31] <jadew> Enma_Hinobara, that makes no sense
[00:14:52] <jadew> define trigger
[00:16:38] <Casper> Enma_Hinobara: flags get enabled if the interrupt is enabled, and cleared when the interrupt function exit. it jump only when the global interrupts are enabled (sbi). so if you enable the timer interrupt, but not sbi, it will set the flag at the apropriate time, but won't jump to the code until you sbi
[00:56:17] <Enma_Hinobara> Okay, I have it set up so a timer at a fairly low rate starts the ADC, and the ADC interrupts when it completes, all the while the "main loop" sleeps
[00:57:08] <Enma_Hinobara> If I don't enable the timer interrupt, the ADC will only be triggered once
[00:57:08] <Enma_Hinobara> (this is all with global interrupts enabled)
[00:57:11] <Enma_Hinobara> If I enable the timer interrupt, the ADC will be started every time the timer match occurs
[00:57:22] <Enma_Hinobara> Timer match interrupt, that is
[00:58:43] <jadew> Enma_Hinobara, first of all make sure the timer interrupt gets triggered properly, then make sure that you're starting the ADC properly
[00:58:58] <jadew> it's possible that it runs only once because you're not doing it right
[00:59:34] <Enma_Hinobara> The timer interrupt can't get triggered properly when it's disabled
[00:59:48] <Enma_Hinobara> Yet it still causes the ADC to fire once
[01:00:59] <Enma_Hinobara> The datasheet is rather unclear on what the "timer compare match" condition is for triggering the ADC. This evidence is making me suspect it's the timer compare match interrupt flag, but that's only a reasonable deduction if the flag gets set without the interrupt being enabled
[01:04:45] <jadew> what chip is that, I didn't know you can configure a timer to directly trigger the ADC
[01:05:58] <Enma_Hinobara> Ahaaaa
[01:06:04] <Enma_Hinobara> Looks like I was right
[01:06:10] <Enma_Hinobara> "OCFnB is automatically cleared when the Output Compare Match B Interrupt Vector is executed.
[01:06:10] <Enma_Hinobara> Alternatively, OCFnB can be cleared by writing a logic one to its bit location."
[01:06:25] <Enma_Hinobara> ATmega 2560
[01:07:10] <Enma_Hinobara> Well there goes a couple hours to RTFM syndrome
[01:15:47] <Casper> jadew: would you get a DSO+siggen or a combo DSO-siggen?
[01:16:05] <Casper> the combo ends up like 200$ cheaper
[01:16:11] <jadew> Casper, I'd go for separate if the price was about the same
[01:16:14] <jadew> ah..
[01:16:22] <jadew> what sig gen are you looking at?
[01:16:48] <Casper> AWG from rigol
[01:16:59] <Casper> the.... whatever model :D
[01:18:07] <Casper> actually, I think I miscalculated
[01:18:29] <jadew> I guess it depends on the price difference of the scope as well
[01:18:29] <jadew> the version with and with out the gen
[01:18:29] <jadew> because if it's like... $50... why not get it with the gen
[01:19:12] <Casper> or not...
[01:19:27] <Casper> 818 or 585+499
[01:19:46] <jadew> 499?
[01:19:49] <jadew> what sig gen?
[01:19:54] <Casper> 818 / 1084 = 266$ diff...
[01:19:58] <Casper> dg1022a
[01:36:14] <Casper> jadew: I hate you!
[01:36:33] <jadew> heh
[01:36:37] <Casper> now I really want the DS1074Z-S
[01:37:05] <jadew> me too
[01:38:16] <Casper> now.... need to see where I can buy it, when and how much
[01:39:00] <jadew> some guy on the eevblog forum said he got it from china
[01:39:26] <Casper> china mean 3-5 weeks + expensive shipping + customs
[01:44:45] <jadew> Casper: http://www.eevblog.com/forum/testgear/new-rigol-ds1000z-and-mso4000/msg252030/#msg252030
[01:48:44] <Casper> weird...
[01:48:55] <Casper> I can't find it if I go to their product page
[01:50:33] <jadew> I think right now it's only out in china
[01:52:20] <Casper> www.tequipment.net/RigolDS1074Z-S.html
[01:52:23] <Casper> look like not
[01:52:31] <jadew> nice
[01:52:34] <jadew> you live in the US?
[01:53:41] <Casper> canada
[01:54:16] <Casper> but I'll ask my boss about something
[01:54:59] <Casper> I think there is a place you can have them ship item to, that they import it to canada, and then you can say: I'll fill the custom paperwork myself, bring the item home and forget about the paperwork
[01:56:25] <Casper> oh nice... the oscope can work internationally, even on airplane! (100-240V 45-440Hz)
[01:59:58] <GuShH> standard for smps
[02:07:57] <Casper> ya, but they usually say 50-60Hz, or 45-65
[02:09:20] <w|zzy> You guys still talking about them?
[02:09:23] <w|zzy> stop tempting me
[02:10:39] <Casper> I just wonder if you can use both function at the same time
[02:11:18] <Casper> well, bed time, nite
[02:14:17] <w|zzy> it would be pointless if you couldn't
[02:14:22] <w|zzy> Personally i would prefer seperate items
[02:14:28] <w|zzy> A sig gen and a scope
[07:54:56] <jadew> you know what would be really neat? a 4 channels scope from the 2000 series (talking rigol here)
[07:55:25] <jadew> but I guess people wouldn't be forced to buy the 4000 series anymore if they made something like that
[08:06:22] <w|zzy> yeah
[08:55:02] <rue_house> http://www.iankp.ca/wiki/Making_a_USB_Programmer_with_a_Teensy_2.0_%28ATmega32U4%29
[10:00:15] <blathijs> Anyone here who has avr-gcc 4.8 available? I'm seeing a probably bug in the compiler that looks like a bug fixed in 4.8, but I'd like to know for sure
[10:00:37] <blathijs> Here's the code, it's just a short piece: http://pastebin.com/bT2fpTkq
[10:10:11] <blathijs> Never mind, I found a avr-gcc 4.8 version from Arch which actually wanted to run on Debian as well. Seems my bug was indeed fixed in 4.8.
[11:26:26] <braincracker> h
[11:26:38] <OndraSter> t
[11:27:11] <Casper> jadew: the oscope isn't out in america officially yet
[11:27:22] <Casper> hence why the specs page is not working
[11:27:28] <Casper> and can't find it on the site
[11:30:35] <jadew> Casper, that's what I thought
[11:31:01] <jadew> let us know if you get one, I'd love to see some pictures, especially of how it's dealing with the waveform update rate
[11:35:07] <jadew> Casper, think twice tho, it's more like a RIGOL 1052E than like the 2000 series
[11:35:33] <jadew> but since you were considering the 1052E, it's deffinitely a step forward and the extra two channels won't hurt
[11:36:45] <jadew> http://e2e.ti.com/blogs_/b/msp430blog/archive/2013/09/09/back-to-school-sale-part-4-metawatch.aspx
[11:36:48] <jadew> I just bought one
[11:36:57] <jadew> (the watch, not the scope)
[11:37:09] <jadew> anyway, back to work
[12:15:56] <ferdna> guys i have this strange board (it looks to me like a dev board) however i can't find it anywhere...
[12:15:58] <ferdna> it reads:
[12:16:06] <ferdna> APPLE 920-1261-03
[12:18:35] <inkjetunito> what kind of connectors does it have and how old?
[12:20:09] <ferdna> inkjetunito, it has a mini usb
[12:20:16] <ferdna> ftdi chip in it
[12:20:27] <ferdna> and it is labeled: (c)2010
[12:21:15] <inkjetunito> ahh, no idea. i was thinking about a riser of some sort.
[12:22:10] <ferdna> inkjetunito, the biggest chip in there reads: V282 A34C G4
[12:44:16] <Casper> ferdna: since it's apple, it never got released as a devboard or was part of an appliance
[12:45:13] <ferdna> here:
[12:45:14] <ferdna> http://i.imgur.com/hyAx2Va.jpg
[12:45:18] <ferdna> casper ^
[12:45:51] <Casper> that was part of a product
[12:46:04] <ferdna> and
[12:46:05] <ferdna> http://i.imgur.com/GnIOcZr.jpg
[12:46:36] <ferdna> na, i don't think is part of a product... looks more like a dev board no?
[12:46:51] <inkjetunito> omg. that's the upcoming iArduino
[12:47:05] <Casper> ferdna: and be carefull with the soldering iron, it does burn a thumb
[12:47:19] <Casper> or finger...
[12:48:20] <ferdna> yeah
[12:48:21] <ferdna> hahaha
[12:48:34] <ferdna> can anyone identify the micro controller?
[12:49:07] <Casper> custom made
[12:57:16] <ferdna> =/
[13:18:16] <jadew> Casper, more like custom printed :P
[13:18:48] <jadew> I doubt apple produces many ASICs
[13:21:19] <jadew> ferdna, start with the datasheet of the ftdi chip
[13:21:33] <jadew> see what the pins that are connected to the mcu are
[13:21:43] <jadew> then figure out what chip has rx and tx on those pins :P
[13:23:22] <ferdna> =/
[14:51:19] <megal0maniac_afk> pink wine and custard for dinner :)
[14:51:31] <megal0maniac_afk> Seperately, of course
[14:58:39] <megal0maniac> CapnKernel: Do you have any idea how the Chinese can provide free shipping for everything, when the stuff itself is so cheap?
[14:58:52] <megal0maniac> I feel like you might have an idea ;)
[15:17:30] <Casper> megal0maniac: I read a post on reddit about that
[15:17:45] <Casper> chinapost may charge like 17 cents for international shipment
[15:18:32] <Casper> from what I understand, once it leave the country, it's not them that pay... so basically usps or whatever deliver it for free...
[15:22:48] <Roklobsta> yeah i have figured that once it gets here all the other parcels are subsidingi it
[15:23:38] <Roklobsta> lord knows i can't post the same item to my neighbour for the same price as it costs to send here from china
[15:24:24] <megal0maniac> I don't get how a parcel can even get out of China for that price. Where does the money come from?
[15:25:38] <megal0maniac> You can buy a $2 item which would cost $5 locally, and the shipping is free. I've literally bought stuff from China to save myself the drive (about 10km) when it hasn't been urgent
[15:29:17] <Roklobsta> cheeeeap labour and internal subsidies
[15:30:10] <Roklobsta> i bet china post has the govt picking up a lot of the tab in the national intesrest to keep goods moving as freely as possible.
[15:32:52] <megal0maniac> Yeah, that would make sense
[15:43:46] <megal0maniac> Internal Server Error
[15:43:55] <megal0maniac> TI, why is your website so horrible?
[15:44:11] <megal0maniac> Was it built by children?
[15:47:28] <inkjetunito> perhaps the feedback page dies aswell :D
[16:55:56] <ColdKeyboard> I will try to build some kind of mood lamp for my room tomorrow. I would like to control/change color of the RGB LEDs with some kind of remote. I'm planning on controling RGB channels via 3 N-channel MOSFETs and connect them to 3 PWM outputs of 2313. The thing I don't know very much about is how to "scan" remotes code or place it into memmory so I can use that button for changing colors. Any
[16:55:56] <ColdKeyboard> suggestions or tutorials?
[16:58:46] <ColdKeyboard> I was thinking about initializing timer to 0x00 and then watching PINx, whenever it changes I will add Timer value to some array. Later on I would compare incomming sequence to the one stored in the array and if they are the same, change color but now I realize that most of the IR remotes have start, data, stop parts and most of them are sequences of very fast 10101 so I guess my method is out
[16:58:46] <ColdKeyboard> because array would have to have gajilion elements. :)
[17:36:12] <N1njaneer> Use something like a Vishay TSOP6238 - does the IR decoding for you in to normal async serial, glues right to the RX pin of the UART
[17:37:34] <N1njaneer> Normal IR encodes with 38Khz, you'd not want to try to directly decode that. Vishay's receivers will automatically bandpass, AGC, and sync-lock the 38Khz and just give you standard TTL. 3-pin devices :)
[17:46:43] <Casper> jadew: they just added the product to the NA page!
[17:46:48] <Casper> http://www.rigolna.com/products/digital-oscilloscopes/ds1000Z/ds1074z-s/
[18:00:35] <ColdKeyboard> N1njaneer: Can I use 3-pin IR reciever LED instead of NPN IR phototransistor?
[18:00:56] <ColdKeyboard> It should give me 5V and 0V output, right?
[18:01:23] <N1njaneer> Yes.
[18:01:35] <ColdKeyboard> Cool :)
[18:01:39] <N1njaneer> You don't want to try to decode it correctly, else you get practically zero range at all.
[18:01:51] <N1njaneer> Er +DIRECTLY not correctly :)
[18:02:27] <N1njaneer> The reciever will pick out the 38Khz carrier band-pass filtered as well as will AGC looking for the carrier burst patterns of the data.
[18:03:03] <N1njaneer> The vishay receivers will pick up 940nm IR signal pretty successfully with as little as 0.7nw of power
[18:05:16] <ColdKeyboard> Well I never used any kind of IR remotes and I'm not familiar with the procols... at all. Since I'm building a LED strip mood lamp and I need just 1 or 2 buttons, I guess If I find a way to "store" the IR command that remote sends (even with errors), next time when IR emits that same code, I will capture it the same way (repeating the erros, again) and it should be the same, right? :)
[18:05:46] <Tom_itx> modulate on a 38khz signal
[18:06:55] <ColdKeyboard> Tom_itx: Could you please elaborate a bit more on "modulate" :)
[18:07:21] <N1njaneer> Cold: Look up the datasheet for the Vishay TSOP6283 for example
[18:07:45] <N1njaneer> The TTL serial signal is basically "chopped" at 38Khz with a square-wave
[18:08:30] <N1njaneer> There are specific timing requirements necessary for bursts of data with dwells between the transmission times. This is what allows the receiver to adjust the internal AGC to pick the signal out of the noise floor.
[18:10:59] <ColdKeyboard> Ok, I'm looking at the datasheet and some example signals so I think I understood the basic stuff. I will see tomorrow when I get components and get to it. :)
[18:16:31] <N1njaneer> The all-in-once receivers take care of all the heavy lifting. It's nice :)
[18:43:25] <CapnKernel> megal0maniac_afk: hi
[21:33:43] <TechIsCool> hey everyone how do I determine what I causing a rollover? I have a long that is reacting like a int8
[21:46:19] <TechIsCool> well now its not doing it
[21:49:34] <Tom_itx> glad we could help