#avr | Logs for 2012-11-06

Back
[06:02:20] <rue_house> high side switching can be done with a N channel fet
[06:08:59] <OndraSter__> high side with N?
[06:37:23] <OndraSter__> heh
[06:37:31] <OndraSter__> TI sent me some invitation to some cortex stuff
[06:37:37] <OndraSter__> 1995 eur fee
[06:37:41] <OndraSter__> but you get free hercules dev kit!
[06:37:47] <OndraSter__> and it is in Regensburg
[06:37:50] <OndraSter__> where I actually was.
[06:37:57] <OndraSter__> 5 years ago or so
[06:38:38] <amee2woof> mmh speaking of TI... do they still give away free ARM board samples?
[06:38:45] <OndraSter__> free?
[06:38:59] <OndraSter__> I don't remember that ever happening
[06:39:27] <amee2woof> (if that was TI... i'm not sure, but someone had these like 20$ ARM board thingies and did free samples once)
[07:09:58] <eni23> hello. does someone mabye have an driver for 93cs64 eeprom's that really works?
[07:11:04] <OndraSter__> driver?
[07:13:28] <karlp> is this the old thing you pulled off a board and had to identify?
[07:13:34] <karlp> are you sure it actually still works?
[07:14:00] <OndraSter__> btw even google does not know anythign about 96cs64
[07:14:31] <OndraSter__> I am fairly certain it is compatible with any regular EEPROM
[07:15:09] <eni23> OndraSter__: sorry its an 93cs46 .
[07:15:45] <OndraSter__> well then
[07:15:48] <OndraSter__> there is nothing to talk about
[07:15:50] <OndraSter__> regular SPI EEPROM
[07:15:54] <eni23> karlp: yup it works 100% plus i have a dump of the content.
[07:16:16] <eni23> OndraSter__: that's the problem, its not really spi
[07:16:42] <OndraSter__> how so?
[07:19:22] <eni23> the datasheet says its microwire which seems similar to spi but spi libs wont work
[07:19:37] <OndraSter__> what spi libs?
[07:19:38] <karlp> if it works and you have a dump, what's the problem? you've already got it working....
[07:19:39] <OndraSter__> do they work with 16bit data rather 8bit?
[07:19:51] <karlp> microwire != spi
[07:20:15] <Tom_itx> microbus != microwire
[07:20:28] <Tom_itx> 60's vw bus
[07:20:34] <eni23> karlp: nah, the dump is not from my hardware
[07:21:15] <karlp> OndraSter__: see here: http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2697 whole different families for microwire vs spi vs i2c
[07:22:23] <Tom_itx> is microwire like TI's onewire?
[07:24:52] <karlp> more like spi with mosi/miso connectable together, as one of them is hi-z when the other's not.
[07:25:01] <karlp> it's a weird subset of spi, I've never used it myself
[07:25:48] <OndraSter__> oh
[07:25:58] <OndraSter__> well the datasheet I had had separate in/out
[07:26:13] <karlp> they are separate, but you often connect them together with a resistor and run a single trace.
[07:26:21] <karlp> if you want to be _microwire_
[07:26:28] <OndraSter__> oh
[07:26:34] <karlp> otherwise you might as well have just bougth the spi version
[07:28:37] <eni23> so does someone has hints for a code talking to this chip?
[07:29:09] <eni23> i cannot switch to another chip,
[07:30:47] <karlp> sure, read the microchip datasheets on the parts, you should be able to get some spi code to work eventually.
[07:31:12] <karlp> it's an oldschool nat semi format
[07:33:29] <karlp> wiki pedia even says, "Microwire is essentially a predecessor of SPI"
[09:34:03] <Essobi> morning
[09:35:27] <OndraSter__> mornin for you
[09:35:48] <Essobi> :P
[11:52:39] <OndraSter__> how does arduino know which libs to include? :P
[12:07:34] <megal0maniac> Hello, ladies
[12:07:41] <megal0maniac> Ooh, wrong room
[12:07:53] <megal0maniac> :D
[12:08:24] <Steffanx> You shouldn't walk into the ladies' room megal0maniac
[12:08:36] <megal0maniac> Nothing happens by accident
[12:24:02] <OndraSter__> hmm
[12:24:16] <OndraSter__> I have found out after half a semester that girls have got separate dressing room at PE classes :D
[12:24:29] <OndraSter__> last week
[12:24:32] <OndraSter__> this week I forgot about it again
[12:25:33] <OndraSter__> #ifyouknowwhatImean
[12:26:00] <Tom_itx> #wedo
[12:40:13] <wondiws> guys, I'm running AtmelStudio 6, and I want to program the m328p with an stk500, It says that the stk500 is not supported for m328k, why is this?
[12:40:29] <wondiws> because with avrdude I don't experience any problems
[12:43:54] <OndraSter__> (anybody with stk500?)
[12:47:13] <megal0maniac> What is an m328k?
[12:47:20] <megal0maniac> Does it exist?
[12:47:23] <wondiws> ATmega 328p
[12:47:28] <wondiws> the one in the Arduino Uno
[12:47:32] <wondiws> 28 pins
[12:47:49] <OndraSter__> check release notes for as6
[12:47:58] <megal0maniac> Oh!
[12:48:02] <wondiws> I'm now looking into just overriding the xml configuration files of Atmel STudio 6
[12:48:02] <megal0maniac> I know this one
[12:48:05] <megal0maniac> One sec...
[12:48:10] <megal0maniac> wondiws: You're on the right track
[12:48:58] <megal0maniac> https://sites.google.com/site/megau2s/home/supporting-software
[12:49:12] <megal0maniac> Download AS6.tbz and follow the instructions on the page
[12:49:40] <megal0maniac> Rikus was kind enough to generate .xml files for just about every part...
[12:50:07] <wondiws> I think I got it
[12:50:09] <wondiws> it is listed now
[12:50:14] <wondiws> I wrote the xml by hand
[12:50:30] <wondiws> well, edited it from another file
[12:50:43] <megal0maniac> That's all you need
[12:51:06] <OndraSter__> megal0maniac, http://arduino.cc/en/Reference/Comparison wtf :)
[12:51:10] <OndraSter__> they call that comparison?
[12:51:12] <OndraSter__> it is still C
[12:51:15] <OndraSter__> C++ to be exact
[12:52:12] <megal0maniac> Well yeah
[12:52:27] <megal0maniac> It's the difference between C++ based wiring, and Java based Processing
[12:53:32] <OndraSter__> but it is C++
[12:53:34] <OndraSter__> it is not C++ wiring
[12:53:53] <OndraSter__> btw, did you know that you can use one 16bit timer with 4 output compare channels as two 8bit timers with 4 output compare channels each
[12:54:07] <OndraSter__> and thus having actually 8 output channels for PWM instead of 6? (4+2)
[12:54:22] <megal0maniac> I did read that, yeah :)
[12:54:26] <megal0maniac> In the AU datasheet
[12:54:29] <OndraSter__> yep
[12:54:34] <OndraSter__> or what about Hi-Res extension for timers
[12:54:41] <OndraSter__> adding extra two or three bits of resolution
[12:54:48] <OndraSter__> and upping the speed of the counter by 2 or 4 times? :P
[12:54:48] <megal0maniac> Mhmm :)
[12:54:58] <megal0maniac> Know all the stuff. No clue how to use it :P
[12:55:03] <OndraSter__> or tying two or more timers together via events!
[12:55:04] <OndraSter__> hehe
[12:56:31] <RikusW> seems we all lack creativity sometimes :-P
[12:56:51] <RikusW> all the tools, no idea what to build with it ;)
[12:57:11] <RikusW> apart from more tools like the U2S...
[12:58:09] * RikusW is working on a geofencing algorithm for complex shapes
[13:13:04] <megal0maniac> RikusW should work on acquiring a more stable internet connection
[13:29:32] <RikusW> wondiws: I have a fix
[13:29:51] <wondiws> tell me
[13:29:55] <RikusW> wondiws: http://sites.google.com/site/megau2s/home software tab
[13:30:06] <RikusW> there is something like AS6.zip
[13:30:24] <RikusW> I autogenerated those files using XSLT
[13:30:40] <wondiws> thats cool
[13:30:43] <wondiws> I like XSLT
[13:31:05] <RikusW> you'll need to close AS6 and open after copying those files
[13:31:29] <wondiws> I will check it out later ;p
[13:31:52] <wondiws> thanks
[13:31:52] <Essobi> RikusW: whatup bub
[13:31:53] <RikusW> AS6tbz maybe...
[13:32:10] <RikusW> Essobi: busy implementing geofencing
[13:32:29] <Essobi> Oh right.. you go with the ground mics?
[13:32:59] <RikusW> nah, thats on ice for now...
[13:33:08] <RikusW> GPS fencing..
[13:33:21] <RikusW> messing with lat-lon
[13:35:03] <RikusW> wondiws: http://pastebin.com/ZLpJxKUQ
[13:35:15] <RikusW> thats the xsl source for converting AS4 files
[13:35:43] <RikusW> I might have bashed around a bit too ;)
[13:38:02] <wondiws> shouldn't you use tags, instead of just a <xsl:text> tag with every escaped in it?
[13:38:03] * RikusW wonders what happened to megal0maniac's connection :-P
[13:38:41] <RikusW> think I tried, it worked better this way
[13:39:01] <RikusW> actually I could've used bash scripting alone...
[13:39:13] <RikusW> well, almost..
[13:39:18] <asteve> http://i.imgur.com/GrI0m.gif
[13:40:09] <wondiws> but this is not how you're supposed to use xslt
[13:40:31] <RikusW> I know :-P
[13:40:55] * RikusW sometimes abuse programming tools ;)
[13:42:23] <RikusW> wondiws: I wanted it to look exactly like the Atmel files, and xslt was giving me difficulties, thus the abuse....
[13:46:36] <RikusW> Essobi: so what have you been up to lately ?
[14:08:41] <Essobi> ahh he booked..
[14:49:52] <_abc_> Anyone here using this? http://compilers.cs.ucla.edu/avrora/
[14:52:07] <_abc_> http://www.viara.eu/en/jmce/ or this?
[14:52:09] <landonf> interesting. i'm not exactly in love with simulavr
[14:57:02] <OndraSter__> I have got this wonderful idea
[14:57:05] <OndraSter__> to make simple emulator
[14:57:08] <OndraSter__> which will emulate "debugging"
[14:57:15] <OndraSter__> but will send real data through serial/USB to the device
[14:57:18] <OndraSter__> it will be slow as hell
[14:57:22] <OndraSter__> but better than nothing :P
[15:10:14] <OndraSter__> hmm
[15:10:25] <OndraSter__> I am thinking about how to do the compiling of all required files
[15:10:50] <OndraSter__> I am thinking about pre-compiling all the source code (whenever you change your target board) and then just including all libraries during the compilation
[16:13:16] <OndraSter__> meh, when somebody changes target platform it will recompile the base libraries and just include it
[16:13:39] <OndraSter__> better than arduino that recompiles it on every single use
[16:14:54] <_abc_> OndraSter__: you can write makefiles which avoid that and you can keep copies of the libs per platform
[16:15:06] <_abc_> this is the normal way to distribute ready-to-run stuff on unices
[16:15:19] <OndraSter__> duh
[16:15:20] <_abc_> one version for linux, one version for linux shared, one for netbsd, one for openbsd etc
[16:15:23] <_abc_> seriously
[16:15:26] <OndraSter__> with makefile(s) it would keep recompiling them
[16:15:30] <OndraSter__> there is only one platform
[16:15:32] <OndraSter__> AVR
[16:15:35] <_abc_> no, you can mark resources as precious
[16:15:42] <_abc_> and it is not 'one platform'
[16:15:45] <OndraSter__> well
[16:15:59] <OndraSter__> it has to recompile because the pins are not 1:1 the same
[16:16:01] <_abc_> you can perfectly well name files lib-x-important.o.avr8 etc
[16:16:15] <OndraSter__> what is the difference between my solution and makefiles?
[16:16:26] <_abc_> and make is perfectly happy to generate it using a rule like lib-x-important.o: ... cp presever/lib-x-important.o.avr8 $@
[16:16:35] <_abc_> *preserve
[16:16:48] <_abc_> OndraSter__: technically, none, but you are reinventing the wheel
[16:16:56] <OndraSter__> I already reinvented it
[16:17:01] <_abc_> please read what is already available, after that, you can still reinvent it :)
[16:17:12] <OndraSter__> using make would mean I would have to generate makefile etc
[16:17:51] <OndraSter__> here I just simply grab a xml with the list of libraries (which can be in subdirs etc), run it through gcc and then ar them together
[16:18:29] <OndraSter__> hmm is there any warning in g++ that has "error" in the text? :P
[16:18:43] <DagoRed> does anyone else use the programmer made by Tom_itx?
[16:18:51] <OndraSter__> many people do
[16:18:53] <DagoRed> I need to make windows install the programmer
[16:19:13] <DagoRed> Err... I need the driver or something. I'm just trying to burn a boot loader right now.
[16:29:25] <DagoRed> I have no idea how to use this thing.
[17:05:46] <OndraSter__> The problem with a UDP joke is that you have no idea if people got it.
[17:06:54] <Steffanx> :P
[17:06:59] <Steffanx> Too bad it's an old joke
[17:24:14] <home> OndraSter__: I don't get it
[17:24:42] <Steffanx> Sure you did
[17:26:30] <ferdna> i cant remember the name of that free software to arrange your components on a breadboard
[17:26:34] <ferdna> what is it called?
[17:26:50] <ferdna> fritzing
[17:26:54] <ferdna> =)
[18:04:53] <jadew> electronics is just like programming, the only problem is when you realize you have to change a piece of the "code" but you already have a PCB in front of you with all the components soldered in
[18:05:43] <Tom_itx> woops
[18:06:01] <jadew> yeah... big woopsie this time
[18:06:09] <Tom_itx> maybe you shouldn't have 'compiled' it yet
[18:06:24] <jadew> hehe, yeah, but I was kinda anctious to get it done :)
[18:06:35] <Tom_itx> see what that gotcha
[18:07:11] <Tom_itx> i'll sometimes let a board layout sit a day or so and go back to it then and review
[18:07:31] <jadew> I wanted to get it all done on sunday
[18:08:31] <Devilholk> jadew: Did you order the PCB or make it yourself?
[18:08:41] <jadew> Devilholk, made it myself
[18:08:59] <Devilholk> Make another one then and say Yay! Etching!
[18:09:31] <Tom_itx> that's not quite so bad then
[18:10:01] <jadew> 1) forgot to put a power button in the design, now I'll have to cut a trace (not that big of a deal). 2) I realized that the main transistor should have been a mosfet, since in order to drive this one, the opamp pushes in lots of milliamps, which then get read back as compsution of the target PSU, so now I need pin compatible mosfet. 3) I didn't want to use a switch with 2 lines, because it wouldn't fit in the case so I figured I'd turn the "working" led on based
[18:10:22] * Devilholk got rain between nRST and GND on his board today. Blew on it and it started running =)
[18:10:38] <jadew> and the voltage gets there, because the device is an electronic load, which means it can suck the life out of all the power sources I'm using
[18:10:55] <jadew> Devilholk, nice, what was it doing in the rain?
[18:11:27] <Devilholk> jadew: Fading RGB LED's inside a frosted glass lamp randomly
[18:11:43] <Devilholk> I was taking it for a walk but it started raining
[18:12:11] <jadew> heh, wish I could blow over this thing and have it working :P
[18:12:18] <Devilholk> Hehe
[18:12:27] <jadew> well, it works, just not as well as I'd like
[18:12:37] <jadew> new shopping list now
[18:14:15] <Devilholk> Any tip for USB libs? I have a bunch of atxmega32au (IIRC)
[19:06:13] <ferdna> what are the standard resistor values for a LM317 so it can generate 3.3v?
[19:06:48] <ferdna> i am using R1: 120 Ohms R2: 200 Ohms.
[19:13:42] <ferdna> http://www.electronics-lab.com/articles/LM317/
[19:30:29] <Casper> ferdna: standard R1 is 240ohms, lower increase the power consumption, higher might cause the minimum load to not be meet
[19:30:51] <Casper> as long as you get the proper ratio, and that the minimum load is reached, then it'S fine
[21:01:48] <MrGripes> hello
[21:03:58] <Casper> hmmm unstable bsdfox it seems
[21:35:57] <Casper> rue_house: why pn2222 instead of 2n3904?
[21:36:34] <Tom_itx> os1r1s, not sure he's awake atm but he is here
[21:36:49] <os1r1s> Tom_itx: Cool. Thx.
[21:36:51] <Tom_itx> CapnKernel you around?
[21:37:02] <Tom_itx> he's an aussie that commutes to china
[21:37:13] <Tom_itx> hard to tell what timezone he's in atm but i think china
[21:37:31] <os1r1s> CapnKernel: Can you ping me when you get a minute? I'd like to get some pcbs made and looking for something more reliable than seeedstudio.
[21:38:18] <os1r1s> Tom_itx: Ahh, ok. Excellent.
[21:38:49] <Tom_itx> i was using goldphoenix but i think their prices have gone up
[21:39:35] <Tom_itx> http://www.goldphoenixpcb.com/singlepage.php?tg=specialprice
[21:39:39] <Tom_itx> i guess you can price them too
[21:39:55] <os1r1s> Tom_itx: The seedstudio group, fusionpcb (I think ) kept delaying and delaying. It took about 4-6 weeks.
[21:40:12] <Tom_itx> well anything from china is gonna take a bit
[21:40:22] <Tom_itx> partially due to HK post
[21:41:06] <Tom_itx> gp used fedex so once the boards were done it didn't take too long in shipping
[21:41:20] <os1r1s> They had said 3-5 days which turned into 14 before they actually shipped.
[21:41:29] <os1r1s> That was the frustrating part.
[21:41:40] <Tom_itx> yeah
[21:42:15] <os1r1s> Not sure if that is a normal practice or just an oddity
[21:42:27] <Tom_itx> i've done the GP 155 sq in deal a few times
[21:42:45] <Tom_itx> generally you get a bit more than that
[21:43:10] <Tom_itx> just depends on the fit
[21:43:29] <Tom_itx> i left them panelized from them usually
[21:44:04] <os1r1s> Tom_itx: Goldphoenix does look a bit pricey
[21:44:21] <Tom_itx> yeah they went up so i looked for others
[21:45:39] <os1r1s> I thought you had recommended an additional last time we talked
[21:45:55] <Tom_itx> there are a few
[21:46:11] <Tom_itx> if i just want a proto, i may use laen's board service
[21:46:25] <Tom_itx> there's itead, gp, seeed for a few
[21:46:41] <Tom_itx> itead was ok
[21:47:12] <os1r1s> laen's service?
[21:47:20] <Tom_itx> they likely use the same board houses as seeed
[21:47:36] <os1r1s> That was it ... oshpark
[21:47:43] <Tom_itx> k
[21:47:52] <Tom_itx> his mask is purple
[21:47:54] <Tom_itx> no optino
[21:47:57] <Tom_itx> option
[21:48:36] <Tom_itx> he uses a US mfg
[21:50:34] <CapnKernel> Tom_itx: Yes I'm here. Stepping out shortly though.
[21:50:44] <Tom_itx> os1r1s want's some boards
[21:51:29] <CapnKernel> Tom_itx: Thank you.
[21:51:41] <Tom_itx> i'll let you take it from here
[21:51:48] <Tom_itx> dunno the details
[21:51:54] <os1r1s> CapnKernel: How does it work? I have some small 1"x 1" single layer boards I'd like done.
[21:52:09] <os1r1s> I've used fusionpcb. Looking for something different.
[22:27:14] <bsdfox> maybe fixed?
[23:35:10] <ferdna> anyone done anything with 1-wire? i need to get a copy of the 1wire device then write it to another 1wire device...
[23:42:07] <Casper> qI did, once
[23:42:12] <Casper> long time ago
[23:42:18] <Casper> on a ds1820