#avr | Logs for 2013-12-18

Back
[03:12:45] <_abc_> Hello. I got a avrprog-mkII made in poland by and-tech and it only has Polish help pages. I need to make this work under windows probably with avrdude
[03:13:08] <_abc_> Can anyone say what setup is needed with avrdude for this unit? I assume it is skt500 like but I would like facts?
[03:13:25] <_abc_> I cant find any real data online. It uses LUFA for USB.
[03:25:31] <_abc_> Hello. Got disconnected from morgan due to massive lag. I have a LUFA based Polish made (and-tech) avrprog-mkII, can someone tell what it is to be used as under avrdude?
[03:25:41] <_abc_> stk500 I assume but a link or howto would be nice?
[03:27:43] <_abc_> Bah I finally found the English pdf of that thing, the website is only in Polish which I do not understand.
[03:27:58] <_abc_> I had to use a web search engine duh
[03:59:54] <_abc_> wow this channel is really bursting with activity. I guess I lost the lurking contest
[04:02:36] <OndraSter> ye
[04:02:40] <bitd> Yes _abc_ you did.
[04:02:49] <bitd> And now we are all going to talk again because you lost.
[04:04:39] <_abc_> thanks! OH THANKS! YESSS!
[04:04:46] <_abc_> brb need to reboot a balky dsl box
[04:12:25] <_abc_> Back
[04:13:00] <_abc_> So anyone know if the stupid avrprog mkII Polish LUFA based is stk500 compatible or what? It's impossible to guess from the pdf docs.
[04:13:03] <bitd> balky?
[04:13:17] <_abc_> balky what?
[04:13:25] <bitd> balky dsl box
[04:13:29] <_abc_> yes
[04:13:31] <bitd> Whats that mean.
[04:13:45] <_abc_> does not cooperate with its master and/or has unapproved masters ;)
[04:13:51] <_abc_> the real master being me
[04:14:00] <bitd> Rofl.
[04:15:04] <Tom_itx> first of all _abc_, under windows you will need new firmware for the programmer if you plan to use avrdude
[04:15:17] <_abc_> I know I have the install pdf from the programmer maker
[04:15:27] <_abc_> he has 100 screenshots showing all the steps excepting what I asked
[04:15:33] <Tom_itx> because studio uses JUNGO and avrdude uses LIBUSB
[04:15:47] <Tom_itx> so once you figure that out
[04:15:51] <_abc_> Sh*t I will have to go to a windows machine and install that there
[04:15:57] <_abc_> do not have a windows machine for this here
[04:15:58] <Tom_itx> you need to load the LIBUSB driver in windows
[04:16:12] <Tom_itx> i wouldn't recomend doing that
[04:16:26] <_abc_> This is for a clueless person who will use it on windows
[04:16:40] <Tom_itx> then you should use studio at least for downloading
[04:16:43] <bitd> Ewww. Windows.
[04:16:48] <_abc_> too complex for said person
[04:16:56] <_abc_> I prefer a batch solution but I have to set it up
[04:17:07] <megal0maniac> I think studio can be scripted
[04:17:08] <_abc_> It is not my work, but someone has to carry out the garbage too. Sigh.
[04:17:14] <_abc_> Too complex.
[04:17:20] <_abc_> dude will be scripted, not studio
[04:17:27] <megal0maniac> No more complex than scripting avrdude
[04:17:32] <_abc_> flatly no
[04:17:39] <megal0maniac> atprogram
[04:17:48] <megal0maniac> But okay
[04:17:49] <_abc_> burn.bat with dude command inside will be what will be used
[04:18:14] <yunta> you can update firmware of that thing on linux too
[04:18:24] <_abc_> do not want to update ANYTHING
[04:18:27] <_abc_> will not touch anything
[04:18:40] <yunta> sounds like pita
[04:18:40] <_abc_> will simply provide a bat file which works, show it works, and severe contact
[04:19:03] <_abc_> I am not a IT support person, I will NOT do IT stuff on windows in support of my humble project which simply consists in a hex file I supply
[04:19:12] <_abc_> yunta: a very large one
[04:19:15] <megal0maniac> _abc_: We're saying YOU must change the firmware
[04:19:17] <Tom_itx> http://tom-itx.dyndns.org:81/~webpage/boards/USBTiny_Mkii/USBTiny_Mkii_User_manual_index.php
[04:19:24] <Tom_itx> read thru that and see if it helps
[04:19:26] <_abc_> flatly, terminally, NO UPDATES
[04:19:30] <yunta> _abc_: sudo ${AVRDUDE} -c avrisp2 -p x128a4 -P usb -e -U boot:w:main.bin:r
[04:19:34] <Tom_itx> the part about using avrude anyway
[04:19:34] <_abc_> Tom_itx: thanks for the line
[04:19:36] <_abc_> *link
[04:19:44] <yunta> _abc_: this is what I use with that polish thingy
[04:19:54] <_abc_> yunta: thanks, will try it
[04:19:59] <_abc_> ON WINDOWS BAT
[04:20:14] <Tom_itx> shoulda got one of mine :D
[04:20:40] <_abc_> I did not buy that thing, did not recommend it
[04:20:47] <_abc_> Someone grabbed it and said it will work okay
[04:20:57] <megal0maniac> _abc_: It will
[04:21:05] <yunta> it works ok for me
[04:21:13] <Tom_itx> yeah it should work
[04:21:14] <megal0maniac> Might have to fix it, but it will work ;)
[04:21:14] <yunta> better than avrdragon actually....
[04:21:18] <Tom_itx> heh
[04:22:08] <megal0maniac> I <3 jtagice3
[04:22:10] <Tom_itx> _abc_, don't use my firmware on it though because the pinouts may be different
[04:22:40] <_abc_> don't worry I will not change or touch anything.
[04:22:45] <megal0maniac> Just waiting for avrdude to use HID instead of silly filter drivers
[04:22:47] <_abc_> ever. On that thing.
[04:23:08] <_abc_> Okay so what drivers do I need to install besides avrdude? That filter thing? Net?
[04:23:13] <_abc_> Jungo?
[04:23:19] <Tom_itx> no not jungo
[04:23:25] <Tom_itx> that's strictly for studio
[04:23:31] <_abc_> ah so no jungo needed? Just the one supplied with avrdude?
[04:23:32] <Tom_itx> you need libusb
[04:23:57] <Tom_itx> the new ones should have that filter thing built in
[04:24:09] <Tom_itx> i had some issues with it
[04:24:13] <_abc_> http://www.and-tech.pl/MKII/avrdude-5.8.zip can you check that this zip contains all I need please?
[04:24:22] <Tom_itx> but if you're not using studio you should be fine
[04:24:24] <_abc_> this is the original download for that programmer
[04:24:29] <_abc_> not using studio
[04:24:32] <megal0maniac> I quite like the metal enclosure
[04:24:39] <_abc_> what metal?
[04:24:43] <_abc_> it is plastic...
[04:24:50] <megal0maniac> http://anderian.nazwa.pl/www_wordpress/wp-content/uploads/2012/10/mkii_small.png
[04:24:53] <_abc_> DB25 shell, double ended, plastic
[04:24:55] <megal0maniac> Oh, right
[04:25:02] <megal0maniac> Ew. Shiny plastic
[04:25:07] <_abc_> exactly
[04:25:20] <_abc_> and conductive in case you feel like touching something on the desk
[04:25:53] <_abc_> Tom_itx: did you look please? Is that zip all I need?
[04:25:56] <megal0maniac> This programmer has angered you
[04:26:04] <Tom_itx> i didn't look
[04:26:16] <_abc_> No, the person who got it and bestowed this task on me did
[04:26:33] <megal0maniac> _abc_: The zip looks good
[04:26:35] <_abc_> Customers and users never do what you tell them to excepting as a last resort and always blame you.
[04:26:39] <_abc_> megal0maniac: ;)
[04:26:42] <_abc_> what about inside it...
[04:27:08] <megal0maniac> That's what I meant
[04:27:09] <Tom_itx> you need avrdude 5.10 at least
[04:27:22] <_abc_> why do they say 5.8?
[04:27:26] <_abc_> whom do I trust?
[04:27:28] <Tom_itx> ask em
[04:27:39] <_abc_> That is ridiculous as you know
[04:27:39] <megal0maniac> Although I think giveio is for bit-banging parallel ports
[04:27:50] <_abc_> well avrdude does stk200 too
[04:27:59] <Tom_itx> it's been too long for me to remember why 5.10 and beyond but it was a very good reason :)
[04:28:00] <megal0maniac> And many others
[04:28:16] <megal0maniac> _abc_: You should be safe just replacing the .exe
[04:28:24] <megal0maniac> Maybe the avrdude.conf too
[04:29:15] <Tom_itx> i think it had to do with device support
[04:30:07] <Tom_itx> Avrdude 5.10 support for ISP, PDI and TPI
[04:31:04] <_abc_> Maybe this version is altered by and-tech for their device?
[04:31:28] <Tom_itx> maybe
[04:31:31] <megal0maniac> Doubt it
[04:31:35] <Tom_itx> me too
[04:31:37] <Tom_itx> really
[04:31:53] <megal0maniac> Much easier to modify the firmware
[04:32:23] <megal0maniac> Stupid, and more effort, to rely on a certain version of avrdude instead of making it compatible
[04:32:30] <_abc_> I assume the mods would be windows related
[04:32:38] <Tom_itx> avrdude -c avrisp2 -P usb -p t10 -v -U flash:w:C:\avrtest\Tiny10_asm\t10blink.hex:i
[04:32:45] <_abc_> Is avrdude-gui.exe runnable as cli app in a batch file?
[04:32:46] <Tom_itx> something like that is what i use
[04:32:55] <Tom_itx> you don't need the -v
[04:32:59] <_abc_> I know
[04:33:04] <_abc_> Is avrdude-gui.exe runnable as cli app in a batch file?
[04:33:14] <megal0maniac> Why not just avrdude.exe
[04:33:17] <Tom_itx> avrisp2 is the device
[04:33:25] <_abc_> because it is not in that package megal0maniac
[04:33:46] <Tom_itx> heck, grab avrdude from ardweenie
[04:33:51] <Tom_itx> i know it works
[04:33:52] <_abc_> no
[04:33:54] <megal0maniac> It IS in that package
[04:33:54] <Tom_itx> with mine
[04:34:14] <_abc_> the purpose of this exercise is to carefully, completely, and finally remove and prevent any possiblity that I will ever touch that thing again
[04:34:18] <Tom_itx> they'll have the driers you need too
[04:34:25] <_abc_> megal0maniac: okay then I apologize, I will use that
[04:34:26] <Tom_itx> you know you will
[04:34:57] <_abc_> by that thing I mean the windows machine where this gets installed as well as that particular programmer
[04:35:06] <Tom_itx> you know you will
[04:35:10] <Tom_itx> :D
[04:35:17] <_abc_> and that means NO upgrades, NO changes from default config, NO kind of mods
[04:35:23] <_abc_> plain vanilla or not at all
[04:35:27] <Tom_itx> uh huh
[04:35:49] <_abc_> If it does not work I will be glad to suggest he return the programmer and get another, perhaps one of yours, perhaps one of mine
[04:36:05] <Tom_itx> it should work ok
[04:36:13] <_abc_> right.
[04:36:17] <_abc_> Okay guys you really helped.
[04:36:24] <Tom_itx> if it doesn't, i'll blame you
[04:36:31] <_abc_> Do I need to copy the avrdude dlls into system32 or not?
[04:36:50] <Tom_itx> avrdude has no dlls
[04:37:15] <_abc_> libusb0.dll
[04:37:26] <Tom_itx> install it
[04:37:42] <_abc_> do I have to or can it stay where it is please?
[04:37:54] <Tom_itx> i don't care where you put it
[04:38:06] <_abc_> I don't know what you care about, I am asking about avrdude.exe
[04:38:13] <Tom_itx> ask it
[04:38:28] <Tom_itx> i can't remeber is what i'm telling you
[04:38:38] <_abc_> thanks
[04:39:05] <_abc_> -p x128a4 for avrdude is what, in a usb context?
[04:39:10] <_abc_> ah cpu selection
[04:39:11] <Tom_itx> when it asks for a new device driver tell it you have one and you want to install it manually
[04:39:23] <_abc_> Tom_itx: ah ok
[04:39:28] <_abc_> but there is no inf file?
[04:39:43] <Tom_itx> hardware setings
[04:40:05] <Tom_itx> in device manager
[04:40:14] <Tom_itx> force it or it may assign the wrong one
[04:40:20] <_abc_> I know
[04:40:35] <Tom_itx> i'm out
[04:40:45] <Tom_itx> 4am
[04:40:46] <_abc_> thankthanks
[04:41:34] <_abc_> ah ok there is install_giveio.bat which does the right thing in the package
[07:03:24] <zmo> hi!
[07:04:42] <Epsilon-Auriga_> hello zmo
[07:05:01] <zmo> does anybody know about a timer settings cheat sheet, because everytime I want to setup an ISR routine, I struggle to do the right settings, crawling through the datasheet and the overlengthy tutorials on the subject
[07:05:31] <Epsilon-Auriga_> I just read the datasheet.
[07:05:33] <Epsilon-Auriga_> it's all in there.
[07:06:24] <zmo> Epsilon-Auriga_ - I find that the timer settings are a bit messy in the datasheet
[07:07:17] <Epsilon-Auriga_> have you looked at avr130 setup and use of the avr timers
[07:07:18] <Epsilon-Auriga_> ?
[07:07:27] <Epsilon-Auriga_> http://www.atmel.com/Images/doc2505.pdf
[07:07:58] <Epsilon-Auriga_> it is older and all the examples are in assembly
[07:08:09] <Epsilon-Auriga_> 16 pages of what and how on avr timers.
[07:08:24] <Epsilon-Auriga_> probably doesn't hit some of the newer stuff but for basic timer functionality it works great.
[07:08:31] <zmo> ok
[07:09:10] <Epsilon-Auriga_> http://maxembedded.com/2011/06/24/avr-timers-timer0-2/
[07:09:23] <Epsilon-Auriga_> and a site with plenty of info and tutorial.
[07:10:51] <zmo> thing is, when I use timers, I'm always afraid of regressions (like choosing the wrong timer that had something else already using it), and I still struggle to remember the correct settings to what I need, and I'm getting tired of reading explainations all over again each time I'm using them...
[07:11:08] <zmo> ah, right, the maxembedded is one of the best I went through in the past, thanks
[07:11:25] <Epsilon-Auriga_> I don't remember it all...I just know where to find it in the datasheet.
[07:11:51] <Epsilon-Auriga_> if you want it abstracted for you so you just tell it to count for 30 milliseconds and go beep then go ardweeny
[07:12:24] <zmo> well, it's only been a few months I'm needing to do stuff in timers
[07:12:43] <zmo> so I guess, a few more months and the logic will fit in my tiny head
[07:13:11] <Epsilon-Auriga_> a simple cheet sheet doesn't exist that I know of. avr timers are rather complex and few people ever use them to their full extent.
[07:13:54] <Epsilon-Auriga_> I've been playing with avr for 10+ years and timers still confusticate me sometimes.
[07:14:32] <zmo> damn
[07:15:08] <zmo> I guess if I write a cheatsheet/documentation about it, it will help me remember things :-)
[07:15:21] <zmo> (as reading was not enough, maybe writing will help remember more stuff :-p)
[07:15:37] <Epsilon-Auriga_> I don't use timers a lot and when I do I'm always referring to the datasheets.
[07:16:23] <Epsilon-Auriga_> heck, I have built a copier out of several old ones I acquired from work just so I could print out datasheets.
[07:17:55] <zmo> actually, I'm not sure I can do what I want: I'd love to use timers to control a LED scanner made of LEDs driven through I2C... do you think that sending i2c commands from a timer is a good idea?
[07:18:34] <Epsilon-Auriga_> all depends on what else the chip is supposed to be doing in the meantime
[07:19:00] <Epsilon-Auriga_> along with how fast the timer interrupt trips and how long it takes to send your command.
[07:20:10] <zmo> well, what I really need is to have the i2c command sent really regularly, not having whatever I'm doing elsewhere slowing it down
[07:20:38] <zmo> I'm thinking on setting the ISR interrupt about every 100ms
[07:21:23] <zmo> and the chip will be doing a lot of stuff on SPI and also on I2C
[07:21:24] <Epsilon-Auriga_> would love to stay and work it out but have to go to work.
[07:21:29] <zmo> ok
[07:21:54] <zmo> thank you
[07:37:23] <Tom_itx> he should get rid of the horizontal lines scanning the page. god damn that's annoying
[07:37:53] <Tom_itx> detracts from any useful content
[08:15:56] <zmo> Tom_itx - yeah
[08:16:04] <zmo> Tom_itx - and can trigger epileptic crises :-)
[08:40:51] <beaky> hello
[09:05:44] <fwas> atmega168a-au has 3 GND pins, do I need to connect all 3 pins to the ground or connecting one of them to ground is enough?
[09:07:02] <tzanger> connect all power pins to the correct supply
[09:07:13] <tzanger> always, on any device, unless the documentation CLEARLY states otherwise
[09:07:29] <tzanger> they don't throw extra ground pins in there because they have nothing better to do with the pins
[09:08:12] <fwas> tzanger, thank you. how about the unused pins? is it okay to leave them unconnected or is it better if I connect them to the GND?
[09:08:27] <fwas> I mean unused pins like PD0 PD1 etc
[09:09:01] <tzanger> if you make them outputs and drive them high or low, you can leave them unconnected
[09:09:39] <fwas> thank you
[09:10:09] <beaky> anyone know of any avrs that run on 15v
[09:10:14] <beaky> or higher
[09:11:56] <RikusW> beaky: the old 40xx cmos chips can use 15V, thats about the max it can use...
[09:12:11] <RikusW> as for avrs, happy barbecuing :-P
[09:12:22] <beaky> haha i ran avr on 15v once
[09:12:23] <tzanger> if you leave them as inputs either enable the internal pullup (if they have that feature) and leave them unconnected
[09:13:10] <tzanger> if you are going to connect them to either of the supply rails do it through a 100 ohm resistor. You never know when you might suddenly need it and it's trivial to pull off a surface mount resistor. less trivial to try and get rid of a solid connection to a plane, especially on a multilayer board. :-)
[09:13:37] <tzanger> also, you never know when you're going to fat-finger a port configuration and end up driving the port pin to a rail OTHER than the one you've connected it to
[09:13:53] <beaky> http://www.irf.com/product-info/datasheets/data/irlb3036pbf.pdf what does hard switched mean
[09:14:46] <tzanger> hard switched fets mean that you are able to supply significant gate current so that the mosfet does not spend much time in its "linear region"
[09:15:35] <beaky> aha
[09:15:40] <tzanger> mosfets have significant gate capacitance and when you turn one on or off you need to either charge or get rid of the charge on the gate quickly or the fet lingers in that "sort of on" region that can cause it to dissipate lots of power
[09:16:01] <beaky> yes someone should invent a mosfet with no linear region
[09:16:12] <beaky> i want to operate my mosfet nonlineary
[09:16:28] <tzanger> beaky: switch it hard
[09:16:37] <beaky> i wonder if avr is hard enough to switch a mosfet
[09:16:46] <beaky> or do i need special drive circuitry? maybe atmel has some appnote for this
[09:17:01] <tzanger> AVR can source/sink what, 20mA on a port pin, with a max of 20mA at any point for all pins on a port?
[09:17:21] <beaky> ah thats a lot
[09:17:33] <beaky> compared to many microcontroller i think
[09:17:54] <tzanger> nah, PICs are the same
[09:18:04] <tzanger> microprocessors are generally unable to drive very much current
[09:18:16] <beaky> dont the io ports have special high current mosfets
[09:18:57] <tzanger> but check your datasheets, see how much charge that FET typically has on its gate for a given gate voltage and calculate how much current you need to source or sink to get rid of that charge, then figure out how long it'll take at that given current level
[09:19:02] <tzanger> it's not hard, but it is work
[09:19:17] <tzanger> beaky: most microcontrollers have higher current port pin circuitry yes
[10:37:33] <Casper> N1njaneer jason replied
[10:37:49] <Casper> said the latest firmware fix it
[10:37:50] <Casper> but
[10:38:03] <Casper> I have V00.03.00.08.00.01.01
[10:38:42] <Casper> and the one he sent me is: 00.01.02.00.02
[10:38:57] <Casper> weird... they may not be following any real standard?
[10:56:06] <R0b0t1> Who needs standards?
[10:56:13] <bsdfox> maybe the endianness is different :)
[10:58:38] <Casper> possibly, after all, they are chinese, so who knows... beside, nobody beside them know how to read what they write anyway
[14:29:17] <Tom_itx> they don't?
[14:30:53] <beaky> is there avr with dac
[14:30:58] <beaky> that is not atxmega
[14:30:59] <twnqx> yes
[14:31:03] <beaky> or avr32
[14:32:27] <yunta> what's wrong with xmega?
[14:33:30] <twnqx> it's expensive
[14:33:38] <Tom_itx> compared to arm
[14:33:41] <twnqx> http://www.atmel.com/devices/ATTINY441.aspx?tab=parameters
[14:33:48] <Tom_itx> it doesn't have much of a niche
[14:35:24] <Tom_itx> i wonder if dude got his programmer working
[15:24:00] <megal0maniac_afk> twnqx: xmega is cheaper than regular mega
[15:24:21] <ambro718> many ARMs are also cheaper
[15:24:35] <megal0maniac_afk> That doesn't mean xmega is expensive
[15:24:54] <megal0maniac_afk> Unless you're saying that megas are REALLY expensive
[15:24:57] <x29a> seldomly, ARMs cost and arm and a lag
[15:27:02] <specing> http://eu.mouser.com/Semiconductors/Integrated-Circuits-ICs/Embedded-Processors-Controllers/Microcontrollers-MCU/_/N-a86ge?P=1yzug2lZ1yyp23wZ1yykucuZ1yzud1pZ1yzmxr3Z1yzud8sZ1yztkjiZ1yzmn2iZ1yzonn5Z1yznfaeZ1yznfajZ1yy22jsZ1yzud1cZ1yzudvyZ1yzrbilZ1yzsp20Z1yzudi9Z1yzudc0Z1yzuqehZ1yyfreqZ1yzf0obZ1yzuda4Z1yzud9hZ1yzud54Z1yzud55Z1z0z63x
[15:27:12] <specing> mfw 8-PDIP ARM
[15:29:37] <twnqx> lol
[15:29:43] <twnqx> i knew about thw 28pin
[15:29:48] <twnqx> but 8pin is news to me :P
[15:31:37] <megal0maniac_afk> Still waiting for my SAM D20...
[15:32:03] <megal0maniac_afk> abcminiuser has been quiet lately. Must be home for the holidays, hunting for jobs
[15:33:16] <megal0maniac_afk> Ooh, I have estimated ship dates now
[15:33:47] <megal0maniac_afk> Sample request made in October, ship date is February
[15:35:13] <specing> Fastest time to market ever!
[15:35:51] <megal0maniac_afk> It's fresh silicon. Everything else was in stock and arrived pretty quickly
[15:36:29] <specing> tell us if it was still warm when it arrives
[15:38:56] <megal0maniac_afk> Yes sir!
[15:52:39] <MannImMond> megal0maniac_afk: did you order samples only or xplained boards?
[16:02:25] <jnd> Tom_itx: hi, I received your programmer today, packages get delayed before holidays
[16:48:24] <OndraSter_> any smart maths guy? I need to integrate x^3/(x-1)^100 but there is something fishy about it... trying to make it into partial fractions
[16:49:01] <OndraSter_> I know the result, but don't know how to get to it :D
[16:49:02] <N1njaneer> What do you mean by "integrate" in tha context?
[17:03:25] <OndraSter_> integral of that*
[17:04:19] <OndraSter_> http://clip2net.com/s/6pVbUc
[17:04:51] <OndraSter_> wolfram says this
[17:04:51] <OndraSter_> but - how did he come to those numbers?
[17:04:51] <OndraSter_> it*
[17:06:07] <OndraSter_> I've been trying to see something in it for the past 3 hours
[17:06:07] <OndraSter_> and I keep failing
[17:09:15] <OndraSter_> @ N1njaneer (if you are still upto it)
[17:09:16] <OndraSter_> I did the first one, took two A4 papers... two more left and they got exponentially harder to work out the basic idea
[17:18:28] <OndraSter_> the result equals the... somebody's triangle
[17:18:28] <OndraSter_> pascal triangle?
[17:18:36] <OndraSter_> but - why :)
[17:19:17] <OndraSter_> well I am giving up for today, need to get up in a few hours, will do it tomorrow
[17:48:35] <Tom_itx> jnd i forgot where you were
[17:58:13] <beaky> if i burn an avr, is there a way to repair it?
[18:00:12] <hackvana> Define burned
[18:00:28] <Casper> beaky: stop trolling
[18:00:56] <beaky> applied +15v on it
[18:00:58] <hackvana> beaky: You may need to unburn it with high voltage
[18:01:26] <hackvana> Which pin did you put 15v on? (Two possible answers: "RESET" and "any other pin not RESET")
[18:02:19] <beaky> other pins
[18:02:22] <beaky> vcc
[18:05:18] <Casper> so maybe he need to apply -10V for the exact same time to balance it out?
[18:06:28] <hackvana> other pins == you let the smoke out, thank you for playing
[18:48:59] <jnd> Tom_itx: I sent you mail as reply to that order
[18:50:16] <Tom_itx> so you did
[18:51:14] <Tom_itx> 12 days isn't so bad
[18:52:09] <jnd> yeah, as long as it would arriver before my vacation, it's good :)
[18:57:06] <jnd> thank you, I hope I'll use it soon
[18:57:19] <Tom_itx> np, hope you do too
[18:58:05] <Tom_itx> a word of warning, the slide switch is kinda delciate. hindsight i would have used a slightly bigger one
[19:10:40] <Epsilon-Auriga_> we should make an avr degausser with a tesla coil...
[19:24:46] <Casper> hmm yeah
[19:24:57] <Casper> and make it sing!
[19:25:16] <Casper> it would sing rick roll!
[19:30:34] <Tom_itx> Casper do you do linux?
[19:31:58] <Casper> last thing I did on my comp is to go to the desktop 2, in xterm, and scp some file over ssh
[19:32:06] <Casper> then start smbd
[19:32:11] <Casper> but no, I do not :D
[19:32:33] <Tom_itx> i need to echo something in quotes that contain a " double quote
[19:32:56] <Tom_itx> i've tried preceeding it with \ slash and ' single quotes with no luch
[19:33:24] <Casper> try double \
[19:33:28] <Casper> like \\"
[19:33:40] <Tom_itx> i don't think that will do it but i'll try it once
[19:34:42] <Tom_itx> no it puts \ there instead
[19:35:31] <Casper> bash command?
[19:35:36] <Tom_itx> yes
[19:35:53] <Tom_itx> i tried \" too and it puts the \ there
[19:36:03] <Casper> weird
[19:36:06] <Casper> echo \"
[19:36:06] <Casper> "
[19:36:12] <Casper> that's my result
[19:36:24] <hackvana> Tom_itx: What are you trying to do
[19:36:33] <Tom_itx> thing is, it's inside double quotes
[19:36:49] <Tom_itx> fix my logs so google stays out
[19:37:06] <Tom_itx> for F in *.html; do (head -5l $F; echo ' <meta name="robots" content="noindex">'; tail -n +6 $F) > $F.new; done
[19:37:06] <Casper> work for me... what's your actual line?
[19:37:07] <hackvana> It depends on what you want to do.
[19:37:08] <hackvana> echo hi\"there
[19:37:11] <Tom_itx> that's the whole line
[19:37:19] <Tom_itx> and it works all but the quotes
[19:37:20] <hackvana> If you help me understand what you want, I'll help you.
[19:37:27] <Tom_itx> ^^
[19:37:31] <Tom_itx> is exactly what i want
[19:37:50] <hackvana> Ok, so if one of your html files has a space in it, the head will break, as will the >
[19:37:52] <Tom_itx> in the <meta name is where it's screwing up
[19:38:00] <hackvana> So put double quotes around it
[19:38:23] <Tom_itx> the line works all but adding the line in correctly
[19:38:24] <hackvana> echo ' <meta name="robots" content="noindex">' works fine for me
[19:38:25] <Casper> echo ' <meta name="robots" content="noindex">' ← so that's what don't work?
[19:38:33] <Epsilon-Auriga_> % echo "The quote for today is "\"TGIF\"
[19:38:33] <Epsilon-Auriga_> The quote for today is "TGIF"
[19:38:36] <Tom_itx> no
[19:38:38] <Casper> work for me too
[19:38:42] <hackvana> Suggest: for F in *.html; do (head -5l "$F"; echo ' <meta name="robots" content="noindex">'; tail -n +6 $F) > "$F.new"; done
[19:39:25] <Tom_itx> how is putting the file in quotes gonna help?
[19:39:25] <hackvana> Oh, I missed one: for F in *.html; do (head -5l "$F"; echo ' <meta name="robots" content="noindex">'; tail -n +6 "$F") > "$F.new"
[19:39:38] <Tom_itx> it makes the new file fine
[19:39:42] <hackvana> If one of your html files has a space in it, the head will break, as will the tail and >
[19:39:44] <Epsilon-Auriga_> hackvana: try echo "hi" \"there
[19:39:50] <beaky> can i directly drive a led with avr
[19:39:55] <beaky> should i?
[19:39:57] <Tom_itx> no
[19:39:58] <hackvana> Epsilon-Auriga_: Why? That won't work
[19:40:07] <hackvana> beaky: Maybe
[19:40:24] <hackvana> If you're running your AVR on 3V, and you're driving a blue or white LED, yes.
[19:40:36] <beaky> http://www.youtube.com/watch?v=fhvkvIEwESI
[19:40:36] <hackvana> Otherwise you will need a current limiting resistor
[19:41:14] <Epsilon-Auriga_> http://www.grymoire.com/Unix/Quote.html about 3/4 down the page it talks about what you want to do.
[19:41:18] <hackvana> Tom_itx: Can you show me what's in the new file?
[19:42:08] <Tom_L> gimme the line you want me to test
[19:43:10] <hackvana> F=foo.html; (head -5l "$F"; echo ' <meta name="robots" content="noindex">'; tail -n +6 "$F")
[19:43:19] <hackvana> Adjust F to suit
[19:43:58] <hackvana> If you're looking to insert a line into a large number of files, sed does this pretty well (one liner)
[19:45:00] <Tom_L> i'll try anything that will get the job done
[19:46:08] <hackvana> Tom_L: Works for me: http://pastebin.com/XyE70R3k
[19:46:23] <Tom_L> for F in *.html; do (head -5l $F; echo " <meta name="robots" content="noindex">"; tail -n +6 $F) > /home/tom-itx/test/new/$F; done
[19:46:33] <Tom_L> let's work from that line
[19:46:44] <Tom_L> i want to insert the metadata line
[19:46:57] <Tom_L> at line 5
[19:47:01] <Tom_L> in all the files
[19:47:11] <hackvana> Now you're mixing double and single quotes. You won't get a good result that way
[19:47:33] <Tom_L> i started from the original so you can edit it
[19:47:33] <hackvana> Actually, what I said isn't quite right
[19:47:58] <hackvana> You want the shell to see the " after echo and before ;, but not the others. So using double quotes in the middle as you've done isn't right.
[19:48:01] <hackvana> Please try my example
[19:48:18] <Tom_L> <meta name="robots" content="noindex">
[19:48:24] <Tom_L> is what i want to insert
[19:48:35] <hackvana> You can do it like this: echo " <meta name='robots' content='noindex'>"
[19:48:48] <hackvana> Or like this: echo ' <meta name='robots' content='noindex'>"
[19:48:52] <Tom_L> does html accept single quotes?
[19:49:10] <Tom_L> i can do that just fine
[19:49:10] <hackvana> Or if you must only use double quotes, like this: echo " <meta name=\"robots\" content=\"noindex\">"
[19:49:17] <Tom_L> that does not work
[19:49:22] <Tom_L> i tried it already
[19:52:44] <Tom_L> mmm it worked that time
[19:52:51] <Tom_L> using single quotes with echo
[19:53:03] <Tom_L> i swear i tried it before...
[20:02:12] <Epsilon-Auriga_> you have to close the quotes before escaping a quote character.
[20:11:07] * Casper brains explode
[20:11:23] <Casper> Description Software Version forward compatibility, that is what the previous version of the software can be upgraded. (1) When an incompatible version before and after the occurrence of the problem, between the front and rear versions separated by bold colored lines. (2) The red thread software: software data structure changes, causing the user data may not be compatible, you need to use a tool to convert; (3) of the same color thick line: Descriptio
[20:11:23] <Casper> n compatible between different modules; does not cross a thick line upgrade.
[20:11:40] <Casper> thanks google translate from chinese to english
[20:13:25] <hackvana> Tom_itx: There?
[20:13:35] <Tom_itx> yea i got it to work
[20:14:15] <hackvana> Great
[20:15:00] <Tom_itx> i wonder if there's a limit on how many files it will process
[20:19:00] <Casper> yes there is one
[20:19:12] <Casper> depending on how you called it
[20:19:21] <Casper> it may be 32k
[20:32:24] <megal0maniac_afk> MannImMond: Bare tqfp chips