#avr Logs

Nov 20 2017

#avr Calendar

12:08 AM rue_shop3: ok I just totally emptied my wallet on aliexpress
12:11 AM rue_shop3: I'm panicing cause prices from china are going up lkike crazy and availablility is dissapearing
12:11 AM rue_shop3: a few of the things I'v last looked for weren't there
12:11 AM rue_shop3: 8-|
12:11 AM _ami_: rue_shop3, did shopping on ali during 11/11? :)
12:13 AM rue_mohr: yup, went crazy then too
12:15 AM _ami_: yeah, same here. bought items which did not plan to ;/
12:20 AM rue_mohr: oh, the exchange rate has been getting better, nope, thats backwards, its worse
12:20 AM rue_mohr: crap
12:33 AM polprog: https://puu.sh/ypMbZ/acb8562302.jpg snow \o/
12:38 AM cehteh: where is that?
12:38 AM polprog: poland
12:38 AM cehteh: south western germany here .. later this week it should become close to 20°C
12:39 AM polprog: warm :o
12:39 AM cehteh: yeah
12:39 AM cehteh: well now its 2°C
12:40 AM cehteh: weird weather
12:46 AM twnqx: 20°C sounds good, i hope it starts tomorrow
12:46 AM twnqx: coming from dubai i don't want to be temperature shocked :P
05:23 AM _ami_: its -2C here
05:23 AM _ami_: feels like -8C though :/
05:51 AM nuxil: Casper, https://memegenerator.net/img/instances/500x/73084657/its-november-can-i-put-up-my-christmas-tree-yet.jpg
06:06 AM Emil: nuxil: I have a very relevant image to this
06:07 AM Emil: https://elepaja.fi/telegram/media/AgADBAADrqwxG2E3kVA7hmRJOYjukDZD9RkABBMFVdRQd6-cpMkCAAEC.jpg
06:08 AM Emil: It's not even fucking December yet
06:08 AM nuxil: lol
06:08 AM Emil: That's from yesterday
06:08 AM nuxil: is that at a bus stop ?
06:08 AM Emil: It's the traditional Otaniemi Christmas tree
06:08 AM Emil: nuxil: yes
06:08 AM nuxil: lol
08:38 AM nuxil: mmm.. misc parts for 100bucks ordered. :)
08:45 AM rue_mohr: Emil, An error occurred during a connection to elepaja.fi.
08:45 AM rue_mohr: Cannot communicate securely with peer: no common encryption algorithm(s).(Error code: ssl_error_no_cypher_overlap)
08:45 AM rue_mohr: it looks like I need special secure software to look at your site
08:46 AM nuxil: rue_mohr, works fine here
08:53 AM rue_mohr: you must have the special softwrea
08:53 AM nuxil: firefox
08:53 AM rue_mohr: I'm not allowed to view the contents of the site because I dont
08:54 AM nuxil: what browser are you using ?
08:55 AM rue_mohr: iceweasel
08:55 AM rue_mohr: funny enough, lynx can open it
08:55 AM rue_mohr: nice tree
08:55 AM nuxil: looks like a lack of tls support in iceweasel
08:56 AM nuxil: idk. never used it tho.
08:59 AM nuxil: or tls/ssl is turned off.. try another https oage with it.
09:02 AM nuxil: rue_mohr, https://www.ssllabs.com/ssltest/analyze.html?d=elepaja.fi&latest
09:03 AM rue_mohr: A
09:03 AM nuxil: jup
09:04 AM rue_mohr: This site works only in browsers with SNI support.
09:05 AM rue_mohr: Session resumption (caching) No (IDs assigned but not accepted)
09:08 AM nuxil: maybe try the chromium browser if its still in availeble.
09:09 AM rue_mohr: na I hate that thing
09:09 AM nuxil: lol. me too
09:10 AM rue_mohr: its interesting that, of all the chips available for making an lcd serial, china chose the pcf8574
09:12 AM nuxil: whys that?
09:12 AM rue_mohr: whats also funny, and I have to check into this, is that _I_ think, all the 447880 controllers out there currently accept 8, 4 and 1 bit mode, aka, they will already do serial
09:13 AM rue_mohr: I came across a part number that was a 44780 type, but the datasheet showed how to use it for serial too
09:13 AM rue_mohr: was out of a telephone
09:14 AM rue_mohr: and as the lcd's all now use blobtops, we dont know what they really are
09:19 AM rue_mohr: drat, I have to find that datasheet again
09:20 AM nuxil: HD44...? Hitachi stuff ?
09:21 AM rue_mohr: aha yea, ks0073 is one
09:21 AM rue_mohr: R/W = Serial in
09:21 AM rue_mohr: /E = SCK
09:22 AM rue_mohr: DB0 = Serial out
09:22 AM nuxil: this hd447880 is ancient stuff
09:22 AM rue_mohr: RS = CS
09:22 AM rue_mohr: nuxil, yes, I'd bet they aren't 44780 anymore
09:23 AM nuxil: dated back to 1987 ccording to wiki
09:23 AM rue_mohr: nut compatible chips that can do native serial interface
09:23 AM nuxil: you need some special skill to dig up the datasheet for such a old chip :p how did you find it :o
09:24 AM nuxil: is it this one ? https://www.sparkfun.com/datasheets/LCD/HD44780.pdf
09:24 AM rue_mohr: I dont think you get what I'm saying
09:25 AM rue_mohr: I think that all the new lcd's use a chip compatible with the 44780, but that nativly support a serial interface
09:25 AM nuxil: oh
09:26 AM nuxil: well. uptp 8x8 atlest :p
09:29 AM nuxil: no wait. that can display 8 char lines or two 8 charlines.
09:30 AM nuxil: anywho. are you gonna make some hacks with this chip?
09:30 AM rue_mohr: the joke is that everyone is using boards to make them serial interface
09:31 AM rue_mohr: but that the chips they are using probably already have it
10:05 AM * _ami_ building kernel takes forever for desktop :/
10:11 AM cehteh: you need a faster desktop :D
10:12 AM cehteh: some old netbook here takes about a day to build a kernel .. on the new ryzen its finished in 15 minutes :D
10:14 AM _ami_: finally its done.
10:14 AM _ami_: took ~1hr
10:15 AM _ami_: i am on i5-2500K CPU @ 3.30GHz
10:16 AM _ami_: nice, 15 mins is quite FAST!
10:17 AM cehteh: its only a ryzen 1700, some saied with threadripper you can have it in 1.5 minutes
10:17 AM cehteh: prolly not real world kernel but simplified config
10:17 AM _ami_: ok,
10:17 AM _ami_: time to reboot!
10:17 AM cehteh: and the debian package building takes a lot time because it isnt parallel
10:18 AM _ami_: aha, that explains
10:18 AM _ami_: why it took 1 hr
10:18 AM _ami_: brb
10:21 AM _ami_: ok, can compile tinydrm modules with latest kernel.
10:27 AM thornekey: hello, can someone help me
10:28 AM cehteh: no, nobody knows your problem
10:29 AM thornekey: question is: can PIC programmers program AVR?
10:29 AM thornekey: :)
10:29 AM thornekey: probably not hey
10:31 AM _ami_: thornekey: Nope
10:31 AM thornekey: cool, thought so :)
10:44 AM nuxil: make a stk200 programmer yourself. its simple
10:55 AM noHitW_work: i was gonna say "buy atmel ice" but then i saw this https://www.mouser.fi/ProductDetail/Microchip-Technology-Atmel/ATATMEL-ICE/?qs=KLFHFgXTQiDAUrt43H15kQ==
10:55 AM noHitW_work: wtf microchip
10:56 AM noHitW_work: you can get st-link for under 10 bucks
10:56 AM noHitW_work: or TI launchpad for under 10 bucks
11:31 AM Emil: rue_mohr: yes, you are running deprecated ciphers
11:32 AM Emil: or deprecated software
11:32 AM Emil: because iceweasel supports SNI just fine
11:34 AM Emil: without SNI, one can't serve multiple https sites from a single ip
11:34 AM Emil: without SNI, you need individual ip for each individual site
11:34 AM Emil: tld*
11:35 AM Emil: But I have a question
11:35 AM Emil: Did AVRs have some way to synchronise IO?
11:36 AM Emil: Like latch ports A and B at the same time?
11:36 AM Emil: Hmm
11:36 AM Emil: What if I halt the IO clock
11:38 AM Emil: Oh, it's tied to sleep modes?
11:39 AM Emil: Hngh
11:39 AM Emil: I should move to ARMs
11:39 AM Emil: so much more control
11:41 AM nuxil: if you dont know how to do it with avr your not ready for arm :p
11:41 AM nuxil: just kidding :p
11:41 AM Emil: Heh
11:41 AM Emil: I know how to do it
11:41 AM Emil: But
11:41 AM Emil: all cycles count
11:42 AM polprog: use a latch?
11:46 AM nuxil: the manual say just insert nop for synchronization then just read the pin register
11:47 AM nuxil: but that wastes cycles. 1 cycle for nop
11:47 AM nuxil: iirc
11:47 AM polprog: ofc 1 cycle, what else would that be
11:47 AM nuxil: could be more
11:47 AM polprog: 1.5 cycles
11:47 AM polprog: inverts the clock phase :D
11:49 AM polprog: also if i could get a crystal to tick in a harmonic of 1.209 sec
11:49 AM polprog: i could make a clock that measures in microfortnights
11:49 AM polprog: \o/
11:49 AM Emil: SOS
11:49 AM Emil: ABORT
11:49 AM Emil: :DDDDDDD
11:50 AM polprog: what
11:50 AM Emil: >1.209s harmonic to measure microfortnights
11:50 AM Emil: SOS
11:50 AM Emil: ABORT
11:50 AM Emil: Also, harmonics have specshul meaning
11:50 AM Emil: You just need a multiple
11:51 AM polprog: yeah, i was thinking about using "multiple"
11:51 AM polprog: also
11:51 AM polprog: OpenVMS - Source Model: Closed source
11:51 AM polprog: lololol
11:52 AM polprog: i mean.... if there was an easy way to get 1.209 sec pulses - maybe with some special frequency multiplier circuit?
11:52 AM polprog: im sure there are freq-to-voltage converters
11:53 AM polprog: if you amplify the signal and feed it to vco should work
11:53 AM polprog: is that what's called a PLL?
11:54 AM enh: hi polprog
11:54 AM polprog: hi enh!
11:57 AM polprog: you know what Emil? when i finish my desk clock (parts are on the way :P i need to order the pcb) i will make a new rev that will have a switch between hh:mm:ss:th and "microfortnights since 1 jan 1980 x100"
11:57 AM enh: all right?
11:57 AM polprog: supper's ready, brb
11:58 AM nuxil: im using the tinytune lib, it uses ppl to play "chip tune" music. im hacking up my door bell and adding aatiny85 that plays my custom song. :D
11:59 AM nuxil: *pll
12:09 PM polprog: please make this your dorbell: https://www.youtube.com/watch?v=R9yLJoD2hz8
12:10 PM polprog: i absolutely love the cough sample
12:10 PM nuxil: lol. a bit long :p
12:13 PM Ameisen: two questions for you guys
12:13 PM Ameisen: 1. What are the fastest compression and/or decompression algorithms for AVR?
12:13 PM Ameisen: if y'all don't know, I may have to benchmark some
12:13 PM nuxil: 1. no idea
12:14 PM nuxil: upcomming 2. no idea
12:14 PM Ameisen: I consider zlib, but zlib sucks even on x86, and zlib itself is poorly written (you can replace some of their weird code with memcpy and get like 10% speedup)
12:14 PM polprog: same, but i'd start from the simplest ones
12:14 PM Ameisen: the 'faster' algos like snappy and brotli are designed for 64-bit
12:14 PM Ameisen: I doubt they'd run well on 8-bit
12:14 PM polprog: im not sure but gzip looks old
12:14 PM Ameisen: Could always custom write one, as well
12:14 PM polprog: also, wait
12:14 PM polprog: there was Turbo from c64
12:14 PM Ameisen: or custom write zlib as a better-structured library which'd be faster
12:14 PM Ameisen: just huffman encoding with a sliding window
12:15 PM Ameisen: the sliding window is what slows down the algo though
12:15 PM Ameisen: and will be much slower on AVR
12:15 PM Ameisen: #2 - what's the _fastest_ AVR8 chip out there
12:15 PM Ameisen: fastest and best, rather
12:17 PM enh: Ameisen, isn't that you that knows ants quite well?
12:25 PM Tom_itx is now known as Tom_L
12:25 PM noHitW_work: ATmega1284P
12:27 PM Ameisen: interesting
12:27 PM Ameisen: faster than the 2560
12:27 PM Ameisen: but less progmem
12:27 PM Ameisen: but more RAM
12:27 PM Ameisen: also fewer gpio pins
12:57 PM polprog: allright
12:58 PM polprog: final touches and im sending the clock pcb to fab
01:00 PM Emil: polprog: y do u do tis
01:15 PM polprog: i wanted to have a desk clock
01:15 PM polprog: dont worry, this is the normal version
01:15 PM polprog: i was oking with mictofortnights
01:15 PM polprog: ...for now
01:15 PM polprog: joking*
01:29 PM Ameisen: what's the main distinction between mega and xmega?
01:50 PM Casper: nuxil / Emil: YES
01:50 PM Casper: (re: xmas tree)
01:50 PM nuxil: ^^
01:53 PM nuxil: hmm. i orderd some parts from sweeden (elfa.se). and my tracking says its beeing sent from netherlands..
01:53 PM polprog: i ordered from pl.farnell.com and it's in Leeds in UK :P
01:53 PM nuxil: oh well that only means one thing. the customs are going to have fun with it.
01:54 PM nuxil: netherland is eu's drug capital :p
01:56 PM polprog: 100xResistors, 10xMLCC 10uf, 10xMDMA, 5xLSD, 2xtantalum caps,
01:58 PM nuxil: ^^
02:00 PM polprog: time to do some homework for school
02:56 PM antto: Ameisen xmegas run on 3.3V (or less), and are "better" than atmegas
02:59 PM antto: dafuq happened to atmel.com >:/
02:59 PM * antto stares at microsh<backspace,backspace>chip
03:00 PM antto: atmega1284P 20MHz?
03:00 PM antto: a bunch of xmegas are 32MHz
03:05 PM antto: hm, they are all 32MHz even
03:07 PM antto: ATxmega384C3 - 32KB RAM x_x
03:08 PM Ameisen: antto - seems difficult to find xmega boards
03:09 PM Ameisen: whereas mega boards are... everywhere
03:09 PM antto: boards?
03:09 PM antto: just solder it onto a TQFP breadboard-friendly adapter thang
03:10 PM Ameisen: was hoping to just get a development board to tinker with
03:16 PM polprog: my development board was rasterboard with two double 7 segs and 4 transistors to run them, son
03:17 PM polprog: you kids and your 4 layer dev board with silkscreen
03:17 PM polprog: now srsly, :) my first project was a prime number machine
03:17 PM polprog: you pushed a button and it displayed the next prime on the display
03:18 PM antto: u prehistoric h4x0r
03:18 PM polprog: i might have pics somewhere, or even a video
03:18 PM antto: boooooo pics
03:19 PM antto: last time i checked, the "biggest" 8bit pic doesn't even have 4KB of RAM
03:19 PM antto: SHAME
03:19 PM antto: it's 2017
03:21 PM polprog: shame, it's on the old computer
03:22 PM polprog: i have to back them up to the new big disk
03:24 PM antto: i hope your disk is not "big" according to microchip's criteria
03:24 PM antto: ;P~
03:24 PM polprog: its 2 tb HDD iirc :P
03:24 PM polprog: some say it's not big
03:24 PM polprog: im very very short on disks
03:24 PM polprog: i have lots of space here and there but no backups
03:25 PM polprog: no separate disks for backups
03:25 PM polprog: i need to buy one or two big hdds and drop data off onto them
03:26 PM antto: can someone name a quick and cheap 5V dual opamp that can work as a comparator, rail-to-rail output?
03:26 PM antto: or should i use a comparator IC instead
03:26 PM antto: i need adjustable hysteresis
03:26 PM * polprog grabs a book
03:28 PM polprog: it says ALD1702 can reach both rails on output
03:28 PM polprog: also, ICL7612B
03:29 PM polprog: but both are single opamps
03:31 PM antto: hmz
03:31 PM polprog: LM324A
03:31 PM polprog: double one
03:31 PM polprog: sorry, 358A
03:31 PM polprog: 324 is single
03:32 PM polprog: slew rate 0.5uV/ms
03:33 PM polprog: not the fastest out there but they specify cutoff freq at 1MHz
03:33 PM Emil: Casper: pls no
03:33 PM Emil: Casper: I mean
03:33 PM Emil: Casper: it's tradition
03:34 PM Emil: but please not before December :D
03:34 PM polprog: Emil: happy easter
03:34 PM Emil: Someone was in a hurry to make it
03:35 PM Emil: polprog: I was just talking to some acquitances on a chat and a person there told me that she knows people who put the tree up and play Christmas songs in October.
03:35 PM Emil: I was like: wait
03:35 PM Emil: 3 months of Christmas?
03:35 PM polprog: lol
03:35 PM Emil: Alllllrighty then
03:37 PM Emil: polprog: heh, I must seem like a god to the freshmen for being able to pull my latest video in an evening and not lose patience :D
03:38 PM polprog: whatddya mean
03:40 PM Emil: I build a simple VU-meter as an example of what you can do with the freshman-blinker
03:40 PM polprog: cool
03:40 PM Emil: on my channel
03:41 PM polprog: i should upload something to my channel as wel
03:41 PM polprog: l
03:41 PM polprog: who the hell uses those: http://www.cableleader.com/2-way-rj45-manual-data-switch-2348.html
03:41 PM polprog: a hub would be better lol
03:42 PM Emil: :DD
03:42 PM Emil: Weeell
03:42 PM Emil: I read about this masters thesis
03:43 PM polprog: i unerstand VGA manual switches, i have one. but for gods sake, ethernet????
03:43 PM Emil: Where the goal was to establish a secure (no unwanted information leakage) connectiong between two machines / host and device
03:43 PM polprog: mfw theres a raspberry pi in there and when you push the button it changes iptables settings :PP
03:43 PM Emil: the author used arduino uart and was all about how this is the only way to make it secure, with uart at 9600 baud blah blah blah
03:43 PM polprog: that would be overengineering :D
03:43 PM Emil: I was like
03:44 PM Emil: Bitch, please
03:44 PM Emil: It's not about the communication medium
03:44 PM Emil: it's about the fucking code and drives you run
03:44 PM Emil: drivers*
03:44 PM polprog: lol
03:44 PM polprog: i need to see that
03:44 PM Emil: Hmm
03:45 PM Emil: I might have it saved or linked to
03:46 PM polprog: holy cow man, i can see the scope in the video crashing into the floor, brr
03:46 PM polprog: dont do that
03:47 PM Emil: :D
03:47 PM Emil: comeone
03:47 PM Emil: I'm not going to break something like that
03:47 PM polprog: i could use a wide VU mueter at the mixing console at school
03:48 PM polprog: i only have one stereo and i need to switch routing to measure tracks
03:48 PM polprog: apart from the meters at the sounds processor, along with FFT and stuff
03:49 PM polprog: https://puu.sh/yqc2L/ad1f5255cf.jpg
03:50 PM polprog: guess who played "A piece of magicmix" at the rehearsal ;)
03:52 PM Emil: Nice
03:57 PM Emil: polprog: wanna know how I do that led "VU"-meter?
03:57 PM polprog: i tried one vu meter
03:58 PM polprog: but i came to a conclusion i know even less about digital signal processing
03:58 PM Emil: mem[256]; mem[loc]=ADCH; max=mem.max; min=mem.min; output=log(max-min); :D
03:58 PM polprog: so im all yeasts
03:58 PM Emil: in pseudocode
03:58 PM polprog: aha
03:58 PM polprog: well, i wanted mine to be input -> preamp -> active rectifier -> lowpass -> adc measure
03:59 PM polprog: also, im not sure if you havent just described a peak meter? not a VU meter?
03:59 PM polprog: VU meter has integration time
03:59 PM polprog: of...
03:59 PM Emil: https://emil.fi/jako/koodi/avr_vum.c
03:59 PM polprog: bookmark'd
03:59 PM polprog: https://en.wikipedia.org/wiki/VU_meter
03:59 PM polprog: it's more complicated
03:59 PM Emil: polprog: yeah, peak, really
03:59 PM Emil: Not vu
04:00 PM polprog: but for a blinky without any scale it's 10/10 for me
04:00 PM Emil: yeah it's a peak-meter
04:00 PM polprog: my favourite one is peak-programme-meter
04:01 PM Emil: hmm
04:01 PM polprog: i like all kinds of meter, goniometer is awesome too
04:01 PM polprog: https://www.google.pl/search?q=goniometer+audio&num=30&client=firefox-b-ab&dcr=0&tbm=isch&tbo=u&source=univ&sa=X&ved=0ahUKEwi0vOvJk87XAhXCaFAKHU5CBzgQsAQIMQ&biw=1509&bih=548
04:01 PM polprog: im getting deeper and deeper into audio tech
04:02 PM polprog: but what you did is what i wanted to do :P
04:02 PM Emil: https://hackster.imgix.net/uploads/attachments/298062/webimg_0104_T26S7B5KTl.jpg?auto=compress%2Cformat&w=900&h=675&fit=min
04:02 PM Emil: I'll build a gorgy clock at some point
04:02 PM polprog: wow
04:02 PM Emil: hmm
04:02 PM polprog: i once saw a self assembly kit, but it was bloody 100 euros
04:02 PM polprog: long time ago
04:02 PM Emil: Actually changing the code to calculate average is not too hard
04:02 PM polprog: in the polish verison of radioshack
04:03 PM polprog: i would opt for using analog frontend instead
04:03 PM Emil: the point is having it be a freshman blinker
04:03 PM Emil: If I wanted to make a real thing I would ;)
04:03 PM polprog: hmm, when i finish (if i have time :DD ) the art of electronics on opamps i will probably build a semi digital vu meter
04:03 PM Emil: Just slap enough cycles on it fast enough and it'll work
04:04 PM Emil: digital alll the way
04:04 PM polprog: meh, thats unelegant ;)
04:04 PM Emil: You know the legendary Bob Widlar poster?
04:04 PM polprog: yeah
04:04 PM polprog: every idiot can count to one
04:05 PM polprog: btw this has some nice shots of semidigital meters (apart from nice shots of the girls) https://www.youtube.com/watch?v=XEjLoHdbVeE
04:06 PM polprog: having both peak meter and a vu meter is especially useful in electronics music, becasue non sine waves can give very different readings on those
04:06 PM polprog: ;)
04:07 PM Emil: Well, I have a respones to that: "Analog? Every idiot can doodle continuous lines."
04:07 PM polprog: lol
04:08 PM polprog: also,
04:08 PM polprog: illshow you something
04:09 PM polprog: https://puu.sh/yqcKq/1b9f22c7a7.jpg
04:10 PM polprog: got it printed today after school
04:11 PM Emil: Nice
04:12 PM Emil: Though I would have been more partial to this: http://polprog.net/rtfm/
04:12 PM polprog: lol
04:12 PM polprog: not many people know the acronym ;)
04:14 PM Emil: makes it even better
04:14 PM polprog: but many people here ar crazy about the pope
04:15 PM polprog: actually not that particular one
04:15 PM polprog: more about the previous one
04:17 PM polprog: the guys from abalog responded
04:17 PM polprog: turns out NC on datasheet is "Do not connect" instead of "not connected"
04:17 PM polprog: and i shoulv'e left floating half of the pins
04:17 PM Emil: whatthafuck
04:18 PM Emil: WHo the fuck names "Don't connect" as NC
04:18 PM polprog: it was down there in the notes under the picture
04:18 PM polprog: even the lead eng told me to tie them to gnd
04:26 PM polprog: night
04:26 PM polprog: gotta be up and running at 600 tomorrow
04:29 PM Tom_L: better get busy
05:28 PM Emil: polprog:
05:28 PM Emil: https://github.com/maqp/tfc/blob/master/README.md
05:29 PM Emil: found it
05:32 PM Emil: https://www.cs.helsinki.fi/u/oottela/tfc.pdf
11:11 PM day__ is now known as daey