#avr | Logs for 2013-11-02

Back
[03:35:58] <megal0maniac> Quick question, is there a "standard" way of scaling 8bits into a 16bit register? Or any other size, for that matter. I want 0xFF to scale to 0xFFFF with linearity from 0x00
[03:37:32] <megal0maniac> Quick and dirty, I guess you could just shift it up and copy it into each byte. So 0xFC would become 0xFCFC
[03:38:54] <megal0maniac> Oh wait. Calculator says that works out perfectly
[03:49:53] <megal0maniac> I love bits
[04:00:55] <RikusW> 0xFC -> 0xFC00
[04:01:31] <RikusW> or do you want 0xFC -> 0xAAA0 ?
[04:02:15] <megal0maniac> But then your max value would be 0xFF00. The other method uses an extra clock cycle, but you have better linearity. I want 0xFCFC, but for interest sake, how would you get 0xAAA0?
[04:09:41] <RikusW> 0xFCFC -> 0xAAAA
[04:09:55] <RikusW> stretching the bits
[04:10:13] <RikusW> err 0xFF -> 0xAAAA
[04:10:30] <megal0maniac> How would you do that, though?
[04:10:31] <RikusW> I'm not sure its actually useful :-P
[04:10:48] <RikusW> by adding zeros inbetween
[04:10:56] <megal0maniac> But in code...
[04:11:02] <RikusW> F 1111 -> A 10101010
[04:11:51] <RikusW> the easiest would be shift left 8 bits
[04:12:04] <RikusW> 0 - FF -> 0 - FF00
[04:12:39] <RikusW> or maybe a = (b<<8) | b;
[04:13:12] <RikusW> megal0maniac: what do you need it for ?
[04:14:05] <RikusW> a = (b<<8) | b; would be equal to b * 0x101
[04:14:22] <megal0maniac> I'm going to just do the copy paste thing, want to take the ADC data register and stick it into the OCR0x register to adjust the duty cycle of PWM with a pot
[04:15:14] <RikusW> set ADLAR to get 8 bit output
[04:15:33] <RikusW> and do OCRH = a; OCRL=a
[04:15:49] <megal0maniac> That's the plan :)
[04:15:56] <RikusW> should work just fine
[04:15:57] <megal0maniac> And the tiny10 only has 8bit ADC
[04:18:36] <RikusW> btw the other no so useful "bit stretch" couldbe done using rol and clc instructions
[04:19:12] <RikusW> rol in rol out clc rol out repeat 8x
[04:19:50] <RikusW> --rol outL rol outH--
[04:20:11] <RikusW> but thats not quite what you want
[04:21:32] <megal0maniac> No, but useful to know :)
[04:22:17] <megal0maniac> I'm going prescale it to 500mS period and watch the output on a scope
[04:22:26] <megal0maniac> Then flip all of the bits :)
[04:54:54] <megal0maniac> Just noticed, VTG for TPI devices is reported as 3v3 by LUFA AVRISP on programmers without ADC
[04:55:15] <megal0maniac> I know it isn't a real value, but shouldn't it be 5V?
[04:55:54] <abcminiuser> That would break XMEGA
[04:55:57] <abcminiuser> Hrm
[04:56:17] <megal0maniac> Studio doesn't complain, so it isn't an issue
[04:56:23] <megal0maniac> Just noticed :)
[04:59:11] <OndraSter> ohey abcminiuser
[04:59:31] <OndraSter> does atmel have something that can work with MIFARE cards, or will I have to use NXP's MFRC522?
[04:59:41] <OndraSter> tried looking but could not find anything
[04:59:53] * abcminiuser is severely hung over
[05:00:00] <abcminiuser> Don't think so
[05:00:10] <OndraSter> hehe
[05:00:17] <OndraSter> I could find only 125kHz RFID, but not 13.56
[05:01:13] <megal0maniac> D:
[05:01:20] <megal0maniac> jtagice3 doesn't do TPI
[05:01:23] <megal0maniac> How can it be?
[05:01:47] <abcminiuser> Most likely it was deemed not worth the effort
[05:02:08] <OndraSter> :)
[05:02:14] <abcminiuser> https://github.com/abcminiuser/gdp
[05:02:14] <OndraSter> but Dragon does not either do TPI
[05:02:18] <abcminiuser> I'm making a thingy
[05:02:30] <OndraSter> nice
[05:03:03] <OndraSter> hungover and coding? impressive :D
[05:03:18] <megal0maniac> Well, it is python
[05:03:18] <abcminiuser> Not coding yet, need to spool up first
[05:03:27] <abcminiuser> This is my excuse to learn Python properly
[05:03:36] <abcminiuser> Incomplete, but it's getting there
[05:04:04] <OndraSter> hehe
[05:04:21] <megal0maniac> abcminiuser: What's your motivation for doing this? Aside from learning python
[05:04:48] * OndraSter has never used AVRDude
[05:05:01] <abcminiuser> Easier to extend and modify
[05:05:09] <abcminiuser> AVRDude is wonderful, but the code is a bit scary
[05:05:21] <abcminiuser> This will allow people to shove in their own transports, tools, devices, etc
[05:05:34] <abcminiuser> Kinda like ATPROGRAM, but cross platform with third party tool support
[05:05:52] <abcminiuser> Also, Python.
[05:06:01] * OndraSter mumbles something about { and }
[05:08:13] <OndraSter> you have no idea how hard it is to try finding some information about how to read the goddamn card ID/userID or something off ISIC cards
[05:08:32] <OndraSter> I found some czech person who tried actually hacking it (which is quite easy)
[05:18:41] <RikusW> OndraSter: some Elektor issue had a card reader project
[05:18:53] <RikusW> iirc > 4 years ago
[05:20:48] <OndraSter> :)
[05:20:56] <OndraSter> well there are two standards of ISIC
[05:21:00] <OndraSter> supposedly there is a new one coming
[05:21:12] <OndraSter> but my card does not have nor 10 nor 17 characters
[05:21:16] <OndraSter> so I do not know which one it is :D
[05:21:27] <OndraSter> mifare classic 1k or mifare desfire :D
[05:21:28] <OndraSter> grrr
[05:23:33] <megal0maniac> grr
[05:24:13] <OndraSter> will see if I can read it with the mfrc522
[05:24:18] <OndraSter> hope it won't burn my cards :D
[05:24:28] <megal0maniac> I think I burnt my tiny
[05:24:33] <OndraSter> w
[05:24:35] <OndraSter> ow
[05:25:08] <megal0maniac> Got too close with a heatgun, I think. It programs, returns signature, but verify always fails
[05:25:37] <megal0maniac> Either that or the firmware is buggy
[05:25:41] <megal0maniac> But I doubt that
[05:26:01] <megal0maniac> Perhaps I should put the carrier clock down again...
[05:30:29] <megal0maniac> Shit
[05:30:42] <megal0maniac> Fails with a lower carrier clock too :(
[05:30:51] <OndraSter> d'aww
[05:31:19] <megal0maniac> Bytes won't stick :(
[05:32:48] * megal0maniac *headdesk*
[05:33:48] <OndraSter> hm?
[05:33:52] <OndraSter> fixed the issue?
[05:33:59] <megal0maniac> No. I'm just sad now
[05:34:02] <OndraSter> oh
[05:34:25] <w|zzy> hugs
[05:34:46] <w|zzy> tried blinky?
[05:34:58] <megal0maniac> w|zzy: Even fuses won't stick
[05:35:11] <megal0maniac> It's gone all read-only
[05:35:18] <megal0maniac> And it isn't a lockbit thing
[05:35:18] <w|zzy> tried a new chip?
[05:35:25] <megal0maniac> Don't have another one
[05:35:33] <w|zzy> tried cussing?
[05:35:48] <megal0maniac> Actually no
[05:36:29] <w|zzy> get on it.. wake the neighborhood.
[06:02:00] <megal0maniac> RikusW: :D
[06:02:05] <megal0maniac> Oh whoops
[06:02:11] <megal0maniac> Just a general :D
[06:02:58] <megal0maniac> I was powering it with 3v3 and not 5V. You can't program TPI at 3v3
[06:03:29] <megal0maniac> Says me who earlier pointed out that the LUFA implemetation was wrong :P
[06:03:35] <megal0maniac> Studio SHOULD complain
[06:09:43] <w|zzy> fixed megal0maniac ?
[06:09:49] <megal0maniac> Yip
[06:09:59] <w|zzy> yay
[06:10:05] <megal0maniac> Forgot the jumper on 3v3
[06:11:53] <megal0maniac> PWM still won't work, but that's just my code :)
[06:16:54] <abcminiuser> Python: so easy you can do it with a hangover
[06:18:13] <RikusW> megal0maniac: the U2S 3v jumper ? ;)
[06:18:56] <RikusW> Seems the U2S + LUFA is still your only way to do TPI ?
[06:19:42] <RikusW> Its a bit weird that the jtagice3 cant do TPI...
[06:29:23] <megal0maniac> The Atmel people were out drinking when they should have been implementing TPI :D
[06:29:57] <megal0maniac> RikusW: And yes, it's the only way currently :/
[06:30:04] <abcminiuser> Hey I don't write the tool firmware :P
[06:30:21] <abcminiuser> Guess I could ask Judd, but I suspect the answer is "because time constraints"
[06:30:30] <megal0maniac> Yeah...
[06:30:59] <megal0maniac> Would be nice to see it in an update. Given that this new flavour is still on the initial release, there's sure to be an update
[06:32:53] <megal0maniac> Tom_itx or abcminiuser: what was the procedure to get avrisp working with avrdude? I've install the libusb-win32 driver & hit reset to toggle mode, but it doesn't work. Am I missing something?
[06:33:28] <abcminiuser> What host platform?
[06:33:34] <megal0maniac> Win7 x64
[06:34:16] <abcminiuser> What does avrdude say if you add -vvvv to it?
[06:37:43] <megal0maniac> avrdude: usbdev_recv_frame(): usb_bulk_read(): usb_reap: timeout error
[06:38:00] <abcminiuser> Ja, it's not in compat mode then
[06:38:22] <abcminiuser> Either compile in forced AVRDUDE compat mode, or toggle reset again (assuming you enabled the compat toggle on reset option)
[06:38:30] <megal0maniac> If I reset, it reenumerates but does the same thing
[06:38:41] <megal0maniac> Is that option on by default?
[06:39:03] <abcminiuser> / #define RESET_TOGGLES_LIBUSB_COMPAT
[06:39:04] <abcminiuser> So no
[06:39:10] <abcminiuser> Config/AppConfig.h
[06:39:58] <megal0maniac> Should LIBUSB_DRIVER_COMPAT be uncommented too?
[06:40:14] <abcminiuser> No, mutually exclusive
[06:40:31] <abcminiuser> It's either non-compat, compat, or toggle-compat-on-reset
[06:40:43] <megal0maniac> Ah, got it
[06:43:39] <megal0maniac> Okay, with libusb installed, it goes between "Atmel USB devices" and "Jungo" in device mgr. Jungo mode, it isn't found by avrdude. The other mode, I get the same problem
[06:44:10] <abcminiuser> That's odd, it should bind to jungo in one mode and libusb in the other
[06:44:20] <megal0maniac> Uninstall the driver, then it only enumerates as Jungo device
[06:44:31] <abcminiuser> It should be jungo in one, libusb in the other
[06:44:40] <abcminiuser> Uninstall the drivers in the compat mode, and install libusb instead
[06:45:50] <megal0maniac> It's using libusb in compat mode already
[06:46:21] <megal0maniac> It finds the programmer, chooses an endpoint and sends data. It just doesn't get anything back
[06:48:04] <megal0maniac> And in Jungo mode, studio can't talk to it either :/ "Invalid pipe number" it says
[06:52:18] <megal0maniac> NOW it works. Had to remove libusb completely and manually replace driver in compat mode
[06:52:29] <megal0maniac> Basically what you said :P
[06:52:36] <megal0maniac> Stupid windows
[07:20:10] <megal0maniac> Cool. Looks like Joerg Wunsch wrote quite a significant chunk of the avrlibc too. Things like delay.h
[07:20:32] <megal0maniac> (The lead dev for avrdude)
[07:53:33] <megal0maniac_afk> Ah, thanks abcminiuser :P http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=68302
[07:54:44] <abcminiuser> Heh, I never did finish that :(
[08:25:46] <malinus> abcminiuser, how does it feel to be popular over some tutorial you wrote 6 years ago :)?
[08:26:05] <abcminiuser> I am not a popular man :P
[08:26:10] <abcminiuser> So, in conclusion, wooo.
[08:26:35] <malinus> abcminiuser, I would recognize you on the street. Ask for autograph even :3
[08:29:39] <abcminiuser> Uh oh
[08:29:44] <abcminiuser> Time to change identities
[08:47:28] <Tom_itx> abcminiuser have you seen those other frontends for avrdude?
[08:49:13] <Tom_itx> megal0maniac_afk, why?
[08:49:20] <abcminiuser> Tom_itx, there's hundreds
[08:49:36] <abcminiuser> I know GDP isn't ground-breaking, but I'm making it anyway
[08:49:48] <abcminiuser> If nothing else it will allow people to add new stuff easier
[08:50:13] <abcminiuser> Since drop in a python file and edit another is all that it takes, then you get all the arch/protocol/device/etc support automatically
[08:51:18] <Tom_itx> megal0maniac_afk, what are you doing that you need avrdude in win7?
[08:51:56] <juri_> hmm. i'm smelling compiler trouble.
[08:52:49] <megal0maniac_afk> juri_: You have a good nose
[08:53:39] <megal0maniac_afk> Tom_itx: I thought I'd killed my attiny10. Wanted to try avrdude to eliminate possibility of software/firmware issues. Turns out I was trying to program it with 3v3, which doesn't work.
[08:54:10] <megal0maniac_afk> abcminiuser: How much of it works so far?
[08:54:34] <abcminiuser> Err
[08:54:35] <abcminiuser> Not much
[08:54:47] <abcminiuser> Transports: USB (working), Serial (working)
[08:55:08] <juri_> gah. i would hate to have to hand assemble this.
[08:55:09] <abcminiuser> Tools: STK500, AVRISP, AVRISP-MKII, JTAGICE-MKII working (framing of messages to/from tool)
[08:55:29] <abcminiuser> Protocols: STKV2 (partial), JTAGV2 (non-implemented)
[08:55:30] <Tom_itx> megal0maniac_afk, don't go down that jungo / libusb driver road unless you really have to
[08:55:32] <N2TOH> what code? I have yet to try a firmware that supports USB on any ATMEL product
[08:55:37] <abcminiuser> Devices: Atmel Studio (all)
[08:55:49] <abcminiuser> https://github.com/abcminiuser/gdp
[08:56:07] <abcminiuser> It's an avrdude replacment (or will be)
[08:56:08] <Tom_itx> it's a road that will take you thru the ghetto
[08:56:29] <megal0maniac_afk> Tom_itx: I discovered that the hard way :)
[08:56:36] <megal0maniac_afk> But I actually got it working quite nicely
[08:56:46] <Tom_itx> ok that's good at least
[08:57:07] <Tom_itx> you realize i have firmware posted for that right?
[08:57:31] <juri_> i've got some bitwise assignments that guarantee some of the bits come out zero... and i've got results that indicate those bits are getting set randomly.
[08:57:52] * juri_ starts simplifying.
[08:58:05] <megal0maniac_afk> Tom_itx: I do, but the U2S has the aux line on a different pin
[08:58:16] <megal0maniac_afk> And obviously LED and BUTTON assignments differ
[08:58:31] <Tom_itx> is this not my programmer?
[08:58:54] <megal0maniac_afk> Tom_itx: No, sir :)
[08:58:59] <Tom_itx> why would the pinout differ?
[09:03:23] <megal0maniac_afk> There's a header specifically for programming, and /RESET is on B0 instead of B4. Which makes sense, since B0 is /SS on the 32u2
[09:03:48] <megal0maniac_afk> B4 is used for something else, I think
[09:08:05] <megal0maniac_afk> Oh, weird. B0 is /SS on 32u4 as well. Why use B4? :?
[09:12:05] <Tom_itx> it was available
[10:22:02] <megal0maniac_afk> abcminiuser: Plans for ice3 support? :)
[10:25:56] <beaky> hello
[10:26:15] <beaky> when should i use at89 over avr and at91sam
[10:28:13] <abcminiuser> Eventually
[10:28:27] <abcminiuser> Eventually DFU bootloader too
[10:28:31] <beaky> ah
[10:43:49] <Tom_itx> ok another batch in the oven
[10:44:46] <Tom_itx> abcminiuser's rewriting studio in a more 'linux' fashion :)
[10:46:29] <OndraSter> beaky, isn't at89 like... previous century?
[10:46:46] <OndraSter> considering that there were at90 and at91
[10:46:53] <theBear> he was like 5, he doesn't know :)
[10:47:58] <MrMobius> AT89 is 8051
[10:48:15] <beaky> yes
[10:48:29] <beaky> i thought at89 was still extremely popular
[10:49:12] <MrMobius> maybe. some of them are pretty cool looking. they can do one instruction byte per cycle
[10:51:16] <megal0maniac_afk> There are locally made electronic keypads for access control here, they use 8051 based AVR. I think it's AT89
[10:51:39] <MrMobius> AT90 is not 8051 by the way
[14:31:30] <Fornaxian> at89 is 8051/8052 chips...at90s is early avr....at91sam is arm thumb processors..
[14:31:54] <Fornaxian> or rather, some are arm thumb...but they are ARM
[14:41:39] <specing> Fornaxian: erm
[14:41:51] <specing> doubt the AT91SAM9260 that runs Linux is thumb
[14:42:48] <MrMobius> specing, why not? i believe linux runs on the M4 and that is thumb
[14:43:01] <specing> Linux doesen't run on the M4
[14:43:09] <specing> it can't fit into 32KB ram
[14:43:55] <MrMobius> i believe those can have an external memory bus
[14:44:20] <MrMobius> also they can have 192k RAM at least
[14:44:29] <MrMobius> internally
[14:50:19] <MrMobius> specing, http://en.wikipedia.org/wiki/%CE%9CClinux
[14:51:36] <Fornaxian> http://www.strangehorizons.com/2004/20040405/badger.shtml or run it on an old dead badger.
[14:52:01] <beaky> hello
[14:52:32] <tetrad> Fornaxian: lol
[14:52:33] <beaky> is there an atmega with pll?
[14:53:35] <Fornaxian> beaky, I do not believe so...
[14:53:46] <Fornaxian> I think only some of the attiny chips have it.
[14:54:14] <beaky> how come
[14:54:17] <beaky> why cant atmega have it
[14:54:37] <Fornaxian> because they didn't put it on the chip?
[14:54:41] <specing> so you can:
[14:54:44] <specing> 1) shutup
[14:54:47] <specing> 2) buy XMEGA
[14:55:01] <beaky> but i need one in TH package
[14:55:13] <Fornaxian> whatever TH package is.
[14:55:26] <beaky> through-hole
[14:55:34] <beaky> it comes with leads that fit through holes
[14:55:42] <carabia> :D
[14:55:48] <specing> yes, we should bug ATMEL to make a PDIP xmega
[14:55:49] <carabia> 1) l2solder
[14:55:54] <specing> wheres abcminiuser
[14:56:04] <carabia> 2) buy qfp
[14:56:10] <carabia> 3) stfu
[14:56:15] <Fornaxian> beaky, that would be a DIP or PDIP package, not a TH package.
[14:56:39] <abcminiuser> Mmm?
[14:56:48] <beaky> but i am too poor to buy pcb
[14:56:58] <beaky> ok I will give in and design my stuff with SMD
[14:57:00] <carabia> does anyone remember, in a stereo plug what's the standard for left and right channels?
[14:57:03] <Fornaxian> abcminiuser, we need an avr32 in a 64pin dip package please!
[14:57:09] <beaky> lol 64-pin pdip
[14:57:20] <Fornaxian> beaky, I have chips here in that package..
[14:57:26] <specing> I've seen 64-PDIP
[14:57:30] <specing> in an old TV
[14:57:31] <MrMobius> Fornaxian, from 2013?
[14:57:34] <carabia> i have 1156 pdip
[14:57:35] <beaky> yeah there are some special digital logic ICs with that many pins
[14:57:40] <specing> that thing was fscking huge
[14:57:45] <Fornaxian> MrMobius, no.
[14:57:49] <beaky> i think analog muxs
[14:57:51] <Fornaxian> beaky, nope...production processors.
[14:57:53] <beaky> ah
[14:57:59] <Fornaxian> http://www.cpu-world.com/CPUs/68000/
[14:58:09] <Fornaxian> 8MHz 68000
[14:58:12] <beaky> wow
[14:58:16] <MrMobius> PLCC is also through hole and easy to solder. i dont suppose they make xmegas in that package either though
[14:59:09] <beaky> ok i will just buy an arduino due
[14:59:15] <beaky> and connect the pins with wire
[14:59:31] <carabia> don't think beaky was born when 68k's were hot
[14:59:47] <beaky> the due is atsam3x8e
[14:59:55] <Fornaxian> hehe.
[14:59:58] <beaky> whats the big deal with 68k?
[15:00:04] <beaky> it is slower than an avr
[15:00:12] <Fornaxian> 68k ROCKS! or did in the 80s.
[15:00:14] <MrMobius> there was no avr in the 80s
[15:00:15] <MrMobius> bro
[15:00:17] <beaky> ah
[15:00:19] <carabia> it's fucking 30 years older than avr
[15:00:22] <carabia> ??
[15:00:48] <specing> 68000 IS OVER 9000!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[15:00:54] <carabia> it is
[15:01:47] <abcminiuser> Woot
[15:01:55] <MrMobius> i tried to buy a 68k dip from ouser but they didnt have any so i settled for a 6502
[15:01:59] <hjohnson> wow that's annoying.
[15:02:01] <abcminiuser> Who has two thumbs and a working DFU transport/tool/protocol?
[15:02:20] <carabia> beaky: weren't you reading that art of electronics? i suppose it would have some reference to the motorola 68000
[15:02:40] <Fornaxian> the fact that it was a 32bit cpu before intel had a 16bit processor out there made it awesome.
[15:03:06] <beaky> carabia: yeah it talks about lots of old stuff like the 741, max232, 68000
[15:03:31] <carabia> plus, i think i've figured beaky out. He's reading that book, and whenever he encounters a new concept he comes here and "hello, i love x"
[15:03:51] <Fornaxian> http://www.cpu-world.com/CPUs/ awesome site...very nostalgic.
[15:03:57] <hjohnson> embedded systems is where old processors go to live on forever
[15:04:37] <hjohnson> though I don't imagine we'll see the P3 et all architecture in the same embedded space.. too power hungry etc...
[15:05:09] <beaky> avr is the ultimate microcontroler
[15:05:14] <carabia> We have old motorola shortwave radios at work from the 80s/90s. Can't remember which chips they had. But they're still going strong as ever
[15:05:16] <Fornaxian> aren't the freescale coldfire microcontrollers just a 68k at the core?
[15:05:34] <MrMobius> carabia, lol. he also says a lot of "ah"s as if he knows what you are telling him
[15:05:50] <carabia> MrMobius: it's an acknowledgement
[15:05:55] <carabia> (not)
[15:06:09] <hjohnson> Fornaxian: yeah, they're a derivative of the 68k architecture
[15:06:12] <carabia> The motorolas might have some ST chips I think
[15:06:29] <carabia> amongst others
[15:06:49] <hjohnson> damnit, I wish I could see better so I could keep working on my project
[15:06:55] <MrMobius> Zilog makes microcontrollers derived from the Z80 0_o
[15:07:02] <hjohnson> alas my near eyesight is still shitty
[15:07:09] <hjohnson> MrMobius: why do you think the Z80 is the Z80?
[15:07:14] <hjohnson> Zilog 80
[15:07:24] <MrMobius> what?
[15:07:35] <carabia> hjohnson: I think they screwed up something. Lazors are dangerous
[15:08:08] <hjohnson> carabia: lol, naw, it will take another few days for things to settle in
[15:08:23] <carabia> Thinking about lasers, what was that one guy over at #electronics, who was searching for someone to give him a 101 on laser diodes, and the application was "medical"
[15:08:31] <beaky> lol
[15:08:33] <hjohnson> lol
[15:08:49] <beaky> DIY eye surgery
[15:08:57] <MrMobius> :P
[15:09:05] <carabia> hjohnson: I think he built the laser you had...
[15:09:09] <hjohnson> lol
[15:09:09] <MrMobius> maybe they wanted to appelate the hair off their legs
[15:09:10] <beaky> an arduino powered LASIK
[15:09:12] <beaky> ah
[15:09:16] * hjohnson hides
[15:09:41] <carabia> He even had specified wavelengths, he was dead serious
[15:09:42] <beaky> hmm a DIY arduino laser shaver sounds like an awesome kickstarter
[15:09:47] <hjohnson> though admittedly, I'd rather see the core controls for a mission-critical medical device implemented on a reatively simple micro, since that design can be proved
[15:10:24] <hjohnson> you can't realistically prove a design on something more complex that's running an operating system etc...
[15:10:39] <carabia> hjohnson: yeah sure
[15:10:51] <carabia> but still kind of iffy about it :)
[15:11:03] <hjohnson> well, I wouldn't want it done on an arduino or some shit like that...
[15:11:21] <hjohnson> though actually in reality, having been through it now, there's some really sophisticated stuff going on...
[15:11:42] <MrMobius> you could make a beaky bot from an arduino and ehternet shield that logs into IRC and says "I love x" and "ah" over and over
[15:11:53] <hjohnson> rather than ensuring the eye stays perfectly still, there's optical tracking of your eye so the system automatically compensates out whatever jitter you have in your eye as it's happening.
[15:11:54] <carabia> and shaves your legs with laser
[15:12:04] <carabia> hjohnson: yes
[15:12:35] <hjohnson> I need to finish the last bits of my layout, damnit
[15:12:37] <carabia> and the burst timing of the laser is kind of critical
[15:13:15] <hjohnson> carabia: though hard realtime like that is better handled by dedicated hardware... computer says "run the next pulse for 0.35ms"
[15:13:54] <hjohnson> i'm getting anxious to run this project now...
[15:14:27] <carabia> totally going to make my own arduino lasik
[15:14:39] <carabia> beaky you can have the first op for free
[15:15:00] <MrMobius> you havent even asked if his eyes need it
[15:15:23] <carabia> He will. After the first op, anyhow
[15:15:24] <beaky> my eyes is 20/2
[15:15:29] <hjohnson> lol
[15:15:32] <MrMobius> holy shit
[15:16:06] <carabia> You will first have to sign some arbitrary paperwork... Such as discharging me out of all liability, you know, the usual
[15:30:59] <OndraSter_> yo guys, you won't believe this
[15:31:06] <OndraSter_> but I am going to find my Dragon and my board
[15:31:09] <OndraSter_> and finish my bootloader!
[15:31:15] <OndraSter_> that is, if I find enough USB cables
[15:32:07] <OndraSter_> which is fun, because I need two USB-B cables
[15:32:12] <OndraSter_> and I keep losing them somehow
[15:46:12] <bsdfox> full size B is deprecated
[15:48:23] <twnqx> yeah, people favor fragility over stability
[15:53:00] <OndraSter_> I dare you to put USB B into a phone :
[15:53:00] <OndraSter_> :D
[15:54:17] <OndraSter_> well with microUSB, which has tabs soldered through the board (so it is not purely SMD) I don't have any problems
[15:54:22] <OndraSter_> with pure SMD ones yes
[15:55:26] <OndraSter_> I think
[15:55:27] <OndraSter_> I need to
[15:55:28] <OndraSter_> clean up my room
[15:55:30] <OndraSter_> A LOT
[16:17:15] <OndraSter_> I am probably dumb
[16:17:15] <OndraSter_> but
[16:17:15] <OndraSter_> http://gallery.atmel.com/Products/Details/2398da3e-aba5-45ed-b3a0-d0714a6dc661?
[16:17:15] <OndraSter_> this does not show me any options
[16:17:15] <OndraSter_> when I right click my project or anything else
[16:17:17] <OndraSter_> oh nvm
[16:17:24] <OndraSter_> I forgot to select it as the source control plugin
[16:57:50] <fkregs> Hello all. Doing i2c between 5v mega and 3v3 chip. Will i be asking for trouble if i route the i2c clock via 4050b and the i2c data through a series resistor + pullup?
[16:59:25] <twnqx> google mosfet level shifter, fkregs
[17:01:34] <fkregs> yeah i know you can do open collector
[17:02:18] <fkregs> can't get mosfets at this hour :(
[17:02:30] <fkregs> maybe I can just throw both lines via series resistors then
[17:10:30] <OndraSter_> a bit of HV: http://www.youtube.com/watch?feature=player_embedded&v=34r6RGF2JLA
[17:15:42] <carabia> i love the smell of HV in the morning
[17:17:17] <OndraSter_> who does not
[17:17:58] <OndraSter_> I also love the smell of blown caps in the morning
[17:18:09] <OndraSter_> how they were eating your insides during the night
[17:27:17] <carabia> does not compute. how do they eat your insides
[17:28:30] <Casper> OndraSter_: that's next city
[17:30:40] <OndraSter_> carabia, all the acids and junk that escapes when it blows
[17:31:19] <carabia> sure lol
[17:31:43] <carabia> i guess you are one of those who has to have big ass fans when soldering with leaded stuff so you won't get lead poisoned!
[17:31:48] <OndraSter_> I do not
[17:31:53] <OndraSter_> I do own it, but never use it
[17:32:36] <carabia> which
[17:32:45] <OndraSter_> homemade one :D
[17:32:52] <OndraSter_> uses some carbon or whatever filter
[17:32:58] <OndraSter_> and some high-perfomance fan
[17:33:05] <carabia> me too
[17:33:14] <carabia> i use carbon filters just to go out on the street
[17:33:17] <carabia> so i won't get sick
[17:33:22] <OndraSter_> :D
[17:33:48] <carabia> it's like fallout
[17:34:02] <Casper> OndraSter_: capacitor ain'T acidic
[17:34:08] <Casper> atleast shouln't be
[17:34:09] <OndraSter_> well they are made in china
[17:34:11] <OndraSter_> so you never know
[17:34:42] <Casper> should have a PH of like 8
[17:34:49] <Casper> but some have a PH of 5...
[17:35:02] <carabia> yep it's like tapwater
[17:35:13] <OndraSter_> so why does it smoke so bad and smells even worse?
[17:35:14] <carabia> that's why i use carbon filters also to clean my urine and drink that instead
[17:35:56] <carabia> and i have an autoclave through which i run anything i eat or drink
[17:42:07] <OndraSter_> a bit of OT from AVR: is there anything worth keeping from old lawnmower (combustion engine)?
[17:42:15] <OndraSter_> I would love to make a go kart, but I don't like combustion engine idea
[17:42:33] <Casper> keep the engine, make a DC generator!
[17:42:38] <OndraSter_> yey
[17:42:47] <OndraSter_> the engine is not in the best possible status tbh
[17:42:52] <OndraSter_> that's why the lawnmower is getting replaced
[17:42:57] <Casper> burning oil?
[17:42:59] <OndraSter_> no
[17:43:06] <OndraSter_> I am not sure what it is burning
[17:43:09] <Casper> then probably just need valve adjustement
[17:43:22] <OndraSter_> well it is 11 years old
[17:44:00] <OndraSter_> it had its life
[17:44:07] <OndraSter_> maybe if I would take it completely apart and clean it
[17:44:14] <OndraSter_> but hey - already got a new one
[17:46:33] <carabia> beaky could sure turn it into an smps
[17:48:06] <OndraSter_> :D
[17:48:08] <OndraSter_> well
[17:48:12] <OndraSter_> not switching per say
[17:48:35] <OndraSter_> the thing about DC/AC gens is - the power here goes out like.. once in 3 years
[17:48:39] <OndraSter_> and that was just because of floods
[17:48:45] <OndraSter_> it was gone for a few hours (and I was not home even)
[17:49:03] <OndraSter_> (half of the outside Prague was without power for much longer)
[17:53:48] <beaky> hello
[17:55:08] <megal0maniac_afk> Have you made anything yet?
[17:57:09] <megal0maniac_afk> @beaky
[17:58:43] <beaky> yes i've made a multimeter
[17:58:50] <beaky> with the atmega328p
[17:58:50] <carabia> should probably ditch freenode altogether. if it's anything not completely related to software, then it's just armchair. Freenode in a nutshell: 1) software engineers 2) googloids besserwissering (goes together with 1), 3) the occasional troll such as myself
[17:59:18] <beaky> lol
[18:00:49] <OndraSter_> on another note, my brother asked me to fix some 24V hand-drill charger:
[18:00:50] <OndraSter_> http://clip2net.com/s/65KDP5
[18:00:54] <OndraSter_> the R1 "big" is burnt
[18:01:00] <OndraSter_> or at least it does not show anything on 2M scale
[18:01:13] <OndraSter_> the black might be actually burnt, but it shows something (non-short)
[18:01:31] <OndraSter_> the actual charger PSU is... huhm
[18:01:43] <OndraSter_> something crazy
[18:01:48] <OndraSter_> unregulated 26V I think?
[18:01:56] <OndraSter_> need to find it first
[18:03:56] <OndraSter_> any ideas on what value it could be? The colours are burnt off, can't read the left two
[18:04:19] <OndraSter_> looks like something grey/blue - grey - silver - silver
[18:04:23] <carabia> apparently big
[18:04:25] <OndraSter_> I am guessing it will be some low value
[18:07:43] <OndraSter_> the burnt one measures 73Ohms or thereabouts
[18:10:30] <OndraSter_> pic: http://sdrv.ms/1faWiu3
[18:15:27] <OndraSter_> WHAT
[18:15:32] <OndraSter_> it is marked as 24V DC 500mA
[18:15:39] <OndraSter_> when I measure DC it says 29V
[18:15:46] <OndraSter_> when I measure AC it gives me 61V
[18:15:51] <OndraSter_> what is this sorcery
[18:15:55] <OndraSter_> badly filtered or what
[18:17:32] <OndraSter_> well, if it was blue-grey-silver-silver then it is 0.68R
[18:17:38] <OndraSter_> 0R68
[18:18:01] <OndraSter_> I don't think it was blue-grey-grey-silver, that would have been 6T8Ohms
[18:18:02] <OndraSter_> ..
[18:18:56] <OndraSter_> most likely it was something sub-1Ohm
[18:19:04] <OndraSter_> and 1W-ish
[18:19:12] <carabia> try 0 it's your best bet
[18:19:27] <carabia> maybe they were feeling randy when they made the board
[18:19:51] <OndraSter_> :D
[18:20:29] <OndraSter_> I do understand how it is supposed to work, I am not sure if it is really how it actually worked
[18:20:34] * Tom_itx thumps OndraSter_ in the head
[18:20:35] <OndraSter_> before it burned
[18:20:38] <OndraSter_> what
[18:21:24] <OndraSter_> I think I will get 1R 1W resistor
[18:21:26] <OndraSter_> and be done with it
[18:21:34] <OndraSter_> and maybe replace the 73Ohm one as well
[18:21:36] <OndraSter_> "73Ohm"
[18:22:40] <OndraSter_> Tom_itx, what
[18:22:44] <OndraSter_> I am not being that much offtopic!
[18:23:21] <Tom_itx> just a random thump
[18:23:24] <OndraSter_> oh
[18:23:28] <OndraSter_> I thought you had an idea
[18:23:32] <OndraSter_> I presume it measures the voltage drop
[18:23:38] <Tom_itx> <OndraSter_> oh nvm
[18:23:38] <Tom_itx> <OndraSter_> I forgot
[18:23:49] <Tom_itx> just catching up a bit
[18:23:54] <OndraSter_> :D
[18:24:12] <Tom_itx> got another batch of boards done, gonna mill some boxes tonight
[18:24:21] <OndraSter_> nice
[18:25:43] <carabia> what boards
[18:26:00] <Tom_itx> boards boards
[18:26:09] <carabia> nice one
[18:26:21] <Tom_itx> blue ones
[18:26:32] <carabia> oh i like red more
[18:26:38] <OndraSter_> ugh just opened the battpack - they are china ni-cd
[18:26:41] <OndraSter_> all the anodes are corroding
[18:27:46] <Tom_itx> carabia, more of these: http://tom-itx.dyndns.org:81/~webpage/boards/USBTiny_Mkii/USBTinyMkII_Blue.jpg
[18:28:19] <carabia> no hv plx?:(
[18:28:39] <Tom_itx> don't make mistakes and you don't need it
[18:28:53] <carabia> i like your attitude
[18:29:14] <OndraSter_> :D
[18:29:28] <OndraSter_> good news Tom_itx - I am maybe reviving XBoard
[18:29:32] <Tom_itx> http://tom-itx.dyndns.org:81/~webpage/boards/USBTiny_Mkii/Boxes/USBTinyMkII_Box2.jpg
[18:29:37] <Tom_itx> good one OndraSter_
[18:29:46] <OndraSter_> it is not a joke!!! D:
[18:29:57] <Tom_itx> i wasn't joking
[18:30:02] <OndraSter_> oh
[18:30:05] <Tom_itx> i could have said you suck
[18:30:09] <OndraSter_> :D
[18:30:21] <OndraSter_> when I hear "good one" I thought you ment joke.. oh well
[18:30:30] <OndraSter_> afterall I am not native English speaker :P
[18:30:43] <Tom_itx> it could have been interpreted either way
[18:31:21] <carabia> i think there's a condition
[18:34:42] <megal0maniac_afk> OndraSter_: I need a new bootloader anyway. I killed mine with jtag, and then pdi, and then jtag again :D
[18:34:43] <carabia> meh, can't remember
[18:35:39] <megal0maniac_afk> carabia: It's all in the tone of your voice. Which is lost on irc
[18:36:02] <carabia> nah
[18:36:22] <carabia> hearing voices all around all the time
[18:36:46] <megal0maniac_afk> yes but thats different
[18:36:55] <carabia> nah
[18:37:52] <OndraSter_> megal0maniac_afk, new bootloader?
[18:37:58] <OndraSter_> oh, you mean the one I sent it off with?
[18:37:59] <OndraSter_> the DFU?
[18:38:03] <OndraSter_> hehe
[18:38:33] <OndraSter_> megal0maniac_afk, http://github.com/OndraSter/XBoot/ if you missed
[18:58:47] <Tom_itx> OndraSter_, what's it do?
[19:03:18] <OndraSter_> that is the USB (+ CDC) stack
[19:03:23] <OndraSter_> + receiving of the firmware code
[19:03:26] <OndraSter_> no actual flashing there yet