#avr | Logs for 2014-12-17

Back
[00:55:31] <SKiTZO> N1njaneer, yes
[00:55:43] <TechChristoph_> Morning
[05:51:26] <twnqx`> malinus: yey, linux games. windows version: greatly fluid gameplay. native linux version: new frame drawn every ca. 3s
[05:52:12] <twnqx`> oh, and sound lagging too
[05:52:26] <twnqx`> every sample fragment played three times before the next comes
[05:54:26] <malinus> twnqx`: sounds like you should stop playing shit games by shit studios?
[05:54:43] <twnqx`> i liked that game
[05:54:52] <Amadiro> sounds like you should install a driver for your GPU
[05:54:55] <twnqx`> and roughly 90% of linux games fuck up with multiscreen
[05:55:16] <Amadiro> I use steam on linux with multiscreen, and only one game fucked up so far (I have about 160 linux games)
[05:55:25] <Amadiro> that was borderlands, and after fiddling a bit with the settings it worked
[05:55:32] <twnqx`> 285 here
[05:56:14] <Amadiro> so that's more like 0.6%
[05:56:34] <malinus> It feels good to finally live in the age of linux desktop.
[05:56:40] <malinus> Thank you valve
[05:57:14] <twnqx`> i gave up counting how often i had to xrandr --ourput DVI-I-1 --off
[05:57:29] <megal0maniac> twnqx`: Me too
[05:57:41] <malinus> are you using the free drivers, or nvidia?
[05:57:51] <megal0maniac> Except for a totally different reason. I have a laptop with no screen
[05:57:52] <twnqx`> nvidia
[05:58:14] <twnqx`> the free drivers are too bad
[05:58:17] <Amadiro> sounds like you may not have your setup correctly configured
[05:58:27] <Amadiro> I can play all my games with both outputs turned on
[05:58:33] <Amadiro> and without trouble move the game from screen to screen
[05:58:36] <Amadiro> and workspace to workspace
[05:59:03] <Amadiro> the free radeonhd driver is pretty good, btw, it also plays most of my games on steam.
[05:59:05] <twnqx`> what exactly is there to configure?
[05:59:19] <twnqx`> the only thing i remember of the free radeon driver
[05:59:22] <Amadiro> there are many ways to configure multiscreen, e.g. with xinerama, with twinview
[05:59:36] <Amadiro> I just use the nvidia configuration utility
[05:59:37] <twnqx`> is that the last time i had to use it because i had a laptop that forced me to use that crap brand
[05:59:44] <twnqx`> is "plug monitor into laptop -> X crashes"
[05:59:57] <Amadiro> what makes you think that was the fault of the driver
[06:00:22] <twnqx`> because gdb told me that
[06:01:05] <twnqx`> also i'm an nicida fanboy
[06:01:15] <twnqx`> because they provide working linux drivers since... umm...
[06:01:19] <twnqx`> tnt2 era?
[06:01:42] <twnqx`> nvidia* of course
[06:01:52] <Amadiro> I don't think the radeonhd driver has much code that runs inside the X server anymore since glamor became a thing
[06:02:03] <twnqx`> i don't know
[06:02:14] <twnqx`> i don't buy radeon cards as long as nvidia exists
[06:02:15] <Amadiro> or maybe not any code
[06:02:21] <Amadiro> yeh
[06:02:38] <Amadiro> but anyway, the free radeonhd driver does work pretty well nowadays
[06:02:39] <twnqx`> (ok, i own 3 of them. radeon hd doesn't provide opencl, so it was useless for my R280xs, which i did explicitly not buy for gfx)
[06:02:57] <Amadiro> it isn't officially supported, but it plays 90% of the games in my steam library on my imac with a southern island AMD GPU
[06:03:00] <twnqx`> and nouveau provides neither cuda nor opencl
[06:03:16] <Amadiro> yes, nouveau is not nearly as far as radeonhd
[06:03:20] <malinus> the only issues I ever had, was nouveau resulting in black screen with my gtx 750ti.
[06:03:36] <twnqx`> i had that with intel on my projector
[06:03:51] <twnqx`> i think that was the only time i ever was bothered wnough to fix a video driver
[06:04:05] <twnqx`> (due to lack of a decent closed source driver for intel)
[06:04:30] <megal0maniac> Pity about that
[06:04:43] <twnqx`> also, no opencl on intel cards on linux either, afaik
[06:05:08] <Amadiro> twnqx`, you can get opencl, but it is in beta, AFAIR
[06:06:02] <Amadiro> http://wiki.freedesktop.org/www/Software/Beignet/
[06:06:06] <Amadiro> it is backed by intel
[06:06:56] <Amadiro> "In terms of the OpenCL 1.2 spec, beignet is quite complete now. We can pass almost all the piglit OpenCL test cases now."
[06:07:17] <twnqx`> cool, progress
[06:20:51] <Lambda_Aurigae> all the games I play run nicely on linux with no issues.
[06:21:04] <Lambda_Aurigae> x-plane, minecraft, and kerbal space program.
[06:21:13] <Lambda_Aurigae> what other games are there worth playing after all?
[06:22:53] <Amadiro> Lambda_Aurigae, factorio, don't starve, metro: last light, bastion, transistor
[06:23:07] <Lambda_Aurigae> never heard of any of those.
[06:23:34] <Amadiro> factorio and don't starve are sandbox games (factorio is focused around building large complex machines, don't starve you can guess from the name)
[06:23:41] <Amadiro> metro: last light is a nice single player FPS
[06:23:56] <Amadiro> bastion is an isometric game with fantastic unique visuals and a great story
[06:24:12] <Amadiro> check out at least bastion, it doesn't take that long to play through
[06:24:23] <Amadiro> maybe like 5-10 hours or so
[06:24:41] <Lambda_Aurigae> see,,the ones I play have no end...
[06:24:56] <Amadiro> factorio and don't starve have practically no end
[06:25:05] <Amadiro> same with binding of isaac: rebirth
[06:25:27] <Lambda_Aurigae> do they have free versions to test?
[06:25:43] <Amadiro> I think factorio does... you'll have to check yourself for the others
[06:26:43] <Lambda_Aurigae> ok..factorio looks like another starcraft/freecraft clone.
[06:26:57] <Amadiro> its nothing like starcraft?
[06:27:10] <Amadiro> its more like an isometric version of minecraft with the tekkit mod, if anything
[06:27:12] <Lambda_Aurigae> you mine things, build things, blow things up.
[06:27:19] <Amadiro> you control a single character.
[06:27:23] <Amadiro> not many units
[06:27:45] <Amadiro> and its all about building huge complex machines that span many screens with conveyor belts, transport robots, trains...
[06:27:52] <Amadiro> basically a rube goldberg simulator (like tekkit)
[06:29:20] <Amadiro> trains, robots and stuff are also programmable to some degree
[08:24:12] <Shavik> Morning folks. I'm having an awfully hard time finding a part to meet my needs and was hoping someone here had run across something before that might fit the bill. I'm looking to step down POE (48V nominally) to 24V and need around 0.4-0.5A current.
[08:24:32] <Shavik> Been searching mouser for about a day so far. Some very close matches just nothing that is "just right"
[08:24:57] <elektrinis> did you check ti.com?
[08:25:28] <elektrinis> there are some nice solutions
[08:28:26] <twnqx`> Shavik: indeed, ti has a tool that searches solutions with such parameters for you, inclduing complete designs
[08:28:39] <Shavik> initial search terms == 0 results lol
[08:28:42] <twnqx`> uh
[08:29:27] <LeoNerd> I know Pololu do a lot of interesting boost/buck converters at 3.3/5/12V, not sure if they do 24V ones
[08:29:46] <twnqx`> shavik, interesting, i just got 54
[08:29:59] <twnqx`> vin 32-55, vout 24, iout 0.5
[08:30:01] <Shavik> What did you use for VIN?
[08:30:02] <Shavik> ok
[08:30:41] <Shavik> Oh I picked module
[08:30:44] <Shavik> went with the middle option now
[08:30:49] <twnqx`> :)
[08:30:50] <Shavik> 42 results
[08:30:59] <Shavik> Was hoping to be additionally lazy ;)
[08:31:11] <Shavik> Thanks. I'll look over this list before I report back
[08:39:08] <Shavik> That advanced charting is quite interesting
[08:39:15] <Shavik> Dont want to imagine coding that
[12:53:48] <soul-d> outdated stuff that avr usb
[12:53:53] <soul-d> AVR USB Series2 software library template
[12:53:53] <soul-d> (1057257, updated January 1900)
[13:01:45] <hetii> series 2?? o_O
[13:10:52] <malinus> lol
[13:11:08] <malinus> 1900 was the great year of USB series2, don't you know hetii ?
[13:11:49] <hetii> not realy...
[15:07:58] <SKiTZO> Is there a simple way to select the port to via a variable. For example if my variable contains 'B' I would like DDRB and PORTB etc be used
[15:08:07] <SKiTZO> port to use*
[15:16:08] <Kev> yeah
[15:16:14] <Kev> wait a sec
[15:17:35] <malinus> SKiTZO: just make a simpel function with a switch. Remember to use pointers
[15:17:49] <malinus> *remember it's a pointer
[15:17:52] <malinus> rather
[15:18:27] <SKiTZO> hm. but won't that be deterimental to performance?
[15:18:35] <SKiTZO> and are they always pointers?
[15:18:40] <malinus> it would, of course
[15:19:11] <SKiTZO> the macros are macros for a reason, because they can't guarantee that between different hardware they will stay memory locations/registers etc
[15:19:29] <SKiTZO> I would have thought that there would be some for m of macro abscration for this
[15:19:40] <SKiTZO> avoiding the need to actually have a switch
[15:20:14] <malinus> I'm not sure I know what you want right now. Could you please rephrase?
[15:20:35] <Kev> http://pastebin.com/xBKMqiuM should work
[15:21:16] <malinus> ah
[15:27:54] <Kev> SKiTZO, did you check the link i sent ?
[15:54:10] <twnqx> malinus: my apologies, you were right.
[15:54:20] <twnqx> aparently i used mesa opengl instead of nvidia opengl...
[15:56:01] <malinus> twnqx: no need to apology. Does using the nvidia speed things up?
[15:56:54] <twnqx> works perfectly now
[15:57:36] <malinus> yeah, the non-free drivers are in general known (regretfully, and this will hopefully change soon) to be much slower.
[15:57:45] <malinus> I mean free
[15:57:52] <twnqx> no i mean
[15:57:58] <twnqx> i used software GL on top of nvidia.
[15:58:27] * twnqx continues hunting gluons with schrödinger's cat
[15:59:44] <malinus> oh
[15:59:47] <malinus> doh!
[16:01:19] <soul-d> how do you mean SKiTZO> Is there a simple way to select the port to via a variable. For example if my variable contains 'B' I would like DDRB and PORTB etc be used
[16:01:27] <soul-d> you could make lazy defines
[16:01:54] <twnqx> lazy evaluation doesn't exist in C
[16:24:17] <N1njaneer> I lazily evaluate things sometimes. It's one of my lesser-loved traits.
[16:27:09] <SKiTZO> Kev, thanks a lot!
[16:27:28] <Kev> :)
[16:36:56] <N1njaneer> lol wow, first time I've gotten EXTRA parts in a DigiKey order... Like... someone else's parts.
[17:08:43] <hetii> twnqx: hi :)
[17:09:20] <hetii> twnqx: How much time take you to dump flash by your spi interface and code that you share last time ?
[17:09:46] <twnqx> i never benchmarked it
[17:09:59] <twnqx> the limit is the serial port of 2mbit/s
[17:10:36] <hetii> you use real uart or usb_cdc class?
[17:10:45] <twnqx> ftdi
[17:10:59] <twnqx> with 2mbit uart setting
[17:11:16] <twnqx> at90can doesn't have usb ;)
[17:11:57] <hetii> I seee, I just test with a cdc class and its a bit lazy but maybe becose print some message over semihosting interface to my IDE
[17:12:10] <malinus> hetii: lazy?
[17:12:14] <malinus> you mean slow?
[17:12:45] <hetii> yes
[17:13:23] <twnqx> your soft spi code is pretty slow
[17:13:43] <twnqx> surely <1mbit/s at 16mhz
[17:14:36] <hetii> well lpc1769 works at 90Mhz and I use hardware SPI there, but not much different
[17:14:56] <hetii> just start test it maybe did something wrong.
[17:15:22] <twnqx> use more mhz for the spi :P
[17:15:29] <twnqx> those flashes can take lot
[17:18:00] <hetii> ok, have some question like always, Its unclear for me this line in flash_flush() if ((memory->pagesize > 256 && bufferfill == 2) || bufferfill == 1) return
[17:21:00] <hetii> is it even possible that bufferfill == 2 when pagesize is over 1 byte ?
[17:24:12] <twnqx> you should ignore that stuff... it's really just for my log, queueing small parts into a buffer
[17:24:18] <twnqx> in ram
[17:24:49] <twnqx> and when a page is complete, flushing it to the flash (you should always write complete pages)
[17:26:01] <hetii> hmm but what in case when have less bytes then page size?
[17:26:16] <hetii> fill rest as 0
[17:28:43] <hetii> also read in datasheet of this windbond flash that they support some duble and quad speed way to access to it
[17:29:23] <hetii> how this is implemented in mcu side cause read that both miso/mosi lines are bidirectional.
[17:45:51] <twnqx> not
[17:46:04] <twnqx> you need a controller that can handle it
[17:46:35] <twnqx> there's two things btw, DDR/QDR (2/4 data cyles per clock) and 1/2/4 bit wide transfer
[17:47:06] <N1njaneer> Yup.
[17:47:59] <hetii> twnqx: is it make any sense to wire some software bitbang protocol to handle tis quad mode ?
[17:48:25] <hetii> or it will be slower then single spi hardware implementation?
[17:48:44] <twnqx> hard to say
[17:49:00] <twnqx> if you use interrupt mode it might be faster
[17:49:16] <twnqx> as long as your code is more optimized than the last one you posted :P
[17:49:37] <twnqx> on your 90mhz mcu.. no idea
[17:51:24] <hetii> well most software spi looks similar like I did
[17:51:49] <twnqx> doesn't mean it's fast
[17:52:41] <hetii> so you mean about some asm code that will reduce instruction or still in C ?
[17:53:53] <twnqx> asm will likely beat C any time of the day for this particular case
[17:54:29] <twnqx> but even C has chances of beating that
[17:54:31] <N1njaneer> As long as you're competent with the assembler opcode set.
[17:54:59] <N1njaneer> Mediocre C code will run circles around poorly written assembler :)
[17:55:09] <twnqx> ofc
[17:56:16] <N1njaneer> You could theoretically do something like an external CPLD-assist for serially-shifting in the data at a higher rate and doing parallel stuff, etc. but at that point you'd be far better just going to an ARM processor which has much faster clock rate and SPI transactions with DMA, etc
[17:57:20] <twnqx> http://dpaste.com/1DBY8CN couldn't get it faster than this
[17:57:29] <twnqx> note: do not change portb from interrupts while this runs
[17:58:36] <hetii> well I play on LPC1769
[17:58:41] <twnqx> also note: i would not translate this strucure to asm
[17:58:55] <twnqx> there's better stuff as soon as you get acces to the carry flag...
[18:00:34] <hetii> ok Will try figure out this, meantime I waite around 10m to dump data from 2MB flash so have really something wrong there...
[18:00:46] <twnqx> 10m????
[18:00:48] <twnqx> wow
[18:01:27] <hetii> yep and its in progress
[18:01:32] <twnqx> 26.666kbits
[18:01:36] <twnqx> lol
[18:01:54] <twnqx> how do you get it that slow :D
[18:02:08] * twnqx feels memories of 28.800 bps modem times coming up :3
[18:02:22] <twnqx> V.34 for the win
[18:02:29] <hetii> hehe
[18:04:08] <hetii> I did it in easy way by sending byte after byte by my usb interface. Need to check how much byte can handle its endpoint
[18:04:27] <hetii> and then split pages to this size
[18:05:35] <hetii> Max EP0 packet size have set to 64
[18:05:59] <twnqx> yeah, that's about the best way to slow usb down
[18:06:23] <twnqx> i had to implement rts/cts sofwtare flow control to pass 2mbit/s through my chip :(
[18:06:50] <Shavik> How low of a contact resistance could I expect to find on a solid state relay?
[18:07:10] <twnqx> there is no contact :P
[18:07:45] <twnqx> you might want to look if the data sheet specifies an RDSon
[18:08:46] <Shavik> Yea that may be what I meant
[18:08:57] <Shavik> When it's on, what is the resistance
[18:10:00] <Shavik> Well.. Before I found this one. The lowest I had seen was 5.5..
[18:10:00] <Shavik> http://www.mouser.com/ProductDetail/Panasonic-Industrial-Devices/AQY212GS/?qs=sGAEpiMZZMsUriz2CNI3E03A5ct9%2fwGApIl3iTWP84A%3d
[18:10:11] <Shavik> This one lists 340mOhms which is perfect
[18:10:22] <Shavik> not sure how I overlooked it before. sorry to bother. THanks for responding
[18:11:27] <N1njaneer> Looks like that one will handle DC, if that's what you're looking for.
[18:11:52] <N1njaneer> (Make sure that you check this - triac-based SSR's will only be useful for AC)
[18:12:28] <N1njaneer> Looks like a nice part from Panasonic, though!
[18:28:45] <hetii> hmm strange, now It take around 2m. My memmory is Winbond W25Q16BV/CV/V, 8192 pages, 256 bytes per page so should get in other side: 8192*256=2097152 bytes and I got just: 16384
[19:22:27] <hetii> 28m and still wait for data :(
[19:23:00] <hetii> my spi should work at 400KHz
[21:08:00] <SKiTZO> my mkII has only has the 6 isp pins and no jtag pins. Would I still be able to debug on chip using that?
[21:08:12] <SKiTZO> using avr-gdb etc
[21:08:35] <Tom_itx> not with mkii
[21:08:58] <SKiTZO> ok so it is possible but not with the mkII
[21:09:21] <SKiTZO> I see the board has holes for jtag just not a header.
[21:09:40] <SKiTZO> remind me again why I bought this device then?
[21:11:04] <Tom_itx> what makes you need debug?
[21:13:39] <SKiTZO> my program was supposed to blink leds and when i flash it doesnt blink the leds. I want to know what goes on
[21:14:03] <SKiTZO> I am not a fan of stab in the dark programming
[21:14:30] <Tom_itx> led blink is pretty basic
[21:14:45] <SKiTZO> its not just leds. its controlling servos
[21:14:51] <SKiTZO> but i use leds as an indication
[21:15:18] <Tom_itx> or are they blinking too fast to see?
[21:16:31] <SKiTZO> they are off.
[21:16:57] <SKiTZO> and a few iterations back they were humming along like they should (and so were the servos)
[21:21:03] <SKiTZO> nm i fixed the bug
[21:21:04] <Tom_itx> what changed?
[21:21:12] <Tom_itx> ok then what was it?
[21:21:13] <SKiTZO> i commented out some code
[21:21:37] <SKiTZO> I would still prefer to debug though have to look into my alternatives
[21:23:51] <Tom_itx> http://www.digikey.com/product-detail/en/ATATMEL-ICE-PCBA/ATATMEL-ICE-PCBA-ND/4753383
[21:24:29] <Shavik> Quick Question about solid state relays. I see a listing for IF, IFON, and IFOFF. Is my understanding that IF is the MAX current to supply to the LED with If being all I need to turn the relay "on" and if it falls under IFOFF the relay is turned "off"?
[21:24:34] <Tom_itx> or: http://www.digikey.com/product-detail/en/ATATMEL-ICE/ATATMEL-ICE-ND/4753379
[21:24:42] <Tom_itx> if you want the whole shebang
[21:25:03] <Tom_itx> i don't know alot about SSR
[21:25:12] <Tom_itx> not for DC im told
[21:25:54] <Tom_itx> that sounds right
[21:25:59] <SKiTZO> Tom_itx, tx
[21:26:18] <Tom_itx> http://www.digikey.com/product-detail/en/ATATMEL-ICE-BASIC/ATATMEL-ICE-BASIC-ND/4753381
[21:26:26] <Tom_itx> if you want something inbetween those other two
[21:26:35] <Shavik> It's just that IF is 50mA while IFOn is only 1.8mA typ, 3mA max. with IFOff being 0.2mA typ and 1.6mA max
[21:26:35] <Tom_itx> those are all the same board i believe
[21:26:41] <Shavik> If that helps any :/
[21:26:51] <Shavik> Seemed to be a big gap between IfOn and IF