#avr Logs

Dec 20 2017

#avr Calendar

04:02 AM dan3wik is now known as dan2wik
04:21 AM nux__ is now known as nuxil
04:21 AM nuxil: mornings
04:28 AM nuxil: My express package arrived :) and the Nucleo that i orderd at the same time also arrived. :) the nucleo by the 1st glance looks verry cool and promesing.
04:28 AM polprog: nice
04:28 AM polprog: morning
04:28 AM nuxil: until i turn the package over and read the 6 getting started steps.
04:28 AM nuxil: stp 5. download demo software.. wtf
04:28 AM nuxil: so.. meh.
04:28 AM polprog: that idiot polprog has put a common anode display into the common cathode box. buess which one was grabbed yesterday and soldered in haha
04:28 AM nuxil: this thing is going away as a xmas gift
04:29 AM polprog: the nucleo
04:29 AM polprog: ?
04:29 AM nuxil: yea
04:29 AM polprog: no linux toolchain?
04:29 AM nuxil: i am not gonna mess around with demo softwares
04:29 AM polprog: yeah
04:30 AM polprog: im veyr careful what i install in winblows as well. every demo POS makes it bloated more and more
04:30 AM nuxil: im not sure if it has linux tool chain. i havent looked into that
04:30 AM polprog: goota get back making scrambled eggs
04:30 AM polprog: stms seem to have a toolchain, ask Emil
04:31 AM _ami_: nuxil, is it stm32?
04:31 AM nuxil: stm32f446 , nucleo-64
04:31 AM _ami_: nuxil, http://amitesh-singh.github.io/stm32/2017/09/02/blinking-leds-on-stm32f407zgt6.html
04:32 AM _ami_: its for linux setup
04:32 AM nuxil: mmm pacman
04:32 AM nuxil: you using arch ?
04:32 AM _ami_: Yes
04:32 AM _ami_: it should be similar setup for ubuntu also.
04:33 AM nuxil: my workbench inst linux tho :\
04:36 AM polprog: programming on windows is purely awful
04:36 AM polprog: trust me
04:37 AM polprog: i moved my material point sim to my linux laptop because dev cpp was driving me nuts
04:37 AM nuxil: use VS
04:37 AM nuxil: visual studio :p
04:37 AM polprog: i know
04:38 AM polprog: cant be bothered. i use that windows pc just for gaming anyway
04:38 AM nuxil: i dont game but i still use windows :p
04:40 AM nuxil: but linux as a desktop just suck imo. so im not gonna use it as a desktop.
04:42 AM nuxil: i used to game alot. but then i figured out! hell why am i wasting all this time on games when i have 0 in return from it except wasting time.
04:48 AM _ami_: nuxil, well, for linux, we do have visual studio code too.
04:48 AM _ami_: i use vscode now
04:49 AM _ami_: i was vim fan boy though.
04:49 AM nuxil: i know. i tried visual studio code, "in windows" , i see now point in using it. didnt like it at all.
04:49 AM nuxil: *now -> no
04:49 AM nuxil: but on linux it might be ok. since vim/emacs ets is like apps from the stone age.
04:50 AM nuxil: but stillrock solid tho
04:50 AM _ami_: no no, its not like that.
04:50 AM _ami_: when u get good at using some tool, you used to it.
04:50 AM _ami_: its not like vim or emacs is bad
04:50 AM _ami_: they are great.
04:50 AM nuxil: i dint say they are.
04:51 AM nuxil: just said that they are old
04:51 AM _ami_: i prefer not work on something which i don't understand.
04:52 AM nuxil: how will you learn it then ?
04:52 AM _ami_: windows is that thing - since its hidden
04:52 AM _ami_: the OS is hidden
04:52 AM _ami_: in case of linux, i could hack it from bottom(kernel) to top
04:52 AM _ami_: well, how would u hack it if code is not open?
04:53 AM _ami_: windows is terrible IMHO
04:54 AM nuxil: windows is great. for the end user who dosent wanna know how stuff is coded.
04:54 AM nuxil: and thats the major of the population :p
05:00 AM polprog: im less orthodox than _ami_ ;) windows for programming sucks cos you dont have the terminal unless you use some ide. im a $EDITOR - makefile - terminal person
05:00 AM polprog: but if i was to design a windows GUI app, which i did and it was simple enough, then windows is the only way to go
05:00 AM polprog: unless you want your end user to struggle with python and the like
05:00 AM polprog: had this at work
05:01 AM polprog: old engineer was an excel/visual basic fan. i was amazed that you can do the things he did in VB macros. then the new guy came, fresh out of college. he was given problem X and made a solution Y in python
05:02 AM polprog: i ahd a look at the code when i had to set it up for the engineer, the new guy's was gone back to where he came from, (overseas uni intern)
05:02 AM polprog: the code was atrocious but it worked
05:03 AM polprog: i was taksed with setting it up on eng's computer. windows
05:03 AM polprog: i ran cmd, cd'd to the script dir and ran it
05:03 AM polprog: "module XYZ not found"
05:03 AM polprog: so pip install XYZ
05:03 AM polprog: opened it up, installed all the used modules. ran flawlessly
05:04 AM polprog: but it was nowehere similar to what id expect on windows (he was coding on windows)
05:05 AM polprog: it was amazing to see eng's excel macros and new guy's python script concept clash together
05:05 AM polprog: nota bene new guy's script took two files, input file and output file
05:06 AM polprog: he coded getting the paths as user input during execution, not as command line arg like *nix tradidional style would dictate and what would be natural for me
05:06 AM polprog: imagine autmating that script, aaargs
05:06 AM polprog: aargh*
05:08 AM polprog: if not me and the other linux guy who helped, the eng and the new guy would probably waste 2 or 3 days (new guy was overseas right then) playing email pingpong trying to work out how to run this *without* IDLE (python ide)
05:15 AM nuxil: i like python for its simplisity "The Zen of Python", but i hate how slow it is. its real slow.
05:21 AM polprog: i also made a mistake and pt wrong spacin on the displays
05:21 AM polprog: looks like some will have their sides filed off
05:21 AM kvik: simplicity != expresivity, python is not simple at all, it is huge and slow. compare with Lua to get the idea
05:21 AM nuxil: ups
05:21 AM polprog: and the fab guy's CNC is a bit off as well.
05:21 AM polprog: first some holes area bit off
05:24 AM polprog: second theres a difference in the height of the display tab. meaning that on the far end it's 14.3mm and on the CPU end it's 14.9mm which is enough not to fit between the display pins. that will have to be filed off as well
05:24 AM polprog: oddly enough the project states 14.0 mm
05:25 AM polprog: anyway, i understand this is very precise and it's ok... it's not a batch of 1000 :P
05:25 AM kvik: that's quite a margin
05:25 AM polprog: and i have enough displays to populate one only.
05:26 AM polprog: right now when im done cleaning the room for christmas ill have to desolder the CA display and fit a CC one in
05:37 AM nuxil: kvik, i disagree. python is one of the simplets scripting languages one can learn.
05:39 AM nuxil: kvik, When i meant simplisity. i meant as in. the usage, the syntax, code style etc.. not how small and lack of libs it has. :p
05:40 AM kvik: nuxil, I call that expresivity and ease of use
05:41 AM nuxil: yea :) . damn english.. hard to put the correct word on everything :p
05:41 AM nuxil: but i think python is dying.
05:41 AM kvik: you would be fine saying it's simple to use :)
05:42 AM nuxil: The upgrade from python 2 til 3 was just BS imo. no real performance gain. many libs was not ported and is still not ported. people left python 3.x over C# and other "ease of use" languages.
05:42 AM kvik: nuxil, why would you think that? everyone and their mom knows python
05:43 AM kvik: yea, 2to3 bullshit is going to plague the industry for the next 20 years
05:43 AM nuxil: lol indeed
05:49 AM nuxil: why is #stm32 a invite channel only? gosh.
05:50 AM Tom_L: try ##stm32
05:51 AM nuxil: oki ;) that worked
06:10 AM Emil: nuxil: if you develop on winshit
06:10 AM Emil: nuxil: then you might as well install the stm32cube
06:10 AM nuxil: Emil, i was just looking at this stuff. http://www.openstm32.org/HomePage
06:11 AM Emil: or the eclipse
06:11 AM Emil: thong
06:11 AM Emil: thing*
06:11 AM Emil: nuxil: if you want to use foss things then libopenmc3
06:11 AM Emil: _ami_ has experience with that
06:11 AM Emil: he has a blog with getting started
06:12 AM Emil: oh it was all linkes
06:12 AM Emil: linked*
06:13 AM Emil: nuxil: you could install a virtual linux or the linux subsystem for windows
06:13 AM Emil: or cyqwin
06:14 AM Emil: trust us when we say it: linux is 100% more better than windows for development
06:14 AM Emil: Like, just have a normal terminal window open in windows desktop
06:14 AM Emil: works like a charm
06:15 AM Emil: nuxil: also: stm32 is cancer
06:15 AM Emil: but youll notice soon enough
06:15 AM Emil: i mean ##stm32
06:15 AM nuxil: lol. ok
06:16 AM Emil: polprog: also
06:16 AM Emil: polprog: webapps are super nice
06:16 AM Emil: no reason to touch the actual os most of the time
06:16 AM Emil: just give them html css js and it werks
06:17 AM Emil: you can even have application like behaviour with progressive webapps
06:17 AM Emil: They work flawlessly
07:47 AM polprog: Emil: ikr
07:48 AM polprog: https://puu.sh/yKo4C/bbe8bf6359.jpg small mistake in footprint spacing :P
07:48 AM polprog: fixed right away
08:29 AM Emil: polprog: what are those?
08:35 AM polprog: 7 segment displays
08:53 AM rue_mohr: polprog, ? was it only .05 between two of the pins?
09:26 AM polprog: fuck
09:26 AM polprog: the footprints are all mesed up
09:47 AM day__ is now known as day
02:10 PM nuxil: is it possible to combine two registers (16+8)bits to create a 24bit for pwm output?
02:10 PM nuxil: *timers
02:10 PM nuxil: not reqisters :p
02:13 PM LeoNerd: Sortof
02:13 PM LeoNerd: Use the overflow interrupt of the 16bit timer to calculate and adjust the PWM period of it yourself
02:14 PM LeoNerd: You'll have plenty of CPU time to do that
02:14 PM nuxil: could you explain how i would do that. or better. got a small example.
02:47 PM Emil: nuxil: well there's an issue
02:47 PM Emil: nuxil: being your clockapeed
02:47 PM Emil: clockapeed
02:48 PM Emil: clockspeed*
02:50 PM Emil: 16MHz probably
02:50 PM nuxil: got a 16mhz crystal for the chip im gonna use.
02:51 PM Emil: your pwm frequency at 24 bits is 0.95Hz
02:54 PM nuxil: you mean the resolution ?
02:55 PM Emil: no
02:55 PM Emil: your pwm frequency is 0.95Hz
02:55 PM Emil: 16*10^6/2^24
02:56 PM Emil: of course you could do adaptive timing
02:58 PM Emil: spread out the pulses
02:58 PM Emil: but imho
02:58 PM Emil: if you want 24 bit pwm
02:58 PM Emil: buy a chip that does it for you
03:09 PM nuxil: hmm.. Emil you sure your calulations are correct ? 16MHz / 2^24?
03:09 PM nuxil: 1 / 16 Mhz = 0,0000000625 sec per tick. , now lets use. prescaler 0, OCR0A = 255, OCR0B = 128 50 % duty
03:09 PM nuxil: F1 = 1 / 0,0000000625 * 256 ~= 62500hz, F2 = 1 / 0,0000000625 * 128 125000hz
03:09 PM nuxil: So 62.5KHz with 50% duty
03:14 PM nuxil: umm. that be wrong. lol thats for 8 bit
03:19 PM polprog: hmm i think i talke about that here sometime ago
03:19 PM polprog: mentioned*
03:19 PM polprog: using irs of one timer to increment another one
03:20 PM polprog: isr*
03:21 PM nuxil: and yea. rechecking Emil calulations. and 0.95hz is what i get with 24bit.
03:21 PM nuxil: not something i want
03:40 PM nuxil: meh.. im thinking wrong here.
03:41 PM polprog: you sure you dont want a chip to do that?
03:41 PM nuxil: pll & dds is what i want to do :p
03:41 PM polprog: i found this recently
03:41 PM polprog: http://www.linear.com/product/LTC7820
03:41 PM polprog: hardcore
03:41 PM nuxil: im wating the displays then im gonna make something like this.
03:41 PM nuxil: https://www.youtube.com/watch?v=lo24nr2S5Y8
03:42 PM nuxil: http://www.seattlerobotics.org/encoder/200205/ddsfgen.htm , https://scienceprog.com/avr-dds-signal-generator-v20/
03:42 PM polprog: this video is soothing
03:44 PM polprog: i like those tek scopes
03:44 PM polprog: had one at work
03:44 PM nuxil: tek is best :)
03:44 PM polprog: make this arbitrary waveform generator: https://www.youtube.com/watch?v=j6ijbexoq-M
03:45 PM polprog: if this rigol wasnt that cheap id buy a used tek like that one
03:45 PM nuxil: nice :D
03:45 PM nuxil: that breadboard looks like a crow nest tho :p
03:46 PM polprog: yeah
03:46 PM polprog: im both amazed and disgusted when i see stuff like discrete computers on a breadboard
03:47 PM polprog: imagine tracing and fixing a bad connection
03:47 PM polprog: jeez
03:48 PM polprog: https://obrazki.elektroda.pl/6_1223116092.jpg this one i borrowed from the ee classrom for physics
03:48 PM polprog: it was pretty primitive but nice
03:48 PM polprog: got around it in no time :P
03:48 PM nuxil: better than nothing
03:49 PM polprog: the rest of the class was a bit surprised.
03:49 PM nuxil: can it do vertical tracing ?
03:49 PM polprog: for the uninitiated it's pure magic
03:49 PM polprog: vertical tracing?
03:50 PM nuxil: y axis
03:50 PM polprog: xy mode?
03:50 PM nuxil: ye
03:50 PM polprog: yeah it can
03:50 PM nuxil: good :)
03:51 PM polprog: after the open day was over i put one some oscillofun and other demos on from YT
03:51 PM polprog: but it's onyl single gun crt
03:51 PM polprog: you have to switch between channels manually or use a function like add or sub
03:51 PM polprog: cant display two traces at once
03:51 PM nuxil: ah. that kind of sucks
03:51 PM polprog: yea that why i said it was primitive
03:52 PM polprog: wonder how much it costs
03:52 PM polprog: 200$ wtf
03:53 PM polprog: dafuq whyy is this stuff so expensive on the net
03:53 PM polprog: http://allegro.pl/tektronix-2430a-i7099500892.html
03:53 PM polprog: 500pln is like 120$
04:37 PM polprog: night
04:37 PM nuxil: gn
07:18 PM rue_mohr: whats digital about that scope??
07:18 PM rue_mohr: tek make good stuff
07:18 PM rue_mohr: thats why it'll cost, it will work properly
10:04 PM -!- #avr mode set to +o by ChanServ
11:03 PM Shavik_ is now known as Shavik2