#avr | Logs for 2015-02-01

Back
[00:02:43] <Tom_itx> thanks Casper i think one of those got it...
[00:03:15] <Casper> quite probably
[00:07:22] <rue_house> so, part of the reason that the arduino wav library dosn't work is because the buffer checks are on an interrupt handler with no trigger source
[00:07:53] <rue_house> this is actually typical of the source
[00:08:22] <Tom_itx> rue_house, i got my hand wheel today finally
[00:08:41] <Tom_itx> looks just like the first $$$ one
[00:08:51] <rue_house> excellent
[03:57:39] <NicoHood> any idea how to put this progmem function pointer array into another progmem pointer array? https://gist.github.com/NicoHood/33fff9771eefea4e5e50
[04:10:35] <Jartza> NicoHood: just a guess, but "static const PROGMEM callback* const pcint_callback_arrP[]" ?
[04:11:11] <NicoHood> Jartza: nah. what works is to put the first element into the P array
[04:11:12] <NicoHood> pcint_callback_arr0[0],
[04:11:21] <NicoHood> but i dont know how to access it then
[04:11:28] <NicoHood> callback c = (callback)pgm_read_word(pcint_callback_arrP + arrayPos);
[04:11:28] <NicoHood> ((callback)pgm_read_word(c + i))();
[04:11:31] <NicoHood> this gives problems
[04:11:41] <NicoHood> sorry for the bad paste :S
[04:12:01] <Jartza> well, at least adding the one const compiles ok
[04:16:02] <NicoHood> no idea how to solve it
[04:36:27] <NicoHood> if i include a .h file from another .h file then its just like if the 2nd file is merged in there?
[04:36:50] <NicoHood> I want to move the board definitions to another .h file, thatswhy i am asking
[04:47:37] <twnqx`> NicoHood: yes
[04:47:45] <Jartza> yep
[04:48:01] <twnqx`> NicoHood: i strongly recommend you use multiple inclusion protection in such a scenario, but i guess i don't have to tell you :)
[04:48:11] <Jartza> NicoHood: also good practice is to use circular inclusion protection
[04:48:13] <Jartza> ouch
[04:48:16] <Jartza> :)
[04:48:45] <twnqx`> :D
[05:55:24] <garulf> hi guys, newbie question: what is maximum voltage on an avr gpio pin? Vcc? Where can I find this info on the datasheet?
[06:05:31] <jacekowski> garulf: last pages
[06:06:11] <jacekowski> garulf: http://www.atmel.com/images/atmel-2486-8-bit-avr-microcontroller-atmega8_l_datasheet.pdf
[06:06:20] <jacekowski> garulf: page 242
[06:06:46] <jacekowski> garulf: for example Vcc+0.5V
[06:10:12] <garulf> jacekowski, thanks!
[10:09:39] <totalanni> hey guys
[10:09:52] <totalanni> is it possible to use a uno for PDI programming?
[10:10:26] <Lambda-Aurigae> probably.
[10:10:30] <Lambda-Aurigae> if you program it properly.
[10:10:49] <Lambda-Aurigae> not like it requires any strange voltages or anything for PDI.
[10:10:55] <twnqx> probably properly
[10:11:08] <twnqx> damn i am only slightly drunk and that causes issues
[10:11:19] <Lambda-Aurigae> solve the problem twnqx
[10:11:22] <Lambda-Aurigae> get more drunk!
[10:11:32] <totalanni> i couldnt find any sketches of a pdi programmer
[10:11:37] <totalanni> so im prob out of luck
[10:11:43] <totalanni> was just wondering if you guys knew anything
[10:11:59] <totalanni> just got a xmega board, and dont have a programmer that can prog it
[10:12:09] <Lambda-Aurigae> most people who would use pdi wouldn't be using ardweeny sketches.
[10:12:30] <totalanni> the damn docs say the bootloader on it will boot into prog mode if you hold sw0 while it boots
[10:12:33] <totalanni> but it doesnt
[10:12:34] <Lambda-Aurigae> the programmer that Tom_itx sells does pdi
[10:12:44] <totalanni> ive got one otw
[10:12:48] <totalanni> i just didnt want to wait
[10:13:51] <Lambda-Aurigae> so, read the datasheet and write a "sketch" for your ardweeny.
[10:15:09] <Lambda-Aurigae> the atxmega datasheet will tell you everything needed to know about pdi programming in order to write a program for an 8bit avr to do pdi programming.
[10:15:21] <totalanni> yeah
[10:15:23] <Lambda-Aurigae> but I suspect the xmega has a functional bootloader if you can figure out how to make it work.
[10:15:28] <totalanni> i dont know how to do that
[10:15:37] <Lambda-Aurigae> does it not enumerate when you put it into bootloader mode?
[10:15:39] <totalanni> Lambda-Aurigae: their was a problem with that line of xmega
[10:15:55] <totalanni> there is no way to get it to goto the bootloader
[10:16:02] <Lambda-Aurigae> oh.
[10:16:03] <totalanni> until you program the proper one on it
[10:16:05] <Lambda-Aurigae> oops.
[10:16:12] <totalanni> the docs said it was supposed to ship with one
[10:16:20] <totalanni> but there was some manufacturing error
[10:17:12] <totalanni> i wouldnt think a company like atmel would put out a whole line of bad boards
[10:17:19] <Lambda-Aurigae> it happens.
[10:17:24] <totalanni> but ive talked with 3 others with the same board, who had the same problem
[10:17:32] <Lambda-Aurigae> hell, intel has done so, ibm has done so, amd has done so.
[10:17:48] <totalanni> one of which talked to atmel and they told him "we are sorry, it happened"
[10:18:18] <totalanni> so for people like me, who were expecting to be able to program it with usb
[10:18:24] <totalanni> we get fucked cause we dont have a prog
[10:18:32] <Lambda-Aurigae> yup.
[10:18:34] <Lambda-Aurigae> time to learn.
[10:18:54] <totalanni> i tried to modify my usbasp
[10:19:01] <totalanni> managed to flash it with my uno
[10:19:14] <totalanni> couldnt get it to be found thou
[10:19:35] <Lambda-Aurigae> playing around with the vusb code can be touchy.
[10:20:03] <Lambda-Aurigae> http://szulat.blogspot.com/2012/08/atxmega-programmer-for-050.html
[10:20:19] <totalanni> yes
[10:20:23] <totalanni> thats what i used
[10:20:31] <totalanni> i followed the 3v diagram
[10:20:39] <totalanni> since my usbasp used it
[10:20:59] <totalanni> after flashing it sucessfully, avrdude didnt see the usbasp anymore
[10:21:02] <Lambda-Aurigae> unfortunately there are a dozen or more different usbasp circuits around the world.
[10:21:11] <totalanni> yea
[10:21:18] <totalanni> i bet they used custom code
[10:21:26] <Lambda-Aurigae> did you update the avrdude?
[10:21:27] <totalanni> so the official usbasp code wont work :(
[10:22:18] <totalanni> i dunno
[10:22:19] <Lambda-Aurigae> because baseline avrdude won't work with that modification it seems.
[10:22:31] <Lambda-Aurigae> on that page I posted.
[10:22:36] <totalanni> all of that was based off older avrdude
[10:22:44] <totalanni> i need 6.0.1 for my xmega
[10:23:04] <totalanni> will his .patch still work on different versions of avrdude?
[10:23:10] <Lambda-Aurigae> no clue.
[10:23:14] <totalanni> yeah
[10:23:16] <totalanni> im done with it
[10:23:25] <totalanni> ill wait for my programmer
[10:23:39] <totalanni> i was hoping for maybe an uno version
[10:23:41] <Lambda-Aurigae> never played with xmega and tried usbasp once, found it horridly slow, lacking, and useless for my purposes.
[10:23:51] <totalanni> cause my uno is easy to work with
[10:24:17] <totalanni> whats your thought on an avrisp mkII?
[10:24:30] <Lambda-Aurigae> they seem to work well, being as they are made by atmel.
[10:24:33] <Lambda-Aurigae> never had one to use.
[10:24:52] <totalanni> i think i got some cheap china clone knockoff
[10:25:00] <totalanni> http://www.ebay.com/itm/130957221330?_trksid=p2059210.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT
[10:25:03] <Lambda-Aurigae> I use 2 programmers..the one I got from Tom_itx and my original 10+ year old parallel port programmer.
[10:25:16] <Lambda-Aurigae> yeah..that's a clone.
[10:25:38] <Lambda-Aurigae> http://www.newark.com/atmel/atavrisp2/in-system-programmer-usb-8bit/dp/68T2065?mckv=s3bwknrBV|pcrid|57087235221|plid|&CMP=KNC-GPLA
[10:25:41] <totalanni> it says it does pdi, so that is all that matters
[10:25:43] <Lambda-Aurigae> that's what they look like.
[10:26:00] <totalanni> thats what my usbtinyisp looks like
[10:26:01] <Tom_itx> mine does ISP TPI & PDI
[10:26:05] <Lambda-Aurigae> if it is functional, go for it.
[10:26:49] <totalanni> http://www.ebay.com/itm/111578155558?_trksid=p2059210.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT
[10:27:04] <Tom_itx> http://tom-itx.no-ip.biz:81/~webpage/boards/USBTiny_Mkii/USBTiny_Mkii_index.php
[10:27:21] <Lambda-Aurigae> that's not an official one..looks close but I doubt it is the real thing.
[10:27:53] <totalanni> it has a tiny chip in it
[10:27:59] <totalanni> but its def not the treal thing
[10:28:07] <totalanni> i couldnt get it to do pdi
[10:28:07] <Lambda-Aurigae> the atmel one says AVR on the case.
[10:28:15] <totalanni> or i just wasnt using avrdude right
[10:28:35] <Tom_itx> for a mkii you set avrdude to avrisp2
[10:28:46] <totalanni> hummm
[10:28:52] <Lambda-Aurigae> and the real atavrisp2 doesn't look like it does pdi
[10:28:54] <Tom_itx> mine just works
[10:28:59] <totalanni> ty Tom_itx
[10:29:05] <totalanni> avrisp2 does pdi?
[10:29:12] <Tom_itx> not the older ones
[10:29:12] <Lambda-Aurigae> no.
[10:29:27] <Tom_itx> PDI is 3.3v
[10:29:29] <Tom_itx> xmegas
[10:29:55] <totalanni> my usbtinyisp has a power jumper
[10:30:01] <totalanni> to disable vcc
[10:30:12] <totalanni> can i just power the device through its own power?
[10:30:22] <Tom_itx> mine does too
[10:30:40] <Lambda-Aurigae> your i/o has to be 3.3V also.
[10:30:42] <Tom_itx> it powers itself from the USB but the target is self powered with the switch
[10:30:51] <Tom_itx> so it's safe at 3.3v
[10:30:59] <Tom_itx> i've programmed chips with it at 1.7v
[10:31:02] <Lambda-Aurigae> if you feed 5V to the i/o or programming pins on an xmega you will cause problems.
[10:32:01] <totalanni> yea
[10:32:07] <totalanni> mine is usbtinyisp
[10:32:17] <Tom_itx> that won't do PDI
[10:32:26] <Lambda-Aurigae> not without modifications.
[10:32:35] <Tom_itx> the tinyisp will do ISP
[10:32:37] <Lambda-Aurigae> both hardware and software.
[10:32:45] <Tom_itx> hardly worth modifying
[10:32:46] <totalanni> Tom_itx, how much are your progs?
[10:33:00] <Tom_itx> http://tom-itx.no-ip.biz:81/~webpage/commerce/commerce_index.php
[10:33:03] <Tom_itx> take your pick
[10:33:24] <Tom_itx> some like the box, they're both the same
[10:33:31] <Lambda-Aurigae> I like the box.
[10:33:32] <Lambda-Aurigae> it's cute.
[10:33:33] <totalanni> where are you located?
[10:33:37] <Tom_itx> usa
[10:33:41] <totalanni> ...
[10:33:42] <Tom_itx> i ship nearly anywhere
[10:33:46] <Tom_itx> where are you?
[10:33:47] <totalanni> i saw the $$$
[10:33:49] <totalanni> but where?
[10:34:02] <totalanni> NC
[10:34:05] <Tom_itx> oh i'm in KS
[10:34:14] <Lambda-Aurigae> IA here.
[10:34:21] <Tom_itx> been to NC though :)
[10:34:26] <totalanni> i was just triyng to figure out shipping
[10:34:58] <Tom_itx> i have a set shipping fee, it covers packaging & cost to mail etc
[10:35:06] <Tom_itx> i lose money shipping overseas
[10:35:07] <Lambda-Aurigae> I have lived in both KS and NC
[10:35:12] <totalanni> i should have said "transit time"
[10:35:17] <Tom_itx> well i was from IA so pfft!
[10:35:21] <Tom_itx> :)
[10:35:41] <Tom_itx> not very long
[10:36:56] <totalanni> so is yours just only 3.3v?
[10:37:02] <Tom_itx> no
[10:37:08] <Tom_itx> it's got a buffer chip
[10:37:13] <totalanni> i didnt see any jumpers
[10:37:20] <Tom_itx> it will program at 5v for ISP etc
[10:37:25] <Tom_itx> there's a switch on the side
[10:37:36] <totalanni> ic that now
[10:37:43] <Tom_itx> but you move the switch to program xmegas
[10:37:57] <Tom_itx> everything else programs at 5v that i know of
[10:38:19] <totalanni> how do you ship?
[10:38:23] <totalanni> normal post or prio?
[10:38:23] <Tom_itx> USPS
[10:38:46] <Tom_itx> it won't get there any quicker either way
[10:39:52] <Tom_itx> i use standard post
[10:41:03] <Tom_itx> are you using linux or windows?
[10:41:55] <totalanni> windows 8.1
[10:43:34] <Tom_itx> with avrdude?
[10:43:38] <totalanni> yes
[10:44:00] <totalanni> is that a problem?
[10:44:05] <Tom_itx> the reason i ask is there is one situation that you need different firmware for due to a USB driver issue
[10:44:12] <Tom_itx> no problem
[10:44:26] <totalanni> the firmware is updateable through its own usb, right?
[10:44:30] <Tom_itx> but with windows and avrdude you need a different firmware loaded on mine
[10:44:37] <totalanni> like i dont have to use another programmer to program yours?
[10:44:39] <Tom_itx> if i know you're doing that i can preload that for you
[10:44:44] <Tom_itx> no
[10:44:58] <Tom_itx> mine you can update with no external hardware
[10:45:07] <totalanni> im gonna go ahead and bite the bullet
[10:45:08] <Tom_itx> all the files are on my site too
[10:45:40] <Tom_itx> would you like me to load it with the windows avrdude firmware ahead? otherwise you will need to switch it yourself
[10:45:48] <totalanni> yea
[10:45:53] <Tom_itx> i would actually suggest using studio with windows
[10:46:26] <Tom_itx> avrdude will work fine but it uses a different usb driver. windows uses jungo and avrdude uses libusb
[10:46:43] <totalanni> yes
[10:46:51] <totalanni> i can use atmel studio
[10:46:57] <totalanni> its what i compiled the hex with anyways
[10:47:11] <Tom_itx> if you switch back and forth JUST under WINDOWS you need to also change the firmware
[10:47:11] <totalanni> what about flip?
[10:47:26] <Tom_itx> that's just for loading usb chips
[10:47:30] <Tom_itx> using a bootloader
[10:47:35] <Tom_itx> i use that to load my firmware
[10:47:52] <Tom_itx> i have a page to explain how
[10:48:19] <totalanni> i only have $34 on my cc
[10:48:28] <totalanni> if i order the boxless one, you wanna throw me in a box?
[10:48:33] * totalanni goes nudge nudge
[10:48:36] <Tom_itx> nope
[10:48:53] <Tom_itx> takes too long to make them. i make those entirely myself
[10:49:03] <Lambda-Aurigae> hand crafted in the USA..
[10:49:04] <totalanni> o wow
[10:49:09] <totalanni> ok
[10:49:12] <totalanni> im not sweating it
[10:50:55] <Tom_itx> i can prove it too: https://www.youtube.com/watch?v=-CEqokrtFI4&feature=youtu.be
[10:51:01] <totalanni> woah
[10:51:02] <totalanni> tom
[10:51:06] <totalanni> i just fucked up
[10:51:12] <totalanni> some reason paypal still has my po box
[10:51:13] <totalanni> WTF
[10:51:20] <totalanni> coudl you refund me that purchase
[10:51:23] <totalanni> so i can redo it
[10:51:33] <totalanni> and you can easily print a label
[10:51:35] <Tom_itx> all you need is a different address?
[10:51:40] <Tom_itx> i can if you want
[10:51:49] <totalanni> i just figured u used paypal to print labels
[10:51:57] <Tom_itx> i don't
[10:52:01] <totalanni> ok
[10:52:08] <totalanni> want me to just give you the proper address here then?>
[10:52:17] <totalanni> its all the same to me, as long as i get it
[10:52:17] <Tom_itx> as soon as i boot the other pc you can
[10:52:19] <Lambda-Aurigae> that your mill there Tom_itx ?
[10:52:23] <Tom_itx> Lambda-Aurigae yes
[10:52:24] * Lambda-Aurigae is jealous.
[10:53:06] <Lambda-Aurigae> keeping my eyes out for one but they are way too expensive.
[10:53:09] <Tom_itx> i'll bb in a few... need to do something here then i'll get your info
[10:53:30] <Tom_itx> Lambda-Aurigae, you can find better for less i'm sure
[10:53:34] <totalanni> Tom_itx
[10:53:34] <Tom_itx> it's pretty lightweight
[10:53:45] <totalanni> ill just message you to it
[10:53:56] <Lambda-Aurigae> that would be perfect for what I need...but don't have more than 100 dollars to spend on one.
[10:53:58] <totalanni> if thats cool
[10:54:06] <Tom_itx> one sec
[10:54:17] <Tom_itx> gonna have you msg tom_l
[10:54:49] <totalanni> ^message that one?
[10:55:45] <Tom_L> yes
[10:56:24] <Tom_L> just the way you want the label
[10:57:31] <totalanni> Done
[10:57:38] <totalanni> Thanks Tom
[10:57:43] <Tom_itx> it will go out tomorrow AM
[10:57:50] <Tom_itx> you'll get an email
[10:58:10] <totalanni> your really close, so it will prob get here tue-wed
[10:58:29] <Tom_itx> yep that would be my guess
[10:59:48] <Tom_itx> are you gonna use studio or avrdude?
[11:00:00] <totalanni> tbh, studio seems much easier
[11:00:16] <totalanni> and if the files are on your site, it shouldnt be a problem
[11:00:43] <Tom_itx> ok i'll leave the stock firmware on it then
[11:01:54] <totalanni> ty :)
[11:04:11] <totalanni> cant wait
[11:04:33] <totalanni> will finally get this hardware bitcoin wallet programed
[11:12:07] <totalanni> Tom_itx
[11:12:14] <totalanni> so to reprogram yours
[11:12:24] <totalanni> i just hold the program button while plugging it in?
[11:12:38] <totalanni> since it doesnt appear to have a reset button?
[11:13:12] <totalanni> (sorry for bombing you with questions)
[11:13:20] <totalanni> Lambda-Aurigae: thanks for pointing me to toms way
[11:13:35] <Lambda-Aurigae> always glad to help.
[11:13:47] <Lambda-Aurigae> that will be a 5 dollar commission please.....
[11:14:25] <Lambda-Aurigae> :}
[11:14:56] <totalanni> :)
[11:16:43] <Tom_itx> no, you just plug it in then push the program button
[11:17:02] <Tom_itx> then use flip
[11:17:19] * twnqx flips Tom_itx
[11:17:27] <Tom_itx> select the chip, select the file, erase before programing and program
[11:17:34] * Tom_itx bounces twnqx
[11:17:40] <totalanni> easy enough
[11:18:28] <Tom_itx> you're doing xmega right?
[11:19:15] <totalanni> yea
[11:19:20] <totalanni> the xplained-c3
[11:19:21] <Tom_itx> i'll leave it set for those
[11:19:30] <totalanni> i read the target power part
[11:19:38] <totalanni> bout the switch
[11:19:46] <totalanni> in the manual
[11:20:33] <totalanni> atmel studio provides the driver for your programmer, correct?
[11:20:49] <Tom_itx> it's the avrisp mkii one yes
[11:21:10] <Tom_itx> it will detect it
[11:22:01] <totalanni> anyone know any good atmel boards with oleds on them?
[11:22:06] <totalanni> and a few buttons
[11:22:54] <Tom_itx> oleds are tricky to program
[11:23:07] <Tom_itx> they need to be powered up a certain way
[11:23:13] <Lambda-Aurigae> easily damaged if I recall correctly.
[11:23:15] <Tom_itx> or you will blow them
[11:24:17] <totalanni> this xplained-c3 seems about the best for the project then
[11:31:53] <totalanni> so exciting
[11:33:28] <Tom_itx> does that xplained board have a 10pin jtag header?
[11:33:39] <Tom_itx> you'll need to figure out the PDI pins for it
[11:33:46] <Tom_itx> i had to do that on the one i have
[11:33:51] <totalanni> no
[11:33:53] <totalanni> :)
[11:34:00] <Tom_itx> what's it got?
[11:34:02] <totalanni> your programmer seems perfect
[11:34:03] <totalanni> 6
[11:34:05] <Tom_itx> ok
[11:34:13] <totalanni> your manual has the exact pin layout
[11:34:26] <Tom_itx> i know :)
[11:35:53] <Tom_itx> ok, all tested set for PDI and ready to ship
[11:36:11] <totalanni> ty :)
[11:36:14] <totalanni> cant wait
[12:16:12] <Bundestrojaner> Good evening. Is ADSC cleared when the ADC has finished the conversion or after the result is in ADCL/ADCH?
[12:18:04] <Bundestrojaner> I wrote a program on a ATMega8 which starts the ADC, waits: while(ADCSRA&(1<<ADSC));
[12:18:04] <Bundestrojaner> Then it reads ADCL/ADCH. The result was always 0x0000.
[12:18:44] <Bundestrojaner> Now i read the result in the ADC_vect-Interrupt and I get the correct result
[13:21:51] <hypermagic> hello my friends
[13:28:58] <Bundestrojaner> hypermagic: hello
[13:33:17] <hypermagic> Bundestrojaner, yes you must ait conversion to be complete to be able to read the result
[13:33:50] <Bundestrojaner> hypermagic: I did wait till ADSC was cleared...
[13:34:26] <Bundestrojaner> hypermagic: i did while(ADCSRA&(1<<ADSC)); before reading the result-registers
[13:36:01] <hypermagic> http://www.robotplatform.com/knowledge/ADC/adc_tutorial_4.html
[13:36:19] <hypermagic> did you also configure the adc ?
[13:45:15] <Bundestrojaner> hypermagic: ofcourse. i only read 0x0000 after ADSC was cleared by the ADC.
[13:45:15] <Bundestrojaner> than i enabled RXCIE and read the register in the interrupt (nothing else changed) -> works
[16:19:25] <hetii> HI :)
[16:19:29] <hetii> Q: Is it possible to take broken hdd take a magnetick stuff from it and mount in some other hdd to grab those data from it ?
[16:20:09] <hetii> Or maybe build some data graber that could spin motor and grap bits directly from heads?
[16:20:50] <Tom_itx> i doubt it
[16:20:57] <specing> in theory
[16:22:16] <hetii> yep just wonder in theory
[16:22:17] <jacekowski> compliccated
[16:22:20] <jacekowski> but yes
[16:22:30] <jacekowski> depends what went wrong with it
[16:23:45] <hetii> well its not recognized in bios and its old IDE one, have no other model like this one and wonder if its could work
[16:24:23] <jacekowski> thing is, HDD internals are not exactly standard and there is not a lot known about them
[16:24:32] <jacekowski> how is the data arranged on the platters
[16:25:07] <jacekowski> there are some things that are sort of known
[16:25:29] <jacekowski> as in, it's most likely using some kind of NRZI encoding
[16:27:17] <hetii> so you think that it might just start boot in other hdd if they use the same encoding ?
[16:27:45] <hetii> or their some paired that definitly can work only just with the same model?
[16:29:38] <jacekowski> there is more to that
[16:29:42] <jacekowski> number of platters
[16:29:53] <jacekowski> on disk format that might be firmware dependant
[16:29:57] <jacekowski> version i mean
[16:31:45] <hetii> yep, ok I accept long time ago that probably don`t recover my old photos :)
[16:36:22] <hetii> ok some other question
[16:36:54] <hetii> I wonder how precision I could get from hdd head
[16:38:18] <hetii> The idea is to use such head as a part or CNC machine to get enought precision to be able to make lqfp packed on PCB
[16:39:20] <hetii> at the end of the day there will be biger area to control whole board and small that will calibrate it for small footprint
[16:42:12] <hypermagic> hetii, yes, they do it for $20/MB i think
[17:24:43] <Bundestrojaner> hetii: only if you have a verry good cleanroom at home
[17:26:02] <hetii> sure, and the same model of working hdd :(
[17:26:09] <hetii> and thats the point :(
[17:27:25] <specing> or you know
[17:27:31] <specing> you could have just made backups
[17:29:05] <hetii> it is hdd that was used by me maybe 7 years ago. I have even backup but was stolen :(
[17:31:21] <Bundestrojaner> i just learned a 12" subwoofer can play 1KHz quite loud...^^
[17:32:56] <Casper> but quite inneficiently
[17:33:19] <Casper> I doubt that my 15" sub would be able to...
[17:33:23] <Casper> it's way too stiff
[17:33:56] <LeoNerd> PHRASING
[17:36:46] <Bundestrojaner> Casper: i thought so too. I wanted to see the impulseresponse on my scope. So i connected the speaker with 10R in series to a H bridge and sent the following signal to it: +12V/1ms, 0V/1ms, -12V/1ms, 0V/1ms (repeated)
[17:36:57] <Bundestrojaner> i thought i wouldn't hear anything
[17:37:18] <Casper> oh you will hear everything
[17:37:32] <Casper> probably from DC to whatever your ear can hear
[17:37:50] <Casper> but the efficiency will drop quite fast
[17:38:06] <Bundestrojaner> i thought the inductivity would prevent the current from going high and the mass would be too big to move
[17:38:27] <Bundestrojaner> i'll try it with 10KHz tomorrow
[17:39:07] <Casper> a tweeter barelly move
[17:40:16] <Bundestrojaner> i know, but a tweeter doesn't move >100g
[17:41:05] <Casper> sure, but still, it just mean than if you have any movement you have sound
[17:41:54] <LeoNerd> It'll be 1kHz but the inertia will squash out almost all of the sharp edges, filtering it almost to a sine wave
[17:56:47] <Lambda-Aurigae> hetii, a sideline on the question of making a harddrive data extraction thing for dead harddrives...there are companies that do it but they charge in the thousands to tens of thousands of dollars to do it.
[17:56:52] <Lambda-Aurigae> so, it's not simple.
[17:57:28] <Lambda-Aurigae> some do it much cheaper but are not as good.
[17:58:10] <hetii> This days you can bay everything
[17:58:32] <hetii> its not like I cannot live without those data
[17:58:48] <hetii> but would be nice supprise if I could get them back :>
[17:59:25] <specing> hetii: tricky situation
[17:59:40] <Lambda-Aurigae> well, first thing you will need is a,,,umm,,,5 or 6 micron cleanroom environment..
[18:00:00] <specing> hetii: you could take it to a data retriaval specialist for an evaluation
[18:00:46] <Casper> hetii: if you can get another hard drive of the exact same model with the exact same firmware, you may be able to do some part swaps
[18:00:48] <hetii> https://www.youtube.com/watch?v=F5Y7BniaRXg
[18:01:07] <Lambda-Aurigae> sometimes the problem is just electronics and you can replace the controller board and make it live again with a bit of work.
[18:01:21] <hypermagic> i likked a hdd too dropped it while operating
[18:01:27] <hypermagic> *killed
[18:02:15] <hetii> true, as far as I remmeber there start some isue with it but was accessible and after that I run on night some tool to investigate bad block
[18:02:26] <hetii> and after that in morning it was dead
[18:03:17] <hypermagic> hot-swap the control board :)
[18:03:40] <Bundestrojaner> hot-swap? LOL
[18:04:31] <Lambda-Aurigae> it is,,,,doable...
[18:04:32] <Casper> also, remember that new drives are very picky on alignment and screw torque
[18:04:34] <Bundestrojaner> but swaping it would be a chance
[18:04:59] <hetii> hmm
[18:05:02] <hetii> interesting idea
[18:05:20] <hypermagic> thing to know is the board boots from the disk.
[18:05:27] <hetii> you mean swap when it will be detected by bios or early ?
[18:05:50] <hypermagic> so working drive boots, and you can hotswap it
[18:06:16] <Bundestrojaner> why not just swap it ? why hotswap?
[18:06:25] <hypermagic> i just explained it
[18:06:30] <hetii> I wonder if this could work with not that same model
[18:06:59] <Lambda-Aurigae> hetii, swapping the board must be the same make, model, version, revision, and firmware.
[18:07:29] <hetii> Lambda-Aurigae: sure but then not need hot-swap them
[18:07:45] <hetii> just replace platters
[18:08:46] <Bundestrojaner> hetii: you can't swap the platters in "normal" environment
[18:09:12] <hypermagic> :)
[18:09:23] <hypermagic> sound simple to replace platters
[18:09:44] <Bundestrojaner> it is simple, if you have a cleanroom at home^^
[18:09:54] <hypermagic> and align them within 1um
[18:10:09] <Lambda-Aurigae> harddrives are built by machines.
[18:10:51] <hetii> author of above move that I past work in "normal" environment but also mention to build a box where its possible to work with hdd.
[18:11:26] <hetii> I don`t mean that its proper way but doable :>
[18:12:00] <hypermagic> sounds like you are not doing it
[18:13:05] <hetii> not yet, general I will try play with it without opening and then we will see depend if I find other one.
[18:15:02] <hypermagic> they used to sell these "donor hdds" at a large price ;)
[18:36:43] <hetii> hmm I also wonder if its possible by avr to connect to some head and try store/get some data on such hdd :)
[18:36:52] <hetii> just for fun :)
[18:37:32] <hetii> http://www.atmel.com/Images/ATA_HardDrive.pdf
[18:40:40] <Casper> too slow
[18:41:00] <Casper> you can however from the ide, if the drive is working
[18:43:12] <hetii> ide is not a challenge :)
[18:44:20] <hetii> http://electronics.stackexchange.com/questions/21242/hard-drive-head-seek-motor-with-arduino
[18:45:08] <Lambda-Aurigae> do you have any clue the precision needed for positioning the head?
[18:46:23] <hetii> no clue at all I just think loud :)
[18:46:46] <hetii> but can imagine its huge :)
[18:47:16] <Casper> let's say that nasa don't even think of using that much precision on about anything on the space shuttle
[18:48:51] <hetii> yep, thats why I wonder if such head could position for me a PCB in CNC machine :)
[18:48:52] <Bundestrojaner> that's just 1 part of the problem^^. The head is moved by a lorenz-actuator and it has no spring or similar.
[18:48:52] <Bundestrojaner> So you have to accelerate and stop it by applying force for the correct time^^
[18:50:52] <Bundestrojaner> the motor is usefull, it's a brushless DC-Engine
[18:51:56] <Lambda-Aurigae> use the worm drives from a CD or DVD player for positioning for a tiny cnc machine...it's been done multiple times.
[18:53:36] <hetii> yes, I saw such project also :)
[18:54:00] <hetii> but using "voice coil" for that will be something new
[18:54:18] <hetii> the problem will be with parking such head in one place.
[18:55:12] <Lambda-Aurigae> you won't get a lot of torque from a harddrive head positioning system.
[18:55:24] <Lambda-Aurigae> at least, not a modern one.
[18:56:18] <Casper> still more than I expected
[18:56:28] <Lambda-Aurigae> go find an old 10MB harddrive from the 70s and 80s,,one of the ones the size of a small washing machine,,and you are on the right track.
[18:56:57] <Bundestrojaner> the torque is impressive for it's size. But you can't position such a system without tons of math
[18:57:14] <Casper> and feedback
[18:57:50] <hetii> https://www.youtube.com/watch?v=4BrmIqD6XQw
[18:59:38] <Lambda-Aurigae> that is NOT a harddrive head positioning unit.
[19:00:55] <Lambda-Aurigae> the vertical positioning thingie is similar technology,,,similar in that it uses magnet and coil.
[19:01:12] <Bundestrojaner> as every electric motor does :D
[19:05:54] <hetii> yep, I know its not a head positioning unit but still interesting :)
[19:06:05] <hypermagic> hdd head is positioned by reading track on hdd.
[19:06:15] <hypermagic> it will be useless for any of your projects
[19:06:58] <hetii> hmm
[19:06:59] <hypermagic> i however taken apart one that used some kind of CCD and an optical encoder plate with lines
[19:07:14] <hypermagic> that actually uses the optical feedback to seek
[19:07:37] <hypermagic> it is 120MB i remember
[19:08:24] <Valen> the old hdds used things like ball screws didn't they?
[19:08:25] <Bundestrojaner> hypermagic: he could use a spring. so you can position it easily. but it's still not usefull.
[19:08:49] <hypermagic> that is a relay not a postioning system
[19:09:24] <hypermagic> and it is weak, good for laser mirror though
[19:25:53] <hetii> https://www.youtube.com/watch?v=TPCgbfWZ6IQ
[19:26:12] <hetii> resolution 1 micron :)
[23:54:08] <totalanni> Cant wait to get my programmer
[23:54:18] <totalanni> thanks once again Lambda-Aurigae
[23:54:26] <totalanni> and ofc Tom_itx
[23:57:44] <vsync> i thought spi was cool, but full duplex spi seems severely gay
[23:57:53] <vsync> never been that much into software, hating this already
[23:58:51] <Xark> vsync: You talking about how you need to send bits to read input bits? It is a bit strange...