#avr | Logs for 2013-06-06

Back
[03:30:55] <megal0maniac> Yes, it is a bad idea to connect an LED directly. Yeah, there are exceptions, but ignore them because just no.
[03:32:39] <Badaboom> Whats that burnt smell?
[03:37:13] <Valen> if you are asking that question the answer is no, and also way out of date lol megal0maniac thats like eleventy hours old isnt it?
[03:37:53] <megal0maniac> Valen: I just logged on and I'm reading the scrollback :)
[03:38:06] <megal0maniac> megal0maniac_afk listens for me :)
[03:38:38] <Badaboom> http://www.baynews9.com/content/news/baynews9/weather/klystron-9-radar.map.html/Florida.html
[03:38:50] <Badaboom> ^^ Whats the hell happened to the radar?..lol
[03:38:54] <Badaboom> what
[03:40:12] <megal0maniac> Haha!
[03:40:23] <megal0maniac> It appears... confused. Only temporarily
[03:41:17] <Badaboom> yeah,, im going with an alien craft got in the way:)
[03:43:09] * megal0maniac tries to measure a red 0805 LED with his multimeter
[03:45:33] <megal0maniac> Should I not be able to measure some kind of bias voltage?
[03:47:36] <Valen> measure what aspect of it?
[03:48:25] <Badaboom> u should be able to
[03:52:48] <Badaboom> consider the 9v test?
[03:53:19] <Badaboom> 9v 1k FV
[03:53:24] <Tom_itx> http://eds.dyndns.org/~ircjunk/tutorials/elex/ledsensor/ledsensor.html
[03:54:07] <megal0maniac> Well on normal (5mm) LEDS the multimeter gives you what I think is your forward bias voltage. But it isn't giving any reading for this (yes, it is connected correctly)
[03:54:47] <Badaboom> Bad led?
[03:56:25] <megal0maniac> Nope. It lights up just fine
[03:57:06] <Badaboom> hmm strange
[03:57:56] <megal0maniac> Tom_itx: I've seen that LED sensor thing in Arduino before, but it's damn clever
[03:58:28] <Badaboom> I never thought of an LED as a sensor
[03:59:59] <Badaboom> sure a photo diode with photo transistor
[04:00:33] <megal0maniac> It's very hackish but it works
[04:03:14] <megal0maniac> It's funny. In the last year, I've begun to get irritated with standard through-hole resistors because they're too huge. My sense of scale has changed
[04:04:43] <MrM0bius> haha. its funny if yousolder for 4 or 5 hours then look at your hands or desk and everything looks enormous all of a sudden
[04:05:28] <Badaboom> magal0maniac: same here
[04:06:13] <Badaboom> altho ive have headaches looking as boards trying to find resistors in smd
[04:06:21] <Badaboom> ive had
[04:06:30] <Badaboom> sheesh,, my typing
[04:07:07] <john_f> megal0maniac: fun in matrix form, if you can drive them all. http://smartplayground.wordpress.com/video-demos/
[04:07:39] <Badaboom> MrMobius: i made something the other night and looking at it i couldnt believe i made it
[04:09:31] <Badaboom> john_f: i have one of those in my garage...i wish
[04:09:50] <megal0maniac> john_f: I just bought 10 0805 LEDs to play with, hardly getting into matrices :P
[04:10:01] <megal0maniac> Unless it's 3x3 and only red :)
[04:10:08] <Badaboom> lol
[04:10:28] <Badaboom> I still have the 100 rgb's i have to do something with
[04:10:44] <megal0maniac> I actually have 9 5mm RGBs...
[04:10:51] <Valen> put them on my cealing
[04:10:53] <Badaboom> Difused?
[04:10:55] <Valen> I want pretty stars
[04:11:00] <megal0maniac> Yeah
[04:11:09] <megal0maniac> But only 9 :)
[04:11:16] <john_f> well the one I saw that was directly driven by an avr was quite dim.
[04:11:20] <Badaboom> nice,, i bought some from china non difused common anode,,, Garbage
[04:11:35] <OndraSter__> did I just hear LED matrix? :P
[04:11:49] <megal0maniac> OndraSter__: Go back to sleep, false alarm :P
[04:11:53] <OndraSter__> :D
[04:12:05] <Badaboom> I don't know what it is but LED's after all this time still fascinate me
[04:13:53] <Badaboom> https://www.youtube.com/watch?v=f1YNyQqbiF0
[04:14:06] <megal0maniac> Most expensive DIP IC I've ever seen https://www.sparkfun.com/products/9578
[04:14:09] <Tom_itx> follow the light
[04:14:16] <Tom_itx> bzzzztt
[04:14:34] <OndraSter__> 32x32x32 is monstrous
[04:14:59] <Valen> megal0maniac: I once had a pair of $130 ADC's
[04:17:34] <Badaboom> https://www.youtube.com/watch?v=JaVfJOIBGck
[04:17:53] <megal0maniac> Valen: In DIP?
[04:18:07] <Valen> dip16
[04:18:19] <Valen> best part was i was given them as samples ;->
[04:21:24] <Badaboom> We have this mexican girl at the food court at the mall that everytime i walk past her shes got this plate of chicken out saying "sample sample",, i laugh inside thinking of all the free crap ive gotten form atmel and whatnot lately
[04:23:05] * megal0maniac likes the price of the BeagleBoard Black
[04:23:17] <Badaboom> Digikey?
[04:23:27] <OndraSter__> digikey and their funky shipping $$
[04:23:45] <Badaboom> They have always been good to me
[04:24:00] <Badaboom> but yes
[04:24:20] <Badaboom> I ask the shipping and its always,, well know when if goes thru shipping
[04:25:02] <megal0maniac> Definitely not Digikey...
[04:25:05] <megal0maniac> Not to hear
[04:25:08] <megal0maniac> *here
[04:25:21] <Badaboom> lol,, that would be expensive ehh?
[04:25:34] <megal0maniac> $60 shipping, seemingly flat-rate
[04:25:40] <Badaboom> fk that
[04:28:06] <RikusW> megal0maniac: my brother got 4 beagle bone blacks
[04:29:15] <RikusW> 3 is for work
[04:29:59] <megal0maniac> Obviously quite likes them
[04:30:39] <megal0maniac> RikusW: That USB to RS232 cable arrived. It's 5V TTL, signals aren't even inverted :/
[04:30:41] <OndraSter__> why everybody's dads or brothers etc work in electronics? My dad works as a "person who makes a budget calculations for buildings" and my brother is a cop... only my uncle does electronics (did?)
[04:30:45] <megal0maniac> Which is fine for me, but wtf..
[04:31:44] <megal0maniac> OndraSter__: My dad does automation and process control :P (PLC stuff, heavy current)
[04:31:48] <RikusW> guess thats why we shouldn't make assumptions when it comes to chinese electronics :-P
[04:32:13] <OndraSter__> megal0maniac, PLC... we had PLC at school and the teacher made me hate it (middle school) :D
[04:38:00] <Badaboom> I still can't believe you think music is evil
[04:38:45] <OndraSter__> who does?
[04:39:39] <Badaboom> megal0maniac: wasnt it you that said that earlier?
[04:39:46] <megal0maniac> The hell?
[04:39:55] <megal0maniac> No!
[04:39:55] <Badaboom> oh sorry,, i though it was
[04:40:03] <megal0maniac> I'm bordering on audiophile
[04:40:03] <Badaboom> lol,, hes like mf
[04:40:11] <Badaboom> oh nice
[04:40:16] <Badaboom> https://www.youtube.com/watch?v=mJ_fkw5j-t0
[04:40:24] <megal0maniac> Too poor to go all the way XD
[04:40:46] <Badaboom> Ive been favoring the cello lately
[04:42:16] <Badaboom> Maybe it was someone in #electronics,, i cant remember now
[04:43:20] <OndraSter__> just send him some Rubycon7 (Electro house) or trance or .. whatever :P
[04:43:29] <Badaboom> lol
[04:43:52] <Badaboom> see, i can listen to just about anything,, just depends on my mood really
[04:44:59] <OndraSter__> well since no radio station out here broadcasts anything like that I listen to rock while driving :D
[04:45:17] <Badaboom> here?
[04:45:29] <OndraSter__> yes, here
[04:45:37] <Badaboom> here? is?
[04:45:46] <OndraSter__> czech my whois' DNS
[04:46:06] <Badaboom> ahh,, i love that country
[04:46:19] <Badaboom> You have such beautiful women
[04:47:16] <megal0maniac> This is "Africa" http://wind.ctwug.za.net/wind/files/photos/photo-1004.jpg
[04:47:53] <megal0maniac> (And the reason why you can't generalise :P)
[04:48:13] <specing> megal0maniac: your picture needs more deserts
[04:48:39] <megal0maniac> That is the view from my roof
[04:48:50] <Badaboom> It looks like cali
[04:49:01] <Badaboom> and if you had never told me...
[04:49:45] <megal0maniac> :)
[04:50:13] <megal0maniac> I've been to Florida, I can believe that
[04:50:20] <Badaboom> :)
[04:50:37] <Badaboom> I like it here,, but i miss traveling
[04:51:06] <Badaboom> I spent 4 months of last year at Disney,,lmao
[04:52:40] <OndraSter__> megal0maniac, the link redirects me to google
[04:53:05] <Valen> have you guys seen geo guesser? http://geoguessr.com/
[04:53:23] <Valen> get random street view, then you have to say where it is
[04:53:32] <Valen> I didn't do too terribly actually ;->
[04:54:43] <megal0maniac> OndraSter__: http://atinyhedgehog.za.net/photo-1004.jpg ?
[04:55:07] <OndraSter__> nice
[04:55:40] <megal0maniac> Badaboom: I don't like the original song. But I did play the trombone when I was in junior school :P
[04:56:35] <Badaboom> are you near johannesburg?
[04:56:44] <megal0maniac> Noooooo
[04:56:48] <Badaboom> oh,,lol
[04:57:14] <megal0maniac> Cape Town. We have beaches and stuff
[04:57:22] <OndraSter__> how are the penguins?
[04:57:23] <Badaboom> ahh,, yes Cape Town
[04:57:35] <Badaboom> cape Town is beautiful
[04:59:15] <megal0maniac> Have you been here?
[04:59:46] <Badaboom> megal0maniac: when i was younger
[04:59:48] <OndraSter__> I always think of south africa as somewhere where are lions and sand ... :D
[04:59:55] <Badaboom> NO
[05:00:01] <Badaboom> Its very populated
[05:00:08] <megal0maniac> OndraSter__: http://i.imgur.com/mrLOGNql.jpg
[05:00:13] <megal0maniac> Just for you :P
[05:00:22] <OndraSter__> hehe
[05:00:33] <OndraSter__> when somebody told me "south africa? That's with the penguins eh?"
[05:00:37] <OndraSter__> I was like "wait, what?"
[05:00:44] <Badaboom> lmao
[05:00:48] <megal0maniac> Well we have other things too...
[05:01:44] <megal0maniac> OndraSter__: The Lions are mostly in game reserves (although they are HUGE) and the sand is in between the populated areas. But the major cities are much like anywhere else
[05:01:56] <megal0maniac> RikusW probably has some lions too
[05:01:58] <OndraSter__> yeah
[05:02:08] <megal0maniac> We just have dogs
[05:02:15] <OndraSter__> heh
[05:02:18] <OndraSter__> and cats?
[05:02:27] <RikusW> megal0maniac: fortunately not, but there are some farmers nearby who actually does
[05:02:31] <Badaboom> Thats it?.. nothing that can maw your arm off,, wtf?
[05:02:50] <Badaboom> naw
[05:03:03] <megal0maniac> Not us, but a lot of houses have cats. Again, much like other cities
[05:03:40] <Badaboom> megal0maniac: come on,, your in Africa,, is it at least a roar cat or a meow?
[05:04:57] <megal0maniac> Badaboom: http://i.imgur.com/iV8nfRml.jpg
[05:05:14] <megal0maniac> It kinda has a mane. But it's still a meow
[05:05:29] <Badaboom> toflmao,, definitly a meow
[05:06:21] <RikusW> a
[05:06:28] <OndraSter__> b
[05:06:32] <Badaboom> c
[05:07:25] <Badaboom> ok,, one or all of us have to much lead in there solder
[05:07:40] <theBear> hmmmm, if i had a pair of 3d glasses, where might i keep them ?
[05:07:58] <Badaboom> under that cushion
[05:08:00] <OndraSter__> next to the projectors
[05:08:02] <Badaboom> to the right
[05:08:06] <megal0maniac> h
[05:08:31] <theBear> no no, i never had a 3d movie at home before, projectors is next time, if i have one and if i can workout where i might think it was a good idea to put it long long ago
[05:08:50] * theBear looks under the cushion and to the right
[05:08:50] <Badaboom> your just sick:)
[05:08:56] <theBear> heh
[05:09:59] <theBear> i coulda sworn i had some of just the right colour stuff from old lighting-work, coded and verified style, but i can't really, oooh, maybe gels (high temp cellophane) live with small bits of foam and carpet stock
[05:10:14] <theBear> i'm excited, 3d cartoon !
[05:10:26] <Badaboom> lol
[05:10:41] <Badaboom> what is wrong with u,, did u eat today?
[05:10:44] <theBear> plus i get to wear 80s glasses
[05:10:55] <theBear> not enough, i mighta had a couple drinks tho
[05:11:01] <Badaboom> lmao
[05:11:10] <theBear> it's ok, i got food now, i'm just choosing not to cook it yet :)
[05:11:26] <Badaboom> ahh,, i went to the grocery yesterday
[05:11:41] <theBear> i went thismorning, with a car so i could get more than a backpack worth for a change
[05:11:55] <Badaboom> Nice
[05:12:12] <theBear> indeed ! i've got all kinds of stuff, now there's no excuse not to clean the kitchen and stove :)
[05:12:20] <Badaboom> lol
[05:12:47] <megal0maniac> My friend and I made burgers yesterday, made the patties from scratch. Ohmygoodness it was tasty
[05:13:00] <megal0maniac> Germans. :)
[05:13:05] <Badaboom> ahh:)
[05:13:11] <theBear> that's the only way ! that stuff that comes frozen or from the butcher aint hamburgler
[05:13:14] <Badaboom> I cook al the time
[05:13:24] <Roklobsta> i always make patties from scratch
[05:13:26] <theBear> i cook regularly :)
[05:13:35] <theBear> rest of the time i drink
[05:13:40] <Badaboom> lool
[05:13:45] <Badaboom> fish
[05:13:52] <megal0maniac> theBear: It's cheaper and healthier and tastier. Just costs time
[05:14:20] <Badaboom> I love fresh cooking,, im making a roast tonight
[05:14:24] <megal0maniac> First burger king opened here the other day. Wonder how it is...
[05:14:27] <Badaboom> yuk
[05:14:27] <theBear> oh, i don't get takeaway not-food.... if i eat i cook it, i used to ocassionally get nice indian or chinese from up the road, but not these dyas
[05:14:43] <theBear> except some things i don't cook, i eat them raw :)
[05:14:48] <Badaboom> Burger King = satan
[05:15:01] <megal0maniac> What if its African Burger King? :P
[05:15:03] <Badaboom> wtf smegol
[05:15:05] <theBear> i dunno about that, but i certainly have no attraction to that 'food'
[05:15:18] <theBear> Martin Burger King ?
[05:15:21] <Badaboom> lol
[05:15:56] <theBear> i'm on fire ! i should do something useful instead of stop you doing useful things :) maybe even make food
[05:16:25] <megal0maniac> I should shower and get working. It's nearly lunch time
[05:16:35] <OndraSter__> hehe
[05:16:39] <OndraSter__> I got up few minutesago
[05:16:46] <megal0maniac> Holidays yet?
[05:16:52] <OndraSter__> one more exam
[05:16:59] <OndraSter__> which means I have to finish my semestral project
[05:17:36] <Badaboom> No flying for me today:(
[05:17:40] <megal0maniac> I have computer skills. Need to prove I can use MS Office
[05:17:59] <Badaboom> Rain is terrible out there
[05:18:01] <megal0maniac> So actually no more exams :)
[05:18:33] <OndraSter__> eh
[05:18:39] <OndraSter__> my faculty hates MS tbh :D
[05:19:19] <megal0maniac> Whole bloody Uni is run on Windows 7 and AD and we have Live email accounts :/
[05:19:25] <megal0maniac> Used to be Novell
[05:19:49] <OndraSter__> where I work we are luckily switching from novell to AD
[05:20:09] <OndraSter__> I am the one setting it up :D
[05:20:09] <Badaboom> megal0maniac: heres another radar shot,, the same thing now..... http://www.baynews9.com/Doppler9000.html
[05:21:17] <Badaboom> Im telling you,, theres an alien craft sitting out there
[05:21:21] <megal0maniac> Badaboom: I can't tell if this is legit http://www.baynews9.com/content/news/baynews9/weather/klystron-9-radar.map.html/Seminole.html
[05:21:23] <Valen> rangegate error?
[05:21:52] <megal0maniac> Or aliens
[05:22:54] <Badaboom> lol
[05:23:04] <OndraSter__> what is the image about?
[05:23:12] <Badaboom> My local radar
[05:23:16] <Badaboom> well the weather
[05:23:24] <megal0maniac> Ah, the one I just linked to is coming right on the last frame
[05:23:36] <OndraSter__> well we just had floods
[05:23:40] <Badaboom> ahh ok,, the craft took off then?
[05:23:43] <OndraSter__> the public transport is slowly recovering
[05:23:59] <megal0maniac> We had hail :)
[05:24:11] <megal0maniac> And lots of rain. Now it's sunny again
[05:24:20] <megal0maniac> Shower!
[05:25:25] <Badaboom> Yeah thats definitly a tropical depression
[05:25:41] <Badaboom> Possibly when the sun warms the water a TS
[05:32:28] <Roklobsta> with AS6 can i get a breakdown of the system function registers by name and even the bits like avrs4 did?
[05:33:47] <RikusW> megal0maniac_afk: winter rain for you summer rain for me
[05:34:15] <Badaboom> He meant shower as in Tub
[05:34:49] <Badaboom> <megal0maniac> I should shower and get working. It's nearly lunch time
[05:35:21] <Badaboom> at least i think:)
[05:41:28] <Roklobsta> doh just got caught by a lack of volatile.
[05:42:27] <Roklobsta> curse you -O1
[05:53:22] <Badaboom> https://www.youtube.com/watch?v=mLMWXBv5rY4
[06:01:24] <tomatto> how can i decrease sensitivity of light sensor connected to analog pin?
[06:02:11] <Roklobsta> use less light
[06:05:27] <megal0maniac_afk> Netsplit?
[06:06:02] <specing> megal0maniac_afk: christel(~christel@freenode/staff/exherbo.christel)- [Global Notice] Welcome to Splitville, Population: Shrinking -- as you may have noticed the network is suffering under the strain of yet another DDoS attack, we are working with our sponsors to try curb what we can and apologise for the inconvenience.
[06:06:22] <megal0maniac_afk> I know. Was just wondering if that was one of them
[06:06:52] <megal0maniac_afk> Also, [Global Notice] Hi, yes NickServ, ChanServ etc are gone - we're investigating why right now.
[06:07:05] <specing> nickserv is up
[06:07:20] <megal0maniac_afk> That was yesterday evening
[06:07:31] <megal0maniac_afk> But still... Things are clearly screwy
[07:17:12] <wondiws> guys, I've got an ATmega32u4 and I can't seem to get timer0 to work
[07:17:20] <wondiws> I try to keep it as simple as possible:
[07:17:35] <wondiws> TCCR0B |= (1<<CS02) | (1<<CS00);
[07:17:47] <wondiws> TIMSK0 = (1<<TOIE0);
[07:17:48] <wondiws> sei();
[07:18:08] <wondiws> now, the TIMER0_OVF_vect handler should be called by the timer right?
[07:18:12] <wondiws> but it doesn't
[07:18:33] <wondiws> on my ATMega32 and ATMega328p I don't have this problem, any ideas?
[07:24:48] <ambro718> have you turned off the timer via PRR0/PRTIM0?
[07:25:41] <wondiws> I don't know
[07:28:11] <wondiws> if I do "PRR0 = 0", that turns off all power saving?
[07:29:25] <specing> wondiws: do you have while(1) ; after sei()?
[07:29:37] <specing> or some other infinite loop?
[07:29:46] <wondiws> yes, while (true)
[07:31:12] <ambro718> maybe the interrupt is being called but some bug makes you think it isn't
[07:31:51] <wondiws> it's not called I only enable a led in the handler
[07:31:55] <wondiws> and the led does work
[07:32:08] <wondiws> PORTC |= (1<<7);
[07:32:28] <wondiws> in the main routine it really does light up the led
[07:35:03] <wondiws> I got it working now, you know how?
[07:35:09] <wondiws> I tried another programmer :S
[07:36:07] <ambro718> that's weird, doesn't your programming software verify the firmware after writing?
[07:37:27] <wondiws> first, I programmed via a bootlader on the ATmega, that must be it.
[07:37:32] <wondiws> Now I just use ISP
[08:02:41] <megal0maniac_afk> megal0maniac: Get off!
[08:03:02] <twnqx> ghost him!
[08:03:22] <megal0maniac> Bam.
[08:03:39] <megal0maniac> twnqx: I accidentally had two instances of screen (irssi) running
[08:04:32] <megal0maniac> Hmmm... Wouldn't programming with lockbits set make verification impossible?
[08:08:49] <twnqx> yes
[08:38:47] -rajaniemi.freenode.net:#avr- [freenode-info] channel flooding and no channel staff around to help? Please check with freenode support: http://freenode.net/faq.shtml#gettinghelp
[09:10:33] <edmont> hi
[09:10:58] <edmont> do you know if AVR chips come with an EUI64 address?
[09:12:35] <RikusW> probably not
[09:12:42] <megal0maniac> Datasheet?
[09:13:02] <megal0maniac> Tiny flux balls everywhere :/
[09:13:23] <RikusW> what did you do ?
[09:13:40] <megal0maniac> Aery32 headers...
[09:13:46] <cmtptr> god damned tiny flux balls!!
[09:13:48] <megal0maniac> Nearly done
[09:14:22] <RikusW> did you put male headers on the aery ?
[09:14:37] <megal0maniac> Yip
[09:14:50] <RikusW> I'll probably do that too
[09:15:01] <RikusW> will fit an ide cable ;)
[09:15:18] <megal0maniac> Ooh! Yes!
[09:15:21] <megal0maniac> It's 40 pin
[09:16:09] * RikusW is chatting while rebooting :-P (XP in vbox)
[09:16:56] <megal0maniac> I can do that too :P (irssi on router)
[09:21:18] <megal0maniac> RikusW clearly cannot do that
[09:29:32] <Badaboom> Sorry,, had a tornado warning here:(
[09:29:58] <twnqx> luckily it didn't go your way
[09:30:35] <Badaboom> yeah,, well this thing over me is developing into a TS so im not out of the woods yet
[09:30:41] <megal0maniac> We don't get those
[09:31:00] <megal0maniac> So that's why you were checking the funky radar?
[09:31:04] <Badaboom> megal0maniac: yup,, remember the link i sent and said it was funky?
[09:31:09] <Badaboom> lol
[09:31:13] <Badaboom> yep
[09:32:42] * thetruthisoutthe steps out of an event horizon in midair waving hi
[09:33:02] <megal0maniac> thetruthisoutthe: ???
[09:33:13] <megal0maniac> Is that an automated message or something?
[09:33:32] <megal0maniac> Or just some ipv6 craziness?
[09:33:42] <thetruthisoutthe> haha
[09:34:15] <thetruthisoutthe> waving hi was meant to be a greeting.
[09:34:45] <megal0maniac> RikusW: Welcome back :P
[09:35:04] <RikusW> adsl is whacky today...
[09:35:07] <Badaboom> Ive added a couple inits to my code to clear up the 1 digit problem:):)
[09:36:53] <thetruthisoutthe> sup Badaboom
[09:37:04] <Badaboom> Heya
[09:37:39] <Badaboom> Sorry man,, i know u don't like that chip but i just wanted to see it thru and learned alot from it
[09:39:00] <Badaboom> thetruthisoutthe: how are you today?
[09:39:50] <thetruthisoutthe> doing electronic magic as usual
[09:40:02] <Badaboom> nice:)
[09:40:16] <thetruthisoutthe> had to sharpen my 0.5mm marker to fix some tracks on smt boards
[09:40:26] <Badaboom> ahh
[09:40:33] <thetruthisoutthe> it is like 0.25mm now
[09:40:35] <Badaboom> sharpie?
[09:40:44] <Badaboom> lol
[09:41:18] <thetruthisoutthe> it is bow sharpie ;>>
[09:41:21] <thetruthisoutthe> *now
[09:41:26] <Badaboom> lol
[09:41:28] <thetruthisoutthe> edding 140S btw
[09:46:04] <Badaboom> They named it
[09:46:13] <Badaboom> Tropical Storm Andrea
[09:46:47] <Badaboom> sigh,, and there expecting another tornado .....
[09:49:30] <thetruthisoutthe> where are you?
[09:52:07] <Badaboom> West Central Florida (Tampa Bay Area)
[09:58:41] <thetruthisoutthe> hmm i have heard hurricanes are common in florida
[10:00:48] <thetruthisoutthe> hmm, i hate fixing tqfp boards before etching
[10:02:53] <thetruthisoutthe> this makes one to remember fixing pad sizes
[10:03:10] <Badaboom> tqfp is a b----
[10:03:14] <Badaboom> !
[10:03:20] <Badaboom> tiny
[10:03:53] <thetruthisoutthe> not bad if the board is good, really
[10:04:05] <Badaboom> what method of transfer?
[10:04:45] <thetruthisoutthe> photolithography
[10:04:50] <thetruthisoutthe> (for prototypes, only mirror toner transfer from paper)
[10:04:52] <Badaboom> ahh nice
[10:05:06] <thetruthisoutthe> these are prototypes now
[10:05:52] <thetruthisoutthe> i can do 5/5 mil using a good film and photolithography
[10:06:49] <Badaboom> wow
[10:07:02] <Badaboom> thats pretty good
[10:09:05] <thetruthisoutthe> mos things are fine with 15/10 or 10/10, that is fine too
[10:09:21] <thetruthisoutthe> *t
[10:09:49] <thetruthisoutthe> and 15/15 is still fine for soldering
[10:10:51] <thetruthisoutthe> 6 pin sot23 and things like that would make you crazy
[10:12:41] <Badaboom> lol
[10:13:09] <Badaboom> are you using a scope for soldering?
[10:13:40] <thetruthisoutthe> no
[10:13:42] <Roklobsta> finally i have some nice serial code that uses CTS and RTS on the facking modem
[10:13:46] <thetruthisoutthe> i use a 3w led
[10:14:00] <Badaboom> ahh
[10:14:08] <thetruthisoutthe> all i need is some light
[10:14:24] <Badaboom> and thats enough?
[10:14:29] <Badaboom> heat?
[10:16:09] <thetruthisoutthe> a led does not generate much heat
[10:16:26] <thetruthisoutthe> i remember when i used 150-500W halogen, it was heating much
[10:16:45] <thetruthisoutthe> even 10W led gives cool light, so even fine in a hot summer
[10:17:06] <Badaboom> I have a friend that has a laser soldering station at his jewlrey shop
[10:17:17] <Badaboom> Its like a 30k machine
[10:17:18] <thetruthisoutthe> i just reflow solder
[10:17:37] <thetruthisoutthe> i sometimes use soldering iron
[10:17:44] <thetruthisoutthe> but mostly only SMT
[10:17:56] <Badaboom> I think the reflow is better isnt it?
[10:18:35] <thetruthisoutthe> yes
[10:18:47] <thetruthisoutthe> it self aligns nicely, and looks perfect
[10:18:48] <Badaboom> at least on small packages
[10:19:01] <Badaboom> ahh
[10:19:32] <thetruthisoutthe> ofc. board design is critical for self-aligning
[10:19:42] <Badaboom> very
[10:19:42] <thetruthisoutthe> pad sizes and shapes are to be considered
[10:20:42] <ambro718> ahh, my 32bit sqrt is finally finished :) 164 instructions in worst case plus some short init done by compiler. http://ideone.com/Yk8XqS
[10:38:29] <thetruthisoutthe> newton iteration
[10:42:53] <ambro718> no it's just the digit-by-digit algorithm for square roots
[10:43:28] <ambro718> but unrolled and heavily optimized, with iteration-specific optimizations
[10:44:33] <ambro718> in my experience newton iteration with integers is hard because you need to multiply 32x32->64
[10:44:59] <ambro718> and, depending on your problem, you also need division
[10:46:28] <ambro718> I tried implementing the reciprocal f(x)=2^32/x some days ago but it didn't go very well
[10:46:34] <ambro718> (with newton iteration)
[11:16:54] <scipy53> I would like to run FreeRTOS on an AVR microcontroller. Any suggestions for an MCU to choose to run about 15 real time tasks? I would like a clock speed of at least 1 MHz.
[11:17:03] <scipy53> 16 MHz*
[11:17:34] <OndraSter_> well you asked for 16MHz
[11:17:46] <OndraSter_> 16MHz does any common AVR
[11:17:50] <OndraSter_> some do even 32MHz
[11:17:54] <scipy53> Ya, true.
[11:17:56] <OndraSter_> and even twice as much when overclocked
[11:18:55] <scipy53> I guess the was a pretty useless requirement. What kind of characteristics should I look out for in an mcu which I expect to run FreeRTOS on?
[11:19:06] <OndraSter_> required peripherals and size
[11:19:54] <scipy53> Size as in physical size?
[11:20:09] <OndraSter_> yes
[11:20:18] <OndraSter_> and flash/RAM sizes of course
[11:20:22] <scipy53> That's irrelevant for my project
[11:20:31] <scipy53> Size, that is
[11:21:36] <scipy53> Well, I would like an ADC read resolution to be at least 12 bits
[11:21:55] <OndraSter_> then you require either xmega or external ADC
[11:23:01] <scipy53> Ok, a highly capable ADC is my key requirement from a peripherals standpoint ... what max speed do you think I could expect from an external or xmega adc?
[11:23:30] <jadew> scipy53, from an external one, any speed
[11:23:34] <OndraSter_> xmega ADC does 2MSPS
[11:23:41] <OndraSter_> it can sample two inputs nearly at the same time
[11:23:46] <jadew> from the xmega, I think it's 200Ksps for the lower end ones
[11:23:48] <OndraSter_> and bigger chips have got even two separate ADCs
[11:23:58] <OndraSter_> ye, 200ksps on D/C/B series, 2MSPS on A series
[11:24:32] <scipy53> Hmm that's neat, two separate ADCs would do what for me though? I can only sample one after another anyway, no?
[11:24:43] <OndraSter_> no
[11:24:46] <OndraSter_> two sampling at the same time
[11:24:48] <jadew> scipy53, you can sample them both
[11:24:58] <OndraSter_> plus xmega can sample on a SINGLE module two inputs separated by a single clock
[11:25:18] <OndraSter_> which means 4 inputs nearly at once
[11:26:06] <scipy53> Forgive me, I'm new to this. I thought these are single core machines, i.e. you cannot do two things at once.
[11:26:17] <OndraSter_> but this is ADC
[11:26:21] <OndraSter_> not the core
[11:26:28] <jadew> scipy53, they are, but the hardware peripherals are independent of the code
[11:27:18] <jadew> for example, for hardware USART, you just give it a byte and it'll do the rest for you, using the dedicated hardware, in the meantime you can do whatever you want in the code
[11:27:24] <scipy53> I see. But I cannot sample them at the same time, right? They can read two analog inputs at once as standalone hardware.
[11:27:44] <scipy53> jadew, Right, I get that.
[11:27:55] <OndraSter_> with xmega you can
[11:27:59] <OndraSter_> two separate ADC modules
[11:28:05] <OndraSter_> that can connect to the same input
[11:28:13] <scipy53> Ah alright, now it makes sense.
[11:28:21] <scipy53> So they are connected to the same input.
[11:28:21] <scipy53> Ok
[11:28:27] <scipy53> Very very cool
[11:28:39] <OndraSter_> they share all 16 inputs
[11:28:44] <OndraSter_> so you can either sample the same inputs
[11:28:46] <OndraSter_> or different inputs
[11:31:30] <scipy53> thats awesome,very much what i need
[11:32:07] <OndraSter_> then you want to look at atxmega<flash capacity in kB>a3<"u" if you want with USB module>
[11:32:08] <scipy53> So the ADC register will contain the inputs from two ADC channels at the same time, not just one?
[11:32:09] <OndraSter_> or a1
[11:32:19] <OndraSter_> you will have ADCA and ADCB peripherals
[11:32:25] <scipy53> Right
[11:32:34] <OndraSter_> just as you will have 8 timers or so
[11:32:42] <scipy53> nice
[11:32:56] <OndraSter_> USB module, 32MHz clock
[11:32:56] <scipy53> What would define how many tasks I can have FreeRTOS running?
[11:33:02] <OndraSter_> RAM
[11:33:10] <OndraSter_> xmega256a3u has got 256kB flash and 16kB RAM
[11:33:27] <OndraSter_> I presume that FreeRTOS supports xmega
[11:33:49] <scipy53> I'm pretty sure it does support all AVR MCUs
[11:34:05] <OndraSter_> well if you want to programm your peripherals manually... sure
[11:34:33] <OndraSter_> I doubt it supports xmega's external memory though. Maybe for the basic 64kB support, but doubt the 16MB support (xmega a1/a1u series)
[11:35:08] <OndraSter_> (yes, the high tier xmega has got 16MB SDRAM support lol)
[11:35:16] <scipy53> Oh, well another thing I would prefer is if the MCU came in DIP packages ... which I don't think the xmegas do
[11:35:18] <jadew> what exactly is RTOS anyway?
[11:35:21] <scipy53> 16 mb ... wow
[11:35:25] <OndraSter_> xmegas don't do DIP
[11:35:26] <jadew> what can it possibly do on an AVR?
[11:35:33] <scipy53> jadew, Real time operating system
[11:35:50] <jadew> scipy53, so what's its purpose?
[11:36:03] <scipy53> Schedules tasks to make things run in "parallel"
[11:36:04] <jadew> does it have standardized API calls?
[11:36:07] <scipy53> Yes
[11:36:15] <scipy53> Haven't used it yet
[11:36:26] <OndraSter_> yes it does - that is the "advantage" of these RTOSes - you can port it to different chip easily
[11:36:27] <scipy53> But seems very simple and intuitive ... FreeRTOS anyway
[11:36:40] <jadew> I see
[11:37:31] <thetruthisoutthe> i have some sdrams laying around
[11:37:46] <OndraSter_> it supports only 4 or 8bit ones though
[11:37:50] <thetruthisoutthe> 168 pin
[11:37:52] <OndraSter_> haha
[11:37:55] <thetruthisoutthe> :)
[11:37:58] <OndraSter_> those are 64bit
[11:38:03] <jadew> thetruthisoutthe, I'll give you my postal address in a minute
[11:38:04] <thetruthisoutthe> well those have many chips on
[11:38:25] <thetruthisoutthe> i can desolder them if you like
[11:38:30] <OndraSter_> hehe
[11:38:34] <OndraSter_> jadew, do you want SDRAMs?
[11:38:37] <jadew> ah, soldered... nn
[11:38:55] <jadew> OndraSter_, yeah, was planning to buy some
[11:39:03] <thetruthisoutthe> jadew <= yes, it goes in the standard 168 pin socket used on old computer motherboards :)
[11:39:05] <scipy53> OndraSter_, If I wanted to use the xmegas, what would be the best way? I'd need a breakout/dev board of some sort I presume?
[11:39:08] <jadew> I want to see how fast I can sample and store to SDRAM
[11:39:15] <thetruthisoutthe> haha well i can desolder some of that too anyway
[11:39:16] <OndraSter_> scipy53, yea
[11:39:20] <OndraSter_> scipy53, http://myxboard.net :D
[11:39:36] <OndraSter_> jadew, why would you ever buy SDRAMs nowadays?
[11:39:42] <OndraSter_> we are many generations in the future
[11:39:49] <scipy53> Don't arduinos use xmegas too?
[11:39:53] <megal0maniac> scipy53: You can't buy any though :P
[11:39:54] <thetruthisoutthe> OndraSter_ <= i tihnk he needs that for microcontroller ;)
[11:39:54] <OndraSter_> no
[11:39:55] <jadew> OndraSter_, what took their place?
[11:39:58] <scipy53> Not that I like Arduinos though
[11:39:58] <OndraSter_> arduinos are simple AVR
[11:40:00] <OndraSter_> jadew, DDR
[11:40:04] <OndraSter_> well
[11:40:13] <OndraSter_> only xmegas support SDRAM, ARMs support usually DDR
[11:40:15] <jadew> but DDR is hard to interface with an AVR, no?
[11:40:24] <OndraSter_> it is
[11:40:26] <ambro718> except the new arduino due which is ARM
[11:40:27] <thetruthisoutthe> DDR is double data rate...
[11:40:29] <OndraSter_> you want DRAM though for simple DRAM
[11:40:30] <scipy53> I don't need that much RAM
[11:40:35] <thetruthisoutthe> also DDR is expensive lol
[11:40:38] <thetruthisoutthe> get DDR2 instead
[11:40:46] <thetruthisoutthe> or even better, DDR3
[11:40:48] <OndraSter_> SDRAM is too complex without hardware support
[11:40:50] <jadew> heh
[11:41:10] <OndraSter_> I did simple DRAM controller for AVR, tested on mega32 at 8MHz
[11:41:10] <jadew> OndraSter_, I checked some datasheets, didn't seem that big of a deal
[11:41:17] <OndraSter_> about 8% CPU load for refreshing
[11:41:34] <OndraSter_> well SDRAM are synchronous
[11:41:39] <OndraSter_> that is an extra signal
[11:41:50] <OndraSter_> DRAM are not
[11:42:16] <jadew> wth, if it takes 8% cpu is useless for fast sampling
[11:42:22] <jadew> cuz you need 100% cpu for sampling
[11:42:40] <OndraSter_> well you need to refresh them
[11:42:42] <jadew> I guess you're right
[11:42:47] <jadew> you might need external hardware
[11:42:49] <OndraSter_> if you were writing constantly to it it would not require though
[11:42:54] <jadew> or dedicated chip to talk to the ram
[11:43:08] <jadew> I see
[11:43:17] <OndraSter_> or you know - just get AVR/ARM with (S)DRAM support builtin
[11:43:59] <jadew> never played with ARM
[11:46:48] <OndraSter_> I have got here those TI ones...
[11:46:52] <OndraSter_> but never opened the packages :D
[11:48:20] <OndraSter_> I have got here a buttload of SDRAMs
[11:48:28] <OndraSter_> 32MB, 64MB, 128MB, 256MB and even one 512MB
[12:00:33] <thetruthisoutthe> OndraSter_ <= yeah, it is cool to have some stuff you never even open up ^^
[12:00:55] <OndraSter_> indeed
[12:01:18] <thetruthisoutthe> or make some necklace out of bga ics ?
[12:01:18] <jadew> I have that stelaris thing
[12:01:28] <jadew> I did open it tho, to see what's inside
[12:01:33] <OndraSter_> well I got two
[12:01:37] <OndraSter_> one opened and once powered up
[12:01:41] <OndraSter_> then put back into the box
[12:01:45] <OndraSter_> the other one has never been opened
[12:01:48] <OndraSter_> just as the MSP430 one :D
[12:01:52] <thetruthisoutthe> hahaha
[12:01:57] <thetruthisoutthe> yeah i have some of that too
[12:02:01] <thetruthisoutthe> will never use that
[12:02:12] <thetruthisoutthe> i'll just stay with atmels
[12:02:26] <twnqx> OndraSter_: i stick to "glue sdram to 8bit avr with an fpga"
[12:02:27] <jadew> I also bought some PCBs from ti, they were $0 so I bough one from each
[12:02:38] <OndraSter_> twnqx, why not use FPGA directly? :D
[12:02:41] <OndraSter_> with soft AVR core
[12:02:49] <twnqx> less cool
[12:03:01] <twnqx> then saying "hey, i have a mega16 with 8GB ram2
[12:03:06] <OndraSter_> lol
[12:03:21] <OndraSter_> the good part about builtin support for memory is that gcc can use it
[12:03:32] <twnqx> well
[12:03:42] <twnqx> you *could* make it external memory on an avr
[12:03:42] <OndraSter_> which is not true for xmega's >64kB RAM support... atmel still hasn't taughed that to gcc ><
[12:03:57] <OndraSter_> since it works similar to segments
[12:04:02] <twnqx> obviously
[12:04:13] <twnqx> bank switching... yey for EMS on DOS
[12:04:16] <OndraSter_> :)
[12:04:45] <twnqx> right, step one of this: success
[12:04:53] <megal0maniac> Well that's optimistic
[12:04:54] <twnqx> PC somehow works
[12:05:19] <RikusW> http://elgoog.im
[12:05:26] <thetruthisoutthe> jadew <= they sell pcbs too ?
[12:06:06] <jadew> thetruthisoutthe, yeah, basically break out boards for their chips
[12:06:14] <thetruthisoutthe> twnqx <= make sure fpga handles dma then lol
[12:06:14] <OndraSter_> RikusW, it should reverse the search results too :D
[12:06:18] <OndraSter_> aka the last one => first one
[12:06:21] <jadew> I thought they'd came with the chips too, I was wrong
[12:06:39] <RikusW> check out the underwater one, then google rocks
[12:07:39] <jadew> heh, nice
[12:09:57] <ambro718> has anyone tried to implement fast 32bit/16bit division?
[12:10:10] <OndraSter_> gcc did
[12:10:35] <ambro718> I need something faster than what's in gcc 4.8
[12:10:48] <twnqx> if it would exist, they'd have it
[12:11:20] <ambro718> lookup tables are acceptable, I don't think gcc uses lookup tables
[12:11:57] <OndraSter_> wouldn't lookup tables for 16 or let alone 32bit massive?
[12:11:58] <twnqx> 16bit lookup table is 8GB :P
[12:12:06] <OndraSter_> be massive*
[12:12:38] <ambro718> I don't know, I think you could use smaller lookup table and do more manual work
[12:13:38] <twnqx> that would work for square root
[12:14:31] <ambro718> well I optimized the hell out of the square root already, the division is now becoming a larger bottleneck
[12:14:38] <Grievre> ambro718: Are you dividing 32 bits by 32 bits or 32 bits by something smaller
[12:14:59] <Grievre> ambro718: This sounds like processing rather than control, perhaps you should use a microPROCESSOR instead of a microCONTROLLER :D
[12:14:59] <ambro718> Grievre: (16bits << 16) / 16bits
[12:15:52] <ambro718> so I'm not really dividing 32bit/16, the 32-bit is shifted left so the result has more precision
[12:16:06] <Grievre> hmmmm
[12:16:07] * Grievre thinks
[12:16:11] <Grievre> that might be a bit easier...
[12:20:14] <Grievre> ambro718: Knuth volume 2 (whichever one is "seminumerical algorithms") goes into bignum division rather extensively, apparently
[12:20:51] <Grievre> ambro718: Is there any restriction on the divisor or can it be any 16-bit number?
[12:21:15] <twnqx> i would just use a 32bit cpu >_>
[12:21:34] <ambro718> Grievre: no restrictions
[12:21:37] <ambro718> well it's not 0
[12:31:55] <thetruthisoutthe> ah 2 more board to go ;<
[12:44:37] <thetruthisoutthe> policeman: Do you know why I stopped you? baldman: Because i didn't comb my hair?
[12:51:52] <Tom_itx> no because you're blinding the other drivers
[13:33:59] <inkjetunito> http://en.seoi.net/sokumen/?n=AVR
[13:39:13] <h4x0riz3d> for some reason, i always read your nick as inkjetuino ;P~
[13:39:56] <thetruthisoutthe> i started reading in-ject-
[13:47:51] <Gumboot> ambro718: Are any of the numbers constant?
[13:50:11] <Gumboot> If the two operands are both initially 16-bit, you might simply want x * inverse_lut[y]. You can compress the table with some preprocessing.
[13:51:50] <Gumboot> Something like: while ((y & 0x8000) == 0) { x <<= 1; y <<= 1; } return x / lut[y >> 8];
[13:52:28] <Gumboot> Err.
[13:52:42] <Gumboot> while ((y & 0x8000) == 0) { x <<= 1; y <<= 1; } return x * lut[y >> 8];
[15:09:03] <Tom_itx> OndraSter_, OLED is out.
[15:09:06] <Tom_itx> http://www.electronicproducts.com/Optoelectronics/LEDs/OLED_vs_LED_lighting_Is_there_room_for_OLED_lighting.aspx
[15:09:13] <Tom_itx> for lighting anyway
[15:10:56] <Tom_itx> no more passwords
[15:10:59] <Tom_itx> http://www.electronicproducts.com/Sensors_and_Transducers/Sensors/Goodbye_passwords_Motorola_wants_to_secure_your_identity_with_pills_and_tattoos.aspx
[15:11:09] <Tom_itx> just take a pill
[15:35:05] <scipy53> anyone know if I can run FreeRTOS on an ATxmega256A? Note, X.
[15:43:27] <scipy53> someone mentioned earlier that freertos won't run on 32 bit avrs, it seems to work fine on UC3 MCUs
[16:01:31] <R0b0t1> scipy53: on xmega probably not without some modification
[16:01:32] <ambro718> Gumboot: but wouldn't you lose 8 bits with such shifting?
[16:01:43] <R0b0t1> as for the 32-bit, I believe the UC3 is a Cortex M3 core?
[16:02:02] <R0b0t1> scipy53: In any case I think the difference between "run" and "won't run" is some HAL files
[16:02:29] <scipy53> Well, I'm not so well versed with this stuff. So I'd like to use something which is tested and true.
[16:02:45] <scipy53> And experiment afterwards if time permits.
[16:02:49] <scipy53> R0b0t1, ^^
[16:02:56] <megal0maniac> It actually says under supported device families: AVR32 UC3
[16:03:04] <scipy53> Ya, it does.
[16:03:04] <megal0maniac> (I copy pasted that from the site)
[16:03:18] <scipy53> Yep, so I was thinking of going with the UC3 family.
[16:03:38] <megal0maniac> I don't see any mention of 8bit AVRs. Where did that come from?
[16:04:11] <scipy53> Hmm, no one said 8 bit
[16:04:25] <scipy53> Anyhow, will figure this out tomorrow. Thanks for the help guys.
[16:04:32] <scipy53> and gals
[16:04:58] <R0b0t1> megal0maniac: xmega is 16 bit, but as far as capabilities go it's like a glorified 8 bit
[16:05:01] <R0b0t1> more peripherals
[16:05:04] <R0b0t1> DMA
[16:05:21] <ambro718> doesn't xmega have the same instruction set as mega?
[16:05:31] <RikusW> AVR is also 16bit...
[16:05:51] <megal0maniac> < OndraSter_> I presume that FreeRTOS supports xmega
[16:05:51] <megal0maniac> < scipy53> I'm pretty sure it does support all AVR MCUs
[16:05:53] <RikusW> 8 bit data on both mega and xmega
[16:06:04] <megal0maniac> R0b0t1: xmega is 8 bit
[16:06:31] <RikusW> AVR got 16bit code and 8bit data
[16:06:34] <ambro718> registers are 8bit, memory addresses are 16bit, there are a few instructions that work on pairs of registers
[16:06:35] <megal0maniac> It has some 16bit "extensions" if you want to call it that, but it's 8bit at its core
[16:06:50] <megal0maniac> That one
[16:07:02] <RikusW> flash is 16bit...
[16:07:23] <megal0maniac> And the CPU is 8
[16:07:30] <RikusW> most addresses are 16 bit, or 17bit on m128 and 18 bit on m256
[16:08:19] <RikusW> megal0maniac: its a mixup, 16bit data bus on the flash and 8bit data bus for data...
[16:08:37] <megal0maniac> That I didn't know. I though the atmegas were pure 8bit
[16:08:53] <RikusW> heh
[16:09:13] <RikusW> so 16bit address and code bus 8bit data bus
[16:09:35] <RikusW> and 8bit registers r0-r31
[16:09:56] <RikusW> even attiny got 16bits :-P
[16:10:23] * RikusW messed around with php a bit...
[16:10:28] <Gumboot> ambro718: Well, you lose a maximum of 8 bits if the divisor is >= 0x8000, but in that case the result will be comparatively small anyway.
[16:10:30] <RikusW> and mysql
[16:10:44] <Gumboot> ambro718: It depends how many bits you want to keep in your table.
[16:11:30] <Gumboot> Actually, if you do it right, if you want to keep only 256 table entries, then you need only lose a maximum of 7 bits.
[16:12:05] <ambro718> Gumboot: but I could spend some extra time computing the missing part right?
[16:12:22] <ambro718> maybe newton iteration, the lookup table should provide a good start
[16:12:23] <Gumboot> I guess you could iterate with something if it bothered you that much.
[16:13:01] <Gumboot> Actually, I'm wrong about the maximum error.
[16:13:12] <Gumboot> I think the maximum error is probably a lot less than I was thinking.
[16:17:30] <Gumboot> ambro718: So, basically, for large values of divisor (>=0x8000), you're using only the top eight bits, but since it's a table of 1/y most of those values are going to be about the same anyway.
[16:17:39] <Gumboot> So if you juggle things just right you may get no error at all.
[16:18:21] <Gumboot> That is, it's you're using the top eight bits of the divisor to index a table, but at that end of the table most of the values are probably all the same anyway.
[16:18:26] <ambro718> Gumboot: but the table of 1/y would have to contain 32bit values
[16:19:30] <ambro718> or to be more specific I need a table of 2^32/y
[16:20:10] <Gumboot> So you want to compute (uint16_t)x / (uint16_t)y as a (uint32_t)16.16 fixed-point result, right?
[16:20:20] <ambro718> exactly
[16:21:16] <Gumboot> Well, as a starting point I'd compute (uint16_t) * (uint16_t)(65536 / y) and look at the error you get on that.
[16:21:27] <Gumboot> oops, dropped an x3.
[16:21:29] <Gumboot> x
[16:23:45] <ambro718> I'm pretty sure there's going to be a large error here
[16:24:30] <ambro718> I'll try analyzing it on paper...
[16:25:00] <Gumboot> Yeah, every low order bit in x which is zero guarantees that the same bit in the result will be zero regardless of what you divide it by.
[16:26:03] <Gumboot> Well, for every low bit ... the obvious thing.
[16:26:13] <ambro718> problem is if you go for a 32bit lookup table, that means you need 16bit*32bit multiplication
[16:26:40] <ambro718> and shift >>16 after that
[16:27:29] <ambro718> I was wondering if the fact that you shift out some bits of the result of a multiplication could make the multiplication faster?
[16:27:44] <ambro718> but I think that's not the case because you still need to add all the carry
[16:28:15] <Gumboot> You might be able to approximate it if you can tolerate some small errors.
[16:30:57] <Gumboot> You have a hardware multiplier, right?
[16:31:18] <ambro718> hardware multiplier? I have an avr. It supports the mul instruction (8x8->16).
[16:31:48] <Gumboot> Yeah, OK, so that's eight multiply operations you have to deal with at worst.
[16:32:11] <ambro718> which algorithm are you talking about?
[16:32:16] <ambro718> 32bit table?
[16:32:23] <Gumboot> Is this really performance-critical? Talk about using 256KB LUTs suggests it is.
[16:32:23] <Gumboot> Yeah.
[16:32:35] <ambro718> it's very performance critical yes
[16:32:58] <Gumboot> And precision too?
[16:33:17] <ambro718> but a 256k won't fit anyway
[16:33:21] <Gumboot> I think you'd get about half an LSB of error by dropping the least-significant multiply -- down to 7 in total.
[16:33:43] <ambro718> I have a mega1284p with 128k flash
[16:34:15] <ambro718> I'm trying to drive a stepper motor, correctly
[16:34:18] <Gumboot> I think you can compress the table by shifting off the most-significant bits.
[16:34:48] <Gumboot> (basically logarithmic compression, which would make 1/x into a linear function with more evenly distributed values)
[16:34:56] <ambro718> yes, I'll probably go for as large a lookup table and add newton iteration or some other way to compute the rest
[16:35:24] <ambro718> what do you mean shifting off bits?
[16:36:13] <Gumboot> Compute the full table and look at the large values. I think they'll have only very small differences.
[16:36:46] <Gumboot> So you might as well quantise the table index for the large values, and quantise it less for small values.
[16:37:17] <ambro718> ah, I see
[16:37:24] <Gumboot> So if you take your divisor and shift it left until the first set bit falls off the end, you can quantise that value and use it for the index.
[16:37:47] <Gumboot> (remembering to compensate in the result of the calculation)
[16:39:46] <ambro718> so you have different tables where the boundaries are 2^i or 2^(m*i) depending on how many tables you want
[16:40:52] <ambro718> then how do I choose how many table entries I need for each of those tables?
[16:41:30] <Gumboot> One table will do fine. The entries in each separate version would only be twice or half the adjacent ones. You can calculate that trivially.
[16:41:58] <Gumboot> To choose how many entries you want, just look at the values inside the table and decide whether or not you think they're too close together or too far apart.
[16:42:38] <Gumboot> At some point you'll be able to reason that the difference between adjacent values can't meaningfully affect your calculation.
[16:43:36] <ambro718> ok I'll try something, thanks
[16:43:47] <Gumboot> I mean, if you go for a table of 32-bit values, and you know you'll be shifting right by 16 at the end, then probably most of the bottom 16 bits are junk.
[16:44:01] <ambro718> they're not
[16:44:35] <ambro718> it's easy to see how they actually affect the part of the multiplication result that will not be thrown out
[16:45:00] <Gumboot> They'll add a little bit of carry up into the bits you keep, but you don't have tobe too precise about that.
[16:45:37] <ambro718> suppose you're doing 16bit*16bit>>8. If you do this instead: (16bit>>1)*(16bit>>1) >> 7 there is significant error in the result due to the carry from the shifted out bits being ignore
[16:45:50] <ambro718> err >>6
[16:46:47] <Gumboot> You should add a bias to compensate for that. It'll roughly halve the error.
[16:47:10] <Gumboot> (16bit>>1)*(16bit>>1)+<something> >> 6.
[16:47:16] <ambro718> maybe, but any kind of error is not acceptable here :/
[16:47:25] <Gumboot> Well you can't have zero error.
[16:47:43] <ambro718> I tried it, it doesn't work the way it should with such approximations
[16:47:44] <Gumboot> Well, try it and see, anyway. Shaving bits off is easy once you have the test loop handy.
[19:21:29] <Badaboom> This damn chip is running out of pins,, i need 2 more for int
[19:24:16] <Horologium> too bad.
[19:24:51] <Badaboom> yes.. yes it is
[21:30:34] <MarkX> Tom_itx: do you by any chance know what time abcminiuser comes online?
[21:32:01] <Tom_itx> not for sure no
[21:32:07] <Tom_itx> he's in norway
[21:32:23] <MarkX> ah ok, no problem then. i'll just fire him an email :)
[21:32:47] <Tom_itx> probably quicker to reach him
[21:34:04] <MarkX> usb spec is sooo boring
[21:34:10] <MarkX> i fell asleep twice reading about it
[21:34:21] <MarkX> and i was reading the dumbed down, straight to the point version
[21:36:36] <Casper> that's why
[21:36:46] <Casper> it was too dumb and boring!
[21:36:57] <Casper> you should have used the extended version! that's entertaining! :D
[21:37:36] <Valen> http://www.youtube.com/watch?feature=player_embedded&v=F3Q9sFsa8cQ cotton eye joe mixed with gangnum style, surprisingly well done
[21:38:00] <MarkX> lmao Casper
[21:38:06] <MarkX> couldn't put it down eh?
[21:39:58] <Casper> Valen: not that well made
[21:40:14] <Casper> they autotuned gangam style
[21:40:15] <Valen> still better than you would expect
[21:41:06] <jadew> just wrote an article for the noobies on what tristate, pullups and bus capacitance are: http://eenoob.com/home/post?id=6
[21:42:54] <Casper> well, shower time
[21:43:06] <Casper> I came home only an hour and half earlier than expected, yay!
[21:43:07] <jadew> sounds like work time
[21:43:23] <jadew> ah
[21:43:29] <Casper> installed about 60 network plugs
[21:43:34] <Casper> in 2 hours (2 guys)
[21:43:54] <Casper> next job: the patch panel
[21:44:43] <Tom_itx> jadew, what? no nice eagle drawn schematics? :)
[21:45:03] <jadew> Tom_itx, felt easier to do it on the tablet :P
[21:45:21] <jadew> is it that bad?
[21:45:22] * Casper also slaps jadew fingers for the hand draw stuff
[21:45:37] <Tom_itx> the rest looks so clean though
[21:45:45] <jadew> ok ok, gonna make it in eagle
[21:46:01] <Tom_itx> gawd what an easy pushover :D
[21:46:10] <jadew> hehe
[21:48:22] <MarkX> rawr
[21:48:41] <MarkX> ok so, for an HID descriptor, what would "Collection 0x53" mean
[22:13:07] <Badaboom> lmao.. audiobeep(100); i meant for it to be 1 now im sol with the lady:(
[22:13:54] <Badaboom> she came in thinking the fire alarm went off
[22:15:26] <Badaboom> note to self ..do not add audio late at night
[22:15:52] <Valen> lol
[22:16:18] <Badaboom> your laughing but the couch was just made into a bed:(
[22:16:34] <Badaboom> lol
[22:20:15] <Valen> dude harsh
[22:20:20] * Valen feels lucky
[22:23:41] <jadew> Tom_itx, changed them to eagle schematics :)
[22:35:59] <Tom_itx> now doesn't that look alot better?
[22:36:51] <jadew> it's deffinitely more clear
[22:39:01] <Tom_itx> now add vcc, gnd and a pullup on reset for completeness :D
[22:39:23] <jadew> Tom_itx, nah, it'll confuse them
[22:39:53] <Tom_itx> i got crap for leaving a couple pins open on my tutorial
[22:40:01] <jadew> hehe
[22:40:09] <jadew> what tutorial?
[22:40:35] <Tom_itx> http://tom-itx.dyndns.org:81/~webpage/how_to/atmega168/mega168_howto_main_index.php
[22:41:28] <jadew> looks nice
[22:41:51] <Tom_itx> loading slow again though
[22:41:58] <jadew> but yeah, no reason to connect those pins, it would make the breadboard look like a christmas tree
[22:42:00] <Tom_itx> i should finish it i suppose
[22:43:14] <Badaboom> this poor chip is looking at me like add one more thing and I Keel You
[22:43:18] <jadew> yeah, you should finish it, add some code and all that
[22:43:19] <Tom_itx> i got crap for using a power led with a builtin resistor
[22:43:28] <Tom_itx> there is code
[22:43:37] <Tom_itx> it confused many noobs
[22:43:43] <Badaboom> <--
[22:43:49] <Badaboom> jk
[22:43:59] <jadew> Tom_itx, I don't see the code
[22:44:19] <Tom_itx> that's the main page, click on one of the tutorials
[22:44:29] <jadew> ah, got it
[22:44:31] <Tom_itx> led blink int or delay etc
[22:44:46] <Tom_itx> that's the building block page to get started
[22:44:47] <jadew> you should link some at the bottom I guess + tell them to look on the side :P
[22:45:02] <jadew> I like how you did it
[22:45:05] <Tom_itx> if they're that stupid i don't care to lehp
[22:45:07] <Tom_itx> help*
[22:45:32] <jadew> personally I didn't notice it because I didn't expect the menu to change (I know your other pages)
[22:45:44] <jadew> so they could fall in the same trap
[22:46:02] <Tom_itx> i tried to make the breadboard wiring as clear as i could
[22:46:18] <jadew> looks clear enough
[22:47:36] <jadew> http://tom-itx.dyndns.org:81/~webpage/how_to/atmega168/hyperterm.jpg at first glance I thought it's FUUUUUUUUUUUUUU
[22:47:49] <Tom_itx> heh
[22:47:50] <tzanger> haha
[22:47:55] <Tom_itx> UT makes a square wave
[22:47:57] <tzanger> that'd be an awesome failure code
[22:48:36] <Tom_itx> or maybe it's U by itself... i forget
[22:48:48] <jadew> probably U
[22:48:53] <Tom_itx> anyway one of them makes a nice square wave output if you look at the serial
[22:48:56] <jadew> if U is 0x55
[22:49:01] <Tom_itx> yeah
[22:50:35] <Tom_itx> i bet it's been 4-5 yrs since i did that
[22:51:00] <jadew> !php echo ord('U');
[22:51:00] <jadew> 85
[22:51:08] <jadew> it's 0x55
[22:51:43] <Tom_itx> i think i added the 'T' so you could see change in screen activity
[22:51:54] <jadew> that would make sense
[23:28:14] <jadew> http://www.vplay.ro/watch/xs7qe6zt
[23:40:23] <thetruthisoutthe> http://en.wikipedia.org/wiki/Dynamic_programming
[23:41:13] <jadew> why do you keep posting that link? it's common sense
[23:41:41] <thetruthisoutthe> Badaboom haven't seen it
[23:42:34] <Badaboom> ?
[23:42:38] <Badaboom> ahh
[23:42:44] <Badaboom> Dynamic Programming
[23:43:31] <Badaboom> Im guessing to optimize?
[23:43:58] <thetruthisoutthe> well, i wouldn't consider using functions optimization
[23:44:29] <thetruthisoutthe> it is a thing you do normally
[23:45:04] <Badaboom> Ill have to read it more than guess
[23:45:09] <thetruthisoutthe> using less and more clever functions can be considered optimization
[23:45:19] <Badaboom> correct
[23:45:39] <Badaboom> Then you don't want to see my code right now