#avr | Logs for 2015-05-06

Back
[00:06:21] <ferdna> good night
[00:06:27] <Casper> nit...
[00:06:29] <Casper> e
[01:46:25] <anonnumberanon> Any quadcopter flight controller coders in here?
[05:24:31] <LeoNerd> GAH. Why is it when I write some code to enable an interrupt, I usually end up setting the flag bit in the flag register PCIFR |= _BV(PCIF0) instead of the enable bit in the control register, PCICR |= _BV(PCIE0) ?
[05:24:44] <LeoNerd> It's an easy mistake to make the first time, but you'd think after 10 or so times I'd remember by now
[05:24:46] <LeoNerd> But nope..
[06:48:56] <megal0maniac> LeoNerd: I'm pretty sure I've done something equally silly (and hard to spot)
[06:49:20] <LeoNerd> Yah.. that was annoying me
[06:49:32] <LeoNerd> It was my first attempt at writing code on a 32U4, and my first attempt at mixing Arduino with plain C
[06:49:41] <LeoNerd> Normally I just write in plain C, but I'm in a hurry this time and I Neeeeeed USB HID
[06:50:06] <Lambda_Aurigae> you must learn from your mistakes young padawan. If you do not learn from your mistakes then why make them in the first place?
[06:50:14] <LeoNerd> Hehe
[06:50:17] <LeoNerd> Well, quite
[06:50:33] <LeoNerd> Butyeah, turns out that using inotool for doing mixed arduino + plain C code isn't actually at all painful
[06:50:36] <LeoNerd> It basically just DWIMs
[06:50:52] <Lambda_Aurigae> I took a class in technical writing some years back when I was in the military and one of the big things they taught was proofreading.
[06:51:00] <Lambda_Aurigae> that helped me immensely in programming too.
[06:51:18] <Lambda_Aurigae> I would think using ardweeny anything to be painful.
[06:51:30] <Lambda_Aurigae> I know their wiring thingie is.
[06:52:25] <dunz0r> I once spent an entire day trying to figure out why my PWM wouldn't work. Evene changed the crystal, the µCU, the caps and tested every trace on the board
[06:53:11] <LeoNerd> Lambda_Aurigae: Yeah; I'm mostly ignoring that and just using it to use the USB parts for me... so Serial.print() for debugging, and Keyboard.keyDown()
[06:53:33] <dunz0r> Then I saw I had typed TCCR0A instead of TCCR0B :)
[06:54:20] <Lambda_Aurigae> I've been ripping similar stuff out of the pinguino libs to build my own pic32 usb serial adapter thingie.
[06:56:03] <LeoNerd> YEah, but I'm in a hurry this time :) I'm on stage in 2 weeks and this has to work
[07:00:11] <LeoNerd> Still, this 32U4 is annoying me
[07:00:40] <LeoNerd> It has only 8 PCINTs, on a single port. It has 5 external INT lines, but 4 of them are shared on the I2C and hardware UART lines
[07:00:50] <LeoNerd> So if I want to use, well.. either of them, then I have fewer interrupts left :(
[07:01:00] <Lambda_Aurigae> doesn't have pcint on all ports?
[07:02:18] <LeoNerd> Nope. Only port.. D I think
[07:02:41] <LeoNerd> Oh no, B. The INT pins are on most of D
[07:03:25] <LeoNerd> Butyeah, muxing INT and I2C on the same pins seems very stupid - what if I'm using.. er.. basically any kind of I2C-based sensor/IO module/anything? That will almost certainly want to send me an interrupt
[07:03:52] <Lambda_Aurigae> yup.
[18:59:40] <ferdna> so i finally got my sandals!!!!
[19:03:59] <Lambda_Aurigae> ferdna, now your toes will get sunburned.
[19:04:22] <ferdna> lol...
[19:04:23] <ferdna> yes
[19:04:25] <ferdna> hahaha
[19:06:28] <ferdna> i bought this eyeglass protectors...
[19:06:53] <ferdna> however do i need to wear prescription glasses? or can i wear them just like that
[19:06:54] <ferdna> http://www.homedepot.com/p/3M-Tekk-Protection-Outdoor-Tinted-Frame-Eyeglass-Protector-47032-WZ6/205137828
[19:12:15] <Lambda_Aurigae> should be able to wear them alone.
[19:12:18] <Lambda_Aurigae> they just look funky.
[19:12:43] <Lambda_Aurigae> http://hackaday.com/2015/05/06/a-simple-programmable-555/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+hackaday%2FLgoM+%28Hack+a+Day%29
[19:12:47] <Lambda_Aurigae> interesting little toy.
[19:12:53] <Lambda_Aurigae> might have to get some samples and make some.
[19:15:08] <ferdna> Lambda_Aurigae, lol... that is funny... the he could have done it with... BLAH BLAH BLAH
[19:16:11] <Lambda_Aurigae> yeah...that's what most of the comments are.
[19:16:25] <Lambda_Aurigae> however, they are wrong on the not being able to program a 555 with i2c.
[19:16:35] <Lambda_Aurigae> use an i2c interfaced digital pot.
[20:18:54] <Vizir> hello
[20:19:12] <Lambda_Aurigae> hello Vizir
[20:19:30] <Lambda_Aurigae> how's life in kansas,,,or is it oklyhomer?
[20:19:36] <Vizir> i'm new to avr's
[20:19:40] <Vizir> haha yes border
[20:19:49] <Vizir> of ok and ks
[20:19:51] <Lambda_Aurigae> ks.ok.cox.net....kinda shows.
[20:20:04] <Lambda_Aurigae> and, everybody gots to start somewhere.
[20:20:59] <Vizir> so i'm trying to add an oled display to a teensy (at90usb1286)
[20:21:34] <Vizir> well, i have added it and i'm having trouble compiling the m2tklib for it
[20:21:47] <Vizir> avr-ar.exe: unable to rename 'u8m2.a'; reason: File exists
[20:22:17] <Vizir> is the error being reported. and, while i stumble my way around c/c++, this has me baffled
[20:23:28] <Vizir> i came across someone saying don't install atmle avrtoolchain in Program Files (maybe the spaces), so its installed in C:\Atmel\AVRTools\AVRToolchain\bin\
[20:24:18] <Lambda_Aurigae> yeah,,,no clue here.
[20:24:24] <Lambda_Aurigae> I don't do windows.
[20:24:44] <Vizir> hmm let me try my linux box
[20:24:46] * Lambda_Aurigae is windows free for over 10 years except for the necessary evils at work.
[20:24:56] <Vizir> haha same
[20:25:32] <Lambda_Aurigae> and I don't do microcontrollers at work...just fix copiers and make computers play nice with said copiers.
[20:26:39] <Lambda_Aurigae> I do remember having problems with programs written under linux that have all kinds of troubles under windows as windows doesn't recognize the difference between a.out and A.out
[20:28:05] <Vizir> yea. its a huge problem for me. file paths etc have to be manually fixed each time i switch
[20:29:04] <Vizir> lo and behold
[20:29:09] <Vizir> it compiled
[20:29:18] <Vizir> on linux without any problems
[20:34:19] <Lambda_Aurigae> so a file naming issue probably to do with a vs A thing
[20:34:27] <Lambda_Aurigae> windows is case insensitive.
[20:35:45] <Lambda_Aurigae> I have no idea what that lib is or where it came from but I would put money on it being developed on a *nix system of some kind.
[20:35:57] <Vizir> yep