#avr | Logs for 2016-03-14

Back
[03:26:59] <julius> theBear, im not a native english speaker....thats why i probably never heart "rat shack"
[06:57:16] <Lambda-Aurigae> HAPPY PI DAY!
[07:33:01] * julius hungry
[07:33:07] <julius> you received a package i assume?
[07:42:55] <twnqx> julius: in some countries with strange date formats it's 3/14 today
[07:50:29] <julius> ah
[07:50:39] <julius> in germany its "schnitzel and blowjob day"
[08:23:38] <julius> jesus christ, lenovo fucks you in the ass if youre in europe. i pay like 500€ more in germany for the same hardware
[08:29:49] <Emil> julius: compared to?
[08:30:15] <julius> us
[08:32:29] <Emil> Figured
[08:33:14] <julius> theres not even a online shop for europe
[08:33:20] <julius> what the fuck
[08:38:57] <daey> julius: jup its amazing how little manufactures care about EU considering thats its considerably bigger. im guessing its still to fragmented to be seen as "one sales territory".
[08:44:26] <julius> even with ~200dollars import tax im still at least 200euro cheaper
[08:45:38] <Emil> julius: dont forget VAT
[08:46:36] <julius> ah yes thats what i meant
[08:50:59] <theBear> julius, i never heard anyone say it out loud, not even sure people around here in this country ever say it, but as things detoriated slowly since the 80s it just seems to fit so well... that is of course assuming you have radio shack there.. i think the last ones here probly closed up before 2000, definately been a while
[08:52:09] <theBear> there are still laptops without pictures of fruit on 'em that cost even 500curly E thingies ? not that i ever go to computer shops, but i haven't seen a laptop over about pfft, roughly translated 400 curly E's for many years now
[09:05:11] <julius> ive got good experiences with lenovo
[09:05:18] <julius> they sell above 400€
[09:15:06] <daey> theBear: curly E's are GBPs?
[09:15:09] * daey runs
[09:19:45] <rue_house> Lambda-Aurigae, http://ruemohr.org/~ircjunk/tutorials/elex/ledsensor/ledsensor.html
[09:20:02] <theBear> i thought they were euros, whatever that thing julius keeps saying is
[09:20:34] <theBear> well, err, assuming it's euros, tho i spose gbp should be in the same kinda ballpark these days ? i ain't really followed that stuff for a long time
[09:25:53] <julius> in germany we got euros
[09:27:31] <rue_house> I thought it all fell apart cause germany opted out of the euros
[09:28:07] <daey> theBear: nah gbp is much stronger
[09:28:09] <rue_house> so whats gone down more, euros or the canadian dollar?
[09:28:26] <daey> euro is like 1.1usd
[09:28:50] <daey> rue_house: the fuck? no one opted out of the euro
[09:28:54] <rue_house> but whats dropped more?
[09:29:06] <theBear> i thought everywhere but england got euros these days, and wtf ? euro gone to shit or is the stupid us finally un-broke and not basically the same value as any other kinda dollars in the world again ?
[09:29:56] <theBear> if noone opted out where does that put england ? surely they qualify as europe ? or are they just their own tiny tiny tiny continent these days ?
[09:29:58] <daey> theBear: euro hasnt gone to shit. and no europe still has multiple countries without EURO. DK, Sweden, UK ...
[09:30:17] <daey> theBear: uk never opted in
[09:31:07] <daey> theBear: and yeah they kinda are a special case in europe. they only want the good things. they have a vote this? next? year about leaving
[09:31:29] <daey> which ofc. they use to force us to give them more good things :P
[09:32:12] <daey> we had votes in germany last weekend in multiple states xD
[09:32:16] <daey> oh the irony
[09:33:01] <theBear> can't blame em with yer stupid useless solder rules, that alone would be enough reason for me, even been fucking up my former career way waaaay over here thanks to all the places that make anything deciding to just go all-rohs cos they gotta accomodate your crazy deutscher sounding language asses :)
[09:34:11] <theBear> heh, saw one of our local mid-longterm germs a few nights ago at a buddies place, i forgot how crazy the ones from that whole dutchey germaney polishey kinda area sound even after years around slurring yobbos like us
[09:34:59] <theBear> hehe, and tehre was a northey accent english that recently moved in there too, both of em made beach sound like bitch, but via completely different kinds of saying-stuff-funny :)
[09:35:33] <daey> anyways if i believe the media...germany is heading straight for Fourth Reich.
[09:35:48] <theBear> arg eff balls, i gotta not be sitting here before my back goes spastic for a 2nd week, i ain't got enough stiff upper lip left after last week, that can't happen
[09:35:52] <daey> one party went from 0 to 24% xD
[09:35:59] <theBear> i thougth the 3rd reich still hadn't made it outta various entertaining cartoons
[09:36:02] <daey> and its not a left wing party :P
[09:37:05] <theBear> pfft, i'd rather watch cricket than listen or talk anything about politics, and i'm pretty sure watching cricket is one of the most boring shitty ways to spend time ever invented on this planet
[09:37:31] <daey> you dont like to polish ice?
[10:53:26] <theBear> actually i think i'd love sweeping ice while shuffling sideways, but i'm pretty darned sure it never been done ANYWHERE in this country, and even fullsize open icerinks, like figure/olympic/hockey sized normal ones, probly only 6 or 8 in the whole country/continent these days, maybe not even that many, so ya know, bit limited
[10:54:02] <LeoNerd> CURLING!
[10:55:32] <theBear> when i was young i even considered speed skating fer a while, but the whole giant skates slow motion thing just didn't feel exciting enough... tho hockey skates and sprint-races on an empty local rink when yer knew the right people to get it cleared fer 10 mins occasionally, or if yer visited at hockey practice time, that was exciting, specially when it was full contact style fer a bit of extra fun, and of course there was no puck involved so not being
[10:55:33] <theBear> sissies there were no pads or fancy special clothes, just tshirts and maybe jeans if it was winter ;-)
[10:56:10] <theBear> yep, that's what they call it, but i didn't wanna shame daey by sayin' it ;-) here, this is relevant and i find a great first thing in the morning motivator
[10:57:00] <theBear> https://www.youtube.com/watch?v=k39ju0Z5VmE cool, looks like the full version is back in the land of 'tube, the intro adds a lot i feel
[13:46:41] <julius> theBear, they drive on the left side of the road...who wants to say they are not crazy
[13:47:42] <julius> looks like i a friend has family in the us
[13:48:01] <julius> good sentence
[13:55:24] <hetii> Hi :)
[14:06:59] <hetii> Q: Any clue how I should connect UDA 1330 to odroid c1+ ? in UDA chip I have BCK/WS/DATAI/SYSCLK on odroid: http://www.hardkernel.com/main/products/prdt_info.php?g_code=G143703355573&tab_idx=2
[14:07:01] <hetii> ?
[15:18:24] <phinxy> i want to filter a DC 5V rail before the MCU, can i make a low pass filter that cuts off at a very low Hz so only DC is allowed to pass?
[15:18:42] <phinxy> Cutoff about 1hz or something even lower?
[15:19:17] <phinxy> only problem i can see is that it needs more current to power it
[15:23:42] <x29a> phinxy: wont a big enough cap in parallel to your 5V work?
[15:27:42] <LeoNerd> NONE SHALL PASS... that is more than 5Hz
[15:37:54] <Jartza> evening
[15:38:41] <PoppaVic> afternoon
[15:44:01] <Chillum> mornin'
[15:48:46] <cehteh> phinxy: huge cap and inductor .. but 1hz would be quite demanding
[15:49:15] <cehteh> better supply 7V .. filter that, then linear regulator
[15:50:54] <cehteh> with ldo 6V or lower will do too
[16:38:18] <Casper> phinxy: usually a low pass filter in the kHz is still fine
[16:38:24] <Casper> why do you want to filter that much?
[16:39:17] <phinxy> Im not sure the cause of a problem i have so im not going to do it. Right now i believe the problem was with RESET not being pulled-up
[16:41:15] <phinxy> i will do a inductive low pass filter on the AVCC/VREF C-L-C with a resistor in parallel with the inductor
[16:41:19] <Casper> that is a sure issue
[16:41:47] <Casper> don't forget the decoupling cap
[16:42:04] <Casper> 0.01-0.1µF ceramic as close as possible to the pins
[16:42:07] <phinxy> sure i have one close to the Vcc 0.1uF and then a bit further away i have a 10uF.
[16:43:01] <phinxy> its further away so it does not resonate
[16:46:06] <phinxy> Are trough hole inductors uncommon?
[16:46:31] <phinxy> nvm i see a lot of them on google images
[16:57:29] <cehteh> phinxy: what are you trying to archive? using the 5V VCC as reference for the ADC?
[17:00:04] <phinxy> I want the MCU to have a good voltage reference for analog reading
[17:01:02] <cehteh> then use some extra reference dont try to stabilize vcc .. the mpu adds itself some noise to it
[17:01:07] <theBear> wtf ? surely a pair of radically magntitude order differing values can't ring or resonate alone
[17:01:16] <theBear> r-c ain't a tank
[17:01:33] <cehteh> switch to internal reference .. add a cap on AREF (see datasheet)
[17:01:43] <cehteh> or use some external voltage reference on AREF
[17:04:44] <Casper> tl431
[17:05:25] <cehteh> that or some other, plenty options
[17:05:58] <cehteh> anything is better than using vcc .. and going lengths for stabilizing vcc is just the wrong way around
[17:09:27] <PoppaVic> PAM! Lana! Kreiger! (idiot) PAM! Lana!
[17:09:33] <PoppaVic> heh
[17:09:40] <PoppaVic> oops.
[18:22:15] <julius> im a happy new owner of a t560 in a few days, hopefully
[18:22:32] <julius> found a student version here in germany thats even a bit cheaper than the us dollar price
[18:32:22] <julius> TWI.MASTER.ADDR = WriteAddress; <- this is from a arduino lib, what is TWI.MASTER...?
[18:32:37] <julius> writeaddress contains; 0x40
[18:32:43] <Lambda-Aurigae> twi is the same as i2c
[18:33:01] <Lambda-Aurigae> guessing that is part of the twi(i2c) communications library for ardweeny.
[18:33:14] <Lambda-Aurigae> you might check the arduino library reference.
[18:33:46] <Lambda-Aurigae> from the name, it would be the address that the TWI MASTER software is going to write to.
[18:34:09] <Lambda-Aurigae> address being the twi/i2c device address.
[18:38:12] <julius> that sounds about right
[18:38:18] <julius> just the naming confuses me
[18:38:57] <julius> if i want to write to something i wold code it like this: connect(to_adress) or write_to
[18:39:54] <Lambda-Aurigae> no clue what is confusing about it.
[18:40:15] <Lambda-Aurigae> twi master write....master has to write something
[18:40:29] <julius> probably just me new to this
[18:40:36] <julius> how was your day so far?
[18:40:44] <Lambda-Aurigae> twi is the base....master is the subset...could be master or slave
[18:40:51] <Lambda-Aurigae> write is the data that gets written.
[18:41:01] <Lambda-Aurigae> that address thingie is just the data being written.
[18:41:09] <Lambda-Aurigae> it's how twi/i2c works.
[18:41:16] <Lambda-Aurigae> I didn't kill anybody.
[18:41:31] <Lambda-Aurigae> but, the day isn't over yet so it might not be a total loss by the end.
[18:45:24] <PoppaVic> Lambda-Aurigae: you need a walkin-freezer, and a fullsize Hobart to make that worthwhile
[18:45:46] <Lambda-Aurigae> I have a good smoker.
[18:45:54] <PoppaVic> that helps
[18:45:59] <Lambda-Aurigae> no clue what a hobart is though.
[18:46:23] <PoppaVic> hobart grinder. slicers. mixers. commercial food-service ware
[18:47:07] <Lambda-Aurigae> have commercial grinder and slicer already.
[18:47:30] <PoppaVic> ah, so all you need is that smoker - and the big freezer ;-)
[18:48:02] <Lambda-Aurigae> enough salt and you don't need the freezer
[18:48:32] <PoppaVic> they say the same about peppers, too - but I ain't that southern
[18:57:37] <julius> ok
[21:17:35] <bho> quick question, I'm trying to set an overflow interrupt for Timer1 at 100Hz, I think this code will do that but I'm probably wrong: http://pastebin.com/qAKB7Wrr
[21:27:48] <cehteh> did you try it, did it work?
[21:29:44] <cehteh> a bit strange way to do timers, if it works at all
[21:30:34] <cehteh> bho ^^
[21:30:44] <bho> i haven't tried it yet, can't find my ISP
[21:30:58] <cehteh> lol
[21:31:11] <bho> and it's getting too late to hunt for it, so I figured I'd ask if it was completely wrong first
[21:31:32] <bho> basically I'm trying to get an ISR timer to trigger every 10ms
[21:31:34] <cehteh> imo its completely wrong unless you try to do something clever :D
[21:31:44] * bho is not clever
[21:31:45] <bho> :(
[21:31:53] <cehteh> ok then its wrong :D
[21:32:04] <bho> figures. any suggestions?
[21:32:05] <cehteh> first: by default timers count upwards
[21:32:43] <bho> i probably should've mentioned i'm working with an atmega328 if that makes any difference
[21:32:45] <cehteh> then overflow happens when the timer either 'overflows' 65536 for 16bit 256 for 8bit
[21:33:41] <bho> ah, so you can't set the overflow value
[21:33:52] <cehteh> or you set some other TOP value in one of the compare registers and configure the timer to overflow at that point (actually i am not even sure if that triggrs a overflow interrupt
[21:33:53] <bho> you gotta use the prescalers and such to just get it close enough?
[21:34:16] <cehteh> i am doing something completely different here (and kinda much more complex)
[21:34:17] <bho> or i gotta figure out the compare timer stuff
[21:34:35] <cehteh> just let a 8 bit timer freely run and overflow at 256 ...
[21:34:53] <bho> at 16MHz would that be close enough to 10ms?
[21:35:02] <cehteh> nah .. that not all
[21:35:22] <bho> so you mean just have a counter?
[21:35:25] <cehteh> at overflow increment another global counter 16 or 32 bit
[21:35:45] <cehteh> and having a priority queue where actions are inserted in time order
[21:36:05] <bho> I need to update a DAC value every 10ms
[21:36:22] <cehteh> then calcuate the compare match for the next action if one is due and that compare match interrupt then wakes the mainloop which executes the action
[21:36:28] <bho> and figured throwing the DAC write in the ISR timed every 10ms would work
[21:36:38] <cehteh> yes
[21:37:30] <bho> okay. so I just gotta figure out the ISR code then
[21:37:33] <cehteh> i did that too, dac interrupt integrates/oversamples value
[21:37:39] <cehteh> timer restarts the dac
[21:37:48] <bho> yeah, this is for a RC filter to smooth input values
[21:38:05] <bho> well, smooth the output based on the input value
[21:38:13] <bho> you get the idea
[21:38:36] <PoppaVic> I guarentee I saw nice posts about timers and prescaling and even interrupts the other day.
[21:39:08] <bho> link please, I have been finding such utter crap on the subject through my weak google-fu
[21:39:15] <cehteh> http://git.pipapo.org/?p=battswitch.git;a=blob;f=src/battswitch.c
[21:39:33] <cehteh> that samples slower (every 250ms or so, not exactly)
[21:40:00] <cehteh> dont forget to throw away the first few samples
[21:40:48] <cehteh> i just do a 0..255 loop .. to prime the integration and throw all first samples away, bit excessive, but who cares
[21:41:07] <bho> why throw out the first few samples?
[21:41:34] <cehteh> datasheet says the frist reads are not stable ..depending on how you use it
[21:41:45] <cehteh> what voltage reference do you use?
[21:41:54] <bho> 5V
[21:41:57] <cehteh> internal bandgap needs some time to stabilize
[21:42:03] <cehteh> VCC is crap :D
[21:42:14] <bho> but it works!
[21:42:14] <cehteh> dont use that, use the internal reference at least
[21:42:28] <cehteh> well how exact do you need the measurements
[21:42:32] <cehteh> it works yes
[21:42:44] <cehteh> but there can be a lot noise
[21:42:50] <bho> I'm just outputting values to a DAC
[21:42:54] <bho> over i2c
[21:43:00] <bho> not reading the ADC input from the chip
[21:43:10] <cehteh> ah lol
[21:43:17] <bho> i should've been more clear
[21:43:19] <bho> sorry
[21:43:24] <cehteh> missread :D i was at ADC .. getting late here
[21:43:30] <cehteh> my fault
[21:43:35] <PoppaVic> it was the ADD
[21:43:49] <bho> speaking of late, I gotta get to sleep or I'm going to be dragging at work tomorrow
[21:43:54] <bho> well, dragging even more than usual
[21:43:59] <bho> thanks for the hel
[21:44:00] <bho> p
[22:09:24] <pseydtonne> Is anyone here familiar with configuring Atmel Studio?
[22:12:59] <phinxy> If there is a pull-up resistor on reset will JTAG work?
[22:14:47] <Casper> if the resistor is not too low yes
[22:14:50] <Casper> try 10k
[22:14:51] <cehteh> how big? should possibly work, reset has a building pullup already, but a weak one