#avr | Logs for 2013-02-12

Back
[01:39:49] <foo303> has anyone used any of National Instruments' drives or motors?
[02:41:24] <Valen> any personal recomendations for lipo protection IC's?
[05:52:18] <Vutral> lol
[05:52:19] <Vutral> my chipselect is not down
[05:52:26] <Vutral> it just makes a small peak
[05:52:26] <Vutral> at the end of transmisson
[05:52:31] <Vutral> o_O
[09:01:27] <rue_house> not down?
[09:01:41] <rue_house> Vutral, what do you mean?
[11:00:44] <schnuws> anyone with any experience with SRF04, rangefinder?
[11:40:19] <Tom_itx> schnuws a bit
[11:40:23] <Tom_itx> what do you wanna know
[11:42:33] <schnuws> Well, I send a trigger, and the output from the srf04 gives me a highsignal with different lengths
[11:42:58] <Tom_itx> is it a 2 wire sonar?
[11:43:03] <Tom_itx> 4 with power
[11:43:12] <schnuws> and now I want do print out a msg on an lcd when the range is 1meter and below
[11:43:15] <schnuws> yes
[11:43:19] <Tom_itx> you ping one pin and wait for a reply on the other pin
[11:43:22] <schnuws> a trigger and a output signal
[11:43:28] <Tom_itx> sample your timer on both events
[11:43:35] <Tom_itx> subtract the difference
[11:43:35] <Tom_itx> and divide by 2
[11:43:50] <Tom_itx> for the ping distance to the object and the returen
[11:43:53] <Tom_itx> return*
[11:44:03] <Tom_itx> otherwise your distance will be doubled
[11:44:33] <Tom_itx> then multiply by the speed of sound (1129ft/sec at my altitude)
[11:45:12] <Tom_itx> then you can do what you wish with the distance
[11:45:46] <schnuws> sounds logic
[11:45:54] <schnuws> Know of any documentation on how to handle timers in avr assembler?
[11:46:06] <Tom_itx> same as you would in c
[11:46:06] <schnuws> read 'good' documentation
[11:46:14] <Tom_itx> why asm?
[11:46:15] <schnuws> Never done it in C either =P
[11:46:25] <Tom_itx> is your whole project in asm?
[11:46:25] <Tom_itx> do you know asm?
[11:46:40] <schnuws> microcomputer course
[11:47:03] <schnuws> I got 1 month of practice
[11:47:21] <schnuws> written code for an lcd and a hbridge which controls 2 motors
[11:47:50] <Tom_itx> i can show you a clip i used on a 68332 in c
[11:48:26] <schnuws> oki =)
[11:49:20] <Tom_L> http://paste.debian.net/233621/
[11:50:40] <Tom_itx> you could use int0 for the return
[11:50:49] <Tom_itx> or a pin change interrupt
[11:51:05] <Tom_itx> and read the timer when you ping and when the interrupt fires
[11:51:56] <Tom_itx> the general idea is in that paste, the code will be different for avr
[11:52:26] <schnuws> or I could wait for a high signal on the pin, start a timer and measure a nice distance, stop it and have it as reference?
[11:53:09] <Tom_itx> you initialize the sequence by sending a high on the first pin
[11:53:11] <Tom_itx> the reply comes back on the other pin
[11:53:18] <schnuws> yes
[11:53:24] <Tom_itx> so you could start the timer when you send the ping
[11:53:30] * RikusW finally got PDI level translation working :)
[11:53:46] <RikusW> Tom_itx: it seems it doesn't matter which side of the GTL IC the resistor is
[11:54:09] <RikusW> I used only one 470 Ohm between RX and TX and the n RX -> data
[11:54:11] <Tom_itx> that could be
[11:54:19] <Tom_itx> i think you're better off with it on the avr side
[11:54:42] <RikusW> if on the other side it does ofcourse use one extra channel
[11:55:05] <RikusW> I don't mind loosing a channel, I got GTL2000DL :-D
[11:55:08] <RikusW> 22 channels
[11:55:12] <Tom_itx> heh
[11:55:22] <RikusW> was about the same price as GTL2003
[11:55:34] <Tom_itx> yep they're all fairly reasonable
[11:55:37] <RikusW> I soldered it to a breakout perfboard today just to test it
[11:55:55] <Tom_itx> use the 200k r?
[11:55:59] <Tom_itx> you need that iirc
[11:56:01] <RikusW> stripped a multicore wires and used the strands to connect
[11:56:07] <RikusW> yes 200k and 100nF
[11:56:34] <RikusW> it works beautifully now :)
[11:57:15] <RikusW> 2n7002 works for ISP but not PDI or dW :(
[11:57:18] <Tom_itx> cool
[11:57:50] <RikusW> and if I add 10k pullups to the GTL PDI lines it breaks....
[11:58:03] <RikusW> even one...
[11:58:13] <Tom_itx> yup i experienced that early on
[11:58:26] <Tom_itx> dean enabled internal pullups soon after that
[11:58:34] <RikusW> so you can save on one resistor there ;)
[11:58:57] <Tom_itx> i started with pullups on all of em
[11:59:02] <RikusW> seems 470R works just fine, iirc you used 300R ?
[11:59:05] <Tom_itx> ended up with none iirc
[11:59:17] <Tom_itx> yes i think i use 2 300r
[11:59:29] <RikusW> you only need one...
[11:59:35] <abcminiuser> I did what now?
[11:59:36] <Tom_itx> i'm not changing the board now
[11:59:40] <abcminiuser> Oh yes, right
[11:59:47] <Tom_itx> abcminiuser, it's all your fault!
[11:59:59] <abcminiuser> Always is in some way
[12:00:16] <RikusW> abcminiuser: I tried various combinations of 2n7002 mosfet level translation for PDI, it fails ....
[12:00:35] <RikusW> it works for ISP, but it breaks my dW disabling...
[12:01:08] <RikusW> funny enough, my C9014 (NPN) translator works with dW
[12:01:14] <RikusW> but only down to 3v3
[12:01:43] <RikusW> I used 3k3 on the base to Low side
[12:01:50] <RikusW> 10k pullup on E and C
[12:01:54] <RikusW> E to low side
[12:02:23] <RikusW> and funny enough, its bidirectional
[12:02:47] <RikusW> so who said you can't bias a NPN via B-C ? :-P
[12:05:07] <RikusW> abcminiuser: the LUFA101122 mkii fails to work with AS6....
[12:05:18] <RikusW> and LUFA111009 fails to enumerate...
[12:05:23] <abcminiuser> RikusW, try trunk
[12:05:26] <abcminiuser> Works for me
[12:05:40] <RikusW> I don't need it to work with AS6
[12:05:52] <RikusW> just wondering if you know about it ?
[12:06:01] <RikusW> that on is a little old...
[12:06:07] <abcminiuser> No, it works as far as I am aware
[12:06:12] <RikusW> so probably unsupported ? ;)
[12:06:20] <abcminiuser> Did you build it in AS6 or AVRDude mode?
[12:06:29] <RikusW> it works on AS4
[12:06:43] <RikusW> whats the default mode ?
[12:06:51] <Tom_itx> AS6
[12:06:52] <RikusW> I didn't change it
[12:07:48] <RikusW> I'll download a new LUFA if I really need AS6 support
[12:07:56] <RikusW> I do have a dragon, so its not a problem
[12:08:05] <RikusW> just toying with the GTL2000 IC
[12:08:17] <abcminiuser> As far as I am aware it's always worked, once I patched it when 6.0 came out
[12:08:22] <Tom_itx> it works great
[12:08:30] <RikusW> I mounted it dead bug style :)
[12:08:34] <Tom_itx> abcminiuser i believe so
[12:08:46] <Tom_itx> btw, i finally posted the eeprom update
[12:08:54] <RikusW> for .635mm pitch
[12:09:15] <RikusW> abcminiuser: what did you have to patch for AS6 ?
[12:09:32] <Tom_itx> it was for as5.1 really
[12:09:34] <Tom_itx> i think
[12:09:58] <abcminiuser> They updated the way tools are enumerated, which broke as my clone didn't match the string descriptors they were expecting
[12:10:08] <RikusW> ah
[12:10:29] <RikusW> how long did it take to figure that out ?
[12:11:33] <abcminiuser> Not too long once it broke
[12:11:58] <abcminiuser> Since I could sniff the traffic and see it wasn't receiving anything at all
[12:14:57] <Tom_itx> abcminiuser, how many programmers are on your desk now?
[12:15:13] <abcminiuser> Err, a JTAG ICE3 and a clone MKII at the moment
[12:15:28] <Tom_itx> no avr one?
[12:15:31] <abcminiuser> Broken AVRONE in the drawer, plus a JTAGICE2, two more clones
[12:16:08] * RikusW got a Dragon and a load of U2S PCBs, I loaded the mkii onto two
[12:16:29] <RikusW> how did the avrone break ? :(-/
[12:16:53] <abcminiuser> The probe design is abysmal
[12:17:03] <RikusW> physical troubles...
[12:17:10] <abcminiuser> The JTAG connector is surface mount on the bottom, and needs a PCB adapter to plug into anything
[12:17:25] <abcminiuser> So you get a nice lever going - move your board, sheer off the JTAG connector
[12:17:41] <RikusW> they should design a better connector for such and expsive thing...
[12:17:46] <Tom_itx> i told some other guys about using smt plugs but they didn't listen either
[12:17:47] <abcminiuser> Yup
[12:18:07] <Tom_itx> on reprap controllers
[12:20:10] <Tom_itx> it's probably easier for pick n place to use smt everything
[12:45:28] <RikusW> Tom_itx: seems that MISO needs a 10k pullup on the high side or it won't work
[12:45:35] <RikusW> MOSI doesn't
[12:45:59] <RikusW> and in my case Reset needs 10k too, because I do dW disabling
[12:46:21] <RikusW> so 10k on high side for low to high translation
[12:47:22] <RikusW> seems like I can scrap my already designed 2n7002 PCB :-|
[13:07:48] <RikusW> Tom_itx: turns out I only need a 10k pullup on either side of the GTL for dW to work since I use open drain on both sides
[13:08:09] * RikusW likes the GTL ICs :)
[13:10:33] <Tom_itx> yup
[13:11:20] <RikusW> however mounting it dead bug style for testing isn't trivial ;)
[13:11:32] <Tom_itx> why did you get such a wide one?
[13:11:45] <Tom_itx> they make clear down to 2 bit
[13:11:48] <RikusW> to translate all of the m32u2 pins ?
[13:12:02] <Tom_itx> you need them all?
[13:12:10] <RikusW> besides it was about the same price as 2003
[13:12:16] <RikusW> probably not...
[13:12:38] <Tom_itx> takes board space
[13:13:00] <RikusW> I'm making a top board that only contains the GTL2000
[13:13:30] <RikusW> and then another on top of that for JTAG ISP PDI and TPI pinouts
[13:13:49] <RikusW> for maximum prototyping flexibility
[13:14:25] <RikusW> the programming header board will be smaller
[13:22:33] <Tom_itx> gotta run. bbl
[13:50:34] <RikusW> deadbug GTL2000DL http://imageshack.us/scaled/thumb/221/gtl2000dl.jpg
[17:28:21] <TechIsCool> anyone one used hall effect sensors before. I can't seem to figureout how to find distance from sensor for triger
[18:35:29] <Tom_itx> TechIsCool, i'm not sure hall sensors make good distance sensors
[18:47:52] <john_f> works for some http://www.youtube.com/watch?v=LaGv2FHS5zg
[18:48:23] <john_f> if the distance to magnets is measured
[19:02:24] <Horologium> can't hall sensors determine magnet field strength? If so they would work as a distance sensor to a nearby magnet...magnetic fields drop off very quickly as distance increases,,inverse square law and all that wot.
[19:02:58] <Tom_itx> maybe for short range
[19:06:13] <Horologium> yeah, a few inches at most one would think.
[19:06:59] <Horologium> someone posted a link(yesterday I think) that showed using a hall sensor to make a levitating metal ball.
[19:07:14] <Horologium> guessing that was reacting to the magnetic field between the coil and the metal ball.
[19:14:31] <TechIsCool> Tom_itx: under 1 inch?
[19:15:01] <Tom_itx> i dunno the distance i haven't tried hall as a distance sensor
[19:15:14] <Tom_itx> i would think it to be rather short though
[19:15:39] <Tom_itx> very far out and you will pick up all sorts of stray noise on the sensor i'd think
[19:16:23] <TechIsCool> True but I am only trying to use it as a door sensor so basically like a reed switch just smaller
[19:25:33] <Tom_itx> you don't like the door installable reed switches?
[19:26:52] <TechIsCool> Tom_itx: Its more that they need to go in cabinets that you can't use them since there is no middle bar. The only thing you could do is install a small reed switch but the problem being is that the doors are only 5/8 inch thick which takes out most reed switch magnets
[19:27:18] <Tom_itx> http://tom-itx.dyndns.org:81/~webpage/temp/anemom5.jpg
[19:27:26] <Tom_itx> that's what i used on my anemometer
[19:27:35] <Tom_itx> but yeah 5/8" isn't alot
[19:28:09] <Tom_itx> that's a 1/4" stud for size comparison
[19:28:43] <Tom_itx> http://tom-itx.dyndns.org:81/~webpage/temp/anemom4.jpg
[19:28:51] <Tom_itx> you can see the shell i cut it out of there
[19:29:10] <TechIsCool> Yup
[19:29:28] <TechIsCool> so what is the fastest speed you have seen
[19:29:41] <Tom_itx> it's not installed right now
[19:29:51] <TechIsCool> ah
[19:30:17] <Tom_itx> i did it more for proof of concept
[19:30:41] <TechIsCool> So the question is does it work
[19:30:57] <Tom_itx> it works
[19:31:02] <TechIsCool> awesome
[19:31:12] <Tom_itx> i mounted the magnet in the aluminum cover
[19:31:29] <Tom_itx> http://tom-itx.dyndns.org:81/~webpage/temp/anemom3.jpg
[19:31:44] <Tom_itx> hdd spindle bearings :)
[19:31:57] <TechIsCool> nice so a single pulse per rotation
[19:32:30] <Tom_itx> i had a different design with lots more reed switches but i decided to try this
[19:32:33] <Tom_itx> i even have the reeds
[20:13:54] <inflex> I can sort of see why 01005 isn't a commonly sold size to consumers
[20:45:42] <Casper> 010050.... breathable component
[20:53:11] <inflex> http://dxp.me/0201.jpg
[20:53:44] <inflex> Still, these are to replace 01005 parts, just hope the pads have enough room
[20:54:01] <Casper> :D
[20:54:28] <inflex> the ones in the pic are just bridge resistors, but I also have some caps coming
[20:54:33] <inflex> for iPhone fixing :(
[20:55:06] <Casper> what happened to that iphone?
[20:59:42] <rue_shop2> inflex, cant you read? that resistor is clearly the wrong value :)
[20:59:53] <rue_shop2> oh wait I'm sorry, thats a stripe, its a diode
[21:00:07] <rue_shop2> what do you mean "which end is the cathode?"
[21:06:38] <tlvb> ah, the sweet sweet, slightly overwhelming, feeling of figuring out a problem that has had you stumped as you type out the question in order to ask it…
[21:06:48] <tlvb> thanks guys
[21:08:16] <Tom_itx> glad to help
[21:08:47] <tlvb> :)
[21:09:12] <Casper> we'll send you the bill by express post
[21:09:46] <tlvb> of course
[21:15:47] <inflex> rue_shop2: hah, they're 0R resistors
[21:15:56] <inflex> rue_shop2: the 'stripe' is just the metal end
[21:16:29] <LoRez> Tom_itx: you still around?
[21:16:56] <rue_shop2> danf isn't bugging you about #robotics is he?
[21:17:18] <LoRez> me?
[21:17:19] <LoRez> no.
[21:19:23] <inflex> Casper: not my iPhone, client iPhone. Had issues with the touch screen, the BGA Nautalius controller chip has balling issues
[21:19:41] <inflex> Casper: so when I reflowed it with the hot air, I accidentally blew away a 01005 4.7pF cap
[21:19:50] <Casper> :D
[21:19:55] <Casper> the joy
[21:19:58] <inflex> Casper: still works okay, but I want to replace it any how.
[21:20:14] * inflex also has kapton tape coming from DX
[21:20:25] <Casper> lucky that you saw it and also that you know what value
[21:21:10] <LoRez> wtf is the trick to getting tom's MKII programmer running on linux? it keeps trying to open a serial port that it doesn't creat.
[21:21:12] <LoRez> +e
[21:21:39] <inflex> LoRez: erm, just as a USB thingy
[21:22:22] <inflex> avrdude -v -p attiny10 -c avrisp2 -P usb
[21:22:32] <inflex> that's what I've used
[21:22:42] <inflex> obviously change the -p to what ever you need etc etc
[21:25:34] <Tom_itx> what ver avrdude?
[21:25:47] <Tom_itx> oh,
[21:25:53] <Tom_itx> you may need rights to the port
[21:26:00] <Tom_itx> that was an issue i know
[21:27:30] <Tom_itx> avrdude -c avrisp2 -P usb -p t10 -v -U flash:w:C:\avrtest\Tiny10_asm\t10blink.hex:i
[21:27:35] <Tom_itx> that's what i use
[21:28:05] <Tom_itx> well change the path of course to a linux one
[21:31:27] <inflex> Casper: oh, helped that I had a full schem/layout pdf for the iPhones
[21:31:56] <Casper> ok
[21:38:29] <inflex> Need to find one for the iPod Touch 4th gen now
[21:46:49] <rue_shop2> is upgrading the phone just a matter of chnaging jumpers and giving it new firmware?
[21:48:22] <Casper> if only...
[21:48:43] <rue_shop2> I wouldn't put it past apple
[21:51:26] <Casper> if it was that simple, I'ld have made my 3g a 4s
[21:52:28] <Casper> kinda funny
[21:52:35] <Casper> they are picking up the snow
[21:52:40] <Casper> while it's snowing :D
[21:53:12] <LoRez> inflex: I was capitalizing the USB...
[21:58:20] <inflex> doh
[21:58:36] <inflex> haha
[21:58:52] <inflex> I can distinctly tell you that the iPhone 3GS, 4 and 4S are all very different
[21:59:08] <inflex> Even the 3G and 3GS are quite different
[22:02:33] <Casper> yeah
[22:02:40] <Casper> like different processor
[22:02:51] <Casper> and more ram
[22:03:02] <Casper> one day I'll get a better phone
[22:03:06] <Casper> for now, it does the job
[22:03:42] <Casper> but it's sad that you can't get the old version of the apps legally
[22:03:45] <Casper> mind you...
[22:03:53] <Casper> I need to pirate the free apps!
[22:36:54] <rue_house> yea, isn't that crazy?
[22:39:13] <Casper> yeah
[22:39:42] <Casper> just when I was actually strongly considering to buy some apps...
[22:40:10] <Casper> ... I found out that the app is now incompatible with my phone (I found it weird that the app store stopped saying that my cracked app was out of date)