#avr Logs

Dec 28 2017

#avr Calendar

04:20 AM nohitzwork: product of 3 nights work http://dancingclown.tech/unity5/pingu2d/
04:25 AM thardin: noot noot
04:27 AM antto: "Your browser does not support WebGL"
04:28 AM antto: that's good
04:35 AM nohitzwork: game programming is the best. you always come up with ideas by accident when you just start prototyping. last time it was chaing wall-jumps, now its "you can only shoot(throw snowball) when there's snow below you".
04:37 AM nohitzwork: and attack+jump = boost jump
04:37 AM antto: i've not made a game yet :~(
04:39 AM nohitzwork: making a game console with avr would be cool
04:41 AM nohitzwork: this would help www.ic0nstrux.com/products/books/design-your-own-video-game-console-ebook-hard-copy
04:49 AM thardin: there already are several avr based game devices
04:49 AM thardin: like the arduboy
04:49 AM nohitzwork: i know
04:52 AM nohitzwork: i think this was one of the first http://belogic.com/uzebox/index.asp
04:52 AM nohitzwork: http://belogic.com/uzebox/howitsmade.htm
04:53 AM polprog: that's cute
04:53 AM polprog: i like it
04:55 AM polprog: this breakout game screenshot looks amazing
05:17 AM nohitzwork: i would use a dedicated sound chip. when nuxil gets his synth ready, it could be used as the sound chip
05:17 AM nohitzwork: controlled by i2c or something
05:19 AM nohitzwork: (given he is gonna make it open source)
05:20 AM antto: what synth?
05:20 AM nohitzwork: he is making an avr synth
05:22 AM polprog: why not use the c64 sound chip ;) ? you could recreate the original!
05:22 AM antto: insufficient details
05:23 AM polprog: the SID
05:24 AM nohitzwork: i dont have details of his project, i only know he is making a avr synth which can output several waveforms
05:24 AM nohitzwork: little like SID
05:24 AM antto: i'm not familiar with SID or any of the other consoles
05:25 AM antto: i'm into musical synthesizers and audio/signal processing
05:25 AM nohitzwork: SID is a chip that is digitally controlled and can output several waveforms and has an analog filter
05:26 AM polprog: antto: https://youtu.be/MzZCljYyjBk?t=10s
05:26 AM nohitzwork: ASDR for all the 3 channels
05:26 AM antto: currently coding a plugin for the computer that generates MIDI as audio signal ;P~
05:26 AM nohitzwork: you just write stuff to registers
05:26 AM polprog: 8:18 <3
05:26 AM antto: polprog >:/
05:26 AM antto: i know the sound of consoles
05:26 AM polprog: what?
05:27 AM antto: square waves, lofi noise, and fast arpeggiators
05:27 AM polprog: the best kind of electronic music ;)
05:28 AM antto: i don't have any idea how the console, or a game, works from the inside
05:29 AM antto: whether the game generates the sound, or controls a synthesizer (and if so, in what way)
05:33 AM nohitzwork: you could have function "playSound(saw, C4);" which would send a message to the chip via i2c and it would play the sound with saw waveform, pitch c4
05:33 AM antto: that's too basic
05:34 AM polprog: that's a good idea, but single channel music would be too simple
05:34 AM nuxil: mornings.
05:34 AM nohitzwork: well that's how it works. but you would need a sequnecer to play m,usic
05:34 AM nohitzwork: that would be easy to implement with a single timer
05:34 AM nuxil: nohitzwork, im not making a synth, im making a func gen :p but yea. it could be used as a synth aswell tho :p
05:34 AM polprog: you know tracker music? something like that
05:35 AM antto: yeah.. but that's not so easy then
05:35 AM polprog: i was thinking if i had a USB interface signal generator id write a simple program to generate music with it
05:36 AM antto: but.. why
05:36 AM antto: make a desktop app
05:36 AM polprog: why not?
05:36 AM antto: >:/
05:36 AM antto: get a bunch of floppy drives then
05:36 AM nuxil: polprog, tinytune has a tool that convert tracker mucic into "avr code" :)
05:36 AM polprog: no, floppies are terrible
05:37 AM antto: okay, a CNC then
05:37 AM antto: stop complaining, i'm giving you a perfect excuse to obtain a CNC
05:37 AM nuxil: mmm. i want a cnc :)
05:37 AM polprog: imagine this. 4x 2 channel arb gen and each of them gets loaded a sample from the tracker and then gets amplitude and freq info ;)
05:37 AM nuxil: and a 3d printer
05:37 AM polprog: that's a good excuse for cnc
05:38 AM polprog: and then you have an orgy of jumping numbers on the displays as settings are being changed on the fly
05:39 AM antto: open up the serial port on the comput0r, set it to 0 start bits, 0 stop bits.. then you have 1bit audio output ;P~
05:39 AM nohitzwork: have you done a sewuncer antto ?
05:39 AM polprog: ikr, ive seen a nyan being played with serial port ;)
05:40 AM nohitzwork: *sequencer
05:40 AM antto: yes, a few
05:40 AM polprog: also ive seen some cool parport r2r dacs
05:40 AM antto: mostly the same one over and over again ;P~
05:45 AM antto: https://www.youtube.com/watch?v=OhLXsFvXPbo
05:47 AM nuxil: lol
05:47 AM polprog: haha
05:47 AM polprog: cool
05:47 AM polprog: you made all of it yourself?
05:48 AM antto: no, just the sequencer/firmware
05:48 AM polprog: i love it
05:48 AM nuxil: 1:30 haha. the new nr 1 hit :p
05:49 AM antto: here's another funny melody https://www.youtube.com/watch?v=XTEz-CsMFDo
05:50 AM polprog: sounds like light happy hardcore :P
05:51 AM antto: it's a melody from the nokia3310 ;P~
05:51 AM nohitzwork: have you added any additional hardware to that
05:52 AM nuxil: i had one of thouse. well who didnt tho :p
05:52 AM antto: no, except the mcu is changed to a bigger atmega (with an adapter)
05:52 AM polprog: really? i had a 3310 but i didnt notice :D
05:52 AM polprog: nice
05:52 AM polprog: now i remember!
05:53 AM nuxil: i even had a older version . 1610 :p
05:53 AM polprog: my 3310 still works
05:53 AM antto: the original design uses a DIP40 atmega162, this runs on an atmega2561
05:53 AM nohitzwork: oh now i remember, we have talked about this
05:53 AM antto: mine probably still would if i put a working battery in it
05:53 AM nohitzwork: about a year ago
05:56 AM nohitzwork: i have almost all the parts for xoxbox
05:56 AM nohitzwork: i mgiht try your firmware when i put it together
05:58 AM nohitzwork: i have tb-3, its nice
05:58 AM nohitzwork: really like the design of it, and the built in effects
05:58 AM antto: you can't run this on the atmega162
05:59 AM nohitzwork: yes i know
05:59 AM antto: you'll need this http://yhype.com/x0xlarge/img/x0xlarge_closeup.jpg
05:59 AM nohitzwork: i will get a 2561
05:59 AM nohitzwork: oh
05:59 AM nohitzwork: well ill get that then
06:00 AM antto: tbh, using my firmware is a bit more involved, it requires not just a bigger CPU but also a different front panel
06:01 AM antto: http://antonsavov.net/cms/projects/n0nx0x2.html
06:05 AM nohitzwork: how much these cost ?
06:05 AM nohitzwork: i could just use a regular panel and write the stuff on it myself
06:06 AM nohitzwork: with a dyno labelwriter or something
06:07 AM polprog: in a cheaper verion the front panel could be done as a silkscreened PCB
06:08 AM polprog: which still costs much
06:21 AM nohitzwork: well that A4 solution would do for me
06:21 AM nohitzwork: or 3d printing
06:22 AM antto: you can print it on paper.. and then cut the holes
06:22 AM antto: cheapest solution
06:23 AM antto: but there's a sightly more than 50% chance that you won't go back to the other firmwares after this
06:23 AM antto: it has scattor ;P~
06:24 AM antto: ehm, scat-something.. like the tb-3.. almost
06:28 AM nohitzwork: scatter
06:28 AM nohitzwork: i never use it
06:28 AM antto: cuz it's terrible on the tb-3
06:29 AM antto: i added mine as a joke, but mine turned out to be less terrible and actually kewl
06:30 AM antto: there's a difference tho, in the tb-3 it's audio-based, mine is note-based
06:31 AM nohitzwork: kewl
06:44 AM [1]MrMobius is now known as MrMobius
07:23 AM nohitzwork: St has acquired Atollic
07:23 AM nohitzwork: it means that Atollic TrueSTUDIO Pro will be free for stm32 devs
07:24 AM nohitzwork: http://blog.atollic.com/early-holiday-gift-from-stmicroelectronics?utm_source=hs_email&utm_medium=email&utm_content=59558728&_hsenc=p2ANqtz-_UdDOkC72uEPYZkWjTrOhT__rgljoa3iKD43hMA19TSiun2Hxjrzk-fOyyHVB1QNaXDIyBE9iTgHJVzz6lsOR7fi8M-w&_hsmi=59558728
07:31 AM nuxil: i got a nucleo,, but meh after i bought it and saw the "donwload the demo software" i was meh screw this. and its been sitting on a shelf since then.
07:33 AM nuxil: i know you there are free tool, but it was a real turn off seeing that the package in comes in tells you to donwload a demo software.
07:34 AM nohitzwork: why
07:35 AM nohitzwork: "6/ Develop your own applications using available examples"
07:35 AM nuxil: 5 it still demo software :p
07:36 AM nohitzwork: so you would prefer to not have any example code
07:36 AM nuxil: seems like they want to earn 2x on each customer. 1 set of income on the boars. then 1 set of income on the tools.
07:36 AM nohitzwork: they are not trying to sell tools
07:36 AM nohitzwork: the tools are free
07:36 AM nuxil: as i said. i didnt even bother power it up again. i know some guys in here has tut using free tools
07:37 AM AndrevS: I prefer Eclipse with the GNU MCU Eclipse plugin. That way I can have one enviorement for SoCs from different vendors, and also build applications on the host (when I am building something that communicated with the host)
07:37 AM nuxil: nohitzwork, they why they fuck do they call it "Demo software" ?
07:37 AM nuxil: i should say. donwload software with demo examples :p
07:37 AM nohitzwork: as demonstration software
07:37 AM nohitzwork: not a demo version of software
07:38 AM nuxil: well. its unclear on the backside of the package. since you got nr 6. dev blah bla using examples.
07:39 AM nuxil: <nohitzwork> as demonstration software
07:39 AM nuxil: <nohitzwork> not a demo version of software
07:40 AM nuxil: umm but demo meand demostration :p
07:40 AM nohitzwork: whatever
07:41 AM nohitzwork: AndrevS truestudio(which is eclipse+gcc) has also a x86 compiler so you can do that
07:45 AM nuxil: i havent used eclipse in years. but when i used it it was written in java. i was fast to uninstall. i dont know if that still the case. its still written in java ?
07:46 AM nohitzwork: yes
07:46 AM nuxil: aww
07:46 AM nuxil: im sure things have gotten much better with "java"
07:46 AM nuxil: but its one language i never liked.
07:46 AM nuxil: i have to quote linus torvalds. "java sucks"
07:47 AM AndrevS: yeah.... it is still written in java. but well,
07:48 AM AndrevS: Let's just say this, at work we used Keil before we migrated to Eclipse... and well... it sucked more
07:51 AM nuxil: i remember when they where promoting java in norway back in the 200(8/9) ish. they made a song using a well know TV host in here in our contry "janne skavlan".
07:51 AM nuxil: https://www.youtube.com/watch?v=Mk3qkQROb_k
07:52 AM nuxil: i was like wtf.,.are you that desperate for new java coders :p
07:53 AM AndrevS: oh my god
07:53 AM nuxil: indeed :p
07:55 AM polprog: oh god i know this song
07:55 AM polprog: please no xD
07:57 AM AndrevS: https://www.youtube.com/watch?v=1S1fISh-pag
07:58 AM nuxil: jup. a classic
08:03 AM polprog: jesus
08:04 AM _ami_: polprog, what happened? :)
08:05 AM nohitzwork: https://www.youtube.com/watch?v=oHNKTlz1lps
08:05 AM polprog: that C song
08:05 AM polprog: suse has made many of those, iirc
08:06 AM polprog: has anyone seen lambda?
08:07 AM _ami_: lambda functions ?
08:07 AM nuxil: !seen lambda
08:07 AM _ami_: in cpp?
08:07 AM nuxil: no seen bot :(
08:07 AM nuxil: no sane person uses lambda :p
08:07 AM polprog: nvm
08:08 AM nuxil: dont think he has been around for a while
08:09 AM nuxil: http://www.pythonchallenge.com/ if you want some challanges to do :p
08:10 AM nuxil: is there a C version of this ?
08:10 AM polprog: i know those. they are cool
08:11 AM polprog: there was another web based one and a telnet one for linux knowledge
08:12 AM polprog: notpron was good as well
08:48 AM [1]MrMobius is now known as MrMobius
11:16 AM polprog: winavr. the installer makes the background all blue during the installation just like in the good old days ;)
11:57 AM HighInBC: ahhh linux install blue
12:29 PM polprog: recent toolchain updates broke my program i think
12:29 PM polprog: avr starts to reset itself at random during execution
12:29 PM polprog: thats a PITA
12:31 PM polprog: or maybe winavr is cursed, like the whole NT operating system
12:31 PM polprog: since now i need to enable size optimizations under linux cos it doesnt fit m8
12:39 PM polprog: holy fsck. that was just a memory leak luckily
12:39 PM polprog: phew
12:40 PM * polprog cracks open a can of ginger ale
01:30 PM rue_bed: why dont use just use a C editor and the tools with a makefile
01:30 PM rue_bed: I'll give ya a makefile that will compile and upload
01:31 PM rue_bed: make; make install
03:43 PM u_ri_ is now known as u_ri
04:24 PM polprog: rue_bed: i love makefiles. i use them everywhere i can
04:27 PM dev1990_: polprog: handwritten makefiles ?
04:28 PM polprog: dev1990_: usually
04:29 PM polprog: for small things
04:29 PM polprog: but i have this big cpp project where it's a bit more advanced
04:37 PM dev1990_: I got hard times with handwritten makefiles :( setup them with build system like yocto is often painfull
04:39 PM polprog: i originally started that project in DevCPP under windows. THAT makefile was pain to use
04:40 PM polprog: when i develop it to a place where it's worth being shown, ill publish it on github.
04:40 PM polprog: (the cpp project)
04:41 PM dev1990_: some build systems like cmake, can ganerate makefiles and project files for popular IDEs
04:42 PM polprog: im looking for the name that generates all those ./configure scriprs
04:42 PM polprog: scripts*
04:42 PM polprog: the one that prints a bunch of "checking for XXXX support" etc.
04:45 PM dev1990_: well you mention devcpp this ide is written in delphi or to be strict object pascal :)
04:46 PM * dev1990_ childhood
04:47 PM dev1990_: this reminds me of turbo pascal and dos days, asm int 13h for vga
04:48 PM dev1990_: anyway if you're going for bigger project I suggest to use more modern build generators like cmake or mason
04:49 PM dev1990_: I'm trying integrate this project https://github.com/libretro/RetroArch with yocto build system and it's nightmare ...
04:50 PM dev1990_: first step when yocto running cross compiler on this and boom, hardwritten stuff to patch in more that 100 lines or more
04:50 PM polprog: dev1990_: childhood ??? :P we are using it in class!
04:51 PM polprog: now i have it all nicely set up. AVR C code in eclipse in white theme, C# code in VS in dark theme. and both are being synced to my git server
04:51 PM polprog: so i can both develop on lappy on linux and on PC on windows
04:56 PM dev1990_: that's nice :) I'm also using git server for this kind of things
05:05 PM dev1990_: well about that devcpp I think first time I got it it was from "Niezbednik" magazine, those days I was migrating from dos programming to desktop
05:06 PM polprog: you're polish?
05:06 PM polprog: wow!
05:07 PM dev1990_: yeah :) I suppose you too
05:07 PM polprog: haha, yeah i', too ;) Warszawa?
05:07 PM dev1990_: now Wroclaw becouse of my job
05:08 PM dev1990_: s/becouse/because
05:13 PM [1]MrMobius is now known as MrMobius
05:18 PM polprog: night
05:20 PM dev1990_: good night
05:28 PM dev1990_: nuxil: how things are going? I also dislike java so we had more common ground now :)
05:43 PM nuxil: howdy dev1990_ . i an making some food.
05:46 PM nuxil: and working on my dds stuff. trying to deside a way to set a offset the signal for the output. not sure if i should buy a digital pot or make my own version using a couple of shitregister in a r2r network.
05:47 PM nuxil: easy way to buy a chip. but they usaly only come in 256 steps unless you want to pay alot. if i make a dac 16 bit with some old shitregisters i get 65535 steps :p
05:58 PM cehteh: hah .. now think about resistor tolerances .. and forget about that idea
05:59 PM cehteh: thats what makes DAC's so expensive
06:07 PM nuxil: i have enuf resistors :p
06:07 PM [1]MrMobius is now known as MrMobius
06:08 PM nuxil: just wish i had a setup like this http://www.infinitelooper.com/?v=kSmiDzbVt_U&p=n#/1478;1499
06:08 PM nuxil: :p
06:08 PM * dev1990_ meanwhile I'm learing stuff from https://www.maximintegrated.com/en/app-notes/index.mvp/id/4025 :)
06:09 PM * dev1990_ about stuff *^
08:02 PM nuxil: so what did you learn :)
11:54 PM day__ is now known as day