#avr | Logs for 2012-10-09

Back
[01:07:20] <Casper> I found out why my previous transfo failed
[01:07:23] <Casper> for smps
[01:07:37] <Casper> I used the wrong turn ratio
[01:07:56] <Casper> I used 4:3 when I should have used 3:7
[04:09:53] <k-man> i've got a rayshobby sprinkler controller whith an ATMEGA 328-PU on it, avrdude -p m328p gives me the error: avrdude: Device signature = 0x1e9514 Expected signature for ATMEGA328P is 1E 95 0F
[04:10:21] <k-man> any ideas why its getting a discrepancy?
[04:15:02] <inflex> 328P and 328-PU aren't the same afaik
[04:15:29] <inflex> -PU is a different type of classification, and the 328P-[AU/V] are the pico-power
[04:15:37] <OndraSterver> ye
[04:16:19] <inflex> so I'd change it to -p m328
[04:19:46] <k-man> oh good evening inflex
[04:20:19] <k-man> my avrdude version does not know m328 part
[04:20:59] <inflex> tried -p mega328 ?
[04:21:06] <inflex> Might have to update your avrdude.conf file
[04:21:29] <OndraSterver> I remember something with mega328 and avrdude.conf
[04:25:05] <k-man> http://tuxgraphics.org/common/src2/article09101/atmega328.html
[04:28:59] <k-man> ah no thats for the 328p
[04:32:05] <k-man> apparantly its the same as the ATmega328P-PU just with a different signature
[04:44:01] <karlp> well, and picopower and all that.
[05:19:05] <MrTrick> Anyone here had issues with Avr Studio 6 and the AVR Dragon, reading device codes/fuses?
[05:21:54] <k-man> MrTrick, are you in Gladesville?
[05:22:04] <MrTrick> yes.
[05:22:15] <k-man> at the hacker space?
[05:22:26] <MrTrick> alright, who's the cheeky one?
[05:22:52] <k-man> funny seeing you here!
[05:59:37] <Horologium> CapnKernel, the v-usb and linux kernel with CDC is not a bug. it is linux following spec. CDC spec is not supported over low speed usb which is what v-usb does. other OSs just ignore spec at time.
[06:07:18] <Horologium> there is, however, a fix to the linux kernel to allow it.
[06:09:58] <CapnKernel> Cool!
[06:11:22] <megal0maniac> k-man: You come right with avrdude?
[06:11:58] <megal0maniac> The m328 / m328p thing is a pain.
[06:12:58] <megal0maniac> CapnKernel: Being knowledgeable on electronic stuff, does this look dangerous? http://www.epanorama.net/circuits/speaker_to_line.html
[06:14:05] <megal0maniac> For connecting the amplified speaker output on my car's cd player to a different amplifier. It's a stock CD player (I'm not pimping my ride) so there's no line level output
[06:14:26] <jacekowski> megal0maniac: two outputs
[06:14:44] <megal0maniac> jacekowski: What do you mean?
[06:14:53] <megal0maniac> Oh lol
[06:14:56] <jacekowski> megal0maniac: that circuit drawn has two outputs and no input
[06:15:15] <megal0maniac> I see what you mean. Well the "speaker out" is the input
[06:15:19] <jacekowski> yeah
[06:15:30] <megal0maniac> It's referring to "speaker out" from the amp... But I see how it's silly
[06:15:40] <jacekowski> it may be bit more complex with car audio
[06:15:46] <jacekowski> as in you may need different values
[06:15:46] <megal0maniac> But, is it dangerous? :)
[06:15:50] <jacekowski> no
[06:16:03] <jacekowski> car audio uses low impedance speakers
[06:16:06] <jacekowski> and lower voltages
[06:16:15] <megal0maniac> Yeah, 4 ohm instead of 8
[06:17:35] <megal0maniac> I suppose value of R2 would change?
[06:17:38] <CapnKernel> Duhh I don't know. That's analog!
[06:17:44] <megal0maniac> Lol
[06:22:47] <megal0maniac> Guess I'll just try and see what I get
[06:35:29] <jacekowski> megal0maniac: very often less than 4 ohms
[06:35:35] <jacekowski> megal0maniac: sometimes as low as 1
[06:35:42] <jacekowski> megal0maniac: and voltages tend to be lower
[07:19:32] <OndraSterver> http://www.smtstencil.co.uk/
[07:19:33] <OndraSterver> yay cheap
[07:19:41] <OndraSterver> 16.5 GBP delivered
[07:19:44] <OndraSterver> for A4 stencil
[07:19:46] <OndraSterver> cut as you want
[07:20:06] <OndraSterver> mylar that is
[07:54:27] <megal0maniac> jacekowski: Just tried it. Used 330 ohm instead of 1K. Signal level is still quite low, but sounds surprisingly good
[08:03:09] <megal0maniac> I expected it to sound terrible.
[08:10:51] <megal0maniac> Just thinking, since it's a 10:1 voltage divider, I should probably be changing the value of R1 as well...
[08:11:02] <megal0maniac> Maybe 2K2 & 220OHM
[08:38:32] <edmont> do u know if a ISR can be pre-empted by another one?
[09:23:15] <erwo> Hello, is it possible to use an ATXX (mega/tiny) as i2c Client? I want to connect a Raspberry pi with an attiny, the attiny should have any sensors, and i want to read the sensors with the raspberry pi over i2c. Is there an complete library or so for a avr at with that i can do this?
[10:10:30] <OndraSterver> erwo, sure
[10:48:03] <erwo> OndraSterver: Can you give me some good documentation tipps? 8)
[10:48:26] <OndraSterver> datasheet
[10:52:52] <Richard_Cavell> So how's everyone?
[10:54:21] <erwo> OndraSterver: datasheet for attiny etc. - ok to connect it, but code examples etc. - is there no example from other users?
[10:54:40] <OndraSterver> there are plenty of tutorials about i2c slave
[11:04:30] <megal0maniac> erwo: Check out the TinyWire Arduino library. Look at the actual library files and you'll see how they do I2C master and slave
[11:04:44] <erwo> ok, thank you
[11:10:29] <megal0maniac> TinyWireS in particular. That's specifically for attiny because it uses USI. For mega, check out the "Wire" library
[11:12:50] <Richard_Cavell> megal0maniac: How's it going?
[11:13:04] <Richard_Cavell> It's 2 am and I can't sleep
[11:13:09] <Richard_Cavell> Mind you I woke up at 2pm today
[11:13:13] <Richard_Cavell> I have no idea why
[11:18:13] <megal0maniac> Richard_Cavell: Good. Learning AVR C from the ground up
[11:18:20] <Richard_Cavell> excellent
[11:18:22] <Richard_Cavell> Do you know C?
[11:18:26] <megal0maniac> Nope
[11:18:32] <Richard_Cavell> Well learn that first
[11:18:42] <Richard_Cavell> join ##c
[11:18:47] <Richard_Cavell> they'll tell you to read the book called K&R
[11:18:55] <megal0maniac> I know they will
[11:19:01] <megal0maniac> That's why I haven't joined :P
[11:19:26] <megal0maniac> I just screwed up and it cost me R370, so I won't be buying anything nice for a bit.
[11:19:47] <megal0maniac> It's about AU$40
[11:20:32] <megal0maniac> Oh, I lie. R550
[11:20:38] <megal0maniac> So I'm a little bleak
[11:20:42] <Richard_Cavell> I understand
[11:20:46] <Richard_Cavell> But that's the book you need, seriously
[11:20:53] <megal0maniac> I know
[11:20:54] <Richard_Cavell> Study that book until you have it rote-learned
[11:21:01] <megal0maniac> I'll get there
[11:21:47] <Richard_Cavell> Once you have that learned, then learning the AVR bits is easy peasy
[11:22:11] <megal0maniac> Well
[11:22:27] <megal0maniac> Yesterday I figured out just how different xmegas are from megas/tinys
[11:22:42] <megal0maniac> May as well be a different platform
[11:22:46] <Landon> 2 books: K&R C, Making Embedded Systems
[11:22:49] <megal0maniac> (Although I guess it is)
[11:22:53] <Landon> 3 books actually, add datasheets to that :)
[11:24:19] <megal0maniac> Which one is newest? Second edition?
[11:24:27] <Landon> yep
[11:25:11] <megal0maniac> f**l
[11:25:13] <megal0maniac> k
[11:25:15] <megal0maniac> even
[11:30:57] <megal0maniac> Eh. I think I should start saving again
[11:32:43] <megal0maniac> I'll be less poor on the 25th :)
[11:37:00] <megal0maniac> Anyone want to sponsor a bookless student in Africa? :)
[11:37:40] <Steffanx> That one is you? :P
[11:38:50] <megal0maniac> Mmmm...
[11:38:54] <megal0maniac> maybe :)
[12:03:54] <megal0maniac> OSterver: TV cooperating?
[12:04:44] <Landon> megal0maniac: ... for pennies a day?
[12:05:26] <megal0maniac> Heh :)
[12:06:00] <megal0maniac> One of the most annoying things about learning this stuff is my overwhelming desire to print all the datasheets
[12:06:41] <Richard_Cavell> megal0maniac: So how is xmega so different?
[12:07:52] <megal0maniac> Well, there are more registers, and the ones which are "the same" as the mega ones, seem to be used differently
[12:08:19] <megal0maniac> For example: PORTB.OUTSET = is the same as DDRB = on a mega
[12:08:40] <Richard_Cavell> ok
[12:09:15] <megal0maniac> And to clear a bit, you use PORTB.OUTCLR instead of writing a 0
[12:09:36] <megal0maniac> Still not sure how to set a pullup :P
[12:11:04] <Richard_Cavell> dumb question - is there such a thing as a pulldown resistor as well? Or is it just pullup?
[12:12:26] <LoRez> you can pull either direction.
[12:12:34] <LoRez> only pullups are built into avrs
[12:13:00] <megal0maniac> LoRez: I'm not 100% sure, but I think xmegas have pulldown resistors as well
[12:13:21] <LoRez> weird.
[12:22:33] <megal0maniac> Nobody here to correct me :P
[12:22:45] <megal0maniac> So it's deemed true
[12:24:01] <megal0maniac> Landon: Published in 1988. And reading a lot of reviews from people who are claiming that there have been major changes..
[12:25:19] <Richard_Cavell> megal0maniac: What's that Landon thing you're talking about?
[12:25:30] <megal0maniac> K&R
[12:25:37] <Landon> K&R C
[12:25:48] <Landon> it will get you 99% of the way there
[12:25:50] <Richard_Cavell> Yeah
[12:25:55] <Richard_Cavell> K&R is the book
[12:25:58] <Landon> if you really want the other 1%, there's a C for the 21st Century that I've been perusing
[12:26:09] <Richard_Cavell> I think reading the standard is the other 1%
[12:26:18] <Richard_Cavell> I'm reading the C89 standard right now. I"m about a quarter through it
[12:29:15] <megal0maniac> Looks like I should treat it as a reference
[12:29:30] <OSterver> xmegas have some bigass input stuff
[12:29:40] <megal0maniac> There you are!
[12:29:40] <OSterver> check datasheet
[12:29:47] <OSterver> I haven't messed today with the TV
[12:29:55] <OSterver> too pissed at it :P
[12:30:02] <megal0maniac> I hear you
[12:30:27] <Richard_Cavell> what I want is some sort of display
[12:30:40] <Richard_Cavell> I guess the days of cathode ray tubes have gone
[12:30:41] <OSterver> define "some sort of"
[12:31:01] <megal0maniac> OLED!
[12:31:04] <OSterver> hehe
[12:31:11] <OSterver> ST said "no, you are not getting the samples" to me :(
[12:31:12] <OSterver> about the TDA
[12:31:15] <OSterver> oh well, will have to buy one or two
[12:31:18] <OSterver> for the test
[12:31:44] <megal0maniac> That's rude
[12:31:49] <OSterver> I know, right!
[12:32:27] <OSterver> also I have got another "problem", but it is not electronics related :P
[12:32:43] <megal0maniac> This isn't an electronics channel :)
[12:32:47] <OSterver> :D
[12:33:16] <OSterver> well, as you might know, I am doing zumba at PE. And well, our teacher is: hot 23 - 25 yo blonde woman, which has a tattoo just above her ass.
[12:33:19] <r0b-> sup megal0maniac
[12:33:19] <OSterver> it is hard NOT to stare :D
[12:33:37] <megal0maniac> That's not really a problem :)
[12:33:43] <megal0maniac> It is what it is
[12:33:47] <megal0maniac> Hi r0b-
[12:34:00] <r0b-> :P i gotta go:(
[12:47:23] <megal0maniac> OSterver: How did you learn C/ASM?
[12:47:37] <OSterver> I wish I knew
[12:47:38] <OSterver> no idea really
[12:47:39] <OSterver> :D
[12:47:45] <OSterver> the same way I learned everything
[12:47:49] <OSterver> subconsiounsly
[12:47:53] <OSterver> (duh, what a awful word)
[12:47:57] <OSterver> sub
[12:47:59] <OSterver> con
[12:48:00] <OSterver> sci
[12:48:01] <OSterver> ensly?
[12:48:06] <megal0maniac> ously
[12:48:16] <OSterver> yeah, that
[14:23:29] <OSterver> PIECE OF SHIT!!!!!!!!
[14:23:31] <OSterver> fucking SunOS
[14:23:43] <OSterver> anything on the right from ENTER aka delete, home, end, pg up/down
[14:23:45] <OSterver> JUST GIVES TILDE
[14:23:55] <OSterver> then ARROW keys do not work in MAN
[14:23:59] <OSterver> what a PIECE OF JUNK
[14:25:26] <Roklobsta|2> nice vent
[14:25:48] <OSterver> yeah
[14:25:56] <OSterver> we are being taught "introduction to operating systems"
[14:25:58] <OSterver> IT IS PIECE OF JUNK
[14:26:04] <OSterver> completely UNCOMPATIBLE WITH LINUX
[14:27:43] <Roklobsta|2> wtf an old sunbox?
[14:27:49] <Roklobsta|2> or sunos
[14:27:50] <OSterver> 10.5
[14:27:58] <OSterver> on T5440 or something
[14:28:13] <OSterver> SunOS fray3 5.10 Generic_147440-12 sun4v sparc SUNW,T5440
[14:28:15] <Roklobsta|2> heh you must be being tuaght by a nostalgic fossil
[14:28:22] <OSterver> no, by an idiot
[14:28:28] <OSterver> and I doubt it was his choice
[14:28:43] <Roklobsta|2> or is it a school with little funds for resources
[14:28:52] <OSterver> maybe with too much funds IMHO
[14:28:55] <Roklobsta|2> and they found a bunch of sunboxes in a dumpster
[14:28:58] <OSterver> we are using some bloody sun ray v2 thin clients
[14:29:04] <OSterver> haha
[14:30:01] <Roklobsta|2> i rem my uni bought some SGI boxes and they were so discount they didn't even have the floppy drive. although you could see a floppy disk in the case where someone tried to put one in and it just fell inside.
[14:30:43] <OSterver> lol
[14:30:44] <OSterver> fail
[14:30:55] <Roklobsta|2> none knew WTF to do with them either except to brag we had sgi boxes
[14:33:59] <OSterver> well, this has been fixed a bit
[14:34:05] <OSterver> alias man="PAGER=less man"
[14:34:22] <Roklobsta|2> so SunOS. not even Solaris
[14:34:24] <Roklobsta|2> WTF
[14:34:50] <Roklobsta|2> if you are using sunos it's because of $$ or someone has lust for Sun
[14:34:52] <OSterver> I thought that solaris = sunos
[14:35:03] <Roklobsta|2> er...
[14:35:11] <Roklobsta|2> hmm, LMGTFM
[14:36:02] <OSterver> "Solaris yada yada It superseded their earlier SunOS in 1993."
[14:36:08] <OSterver> I am pretty sure it is solaris
[14:36:10] <Roklobsta|2> ok
[14:36:14] <OSterver> but it says SunOS
[14:36:29] <Roklobsta|2> er, it shouuld say solaris 10
[14:36:31] <Roklobsta|2> at least
[14:36:38] <OSterver> 5.10
[14:36:50] <OSterver> http://answers.yahoo.com/question/index?qid=20090929095142AAdtp3j
[14:36:54] <OSterver> SunOS 5.10 = Solaris 10
[14:37:31] <Roklobsta|2> hmmm, sunos 5.0 started in 1992
[14:38:05] <OSterver> when I connect it says something about january 2005 :P
[14:38:14] <Roklobsta|2> ok so it's solaris with SunOS text replacing solaris
[14:38:23] <OSterver> but install dates seem like 2011
[15:21:09] <megal0maniac> On about them thin clients again, eh?
[15:24:47] <OSterver> ye
[15:24:53] <OSterver> this is from SSH though
[15:25:01] <OSterver> directly to those shitty ass Suns
[15:25:05] <OSterver> also did I mention how fast they are?
[15:25:18] <OSterver> 4 FPS when scrolling tops!
[15:27:38] <Roklobsta|2> tell me the school name so i can avaoid it
[15:28:27] <megal0maniac> Heh :)
[15:28:42] <megal0maniac> It puzzles me why they'd do that
[15:28:56] <megal0maniac> It doesn't seem in any way practical
[15:28:57] <OndraSter> Roklobsta|2, CVUT
[15:29:01] <OndraSter> the biggest uni in CZE
[15:29:02] <OndraSter> probably
[15:29:05] <OndraSter> faculty FIT
[15:29:16] <OndraSter> megal0maniac, probably scrapyard find :P
[15:29:20] <OndraSter> I wouldn't be surprised :D
[15:29:32] <OndraSter> who in their right minds would keep such atrocious device
[15:29:57] <OndraSter> also Tom_itx I have today received my red UV ink :P
[15:30:02] <megal0maniac> Does anyone actually use thin clients anymore? Or is it more popular with broadband and cloud storage?
[15:30:24] <OndraSter> not that I know of
[15:30:50] <Roklobsta|2> this clients are fine i think with rdp and nomachine/nxp
[15:31:23] <Roklobsta|2> but with even i3 with intel integrated graphics being so cheap powerful whats the point?
[15:31:26] <OndraSter> you can today get regular machine cheaply enough
[15:31:30] <OndraSter> aye
[15:31:43] <Roklobsta|2> cloud schmoud
[15:31:49] <Roklobsta|2> it's a crock
[15:32:10] <Roklobsta|2> sort of
[15:33:17] <Kevin`> the actual thin client devices were never priced well commercially
[15:33:31] <Kevin`> when it costs the same as a desktop computer, there's no point
[15:33:56] <specing> Heh, anyone remembers chromebooks?
[15:33:58] <Kevin`> never did I see the $50 device that it should be
[15:34:03] <Roklobsta|2> fsck even an i3 laptop is super duper cheap - even atom's are cheap and OK too
[15:34:08] <specing> I remember they once released *something*
[15:34:13] <specing> but noone wanted it
[15:34:18] <Roklobsta|2> kevin it'll be $50 when it's an ARM
[15:34:44] <Roklobsta|2> er, anyway, look at RPi. ARM thin clinet for <$50
[15:35:20] <specing> you mean ARM slug for <$50?
[15:35:45] <Kevin`> Roklobsta|2: that's not a commercial thin client, it's not polished enough to use in most companies
[15:36:18] <OndraSter> also it is unobtainium
[15:36:21] <OndraSter> and when you finally get it
[15:36:23] <OndraSter> it does not work :P
[15:36:33] <OndraSter> I've heard plenty of stories how it came DOA
[15:36:36] <OndraSter> or bad soldering job
[15:36:58] <Roklobsta|2> RPi?
[15:37:04] <OndraSter> ye
[15:37:10] <Roklobsta|2> what do you want for $30
[15:37:25] <OndraSter> even china device works for $30
[15:37:29] <OndraSter> ... for an hour
[15:37:33] <Roklobsta|2> it is a china device
[15:37:38] <OndraSter> :D
[15:37:44] <OndraSter> also it is too closed source for anybody to use it seriously
[15:37:49] <Roklobsta|2> true
[15:37:52] <Roklobsta|2> stupid codecs
[15:37:56] <Roklobsta|2> and videocard
[15:38:10] <OndraSter> whole kernel is pretty much binary blob, because broadcomm
[15:38:18] <OndraSter> you can't do much :P
[15:40:30] <OndraSter> heh the UV colour paint does not smell
[15:40:35] <OndraSter> untill you take a deep breath
[15:40:42] <OndraSter> then you just can not get it out of your lungs :D
[15:40:54] <Roklobsta|2> ew
[15:41:05] <RikusW> OndraSter: solder resist ?
[15:41:19] <OndraSter> ye
[15:41:28] <OndraSter> UV ink for "PCB repair". I prefer to call it "for homemade PCBs"
[15:41:40] <RikusW> just don't take a deep breath of NH3 :-D
[15:42:15] <RikusW> ammonia is bad for your lungs...
[15:43:01] <OndraSter> hehe
[15:43:05] <OndraSter> "said the boxer"
[15:50:34] <megal0maniac> 'night all
[18:53:30] <r0b-> hey megal0maniac_afk
[19:06:20] <r0b-> hi R0b0t1`
[19:11:10] <r0b-> megal0maniac_afk: :-) you are not my helper
[19:11:14] <r0b-> you killed my arduino
[19:11:40] <r0b-> hi Splats
[19:16:09] <Horologium> one wonders how someone killed his ardweeny.
[20:21:30] <stefanct> hi! does anyone know for sure what happens when one switches a high-driven output pin (port=1, ddr=1) to an input pin (ddr 1 -> 0) on an atmega (u2)? Will the pull-up be active or is the port register reset?
[20:30:17] <jadew> jacekowski, you were right about forbidden science haha
[20:33:05] <jadew> stefanct, the pullup will be active
[20:33:27] <jadew> I don't think the device type matters much here
[20:33:35] <stefanct> thought so, thanks
[20:33:39] <jadew> np
[20:42:02] <Kevin`> stefanct: the pullup will be active
[20:47:01] <stefanct> thx
[22:42:00] <r0b-> hey sirdancealot
[23:17:39] * r0b- shoots megal0maniac_afk :P
[23:29:48] <r0b-> hi rue_house