#avr | Logs for 2013-04-08

Back
[00:02:51] <Vutral> jadew, ?
[00:03:20] <Vutral> you read the datasheet ?
[00:03:23] <jadew> Vutral, I have a 2.5V Vref and my ADC readings get to the max (4095) at 2V input
[00:03:27] <jadew> obviously
[00:03:36] <Vutral> for a 5 volt board you should use a 2,5 volt referencre
[00:03:48] <jadew> you can't power it up from 5V
[00:03:49] <Vutral> for a 3.3 volt board i guess you should use a 1,25 volt reference
[00:03:51] <Vutral> ^^
[00:03:51] <jadew> max is 3.3
[00:03:56] <Vutral> exactly
[00:03:56] <Vutral> ^^
[00:04:07] <Vutral> yout not in the middle of the dynamic range :p
[00:04:09] <jadew> the VRef is allowed to be up to Vcc - 0.6
[00:04:14] <jadew> so 2.7V
[00:04:22] <Vutral> yeah
[00:04:28] <Vutral> you can do that ^^
[00:04:36] <jadew> well, I went lower
[00:04:40] <Vutral> what ahve you attached to the adc pin
[00:04:43] <jadew> 2.5 and it still not working properly
[00:04:49] <Vutral> maybe it forms a unintentional voltage divider somewhere
[00:05:04] <jadew> I measured the voltage on the ADC pin, it's 2V
[00:05:27] <Vutral> well i need much more info
[00:05:27] <jadew> I swear, this chip is shit
[00:05:35] <Vutral> maybe you damaged it
[00:05:36] <Vutral> ^^
[00:05:39] <jadew> had so much problems with the freaking adc
[00:05:43] <Vutral> or it was damaged when you got it
[00:05:44] <jadew> I think it was already damaged
[00:05:52] <jadew> by design I mean
[00:05:52] <Vutral> possible
[00:05:56] <jadew> have you checked the erata?
[00:05:56] <Vutral> buy a new one
[00:05:56] <Vutral> ^^
[00:05:59] <jadew> it's freaking huge
[00:06:01] <Vutral> naa
[00:06:09] <Vutral> lol
[00:06:09] <Vutral> ^^
[00:06:11] <Vutral> xmega is vaporware
[00:06:21] <Vutral> ^^
[00:06:46] <Vutral> like avr32 ^^
[00:07:00] <jadew> I'm really pissed off about the way this thing fails
[00:07:12] <Vutral> well i have no idea why you buy adcs at atmel ^^
[00:07:25] <jadew> I'm actually surprised I got the analog part right and the digital part is the one that fails
[00:07:27] <Vutral> and not at ti or ad or linear or microchip
[00:07:39] <Vutral> have you the filtering on avcc ?
[00:07:53] <jadew> yeah, the voltages are really stable and clean
[00:07:57] <jadew> everything is clean
[00:08:07] <Vutral> maybe your refernce voltage is too clean ^^
[00:08:11] <Vutral> :D
[00:08:13] <jadew> :)
[00:08:32] <Vutral> well
[00:08:34] <Vutral> i have a suggeston
[00:08:40] <Vutral> you could buffer your analog reference
[00:08:48] <Vutral> and try it again
[00:08:58] <Vutral> other things maybe checking pullups etc
[00:08:58] <jadew> it is buffered
[00:09:17] <jadew> the reference is rock solid
[00:09:30] <Vutral> well
[00:09:44] <Vutral> still as long as you cant confirm the reference voltage comes into the chip correctly
[00:09:48] <Vutral> and your analog signal comes in correctly
[00:09:51] <Vutral> ^^
[00:09:58] <Vutral> i can measure it outside often enough
[00:10:05] <Vutral> that doesnt mean the chip is set correct
[00:10:15] <jadew> what do you mean I can't confirm it comes into the chip correctly?
[00:10:29] <Vutral> well
[00:10:35] <jadew> ah, maybe there's a misconfiguration?
[00:10:40] <Vutral> maybe you should plot what happens when you attach a dac to AREF
[00:10:48] <Vutral> and a dac to your analog in
[00:10:56] <Vutral> yeah
[00:10:59] <Vutral> i guess there is a misconfiguration
[00:11:03] <Vutral> in your program
[00:11:04] <Vutral> ^^
[00:11:27] <jadew> it's highly probable, however the documentation sucks, the examples blow and the freaking winavr headers were broken to begin with
[00:11:35] <Vutral> you know those chips are sensible to order in which everythign happens
[00:11:54] <Vutral> i mostly do analog stuff
[00:11:55] <Vutral> so well ^^
[00:11:59] <Vutral> another thing
[00:12:10] <Vutral> the source impedance of your analog signal etc.
[00:12:23] <Vutral> does it match the dynamic range
[00:12:32] <Vutral> have you checked all xmega appnotes yet ?
[00:12:37] <jadew> the impedance would make the reading be lower, not higher
[00:12:47] <Vutral> ok its higher
[00:12:48] <jadew> I checked most of the ones dealing with ADCs
[00:12:59] <Vutral> do you limit the current to the adc correctly ?
[00:13:05] <Vutral> or do you overshoot maybe
[00:13:05] <Vutral> ^^
[00:13:24] <jadew> it's a constant current, the input doesn't change much
[00:13:30] <Vutral> i use current limiting resistors in series with analog signals
[00:13:31] <Vutral> often filters
[00:13:52] <Vutral> well still i cant confirm your problem
[00:14:34] <Vutral> well
[00:14:44] <Vutral> i suggest using dacs to fidn the point where the problem starts
[00:14:49] <Vutral> or the ranges
[00:15:04] <Vutral> i always got such a calibration circuit here ^^
[00:15:19] <jadew> kinda hard, giving the fact that it's a finished board, I'll have to set up a test circuit
[00:16:00] <Vutral> are you sure the soldering to the board is correct? ^^
[00:16:11] <jadew> yeah
[00:16:25] <jadew> I check and doublecheck everything
[00:16:36] <Vutral> well then try the testcircuit etc
[00:56:59] <langoliers> haha pigz library is available now http://zlib.net/pigz/
[01:20:27] <rue_bed> pigz?
[01:48:11] <jadew> well, this is weird, I have a 10 bit dac that appears to be a 12bit one
[01:48:54] <jadew> the packaging says it's a 10bit one too, but if I write 1000 to it I only get 1/4 of the value, if I write 4000 however, I get much closer to it
[01:48:57] <jadew> 2000 is 1/2
[01:49:07] <jadew> that's a 12bit dac, isn't it?
[01:59:15] <langoliers> jadew<= maybe 10 bit accurate 12 bit adc
[01:59:29] <langoliers> 24 bit adcs used to do 21-23 bits too
[02:02:50] <jadew> yeah, not really sure what's going on, they have a 12bit line too (which I have in this project)
[02:03:02] <jadew> it's possible they mixed them up, I don't know
[02:05:31] <langoliers> value>>2 :)
[02:05:48] <langoliers> now it is 10 bit
[02:05:52] <jadew> I'm not complaining, I'm gonna use it as 12bit
[02:06:11] <jadew> but it could be an issue if someone replaces a chip and the new one takes 12bit of data
[02:06:24] <jadew> it would only output up to 1/4
[02:06:49] <langoliers> anybody can suggest a program for converting tiff image to 10 color HP printer format? :) master Horologium ?
[02:16:08] <cluelessperson> hi
[02:16:22] <cluelessperson> Does anyone know hot to update the firmware of a usbasp?
[03:40:01] <cluelessperson> hello?
[06:04:00] <twnqx> how would i read the global interrupt enable flag from C?
[06:04:17] <twnqx> is there already a macro for that?
[06:06:02] <megal0maniac> Wouldn't you just read it from the SREG?
[06:08:38] <OndraSter> yep
[06:09:05] <OndraSter> uint8_t x = SREG; x &= (1 << positionOfTheIBit);
[06:12:11] <megal0maniac> Wow
[06:12:17] <megal0maniac> Wasn't expecting to be right :)
[06:31:07] <twnqx> thanks
[06:31:32] <twnqx> calling stuff that relies on interrupt handlers from within interrupts handlers isn't the best idea
[06:31:53] <twnqx> i really should redesign all of this, 95% of the code in running inside interrupt handlers... with interrupts disabled :X
[06:33:35] <megal0maniac> Pen and paper have proven to be my most powerful programming tools
[06:36:25] <OndraSter> eh?
[06:36:36] <OndraSter> I always want to kill somebody when I have to at school program on paper
[06:36:52] <megal0maniac> Pencil is conveniently sharp :)
[06:37:08] <OndraSter> my laptop is charged
[06:37:09] <OndraSter> ;)
[06:37:17] <jadew> when I was a kid my parents were punishing me by not allowing me at the pc
[06:37:21] <jadew> so I was coding on paper
[06:37:26] <OndraSter> eh
[06:37:35] <jadew> I showed them :D
[06:37:58] <jadew> bastards tought they can keep me away from coding :D
[06:38:44] <megal0maniac> But I don't mean coding on paper, I mean writing out the processes. Breaking it down into smaller bits because I tend to make things horrendously over-complicated if I just start typing
[06:38:50] * OndraSter has a babyface again
[06:38:50] <jadew> in their defense, I was doing really bad in school because of it
[06:39:02] <megal0maniac> And then I get confused and nothing works
[06:39:12] <megal0maniac> OndraSter: You can't fool us, caveman
[06:41:56] <OndraSter> :/
[06:41:56] <OndraSter> I shaved
[06:41:56] <OndraSter> after few months :D
[06:42:21] <Tom_itx> get a little stubble shoing finally?
[06:42:58] <jadew> I just found out my 0-20V 0-1A psu can't really do 1A for too long
[06:42:58] <jadew> I don't have a proper heatsink so the output transistors died really fast, first the current limitting one then the voltage one, since it got full current (like 2A) at 20V
[06:42:59] <jadew> and my heatsink can dissipate about 15W
[06:43:02] <twnqx> megal0maniac: this little project just broke the 4k line barrier :P
[06:43:02] <twnqx> and the final feature didn't work.
[06:43:16] <jadew`> lol
[06:43:21] <jadew`> I wrote that like 2 minutes ago
[06:43:30] <jadew`> before I got disconnected
[06:44:05] <twnqx> megal0maniac: and basically all of was written with no planning.
[06:44:18] <twnqx> and it had only one part that needed rewriting!
[06:44:58] <twnqx> right. now that data is logged to the (far too small) flash memory
[06:45:06] <twnqx> how do i get it back out from there...
[06:45:17] <OndraSter> use SD card :)
[06:45:26] <megal0maniac> With SDIO :D
[06:45:29] <twnqx> i originally even intended to
[06:45:39] <twnqx> but i had no space left on the PCB.
[06:45:57] <twnqx> so now i ended up with a 1MB SPI flash :(
[06:46:09] <OndraSter> USB available?
[06:46:28] <twnqx> "kind of" :P
[06:46:31] <twnqx> but only slave
[06:46:35] <OndraSter> yes
[06:46:40] <OndraSter> get the data from there :P
[06:46:49] <OndraSter> via*
[06:47:02] <twnqx> i am just worried about the size... it ate 1kB in a few seconds
[06:47:03] <twnqx> :(
[06:48:04] <OndraSter> that is 1024*few seconds
[06:48:21] * twnqx recalculates
[06:48:31] <twnqx> 2048 pages, 256 bytes each
[06:48:33] <twnqx> 512kB.
[06:48:46] <twnqx> barely 10 minutes
[06:48:49] <OndraSter> eh
[06:48:53] <OndraSter> you should have gone with bigger flash
[06:48:56] <OndraSter> or SD card!
[06:48:57] <OndraSter> microSD
[06:49:00] <OndraSter> does not take so much space.
[06:49:04] <twnqx> yeah, i planned a 25p160
[06:49:14] <twnqx> but then forgot to order it
[06:49:21] <twnqx> so i had to use the 25p40 i had around :P
[06:49:46] <twnqx> the other chip i have around... is not soic, but wider
[06:53:05] <megal0maniac> But even then it'll only run for barely 40 minutes
[06:55:34] <twnqx> that should be enough for my purpose.
[08:29:47] <kdehl> 4x40 alphanumeric dislpays are the largest ones available, huh?
[08:29:53] <kdehl> At least cheaply so.
[08:32:55] <OndraSter> define cheaply
[08:37:48] <kdehl> Less than $50 on ebay?
[08:40:28] <kdehl> Heh. The millionth produced Commodore 64 just appeared on ebay. Starting bid €6,400.
[08:42:08] <Valen> lol
[08:43:55] <seldon> I wonder how many millionth produced Commodore 64s there are on ebay.
[08:45:52] <specing> kdehl: you can get a 7" LCD panel for under $50
[08:46:01] <Valen> where?
[08:46:03] <Valen> what interface
[08:46:04] <specing> china
[08:46:07] <specing> LVDS
[08:46:08] <Valen> I need one for my oven
[08:46:17] <Valen> blast, wont work with the pi
[08:46:19] <Valen> :-<
[08:46:36] <Valen> though there some other mini arm boards around that'll do lvds
[08:47:08] <specing> you could just get a tablet for $70
[08:47:11] <kdehl> specing: I know, but not alphanumceric ones.
[08:47:15] <specing> all inclusive.
[08:47:50] <kdehl> I thought I wouldn't have to go graphical if I wanted a bigger display, but maybe I have to.
[08:47:52] <Valen> I want something that will last a bit longer than a $70 tablet, also something that will integrate into the front panel better
[08:49:12] <specing> kdehl: http://www.aliexpress.com/wholesale?SearchText=LCD+display+4x40&catId=0&initiative_id=SB_20130408053537
[08:53:43] <kdehl> specing: Yeah, I bought one 4x40 on ebay. I just wondered whether there are ones even larger.
[09:09:02] <rue_house> yea, 2 controllers
[09:09:19] <rue_house> so scrolling is fun if your library dosn't have a provision for it
[09:23:31] <megal0maniac> rue_house: Any particular reason you were raging about running an OS on a uC?
[09:43:35] <geoforce> Hi! new here , just lurking till I get a feel Have never done Microcontrollers before and thinking I need to start. Old-timer been doing comp since 1960.
[09:44:55] <specing> then uC should remind you about the blazing computer speeds <1990
[09:45:49] <geoforce> Hey I did push assembly on a Sinclair ZX80 so I'm familiar
[09:50:24] <inkjetunito> geoforce: have you done electronics before?
[09:52:08] <geoforce> yep digial stuff since 70s
[09:53:22] <geoforce> did Hware work on C64s and Sinclairs and Assembly programming on Apples and others
[09:53:44] <inkjetunito> geoforce: i suppose you only need the datasheet for some avr and a deep look into avr libc
[09:54:08] <inkjetunito> or Arduino if you're rusty
[09:54:29] <geoforce> actually need to look where to start My son aimed me at Adafruit boards and stuff
[09:55:29] <megal0maniac> geoforce: I can recommend RikusW's U2S board
[09:55:32] <geoforce> I can logic through the datasheets and commands easily, just need to figure how to put it on the chips
[09:55:54] <megal0maniac> Amongst others. But it's a dev board which doubles as a programmer for other chips
[09:56:35] <inkjetunito> geoforce: several dev boards have a built-in programmer these days
[09:57:09] <megal0maniac> inkjetunito: I like the U2S because it's inexpensive and Rikus is from around here ;)
[09:57:17] <geoforce> I have done some thought work on Atmel and Pic commands to do some things but am confused about the initialization commands etc.
[09:58:07] <inkjetunito> megal0maniac: do you have a link? i failed to find that one with google
[09:58:20] <tzanger> geoforce: "initialization commands" ?
[09:58:26] <megal0maniac> https://sites.google.com/site/megau2s/
[09:58:31] <geoforce> looked into some arduino libs but don't trust things which call functions I can't see the insides of
[09:59:03] <megal0maniac> http://i.imgur.com/F0NirGyl.jpg
[09:59:21] <inkjetunito> geoforce: yeah the arduino framework is quite high-level. have a look into the examples of avr libc
[09:59:48] <tzanger> avr-libc is awesome
[09:59:59] <megal0maniac> Teensy is another good option
[10:00:09] <inkjetunito> methanks
[10:00:12] <inkjetunito> -me
[10:00:13] <tzanger> it and the easy of NOT using an IDE are two big reasons why I switched over to AVR from PIC
[10:00:15] <inkjetunito> megal0maniac: *
[10:01:37] <megal0maniac> tzanger: Open Source (and thus well supported and cross-platform) toolchain were deal makers for me
[10:02:12] <megal0maniac> Also, I started with an Arduino and it was cheaper to just stick with AVR
[10:02:14] <tzanger> pic32 is gcc, but yeah, CCS is shit, xc8/16/32 are good now (xc32 being gcc), high-tech C I ahven't had any experience with
[10:03:24] <DagoRed> high-tech C got bought out by microchip
[10:03:55] <inkjetunito> :o atmega32u is an interesting chip
[10:04:31] <tzanger> DagoRed: yeah, I think their xc8/16 are just high-tech C's compiler rebranded
[10:05:00] <geoforce> all-in-all, I would prefer straight assembly since that's the way I seem to think. I know what I want the Pins to read and send and when,
[10:05:04] <tzanger> the IDE drives me batty. and their proprietary debuggers too
[10:05:14] <DagoRed> It is, either way I I doubt the optimizations are really worthwhile on microchip.
[10:05:22] <geoforce> just need to know how to put it in the chi
[10:05:25] <tzanger> geoforce: I started out that way with PIC. I still drop down there when needed but I find that's very rare now
[10:05:42] <megal0maniac> geoforce: A programmer, for which there are many, many options
[10:05:46] <DagoRed> geoforce: Mess around with inline assembly.
[10:06:06] <tzanger> that's the nastiest way to do assembly. gcc inline assembly makes my eyes bleed
[10:06:13] <OndraSter> pic24 is gcc too
[10:06:14] <megal0maniac> You'll either use Atmel Studio or avrdude on the PC side.
[10:06:59] <geoforce> I used to do inline assembly on Macs using Macasm for TSR stuff
[10:08:23] <geoforce> okay thanks all for some leads gotta go now
[10:09:01] <tzanger> TSRs oh that brings back some memories
[10:23:07] <OndraSter> TSR!
[10:23:45] <OndraSter> that reminds me of middle school
[10:23:45] <OndraSter> and x86 :P
[10:30:51] <tzanger> yep
[10:43:13] <megal0maniac> Oh no... STK500 support appears to be broken for AS 6.1 :/
[11:21:27] <DagoRed> http://i.imgur.com/KRHUEHM.jpg
[14:15:11] <tzanger> the good old ST-225
[14:15:23] <Tom_itx> st238
[14:15:35] <tzanger> I used to *draw* on the platters of the ST-225 with a pencil and it worked fine... for a while
[14:16:02] <Tom_itx> got pissed at it and slammed it against the wall. took it apart and fixed the power connector and it worked for another 10 yrs
[14:16:30] <Tom_itx> after first inspecting the platters while running
[14:16:38] <OndraSter> I have (had) two ST-22
[14:16:38] <OndraSter> 5
[14:16:46] <OndraSter> and one ST238
[14:16:51] <OndraSter> and then one .. another one
[14:16:58] <OndraSter> don't remember the model/anything
[14:33:24] <langoliers> tzanger<= use a permanent marker, that is fine
[14:33:57] <langoliers> though if the head smashes on the surface it can smear it ;/
[14:39:38] <Tom_itx> does mouser have a min order?
[14:40:07] <langoliers> sure
[14:40:31] <Tom_L> what is it?
[14:40:38] <langoliers> btw tried to touch the disk of a new hdd, as the head reaches the fingerprint the head starts smearing it, and making a little scraping sound
[14:41:01] <Tom_L> i need some caps for a MB.. nothing else on the wish list right now
[14:42:10] <langoliers> you could desolder a few from a dead one
[14:42:23] <langoliers> preferably those that look not puffed
[14:42:47] <langoliers> i did this and here i am
[14:42:54] <Tom_itx> i need both MB's
[14:42:59] <Tom_itx> both have 1 bad cap
[14:43:11] <langoliers> then all need to be replaced
[14:43:21] <Tom_itx> you will be back changing the others soon
[14:43:32] <langoliers> 1 dies and the parallel ones take more current abuse
[14:44:07] <Tom_itx> going from 6.3v to 10v caps
[14:44:12] <Tom_itx> low ESR
[14:44:20] <langoliers> for 1.8V ?;)
[14:44:23] <Tom_itx> no
[14:44:34] <Tom_itx> i just said from 6.3v
[14:44:53] <langoliers> they put them for 1.8V
[14:44:55] <langoliers> :P
[14:45:05] <langoliers> or whatever your cpu core voltage
[14:45:17] <Tom_itx> there's 2 different sets of them
[14:45:27] <langoliers> yes, one input, one output
[14:45:27] <Tom_itx> 6 of one and 4 of the other
[14:46:06] <langoliers> input may be 12V or, even 5V, but specs say 12V should be used for high power things
[14:46:24] <tzanger> mouser has no minimum order, but if you don't make their free shipping minimum they ding you like $20 for shipping
[14:46:33] <tzanger> Digikey dings you only $8
[14:47:05] <langoliers> i think they like it more if your order is above $20
[14:47:14] <tzanger> I usually keep the two sites open when I make orders up and search both sites, their prices are comparable but there are some BIG differences
[14:47:32] <tzanger> last time I checked digikey pricing on relays was stupid, mouser was easily half the price
[14:47:52] <tzanger> yeah I usually save up until I hit $200, I'd rather pay for actual product than shipping
[14:48:05] <langoliers> good idea
[14:51:41] <Tom_itx> i'll pad it with a few avrs
[14:52:22] <langoliers> ;>
[14:52:26] <langoliers> yeah
[14:52:34] <langoliers> atmega48pa ?
[14:52:55] <RikusW> attiny461 ?
[14:53:08] <RikusW> 461 got some special capabilities
[14:53:49] <Tom_itx> such as?
[14:54:00] <langoliers> it is a tiny
[14:54:04] <RikusW> 64MHz PWM
[14:54:06] <Tom_itx> probably a few 328
[14:54:10] <Tom_itx> tiny13 maybe
[14:54:17] <RikusW> variable gain adc
[14:54:48] <langoliers> hm
[14:54:57] <langoliers> PGA ?
[14:55:03] <OndraSter> tzanger, passives are on digikey like 10 times cheaper
[14:55:04] <langoliers> 64MHz ? ;/
[14:55:07] <RikusW> I've got some t261's
[14:55:10] <OndraSter> xmega does 128MHz PWM!
[14:55:12] <OndraSter> 19bit :P
[14:55:18] <langoliers> eh wtf
[14:55:25] <OndraSter> on half of the digital IO pins :P
[14:58:05] <Tom_itx> atmega461 did not return any results
[14:58:37] <langoliers> oh yea, a 20 pin sot-23 package? http://www.atmel.com/devices/ATTINY461.aspx?tab=parameters
[14:58:42] <langoliers> awesome
[15:02:55] <tzanger> langoliers: I don't see a 20 pin sott23 there
[15:03:00] <tzanger> 20 pin SOIC/DIP yes
[15:03:10] <langoliers> see image :)
[15:03:11] <tzanger> inf act I don't see sot23 anything for that part
[15:03:34] <tzanger> the image there shows sot23-6
[15:04:07] <langoliers> yes
[15:04:19] <langoliers> and under the image it states 20 pins
[15:04:28] <langoliers> so i put it tigether
[15:48:13] <RikusW> Tom_itx: attiny 261 / 461 /861
[15:49:07] * RikusW just repaired a microwave oven
[15:49:22] <RikusW> I happened to have a spare transformer around
[15:50:05] <RikusW> fromm what I heard the smoke was 1m thick at the ceiling after the original HV coil melted....
[15:50:15] <cluelessperson> So I got Tom_itx 's ISP programmer.
[15:50:19] <cluelessperson> not sure how to use it
[15:50:23] <cluelessperson> Arduino IDE is a little bitch
[15:50:39] <cluelessperson> nevermind, I need to test with atmel studio
[15:50:42] <cluelessperson> dur
[15:50:51] <DagoRed> wow, do you herp when you derp?
[15:51:15] <DagoRed> cluelessperson: Even with Atmel Studio, it may get annoying. There can be driver issues.
[15:51:30] <cluelessperson> DagoRed, it seemed to have installed fine off the bat, plug and play
[15:51:37] <RikusW> cluelessperson: its an AVRISP mkii for AS
[15:51:38] <cluelessperson> I need to give it 5 minutes before I bother you guys. ;
[15:51:55] <RikusW> and rtfm :-D
[15:52:05] <langoliers> not sure it is food grade anymore :) all those hazardous things deposited in it
[15:52:07] <RikusW> studio got plenty of docs
[15:52:19] <RikusW> heh
[15:53:11] <RikusW> actually smells better inside oven side than inside the case
[15:53:34] <langoliers> thrash it ?
[15:53:45] <RikusW> sounds like that smell stayed in there for a week... or more
[15:53:56] <RikusW> seems to work now
[15:55:06] <langoliers> it is not the smell that kills :) i use some toxic shit that smells good
[15:55:51] <RikusW> that enamel on the copper wires got a distinct smell ;)
[15:56:43] <langoliers> plastics can give off poisonous smoke
[15:57:14] <langoliers> and epoxy, and even non flammable things
[15:58:38] <langoliers> if you touch a piece of ptfe with open flame it will give you a bad day
[16:01:23] <RikusW> fluoride ?
[16:01:44] <RikusW> solder sucker tips are teflon afaik....
[16:01:50] <RikusW> CF4 iirc ?
[16:03:14] <langoliers> ptfe is about good up to 240C, above 260C it gives off large amounts of nasty fumes
[16:05:18] <RikusW> polytetrafluoroethylene iirc ?
[16:05:32] <cluelessperson> sigh
[16:05:37] <langoliers> http://www.fluoridealert.org/pesticides/teflon.effects.lung.htm
[16:05:40] <cluelessperson> Atmel Studio doesn't seem to see this.
[16:05:49] <langoliers> Overheating of PTFE generates fumes of highly toxic PFIB and poses a serious health hazard to the human respiratory tract. PFIB is approximately ten times as toxic as phosgene [2]. Inhalation of this gas can cause pulmonary edema, which can lead to death. PFIB is included in Schedule 2 of the Chemical Weapons Convention (CWC)
[16:06:14] <Tom_itx> cluelessperson did you just install studio?
[16:06:14] <langoliers> Acute Toxicity. The median lethal concentration (LC50) in single exposures of rats was 0.5 ppm.
[16:06:22] <langoliers> 0.5ppm doesn't sound much
[16:06:22] <cluelessperson> Tom_itx, earlier
[16:06:26] <Tom_itx> check that the jungo usb driver is installed
[16:06:44] <cluelessperson> Tom_itx, how? through studio or in my device manager?
[16:06:53] <Tom_itx> sometimes it's stubborn and may need to reinstall it
[16:06:59] <RikusW> langoliers: sounds nasty indeed
[16:07:00] <Tom_itx> device manager
[16:07:12] <Tom_itx> should show the programmer under the jungo usb
[16:07:53] <cluelessperson> Tom_itx, yes, it does. but I do recall having to reinstall the arduino drivers over and over someitmes
[16:08:20] <Tom_itx> arduino and jungo may conflict with the usb driver
[16:08:32] <Tom_itx> so you should pick one and stick with it
[16:08:55] <Tom_itx> if you decide to use avrdude under windows you will need to reflash the firmware on the programmer
[16:09:05] <Tom_itx> the files are on my site
[16:09:14] <cluelessperson> Tom_itx, what does it take to reflash the programmer?
[16:09:18] <Tom_itx> as well as the instructions
[16:09:21] <langoliers> RikusW<= Fluorine monoxide is released btw
[16:09:22] <cluelessperson> ah
[16:09:22] <Tom_itx> FLIP
[16:09:39] <Tom_itx> get it working with studio first
[16:09:48] <Tom_itx> i tested it before shipping
[16:09:49] <cluelessperson> Tom_itx, when you say avrdude, that's what the arduino ide uses, right?
[16:09:57] <Tom_itx> yes
[16:10:05] <cluelessperson> Tom_itx, I noticed you tested it. :P I know it works.
[16:10:22] <cluelessperson> "Unable to connect to tool AVRISP mkII (000200212345"
[16:10:42] <Tom_itx> what said that?
[16:10:47] <cluelessperson> studio
[16:10:56] <Tom_itx> it's the usb driver then
[16:11:01] <cluelessperson> tools -> device programming
[16:11:18] <cluelessperson> Tom_itx, reinstall from site/
[16:11:19] <cluelessperson> ?
[16:11:26] <Tom_itx> you can try updating the driver but chances are you may need to reinstall
[16:11:34] <Tom_itx> hardware manager...
[16:11:39] <Tom_itx> new device driver
[16:12:44] <Tom_itx> 'update driver' then pick jungo from the studio install directory
[16:13:13] <DagoRed> cluelessperson: If it makes you feel better, Tom_itx's programmer is less annoying to get working than the actual programmer from AVR that it is a clone of.
[16:13:27] <cluelessperson> DagoRed, I don't feel bad.
[16:13:35] <DagoRed> Good :)
[16:13:49] * DagoRed curses out his AVR ISP MKII from atmel some more.
[16:13:49] <Tom_itx> i've installed studio 4 5 5.1 6 and 6.1 with no issues
[16:13:53] <cluelessperson> Tom_itx, I'm actually really impressed with the pcb.
[16:14:16] <cluelessperson> Tom_itx, first thing I did was open it and examine the solder job.
[16:14:26] <Tom_itx> the power switch is a little weak so use caution with that
[16:14:37] <Tom_itx> you just voided the warranty !
[16:14:39] <Tom_itx> :)
[16:14:43] <cluelessperson> ha!
[16:15:44] <cluelessperson> Tom_itx, the driver is under "flip" ?
[16:15:51] <Tom_itx> no
[16:15:53] <cluelessperson> "Atmel USB" ?
[16:15:56] <Tom_itx> that's a different one
[16:16:06] <cluelessperson> I have Atmel 6.0 and 6.1 installed.
[16:16:10] <Tom_itx> what ver studio?
[16:16:11] <cluelessperson> I'm using 6.0 to test.
[16:16:14] <Tom_itx> oh
[16:16:34] <cluelessperson> under Atmel directory, there's flip, atmel usb dirs
[16:16:37] <Tom_itx> all i have on this one is 4
[16:16:46] <Tom_itx> it's not under flip
[16:16:49] <cluelessperson> Tom_itx, Do I need to enter Atmel Studio 6.0 dir? for drivers?
[16:16:53] <cluelessperson> hm
[16:16:53] <Tom_itx> try the atmel usb drivers
[16:17:41] <Tom_itx> i'll boot and see where they hide it
[16:18:09] * cluelessperson wonders why his SSD is taking so long.
[16:18:34] <Tom_itx> you can't use avrdude and studio at the same time though because they use different USB drivers
[16:18:43] <Tom_itx> studio uses jungo and avrdude uses libusb
[16:18:54] <cluelessperson> Tom_itx, it seems that it detects the tool in Atmel Studio
[16:19:01] <cluelessperson> Tom_itx, but it's "unable to connect"
[16:19:17] <Tom_itx> maybe you need a chip hooked to it
[16:19:22] <Tom_itx> that's probably what that is
[16:19:29] <cluelessperson> it's connected. :P
[16:20:47] <cluelessperson> Tom_itx, hm.
[16:21:36] <RifRaf> can't you just test it with avrdude?
[16:21:48] <cluelessperson> RifRaf, requires different usb drivers
[16:21:55] <Tom_itx> not without different firmware
[16:22:04] <Tom_itx> because the drivers are not consistent
[16:22:31] <RifRaf> usbtiny ftw, have given it a hammering and still works
[16:22:45] <Tom_itx> so does this one
[16:23:23] <cluelessperson> Tom_itx, will having the uc on the arduino board cause issues?
[16:23:25] <RifRaf> sure it does, but all this avrstudio stuff seems a bit much to flash a chip
[16:23:28] <cluelessperson> perhaps screw up the clock?
[16:23:36] <Tom_itx> i doubt it
[16:23:45] <Tom_itx> i've programmed ardweenies with it
[16:23:57] <cluelessperson> yeah, I'd doubt they'd include a header on it if it was an issue
[16:26:32] <cluelessperson> Tom_itx, what do I do now? ;_;
[16:27:31] <twnqx> does avr have atomic inc/dec <mem> instructions?
[16:27:52] <twnqx> or do i have to frame it with cli/sei?
[16:28:14] <twnqx> oh wait, i need 16bit anyway.
[16:42:19] <RikusW> inc/dec register is atomic
[16:42:25] <RikusW> ram access isn't
[16:42:30] <RikusW> ld/st
[20:25:07] <R0b0t1> Doth anyone have bitbang I2C for the attiny13?
[20:25:15] <R0b0t1> I'm just getting shitty instructable pages
[20:25:23] <R0b0t1> oh wait, AVR freaks has a code respository
[20:26:14] <Horologium> look at procyon avrlib
[20:26:19] <Horologium> there's a bitbang i2c lib in there.
[20:29:49] <R0b0t1> thanks
[22:35:26] <Timelord83> anyone have any ideas how to get an arduino to read engine rpm off the coil wire?
[22:44:09] <Casper> beware of the back emf
[22:44:31] <Casper> but since it's a 4 stroke, pulse * 2 = rpm
[22:44:54] <Casper> so only need to read the pulses (and lower the voltage and add high voltage protection)
[22:45:30] <Casper> usually, the coil pack get a permanant 12V, and each coil get a ground signal
[22:45:33] <R0b0t1> I'd go with a hall effect sensor
[22:45:50] <R0b0t1> Oh wait by sensing on the wire?
[22:46:12] * Casper wonders
[22:46:26] <Casper> Timelord83: is it for a permanant installation?
[22:46:53] <Casper> there might be another way, but I didn't checked the protocol...
[22:47:28] <Casper> you could get one of those obd-II to rs232 adapter... if you can figure out how to talk to it
[22:47:46] <Casper> that could also allow you to get other signals very easilly