#avr Logs

Dec 07 2017

#avr Calendar

02:29 AM nohitwork is now known as nohitzwork
07:07 AM nuxil: mornings.
07:08 AM nuxil: anything new and interesting happening to day?
07:09 AM nuxil: Jartza, did you remember to ship the dispays today ?
07:10 AM nuxil: *displays
09:49 AM Jartza: I remembered the displays and picked them up from office, just got home
09:50 AM Jartza: picked kid up from daycare, there snow storm happening currently so I either post them still today or early in the morning
10:09 AM nuxil: :)
10:10 AM nuxil: take care of family 1st.
10:14 AM polprog_ is now known as polprog
11:14 AM Jartza: https://drive.google.com/file/d/1mT73Mv1uu2rQZh4k5kkpv2-kpmQd9Uv9/view
11:14 AM Jartza: at least I have displays
11:17 AM Jartza: http://en.ilmatieteenlaitos.fi/warnings
11:17 AM Jartza: nice
11:19 AM polprog: ouch
11:23 AM polprog: https://www-uxsup.csx.cam.ac.uk/misc/csh.html
11:38 AM nuxil: Jartza, what is these symbols?? drunk driving over 1/2 the contry :p
11:38 AM nuxil: polprog, who uses csh?
11:39 AM Jartza: nuxil: I think there's explanations underneath :D
11:40 AM polprog: nuxil: very sick and bad people
11:40 AM Jartza: Traffic weather warning: Very bad road conditions are expected from the evening on because of snowstorm.
11:40 AM Jartza: Major traffic disruptions possible. Significant risk of traffic accidents.
11:40 AM nuxil: seem like shitty driving condition over most of your contry
11:40 AM Jartza: yep
11:41 AM Jartza: here where I live it's been now snowing icy snow about 12cm in 3 hours
11:41 AM nuxil: thats alot
11:42 AM nuxil: i have outside my door about 25cm. but that been accumulating for a week now.
11:42 AM Casper: anyone want to have nightmares? https://i.imgur.com/8cMcUNN.jpg https://i.imgur.com/5y1GLkv.jpg
11:43 AM nuxil: i hate snow and ironicly i live in the artic :p
11:43 AM * Casper wants snow for xmas... look like it will be rain...
11:43 AM nuxil: i can ship some to you :p
12:05 PM Jartza: anyhow, if anyone else wants to buy some of the displays, I'm gonna visit post office tomorrow, so now is a good time to shop :D
12:05 PM Jartza: so I don't have to drive to post office every day
12:06 PM Jartza: it's like 12 kilometers away from here :P
12:39 PM Jartza: lol. the forecast shows snow from today 'till December 22nd
12:39 PM Jartza: well. that's as far as the forecast goes.
12:43 PM cehteh: thats finland for you :D
12:44 PM cehteh: we have almost no snow down here, but last weekend i took a biketrip 35km up the mountains https://pbs.twimg.com/media/DP-abjMXUAA04XQ.jpg .. much snow there
12:45 PM polprog: we had some snow here but warm air came back and all we have now is water everywhere. not nice
12:46 PM cehteh: ah you pasted that snow pics some weeks ago i remember
12:46 PM polprog: yeah
12:46 PM cehteh: it got warmer here too, but i bet there is still snow up the mointains
12:46 PM polprog: up the mountains
12:47 PM polprog: there are some mountains in poland that there's snow all year round
12:47 PM cehteh: here is upper rhine valley, just 100m above sea level and germanys warmest area
12:48 PM cehteh: but the sides of the valles are the Black Forrest here and the Vosges on the french side
12:48 PM cehteh: thats nice .. no snow here, but when i am up for it its pretty close to go into the mountains
12:49 PM cehteh: http://www.mummelsee.de/webcam/webcam/current_640x480.jpg
12:49 PM cehteh: still lots snow there :D
12:49 PM polprog: mm
12:49 PM polprog: nice snow
12:49 PM polprog: i like snow
12:50 PM polprog: i used to build igloos outside the block when there was enough snow
12:50 PM nuxil: http://portskjervoy.kystnor.no/
12:50 PM cehteh: its funny when you start at +4°c here no snow .. and go up by bike having 50cm snow and -5°C
12:50 PM nuxil: :)
12:50 PM polprog: http://i.imgur.com/CCBqCWr.jpg
12:51 PM nuxil: not snowing. but dark and snowy enuf thouhg :p
12:52 PM cehteh: polprog: you are the IT consultant?
12:52 PM nuxil: cehteh, oman.
12:52 PM nuxil: you almost got more snow than us
12:53 PM cehteh: nuxil: we have no snow here :D
12:53 PM nuxil: http://www.mummelsee.de/webcam/webcam/current_640x480.jpg
12:53 PM polprog: http://bakpaliwa.pl/kamerka/
12:53 PM nuxil: what was that then ?
12:53 PM polprog: city center or rahter a bit west from the actual center
12:53 PM polprog: cehteh: no, but i might look like that in 10 years, or 20
12:53 PM polprog: :P
12:53 PM nuxil: cityboy
12:53 PM nuxil: :p
12:54 PM Jartza: I can't even remember who of you wanted these displays, haha
12:54 PM polprog: nuxil did iirc
12:54 PM cehteh: nuxil: i saied 'up the mountains'
12:54 PM nuxil: i think Emil wanted a couple but not sure if he ordered on ebay or someting.
12:54 PM nuxil: cehteh, ahh
12:54 PM Jartza: polprog: yeah, nuxil was "handled" already, but someone else wanted them too, iirc
12:55 PM polprog: if i had paypal id order one too
12:55 PM nuxil: polprog, 5x on me :D
12:55 PM cehteh: nuxil: https://www.google.de/maps/@48.5967106,8.2055691,150a,35y,264.33h,77.2t/data=!3m1!1e3
12:55 PM nuxil: polprog, you cant have one because ?
12:56 PM polprog: nice pond
12:56 PM polprog: nuxil: im too lazy
12:56 PM nuxil: cehteh, thats summer for me :p
12:56 PM polprog: :P
12:56 PM cehteh: still in bike reach from here :D .. if you like 120km bike tours and 1500m up
12:56 PM polprog: and nobody uses pp in poland
12:56 PM polprog: cehteh: when i was in englad i used to do 11 mile walks
12:56 PM polprog: along the bay
12:56 PM polprog: england*
12:56 PM Jartza: I've been making this customer project with Polish people for the last 4 weeks now
12:57 PM polprog: hmm
12:57 PM polprog: what kinda project (if i may ask)
12:57 PM Jartza: and I have to say, it's pretty enjoyable experience compared to indian "developers" :P
12:57 PM polprog: hehe
12:57 PM Jartza: a) they speak good english, b) they know what they are doing, c) I don't have to babysit them.
12:58 PM Jartza: well, customer project, can't really tell the specifics because of the NDA
12:58 PM nuxil: not to sound racist. im not a big found of indian developers either :p
12:58 PM kl0wn is now known as _kl0wn
12:58 PM polprog: yeah. me too. nothing about the race though, im sure some of them are great developers but the majority, meh
12:58 PM Jartza: I don't have anything against indians as such and most of the ppl I've worked with in india are nice guys
12:59 PM polprog: iirc the ceo of microsoft is indian now?
12:59 PM nuxil: its nothing to do with them. its to do with my goverment. outsourcing it infastructure to indian people. and in many cases there have been security issues, remote acces to sensitive info from idia etc.
12:59 PM Jartza: it's just... cultural difference I guess. they can't say "no" even if they don't know what they are doing and they only do 1:1 what you tell them to do but have no idea of their own
12:59 PM nuxil: *it->IT
01:00 PM polprog: mm
01:01 PM Jartza: I actually got this guide to indian culture and it pretty clearly says that if guy in India says to anyone they consider being "upper level" something like "we will try" or "yes, but..." it practically means they have no clue what they are doing, but can't say no
01:01 PM Jartza: because saying "no" to "upper level" people is bad
01:01 PM nuxil: lol..
01:02 PM polprog: oops
01:02 PM polprog: i can see where that's going
01:02 PM Jartza: only if they say "yes" without hesitation and without "but", you can trust that they do at least something
01:02 PM Jartza: I just received this guide 10 years too late, haha
01:03 PM nuxil: :D
01:03 PM polprog: lol
01:03 PM polprog: gotta take a walk
01:30 PM Tom_itx is now known as Tom_L
04:10 PM fooman2011: Hello. Is it possible to do UART without using interrupt ? I have problem when I'm trying to read bytes.
04:12 PM cehteh: sure
04:13 PM cehteh: polling the data registers and flags
04:13 PM cehteh: but i'd rather avoid that
04:13 PM cehteh: when you have a problem with the interrupt implementation then better debug that
04:17 PM fooman2011: I don't know why, but using polling instead of interrupt, i'm receiving "corrupted data"
04:32 PM cehteh: you do something wrong
04:33 PM cehteh: why dont you use interrupts?
04:47 PM fooman2011: What is the best way to implement a timeout using AVR ?
04:47 PM fooman2011: I mean when I read a char I have to "get time" and I have to exit the loop if the "get time - last char time >= timeout"
04:47 PM polprog: set timer in one shot mode
04:48 PM fooman2011: what is that ?
04:48 PM fooman2011: it's function ? or registers ?
04:49 PM fooman2011: with interrupt
04:49 PM fooman2011: ?
04:52 PM cehteh: just use one timer for .. keeping time
04:52 PM cehteh: keep it spinning and on overflow increment some global counter
04:52 PM cehteh: then you can always query your timebase, compare/wait/whatever
04:54 PM cehteh: otherwise you can use the timer capture stuff when you need precise timing, build singleshot countdown timers, whatever you need
04:54 PM cehteh: i'd prefer to make things event driven
04:54 PM * LeoNerd ^-- that
04:55 PM LeoNerd: When the character arrives -> cancel the alarm. Or when the alarm fires -> cancel the character read
04:56 PM nuxil: omg. kids found my doorbell. and keept puttin ducktape on my doorbell button so it would play music all the time. :\
04:57 PM nuxil: i need help figuring out the tinytune lib so it wount repeate the song all the time.
04:57 PM nuxil: what do i need to change to make it stop looping :p
04:57 PM nuxil: this is the file that does the magic https://github.com/blakelivingston/avr_tinytune/blob/master/tinytune/tinytune.c
04:58 PM cehteh: connect some high voltage to the bell button will fix that too :D
04:59 PM nuxil: so im wounder if i need to change someting in the isr fnc at line 114 or in the do_song_tickets at line 577 ..
05:02 PM nuxil: this line caught my eye at line 653: if (++song_info.tick >= song_info.next_tick) {ong_info.tick = 0; and set perhaps song_info.playing = 0 ther ?
05:09 PM nuxil: nm that will not do it
05:24 PM nuxil: found the damn line that will stop it :p
05:27 PM nuxil: my hunch was right. it was in one of thouse. it was in: void do_song_tick(void). in the if statement at line 647. i just added song_info.playing = 0;
05:27 PM nuxil: :)
05:29 PM nuxil: now i need to make a fnc that shuts down the pll..
07:33 PM _kl0wn is now known as kl0wn
08:07 PM robinak is now known as robink
11:16 PM day__ is now known as daey