#avr Logs

Feb 21 2018

#avr Calendar

12:02 AM unregisteredandf: https://www.youtube.com/watch?v=T53FQKP4T3E
12:05 AM unregisteredandf: threre are some that make it through :)
01:53 AM polprog: morning
01:54 AM Haohmaru: ur late! ;P~
01:55 AM polprog: in fact i am :P
01:55 AM Haohmaru: ur FIRED, son ;P~
01:55 AM polprog: i should already be at school yet i just got on the train ;)
02:51 AM nohitzwork: morning
03:17 AM Jartza: hallo
03:17 AM Jartza: looks like I got feature frenzy
03:17 AM Jartza: Program: 628 bytes (61.3% Full)
03:18 AM Jartza: :D
03:18 AM Haohmaru: your source file is probably more than 628 bytes
03:52 AM unregisteredandf: hi
04:09 AM nohitzwork: hi
04:22 AM polprog: Jartza: im sure you can squeeze more stuff there ;)
04:27 AM * Haohmaru gives Jartza an atxmega256a3bu
04:29 AM Haohmaru: maan, 1KB program must be soooo claustrophobic
04:29 AM polprog: if you dont do much maths, not really
04:33 AM polprog: my program of you compile it with all the debugging commands, takes 6KiB. if you disable debug you get 2KiB less
04:43 AM Haohmaru: the .hex on this thing i was working on is 100KB
04:44 AM Haohmaru: so that should be something roughly 33KB actual binary
05:17 AM polprog: avr-size
05:25 AM Haohmaru: me-so-lazy-rite-nao
06:06 AM Jartza: Haohmaru: yeah, all source code calculated together 10896 bytes
06:06 AM Jartza: but that includes comments too
06:07 AM Jartza: Haohmaru: claustrofobic depends of what you're doing :)
06:07 AM Haohmaru: comments are important
06:08 AM Haohmaru: maybe not yet, but they will be.. when compilers start to become self-aware
06:09 AM Haohmaru: "dafuq was the author trying to do here!? .. lemme see the comments.. oh.. okay" - compiler of the future
06:43 AM polprog: success, scope borrowed
07:02 AM Emil: On ##crypto
07:02 AM Emil: 2018-02-21 14:30:33 +0200 < j__1> ok, so don't FPGAs trade computing speed for versatility? Using a GPU might still be faster for some hashing
07:02 AM Emil: 2018-02-21 14:31:36 +0200 < j__1> is arduino an fpga?
07:02 AM Emil: 2018-02-21 14:40:32 +0200 < j__1> or is there a significant difference between an arduino and an fpga in SHA computing
07:02 AM Emil: 2018-02-21 14:40:39 +0200 < j__1> when optimized
07:03 AM nohitzwork: :D
07:11 AM nohitzwork: i absolutly love java, it makes everything so easy because of the huge libraries
07:11 AM nohitzwork: android is a great platform because you can use java, or c or mixture of both
07:12 AM Emil: I'd much prefer if we had html css and js as the android development environment
07:12 AM nohitzwork: dont we ?
07:12 AM nohitzwork: phonegap/cordova
07:13 AM Emil: Yeah but natively
07:13 AM Emil: Also C of course would be great
07:13 AM Emil: Without all the complexities
07:21 AM nohitzwork: i had to develop functions for sorting Points of interest by date, by name and by distance in relation to your current location. it only took 30 lines of code with java.
07:24 AM Emil: Probably the same or less with js
07:25 AM Emil: Of course I could do that with a single line given a c library ;)
07:29 AM polprog: java <3 never forget writing funny guis in secondary scho
07:29 AM polprog: l
07:29 AM polprog: import javax.swing.*;
07:30 AM polprog: or minecraft mods. that was awesome
07:30 AM polprog: 14:01 < Emil> 2018-02-21 14:31:36 +0200 < j__1> is arduino an fpga?
07:30 AM polprog: rofl
07:30 AM polprog: crypto and arduino should not mix
07:31 AM Haohmaru: arduino sounds like the dirty little sextoy of the supermario bros
07:31 AM * Haohmaru hides
07:32 AM polprog: lol
07:38 AM nohitzwork: alakajam 2 starts on friday, time to make a game in 48 hours again
07:40 AM Haohmaru: alaka-wat?
07:40 AM nohitzwork: game jam
08:15 AM dunz0r: Ew, html and JS. Please no.
08:16 AM dunz0r: Emil: You can totally use proper C with an arduino. Just upload using the "arduino"-programmer option to avrdude.
08:23 AM Emil: dunz0r: ....
08:23 AM Emil: dunz0r: we are talking about android
08:24 AM Emil: and wot
08:24 AM dunz0r: Oh! *phew*
08:24 AM Haohmaru: linux OS soaked in google sweat'n'filth?
08:24 AM Emil: but the heck you mean with your second statement
08:24 AM Emil: ah regarding using c
08:24 AM dunz0r: Haha, misread Android as Arduino :)
08:25 AM Emil: boy
08:25 AM Emil: Never ever think I can't handle an anvr
08:25 AM Emil: avr*
08:25 AM dunz0r: That's what surprised me :)
08:38 AM polprog: lol
11:00 AM merethan_ is now known as merethan_to_stay
11:04 AM polprog: Emil: https://i1.jbzdy.pl/contents/2018/02/9afdd6c70c83a870e82ba81aeed150a8.mp4
11:05 AM Emil: polprog: :D
11:05 AM Emil: pretty much
11:24 AM merethan_to_stay is now known as mereth4n
11:30 AM nuxil: the recipe for success. :p
11:45 AM nuxil: i guess it is if youre a musician :p
11:45 AM nuxil: polprog, how did your sciensday go? did you impress them with your caps ? :p
11:45 AM polprog: its next thursday
11:45 AM nuxil: oh.
11:45 AM nuxil: thought it was today.
11:46 AM polprog: but i wanted to get a scope earlier, its in a closet at school
11:46 AM polprog: well, all of them are in the closet in the lab but i took one to another closet
11:47 AM nuxil: hehe
11:48 AM polprog: got a rigol ds5022m
11:48 AM nuxil: is that the oone that can be hacked?
11:48 AM nuxil: to increase the bandwidth
11:49 AM polprog: i saw some 1054z form factor scopes as well but i didnt ask for one of those since i barely know the lab assistance
11:49 AM polprog: assistant*
11:49 AM polprog: not sure. its one or two generatons older
11:49 AM nuxil: i saw on eevblog that a rigol could be hacked and get more bw.
11:49 AM polprog: than the 1000 series
11:50 AM polprog: yeah thats the 1000 series, rigol sells key codes to increase the BW, or unlock advanced triggers and protocol decoding for them
11:50 AM nuxil: lolz
11:50 AM polprog: so a keygen appeared on the net, and Rigol seems pretty cool with it
11:50 AM polprog: ie not taking it down lol
11:50 AM polprog: i think this greatly increases their sales
11:51 AM polprog: equivalent stuff from tek or agilent is probably 3-5x more expensive
11:51 AM nuxil: no much they could do about that keygen anyway. except create a new FW for newer models.
11:51 AM polprog: yeah, and a new keygen would be published :P
11:52 AM nuxil: jup
11:52 AM polprog: i tested that rigol when i got it (or rather was asked if i would know how to operate a digital one :P )
11:53 AM polprog: and the encoders are a bit glitching... last year the analogue hantek had the same problem
11:53 AM polprog: and the timer on my stove has the same problem as well
11:53 AM nuxil: how hard can it be. press a button here, press a button there. turns a knob. press more buttons :p
11:54 AM nuxil: anyway. im thinking about gettnig a rigol. not sure yet.
11:54 AM polprog: yeah. "just hit auto" :P im fine, just wanna measure the freq and show the waveform
11:55 AM polprog: the only thing that im not happy with my rigol is that it uses the display memory for protocol decoding
11:55 AM nuxil: im atm only looking at rigol and siglent. cant afford a tektronix
11:55 AM nuxil: but i read that these cheap siglent has issues.
11:56 AM polprog: so if you zoom out enough that the edges are overlapping, or move the view that you get half a byte outside, the decoder shits itself
11:56 AM polprog: but that can be fixed by getting a cheap LA clone
11:57 AM polprog: :P
11:57 AM nuxil: heh yea. i paid 5bucks for mine inc shipping.
11:58 AM nuxil: and it even works with the orgiale software :)
11:58 AM polprog: yea
11:58 AM nuxil: that LA i bough is worth every cent. verry incommon with cheep stuff :p
11:59 AM nuxil: *uncommon
11:59 AM polprog: i like mine as well
11:59 AM polprog: and for protocol view i find that a PC works better than a scope
12:02 PM nuxil: time for some more coffee and get some codeing done. :)
12:03 PM polprog: have fun
12:04 PM polprog: i think ill try to implement an init function for the 44780
12:06 PM polprog: what surprised me was that the scope i got had the UI in polish
12:11 PM polprog: lol who buys those http://allegro.pl/show_item.php?item=6865951405
02:19 PM polprog: cant get this lcd to work...
02:20 PM nuxil: why not :p
02:20 PM polprog: im initializing this hd44780 as per wikipedia art and the avr lib... first send 0x33 0x32 to make sure its in 4 bit mode, then data
02:21 PM polprog: yet it doesnt turn the top row off (
02:21 PM polprog: the uninitialized state on power on is the top row being ascii blocks and the bottom being empty)
02:21 PM polprog: i cant get it to clear
02:23 PM polprog: wait
02:23 PM polprog: i misplaced RS and E lines...
02:27 PM Jartza: http://i.imgur.com/ek1ZCu2.png
02:27 PM Jartza: oops
02:27 PM Jartza: wrong window :D
02:28 PM polprog: YES
02:28 PM polprog: works!!!
02:30 PM Jartza: hooray!
02:39 PM polprog: #define LCD_CUR_NBLNK
02:40 PM polprog: would that be too much shortening ?
03:05 PM polprog: https://www.youtube.com/watch?v=PFob__xP0C4
03:20 PM polprog: should i put comments in the source file or header file (comments about function decriptions)
03:20 PM polprog: ?
03:26 PM Jartza: if you're making a library, definitely header
03:27 PM Jartza: I tend to document in .h WHAT the function does, and in .c HOW.
03:27 PM nuxil: yea that makes more sense. and comments in the .c file may be more for personal referance.
03:28 PM nuxil: polprog, that video. looks like its printing the address instead of whats on the address.
03:29 PM polprog: nuxil: i know. the while didnt check for null terminator and just went ahead
03:29 PM polprog: i did that on purpose to see how it looks like :P
03:29 PM polprog: cyberpunkish :P
03:52 PM nohit: stm32 cube hal library has the doxygen documenting in .c files
03:52 PM nohit: we do the same at work
03:54 PM polprog: https://github.com/polprog/stm8-hd44780/
03:54 PM polprog: :)
03:55 PM nohit: nice
04:37 PM polprog: time to sleep
04:37 PM Emil: good night
05:23 PM Emil: https://github.com/digikey/digikey-kicad-library/
06:39 PM nuxil: Emil, is it any good?
06:49 PM rue_: dk didn't cad their entire stock did they?
06:49 PM rue_: that would be a major burn for eagle
06:52 PM nuxil: cad for every chip ? nah.
06:52 PM nuxil: to small lib for that
06:56 PM Tom_L: eagle got burned the first time eaglesoft sold it
06:56 PM Tom_L: now it's just bounced around like an orphan
07:01 PM nuxil: do they use a montly subscription model now ?
07:02 PM Tom_L: no idea
07:02 PM Tom_L: autocad owns them now
07:02 PM nuxil: eagle is cloud based right?
07:02 PM nuxil: ahh.
07:02 PM nuxil: then it is.
07:02 PM Tom_L: probably now
07:02 PM rue_: autocad would prolly just kill it in favor of their software
07:03 PM Tom_L: i don't think autocad has anything else like it
07:03 PM rue_: pretty sure they had an electronics package
07:03 PM Tom_L: never heard of anyone using it
07:03 PM rue_: :) exactly
07:04 PM rue_: I sleep now, nini
07:37 PM _ami_: Scopes: Siglent SDS1202X-E 200 mhz vs Rigol DS1054Z - which one is better?
07:40 PM nuxil: watch eev blog. he may have done a review on both.
07:41 PM _ami_: nuxil: sure. i watched the review of Rigol one at eevblog.
07:42 PM _ami_: its just that at that time, rigol 1054z was best choice in 2015. but its 2018 now.
07:42 PM nuxil: so? i still use a crt scope.
07:43 PM nuxil: siglent https://www.youtube.com/watch?v=slBXLf4YKtA and rigol https://www.youtube.com/watch?v=ETCOhzU1O5A reviews on the models you listed.
07:44 PM _ami_: ok, i would watch siglent one.
07:45 PM _ami_: i never had a scope so i am little confused. :P
07:45 PM _ami_: and its only for hobby purpose because i don't do electronics at work. :)
07:46 PM nuxil: maybe this then ? https://www.aliexpress.com/item/Hantek-6022BE-PC-USB-Digital-Storage-Oscilloscope-2Channels-20MHz-48MSa-s-USB-Oscilloscope-Free-Shipping/32624502610.html?src=google&albslr=220658116&isdl=y&aff_short_key=UneMJZVf&source=%7Bifdyn:dyn%7D%7Bifpla:pla%7D%7Bifdbm:DBM&albch=DID%7D&src=google&albch=shopping&acnt=494-037-6276&isdl=y&albcp=1057920432&albag=57649687851&slnk=&trgt=294357661102&plac=&crea=en32624502610&netw=g&device=c&mtctp=&gclid=EAIaIQobCh
07:46 PM nuxil: MIo8LekrO42QIVTb7tCh0gAgTFEAQYAiABEgIOUPD_BwE
07:46 PM nuxil: eww
07:46 PM nuxil: sorry.
07:46 PM nuxil: Hantek 6022BE PC USB portable oscilloscope Digital Storage 2Channels 20MHz 48MSa/s Oscilloscope
07:47 PM _ami_: hantek is shit!
07:47 PM _ami_: this is what i heard from other people around me.
07:48 PM nuxil: well. dont expect to much of a usb scope.
07:50 PM _ami_: thats true.
07:57 PM nuxil: how about Uni-T ?
08:04 PM nuxil: to be honest. between thouse two models. i think i go for the rigol even its a bit older. its a 4channel scope.
08:06 PM nuxil: _ami_, are you saving up for a new oscillioscope?
08:07 PM nuxil: if so. i would go to some electonics forum. like eevblog and ask for opinions for best scope in prize range X.
08:08 PM nuxil: i did that before getting a new dmm. and i found it to be verry helpfull
08:09 PM nuxil: https://www.eevblog.com/forum/testgear/digital-oscilloscope-comparison-chart/ ;D
08:15 PM _ami_: nuxil: thanks a ton. its very nice chart!
08:16 PM nuxil: np
08:25 PM _ami_: i just checked with amazon usa customer care.
08:25 PM _ami_: the warranty for the product is valid in my native country
08:26 PM _ami_: https://www.amazon.com/gp/product/B012938E76/ -> buy this and ship to seoul
08:41 PM _ami_: nuxil: yes, i am saving up by not buying coffee in office. :P
08:41 PM _ami_: it also helps me in getting sleep early in night. :)
09:59 PM _ami_: nuxil: https://www.eevblog.com/forum/testgear/rigol-ds1054z-vs-siglent-sds1202x-e/
09:59 PM _ami_: https://www.eevblog.com/forum/testgear/siglent-sds1202x-e-or-rigol-dso1054z-(yes-another-one)/
10:16 PM nuxil: _ami_, that poll smells a bit fanboyisme. as in people who only have had 2 channels voted there. With 4 channels its handy in many situations. as pointed out in many of the posts. you buy a scope for your needs. do you need to mesure. primary & secondary voltage & amps. 4 channel is better. do you need to debugs micro controllers pins 4 channels is better so on.
10:16 PM nuxil: but using all 4 channels decreases the bandwitdh of the scope. but hey who says you need to use all 4 channels all the tinme :)
10:19 PM nuxil: _ami_, your diving down the rabbit hole now when trying to find the best scope at given prize :p
10:20 PM _ami_: lol yeah :P
10:20 PM _ami_: confusing
10:21 PM nuxil: ofc. you could always get a 2channel scope and buy a $5 logic analyzer clone.
10:21 PM _ami_: i have a 5$ Saeleau LA clone.
10:22 PM nuxil: me too :)
10:22 PM Tom_L: i have a genuine Saleae
10:22 PM Tom_L: and glad to support their efforts
10:22 PM nuxil: good boy :D
10:22 PM Tom_L: y thank you :D
10:22 PM _ami_: how would i have overcome stm32f103 i2c silicon bugs without a LA. :) http://amitesh-singh.github.io/stm32/2018/01/07/making-i2c-slave-using-stm32f103.html
10:24 PM nuxil: Tom_L, i would support them too. if the prize was in a range that was sane. Logic 8 goes for 400 buck on their site.
10:25 PM _ami_: insane price
10:25 PM nuxil: yea
10:25 PM nuxil: no wounder the chinees are getting rich on clones
10:25 PM Tom_L: more than what i gave for sure
10:26 PM Tom_L: i think the new ones are faster than mine
10:26 PM Tom_L: i've had it quite a while
10:26 PM nuxil: 100 ms/s the logic 8
10:27 PM nuxil: logic 8 pro is 500 ms/s
10:27 PM nuxil: 10 and 50 on audio
10:27 PM nuxil: *err
10:27 PM nuxil: analouge
10:27 PM nuxil: good specks. but still insane price
10:28 PM nuxil: 700 for pro.. 1000 for pro 16. lolz.
10:28 PM nuxil: bucks
10:28 PM Tom_L: you don't really need 16 channels
10:28 PM nuxil: yea. that be verry rare
10:30 PM nuxil: if it was like 75 bucks or someting in that range for a genuine saleae logic 8. i would have bought one instead. looks like it good a nice robust case, opose to the cheep plastic case this clone got.
10:31 PM Tom_L: machined aluminum
10:31 PM nuxil: nice
10:33 PM Tom_L: came in a nice hard zipper pouch
10:35 PM nuxil: thats handy, if you need to take it with you tho.
10:36 PM Tom_L: yeah, holds all the probes & cables etc
11:06 PM rue_: I'v been amazed how handy the salee logic analizer knockoff is considering its just digital
11:13 PM _ami_: whats the problem with plastic case?
11:13 PM _ami_: you are not going to sit on it? are you? ;)
11:14 PM nuxil: no, it just feels and looks cheap quality :p
11:14 PM _ami_: aha, ok. well, its just you who gonna look at it.
11:15 PM _ami_: do you use it as keychain to your car which other people see it? no? right.
11:15 PM nuxil: accident happens. i may drop it someday and step on it.
11:29 PM day__ is now known as day