#avr | Logs for 2012-05-13

Back
[02:01:42] <rue_mohr> damn tom, suggesting silkscreening to you was supposed to be a way for me to get into it
[02:01:44] <rue_mohr> I still havn't
[03:05:12] <inflex> heh
[11:58:01] <abcminiuser_> Oh my god
[11:58:04] <abcminiuser_> Best idea ever
[11:58:20] <abcminiuser_> I have a tiny tiny tiny USB AVR board here that someone sent to me
[11:58:48] <abcminiuser_> I'm going to program it to generate the tones for "Yakkity Sax" as an audio device
[11:59:12] <abcminiuser_> Then when my coworker leaves his PC I'll plug it in where he can't see it and turn on the "listen to this device" feature in the audio mixer
[11:59:42] <Steffanx> :)
[12:00:50] <Steffanx> It would be even nicer to build it into his mouse :P
[12:01:23] <Steffanx> ( if he uses one and only when it has a wire )
[12:02:25] <abcminiuser_> Oh god even better idea
[12:02:35] <abcminiuser_> Have it enumerate as a custom HID and as a keyboard
[12:03:00] <abcminiuser_> When it receives a caps lock event it sends a play pause back
[12:03:12] <CapnKernel1> abcminiuser_: You're having too much fun.
[12:03:14] <abcminiuser_> So if you're listening to music, it'll toggle on-off
[12:03:28] <abcminiuser_> Subtly evil (and less likely to get me fired)
[12:04:04] <Steffanx> I guess it's ok, as long as he's not your boss
[12:06:18] <OndraSter> :D
[12:13:38] <abcminiuser_> What about a cursor drift? Just make it throw out the cursor 1px randomly every second or so
[12:14:12] <Steffanx> I prefer a random backspace :P
[12:15:04] <Steffanx> but only when you're sure nothing can go wrong :P
[12:15:07] <abcminiuser_> It's limited in what I can do in response to events from the system sadly, but I can do some wacky crap
[12:15:18] <abcminiuser_> Prefferably non-destructive tho
[12:16:54] <OndraSter> ARRGH why can't IDA disassemble on all 4 cores?
[12:17:03] <OndraSter> now one core is running at full speed while the others are taking a break
[12:17:09] <OndraSter> this is 41MB binary I am trying to take apart :(
[13:07:11] <learningc> Can I program a sam7 with one of the jtagice?
[13:12:10] <Steffanx> You can't afaik
[13:13:04] <learningc> ah ok, what kind of programmer I need for them?
[13:14:34] <Steffanx> abcminiuser_ why atmel doesn't give their tools support for their ARMs?
[13:15:14] <Steffanx> Shouldn't be that hard to implement it..
[13:16:31] <OndraSter> ARM version of AVR Dragon should be named ARMaggedon
[13:17:24] <learningc> lol
[13:18:24] <learningc> OndraSter: do you know what programmer to use for those atmel arm?
[13:18:38] <OndraSter> sam7 have onboard SAM-BA bootloader
[13:18:57] <OndraSter> or I suppose you could use that FT2232 controller to get USB-JTAG
[13:19:03] <OndraSter> not sure if compatible with AS6
[13:26:13] <abcminiuser_> Steffanx, that's a proposed/planned item
[13:26:40] <Steffanx> Read as: I think you have to wait at least two years for that
[13:27:09] <OndraSter> :D
[13:33:26] <learningc> abcminiuser_: what's the usual way to debug and program those sam?
[13:33:47] <abcminiuser_> learningc, SAM-ICE and AS6
[13:34:27] <learningc> ah sam-ice... I'm googling it
[13:36:29] <OndraSter> $152
[13:36:32] <OndraSter> (mouser)
[13:36:32] <OndraSter> duh
[13:37:21] <OndraSter> I suppose that one with FT2232 and openocd could do similar things.... but AS6 doesn't use OpenOCD :(
[13:38:03] <learningc> $110 at digikey :)
[13:38:22] <OndraSter> learningc, didn't you get a whole lot of AVR32s lately?
[13:38:29] <uv> re
[13:42:35] <learningc> OndraSter: yes, but I may need the power of ARM in the near future with supportive 32bits uC
[13:42:52] <OndraSter> AVR32 is 32bit uC
[13:43:15] <learningc> I know
[13:43:48] <learningc> there's pic32 too
[15:35:07] <OndraSter> http://pastebin.com/xnLQ3mja
[15:35:09] <OndraSter> woot woot
[15:35:17] <OndraSter> now I can upload full image in less than a second!
[15:35:19] <OndraSter> lol
[15:35:33] <OndraSter> could be optimalized though
[15:35:41] <OndraSter> but I ain't shoving with that
[15:36:12] <specing> Ain't that right
[15:36:27] <OndraSter> I wrote this code about a month ago
[15:36:31] <OndraSter> but didn't test it till today :o)
[15:37:19] <learningc> what does it do exactly?
[15:37:27] <OndraSter> it sends whole bitmap to my device :)
[15:37:44] <learningc> from pc to avr?
[15:37:49] <OndraSter> basically, yes
[15:37:57] <learningc> over rs232?
[15:37:59] <OndraSter> this is just the computation of the data
[15:38:03] <OndraSter> virtual serial port
[15:38:06] <OndraSter> FTDI FT232
[15:38:46] <learningc> and the data on the pc is in what format?
[15:39:02] <OndraSter> originally bitmap
[15:39:12] <OndraSter> it comes out in the form that the device can show it directly
[15:39:15] <OndraSter> without any other conversions
[15:39:22] <learningc> ah
[15:40:12] <learningc> I need to code something that read a .bmp file from USB drive and store the pixel in an array on the microcontroller
[15:40:32] <OndraSter> USB OTG?
[15:40:34] <OndraSter> enjoy :P
[15:40:41] <learningc> is it hard?
[15:40:51] <OndraSter> unless you are familiar with USB specs - yes
[15:40:57] <learningc> dang
[15:41:14] <OndraSter> and even then I'd much prefer killing zombies that would be dangerously close
[15:41:25] <OndraSter> actually that sounds exciting no matter what, bad example
[15:41:48] <learningc> killing zombies is fun though
[15:42:08] <learningc> you can do that on a playstation :P
[15:42:16] <OndraSter> you can do that on a PC.
[15:42:22] <learningc> that too
[15:42:51] <learningc> but pc is for more serious stuff like microcontroller debugging :P
[15:44:23] <OndraSter> my CPU and GPU begs to differ
[15:47:30] <OndraSter> aanyway, with this new "image dump" method I should be able to get about 5 FPS with four bit color depth or about 20 FPS for 1bit color depth
[15:47:42] <OndraSter> fairly better than 0.3 FPS for 4bits :P
[15:47:46] <OndraSter> original
[19:17:36] <vicatcu> hey all, has anyone ever experienced flakiness with SPI programming using the AVR ISP mkII? If I read the signature repeatedly in AVR Studio I get basically a random signature back about a third of the time
[19:18:06] <Tom_itx> breadboard?
[19:18:10] <vicatcu> PCB
[19:18:13] <Tom_itx> k
[19:18:23] <Tom_itx> wires all good?
[19:18:35] <vicatcu> my own design, yea it all rings out
[19:18:57] <Tom_itx> no idea
[19:19:13] <vicatcu> you think there might just be a weak connection on the AVR?
[19:19:14] <Tom_itx> what size pullup on reset?
[19:19:17] <vicatcu> 10k
[19:19:27] <Tom_itx> noisy supply?
[19:19:31] <vicatcu> regulated
[19:19:35] <Tom_itx> bypass caps etc
[19:19:49] <vicatcu> hang on
[19:21:55] <vicatcu> Tom_itx
[19:22:14] <vicatcu> Tom_itx - I don't have a bypass cap near VCC on the AVR...
[19:23:06] <vicatcu> do you think that really explains it?
[19:23:09] <Tom_itx> i'm not saying that's it, but you should have them
[19:23:13] <Tom_itx> no
[19:23:26] <Tom_itx> i doubt if that's it
[19:23:27] <vicatcu> what do you usually use? 100nF?
[19:23:33] <Tom_itx> .1uf or so
[19:23:46] <vicatcu> yea 100nF = 0.1uF
[19:23:48] <Tom_itx> close to the chip power
[19:23:59] <vicatcu> yea I really should have
[19:24:03] <vicatcu> that was an oversight
[19:24:46] <Tom_itx> not sure what would cause the signature chaning
[19:24:47] <vicatcu> even if i turn the ISP frequency down to 6kHz I still get this randomness
[19:24:50] <Tom_itx> changing*
[19:26:12] <vicatcu> could the routing of the SPI signals have an affect
[19:26:31] <Tom_itx> well, it could
[19:26:35] <vicatcu> I figured the bus is really slow, I would have to go out of my way to cause enough skew no?
[19:26:44] <vicatcu> 2 MHz tops, right?
[19:26:54] <Tom_itx> does it verify the program ok?
[19:26:58] <vicatcu> no
[19:27:01] <Tom_itx> hmm
[19:27:07] <Tom_itx> what target chip?
[19:27:17] <vicatcu> TQFP ATMega328
[19:27:23] <Tom_itx> k
[19:27:30] <Tom_itx> not P?
[19:27:32] <vicatcu> not P
[19:28:16] <vicatcu> I feel like I've seen this behavior before
[19:29:20] <vicatcu> i bet it's an intermittent connection on the MISO line
[19:29:34] <vicatcu> it seems to read the fuses without any problems
[19:30:06] <vicatcu> surface mount is such a pain in the arse
[19:30:19] <Tom_itx> it's not that bad
[19:30:32] <Tom_itx> check the solder joints
[19:30:50] <Tom_itx> use plenty of flux and reheat the pins
[19:30:51] <vicatcu> i've been experimenting with hot plate and stencil
[19:31:00] <Tom_itx> yeah i made a toaster oven
[19:31:13] <Tom_itx> and use stencils for quite a few things
[19:31:15] <vicatcu> oh nice!
[19:31:36] <vicatcu> i bought a PID controller / SSR / thermocouple bundle off ebay
[19:31:38] <Tom_itx> http://tom-itx.dyndns.org:81/~webpage/toaster_oven/toaster_oven_index.php
[19:31:48] <Tom_itx> meh, i used a PT100 sensor
[19:31:57] <vicatcu> rigged it all up and of couldn't get it to quite work
[19:32:16] <vicatcu> dang thing thought it was 620 degrees at room temperature
[19:33:02] <vicatcu> ended up relying on a IR temperature gun to read surface temp
[19:33:57] <vicatcu> kind wish i had a microscope
[19:34:05] <Tom_itx> they're very handy
[19:34:13] <vicatcu> 10x eye loop is better than naked eye
[19:34:25] <vicatcu> but lighted microscope is way better
[19:34:34] <Tom_itx> http://tom-itx.dyndns.org:81/~webpage/scope/scope1.jpg
[19:34:38] <Tom_itx> that's what i use
[19:35:10] <vicatcu> looks similar to what i use at work
[19:35:20] <Tom_itx> 7 x 45 zoom
[19:35:29] <vicatcu> how much did that cost if you don't mind my asking
[19:35:37] <Tom_itx> around 350
[19:35:45] <Tom_itx> amscope
[19:35:47] <vicatcu> not aweful
[19:35:50] <Tom_itx> no
[19:35:57] <Tom_itx> not like some of the real good ones
[19:41:55] <vicatcu> Tom_itx your toaster oven looks pretty awesome
[19:42:26] <vicatcu> well done - did you make it so you could program in a temperature profile?
[19:44:26] <Tom_itx> not without reflashing it
[19:44:49] <Tom_itx> it was a goal but once it was working it got put to use
[19:47:56] <vicatcu> right you can pretty much get away with a single temperature profile anyway
[19:48:33] <vicatcu> the PID controller is pretty dumb in that respect, you have to screw around with the coefficients to get it to ramp up slower i guess
[19:48:53] <vicatcu> i kind of want to ditch it and control the SSR myself
[20:19:02] <karlp> vicatcu: I've seen that when the power supply wasn't capable of supplying quite enough power,
[20:30:58] <vicatcu> karlp... im powering from usb power...