#avr | Logs for 2015-05-03

Back
[07:37:02] <twnqx> hm.
[07:37:38] <twnqx> is it damaging to a 16/32U4 if VBUS is powered, but none of the other power dupplies are?
[07:37:41] <twnqx> supplies*
[07:53:28] <NicoHood> if i write a 1 to the PINB register it toogles the PORTB register. is that correct?
[07:54:22] <Lambda_Aurigae> twnqx, probably not.
[07:55:44] <Lambda_Aurigae> writing a 1 to PINBx will toggle the corresponding PORTBx, yes
[07:56:13] <NicoHood> Lambda_Aurigae: and what happens if i write a 0? nothing?
[07:56:19] <Lambda_Aurigae> this is very clearly defined in the datasheet.
[07:56:21] <Lambda_Aurigae> nothing happens.
[07:56:22] <NicoHood> i want to turn it off later on
[07:56:27] <NicoHood> okay
[07:56:43] <Lambda_Aurigae> by toggling it means, if it is 0 then it changes to 1..if it is 1 then it changes to 0
[07:57:26] <Lambda_Aurigae> if you just want to turn it on or off then use the PORTBx directly.
[08:00:01] <NicoHood> I want to modulate IR pulses
[08:00:06] <NicoHood> 38000hz
[08:00:11] <Lambda_Aurigae> that's nice.
[08:00:20] <Lambda_Aurigae> that's what I use IR control chips for.
[08:00:31] <LeoNerd> So.. I want a 32U4 breakout board. It seems by far the cheapest way for me to get one is an Arduino Micro Pro; which has a 32U4 onboard, mooostly wired up to the IO pins to prented to be a mini pro. So it does miss a few of the IO pins, but that's OK.
[08:00:33] <Lambda_Aurigae> doing TV remote stuff?
[08:00:52] <NicoHood> and since i have no idea about timers and want to be mcu independant i want to use bitbang here and do some inline asm
[08:00:54] <LeoNerd> Problem is, I'm having great difficulty in working out what the actual real pinout of the thing is... It seems that the "Micro Pro" isn't really an official Arduino board :(
[08:00:56] <NicoHood> yep
[08:01:22] <NicoHood> Lambda_Aurigae: currently working on a decoder
[08:01:35] <NicoHood> but the encoder i also have to focus. thatswhy i am asking
[08:01:38] <Lambda_Aurigae> I suspect it is some kind of onboard reset thingie that is controlled by the chip itself.
[08:01:43] <NicoHood> Lambda_Aurigae: https://github.com/NicoHood/IRLremote/tree/dev
[08:01:52] <Lambda_Aurigae> get an IR decoder out of a tv or vcr.
[08:02:21] <Lambda_Aurigae> they deal with the 38KHz stuff for you and just give you data pulses out.
[08:02:43] <NicoHood> but i want to support multiple khz/remotes
[08:02:49] <NicoHood> but that would be an idea, sure
[08:03:24] <Lambda_Aurigae> have done it several times.
[08:03:45] <NicoHood> are there any hardware modules where you can set the frequeny?
[08:03:53] <NicoHood> 36-40khz
[08:04:16] <Lambda_Aurigae> I would bet with them at 38KHz they will work across a spread...never really tested that.
[08:04:28] <NicoHood> could be an idea
[08:04:44] <Lambda_Aurigae> have you looked at AVR410?
[08:04:51] <NicoHood> well i mostly focus on decoding. i will buy a nice remote and use this to controll all my projects http://www.ebay.de/itm/121298573499?_trksid=p2055119.m1438.l2649&ssPageName=STRK%3AMEBIDX%3AIT
[08:04:55] <NicoHood> avr410? no
[08:05:03] <Lambda_Aurigae> http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=7&cad=rja&uact=8&ved=0CDUQFjAG&url=http%3A%2F%2Fwww.atmel.com%2FImages%2Fdoc1473.pdf&ei=mxdGVdT7IMnSggStsoDwBA&usg=AFQjCNGv0WGw6cyq4m7CQKAtoLa2tB0J8w&bvm=bv.92291466,d.eXY
[08:05:06] <Lambda_Aurigae> hmm.
[08:05:08] <Lambda_Aurigae> that's not so good.
[08:05:16] <Lambda_Aurigae> google search for avr410
[08:05:25] <Lambda_Aurigae> RC5 ir remote control receiver.
[08:05:35] <NicoHood> but this only works for rc5 then
[08:05:42] <NicoHood> i have nec, panasonic and sony12 here
[08:05:46] <Lambda_Aurigae> but it gives you a basis for the hardware.
[08:07:32] <Lambda_Aurigae> looks like you would need a different decoder for each frequency.
[08:07:49] <Lambda_Aurigae> they come in 30, 33, 36, 38, 40, and 56 KHz
[08:08:03] <Lambda_Aurigae> at least, that brand does.
[08:08:12] <Lambda_Aurigae> the SFH506-xx
[08:08:24] <Lambda_Aurigae> seems RC5 is 36KHz then.
[08:08:47] <Lambda_Aurigae> it shouldn't be too hard to do full decode on a high speed avr though.
[08:09:05] <Lambda_Aurigae> maybe even pick out the different frequencies with a bit of work.
[08:10:28] <Lambda_Aurigae> now to be slick with it I would probably go with a PLL for the decoder.
[08:10:33] <Lambda_Aurigae> but that's getting way complex.
[08:15:53] <NicoHood> have to go
[08:16:02] <NicoHood> tthy for the tips
[08:16:14] <Lambda_Aurigae> have fun.
[11:20:09] <FatalNIX> Hey guys. I have an ATMega324A and an mkII programmer, Somebody had told me that I could do serial tty comms with the chip to my programs by using the programmer somehow, since it's ISP and that's the SPI port.. does anyone know anything about this?
[11:21:06] <FatalNIX> If it does work, it would definately prevent the need for an extra serial cable
[12:39:41] <Casper> bootloader?
[13:56:07] <NicoHood> i want to code some inline asm. i have an uint16_t. what syntax do i have to use to map the lo and hi byte to two registers? or better get their current registers
[13:58:29] <Lambda_Aurigae> http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&cad=rja&uact=8&ved=0CCsQFjAC&url=http%3A%2F%2Fweb.stanford.edu%2Fclass%2Fee281%2Fprojects%2Faut2002%2Fyingzong-mouse%2Fmedia%2FGCCAVRInlAsmCB.pdf&ei=dGpGVf6VNo_GogT--oAo&usg=AFQjCNFuFclZK01o6BxLUXN7-ERwGbaRPg&bvm=bv.92291466,d.cGU
[13:58:34] <Lambda_Aurigae> get and read that pdf
[13:58:53] <Lambda_Aurigae> http://www.atmel.com/webdoc/AVRLibcReferenceManual/inline_asm.html
[13:58:56] <Lambda_Aurigae> or read through that.
[17:14:34] <hypermagic> hello my friends :)
[21:12:11] <ferdna> hypermagic, hello
[21:24:27] <hypermagic> hey
[21:24:35] <hypermagic> what are you building ?
[21:43:29] <ferdna> hypermagic, me?
[21:55:52] <Casper> you really don't want to know, it's... classified?
[21:56:15] <Casper> yeah... let's just say it's classified, better that way... :D
[22:03:45] <hypermagic> :)
[22:03:53] <hypermagic> we lkie killer drones no?
[22:06:50] <hypermagic> hmm, some dumb cunt was sending automated spam from some browser exploit so i had to write a captcha for a contact message page :/
[22:50:22] <FatalNIX> Casper, I know I know!
[22:50:35] <FatalNIX> Casper, you're building a machine that will make you human again for an hour or so
[22:56:02] <Valen> FatalNIX: 's called a bed innit?
[22:56:24] <FatalNIX> I was referencing the movie
[22:56:26] <FatalNIX> casper
[22:56:27] <FatalNIX> lol
[22:56:50] <Casper> yeah I think they built a machine... but it's been so long since I saw the movie
[22:57:04] <FatalNIX> maybe he's building a project thatl do my claculus homework
[22:57:12] <Casper> but imagine if you could go spirit/living as you wanted....
[22:57:16] <FatalNIX> somehow the teacher assigned me lots of calc homework the night before the final exam
[22:57:19] <FatalNIX> how retarded is that?
[22:57:35] <Casper> ... spying would be... a different game
[22:57:36] <FatalNIX> I should be studying for the final, not trying to make sure I get a zero on a homework grade.
[22:57:52] <Casper> FatalNIX: teachers are asshole
[22:58:06] <Casper> most don't care about their students and rules
[22:58:09] <FatalNIX> she's some random professor from russia or some crap.
[22:58:24] <FatalNIX> yeah... she gave us a test last week
[22:58:29] <FatalNIX> and the university said not to
[22:58:36] <FatalNIX> no tests the week before finals
[22:58:47] <Casper> one of my teacher was regularly giving 2-3 hours long homework, due next day, school policy is 50 minutes max per course, 2 hours max total per day
[22:59:05] <FatalNIX> huh.
[22:59:27] <FatalNIX> when I took ECE 101, intro to electrical engineering, etc - we had only like 5 problems a week
[22:59:31] <FatalNIX> but they would take you ALL week
[22:59:41] <FatalNIX> because he made em super tough
[22:59:50] <Casper> that teacher ended up close to be fired up
[22:59:52] <FatalNIX> you'd be thinking about this one problem for a few days
[23:00:00] <FatalNIX> Casper: oh got caught?
[23:00:15] <Casper> student and parents was constantly complaining
[23:00:33] <Casper> after a while the director checked it up, gave warning to the teacher
[23:00:39] <Casper> after several of it...
[23:00:50] <Casper> and unwaranted detention and other issues...
[23:01:03] <FatalNIX> when I was in HS
[23:01:05] <Casper> ... the teacher had to readjust himself
[23:01:09] <FatalNIX> I never went to detetion
[23:01:12] <FatalNIX> detention*
[23:01:25] <FatalNIX> I got detenton off and on quite a bit sometimes but never went
[23:01:40] <Casper> ... that teacher ended up changing school soon after (the rumor said so)... but we think he got fired up
[23:01:55] <Casper> high school detention was kinda funny
[23:02:04] <FatalNIX> I lived 30 miles away from my school, there was no way I could make it home if I ever went to detention, nothing the school could do :P
[23:02:16] <FatalNIX> its what happens when you live in the middle of nowhere
[23:02:25] <Casper> got some, you had choice: 1 hour after school, or at lunch time
[23:02:37] <FatalNIX> yeah they didn't do that here
[23:02:41] <FatalNIX> detention was only after school
[23:03:15] <Casper> lunch is 1h, but you can get in 15 mins "late" due to having to get lunch, that leave 45 minutes of "detention"
[23:03:24] <Casper> now, you eat slowly, that sure take 30 minutes
[23:03:39] <Casper> then... well, few lines and that's it
[23:03:53] <Casper> they don't have much choice here, half the students came in school bus
[23:04:11] <Casper> or had to take some special bus...
[23:04:29] <Casper> like take the bus to the metro, then jump in another bus and drive almost 1 hour
[23:04:41] <Casper> next of that bus was 6 hours later
[23:04:48] <FatalNIX> haha
[23:05:00] <FatalNIX> people underestimate how smart kids are
[23:05:43] <FatalNIX> a long time ago when we got a bunch of macs
[23:05:51] <FatalNIX> they blocked like everything on the Internet
[23:06:38] <FatalNIX> so I opened safari, typed telnet://, it brought me into telnet, ctrl ], exit, boom, shell I could just ssh through and bam! into my servers and completely out of the nwork.
[23:07:53] <Casper> here they started blocking
[23:07:58] <Casper> but it ended up being way too wide
[23:08:09] <Casper> the blocking software worked by domain name
[23:08:18] <FatalNIX> what, that's silly
[23:08:29] <FatalNIX> what a weak block
[23:08:38] <Casper> and the list used... included everything... then the software break it down back to the domain...
[23:09:01] <Casper> ... meaning that geocities.com/~porn/ ended up blocking all of geocities
[23:09:12] <Casper> same with yahoo hosting
[23:09:21] <Casper> and all of them
[23:09:34] <Casper> meaning that all free hosting was blocked
[23:09:59] <Casper> then they "upgraded" the software
[23:10:11] <Casper> ... it now converted the domain to ip address
[23:10:36] <FatalNIX> bbthat's even stupider
[23:10:46] <Casper> meaning that then all of the shared host was mostly blocked due to one host having inadequate stuff
[23:10:56] <FatalNIX> you can have a billion domains (unrealistically) on 1 IP
[23:11:09] <Casper> their p2 proxy couln't cope with the demand...
[23:11:20] <Casper> yes, pentium fucking 2
[23:11:30] <Casper> on early p4 age
[23:11:37] <FatalNIX> sounds like the net admin needs another job
[23:11:37] <Casper> not even a xeon
[23:11:44] <Casper> and
[23:11:52] <Casper> that was the proxy for MANY schools
[23:12:11] <Casper> half into the year, they removed completly the proxy
[23:12:16] <Casper> I think they fired the guy
[23:12:29] <FatalNIX> heh. here at our university we do not ban ANYTHING. And everyone gets a publc IPv4 address right out in the open XD
[23:12:37] <FatalNIX> because they encourage people to run servers
[23:12:51] <FatalNIX> we have like a /16 IPv4 block
[23:13:11] <FatalNIX> f you were wondering where all the IPv4 addresses went..
[23:13:12] <FatalNIX> lol
[23:13:39] <Casper> they changed the rules, if you go to porn site, it's a year long interdiction to use the computer, which almost mean a fail in some course
[23:14:00] <FatalNIX> that doesn't sond right
[23:14:02] <FatalNIX> sound*
[23:14:19] <FatalNIX> there are times when I would be looking up something and accidently click a porn link on google
[23:14:28] <FatalNIX> what if that happened?
[23:14:40] <FatalNIX> like I was trying to show someone a meme the other day
[23:14:44] <FatalNIX> clicked im feeling lucky
[23:14:45] <FatalNIX> BAD IDEA
[23:14:52] <FatalNIX> went to a totally different website
[23:16:02] <Casper> if that happened, the teacher ask you to press back and show what you did
[23:16:17] <FatalNIX> LOL
[23:16:21] <Casper> they were kinda relax
[23:16:39] <Casper> knowing it was easy to hit the wrong site
[23:16:44] <FatalNIX> thats their way of saying "I wanna see too!"
[23:16:49] <FatalNIX> lolol
[23:17:04] <Casper> basically, what they really did is: notice you are on an unallowed site? check if you click back asap or stay on it
[23:17:15] <Casper> if you stay, you're in trouble
[23:20:27] <FatalNIX> hah
[23:20:39] <FatalNIX> you know there's no real way to Determine that unless they witness it
[23:20:57] <FatalNIX> because even if you leave a site, your browser can keepalive that connection until the server drops you
[23:21:34] <FatalNIX> your which is usually fairly short but not instant
[23:22:07] <FatalNIX> You have to be kidding me..
[23:22:59] <FatalNIX> so as my assignmenst are now due right now, I just noticed, there are two review assignments for the whole semester. I can not get into them because they are past due. What? uh.. review assignments like that- they should not be graded, they should be kept open for studying purpose.
[23:23:05] <FatalNIX> This teacher is doing it completely wrong