#avr | Logs for 2014-09-19

Back
[13:24:08] <Bushman> i've added few filtering capacitors on VCC close to both, the mcu and the 485 interface and i've also run the servo from external power... to no avail.
[13:24:12] <Bushman> what can be the reason that UART is causing interference on PWM on a timer1?
[13:27:21] <N1njaneer> I have never seen that happen. Would need to see the board layout and schematic to make better suggestions :)
[14:01:03] <jeremyab1l> guhhhhhh
[14:01:16] <jeremyab1l> Something is up with my new board layout maybe, I dunno
[14:02:00] <jeremyab1l> I'm sending some stuff out the USART0 on power up. It works when I have a battery and the AVR programmer pluged in. It works when I have a 3.3V wallwart supply plugged in
[14:02:09] <jeremyab1l> it gives me gibberish when I have just the battery plugged in
[14:02:38] <jeremyab1l> I have a 3.3V regulator in there, it reads around 3.32v for all of the power options
[14:02:58] <jeremyab1l> any thoughts?
[14:04:35] <arti> jeremyab1l, are your grounds connected?
[14:05:00] <jeremyab1l> I mean they should be
[14:05:05] <jeremyab1l> they were on the last board revision!
[14:06:46] <jeremyab1l> oh wait
[14:07:00] <jeremyab1l> I should maybe connect the ground on my FTDI...
[14:07:02] <jeremyab1l> to the ground on my board
[14:07:07] <N1njaneer> Durrrrrp :)
[14:07:15] <jeremyab1l> sonofa
[14:07:43] <jeremyab1l> sigh
[14:07:44] <jeremyab1l> thanks arti
[14:07:52] <jeremyab1l> almost had a panic attack there
[14:08:02] <arti> no problem
[14:08:52] <N1njaneer> Hooray, my Ascension trackers showed up today. Must play with this weekend!
[14:20:46] <jeremyab1l> oh man, I feel so much better now that the usart works correctly
[14:20:51] <jeremyab1l> guh can't believe I did that :P
[14:21:02] <jeremyab1l> right in front of the interns while I was trying to teach them how to test the boards
[14:21:58] <N1njaneer> It happens!
[14:23:09] <N1njaneer> As you start to do this more, sometimes you'll get a feel for what the problem is quite quickly just by the particular feel of the symptoms you are getting. Floating/unbiased inputs are another one like this - they are insidious because they will random cause things to go between working and not working, but you start to recognize the symptoms by behavior and then zero in on what the problem could
[14:23:10] <N1njaneer> be.
[14:23:59] <N1njaneer> I find it useful when troubleshooting to think about things as "Okay, if I wanted to INTENTIONALLY produce this kind of behaviour, what would I do to make something like this happen?" and then check the culprits. More times than not it will put you on the right path, if not quickly solve the problem :)
[14:24:04] <jeremyab1l> yeah, the more often a problem happens, the better you get acquainted with it
[14:24:30] <megal0maniac> I'm mostly here for N1njaneer's words of wisdom :P
[14:24:40] <jeremyab1l> you and me both :P
[14:24:59] <N1njaneer> megal0maniac: I have a lot of them! They are avaliable with bulk-discounts, even! Just no warranty. :D
[14:26:12] <megal0maniac> # grep "N1njaneer" /temp/irclog/#avr/*
[14:26:25] <megal0maniac> And magic fills the screen ;)
[14:26:32] <N1njaneer> D'awww :)
[14:26:33] <jeremyab1l> lol
[14:26:52] <N1njaneer> I should fire up the livestream again at some point soon and be more interactive with you guys :)
[14:27:18] <N1njaneer> The USB camera tap on the stereomicroscope makes for some interesting streaming at times!
[14:27:37] <megal0maniac> Haha! I'd watch that
[14:28:07] <megal0maniac> Speaking of USB, my laptop has been saying "USB device not recognised" all day. But nothing is connected. So that's no good :/
[14:28:13] <jeremyab1l> oh nice
[14:28:26] <jeremyab1l> I need a stereomicroscope
[14:28:35] <megal0maniac> Don't we all?
[14:28:41] <jeremyab1l> I have a binocular biology scope aready but no stereo one for board work
[14:29:23] <N1njaneer> ScienceScope makes a REALLY nice set of scope and is my prefered one, however AMScope makes a really damn nice set of them for significantly cheaper. Foreign-made, but supported through AMScope in California.
[14:29:38] <jeremyab1l> yeah my biological scope is AMScope
[14:29:40] <jeremyab1l> I love it
[14:29:48] <jeremyab1l> I'd go with them for a stereo scope, def
[14:30:01] <jeremyab1l> I'll be getting a pay raise soon, maybe I'll buy one with my first paycheck
[14:30:07] <N1njaneer> Absolutely work investing a couple hundreds bucks in a good one. I have both. The ScienceScope is absolutely higher quality in the optics, but the AMScope is a secondary with the simulview for the camera tap.
[14:30:10] <megal0maniac> \o/
[14:30:35] <jeremyab1l> How much is the sciencescope versus the amscope?
[14:30:35] <megal0maniac> jeremyab1l: I might be getting a paycheck soon :P
[14:30:40] <N1njaneer> jeremyab1l: If you get one, absolutely spend the extra money on a continuous zoom one - the cheaper ones are diopter based so you only get a couple magnifications.
[14:30:49] <jeremyab1l> ok, cool
[14:31:02] <N1njaneer> jeremyab1l: I want to say my ScienceScope with the fiber illuminator and boom was around $1800 USD
[14:31:21] <jeremyab1l> dang
[14:31:26] <jeremyab1l> yeah that's out of my pricerage, def
[14:31:28] <jeremyab1l> *pricerange
[14:31:32] <N1njaneer> They are expensive, but the quality is better. The ScienceScope is a bit more comfortable on the eyes in a way that's hard to explain.
[14:31:38] <N1njaneer> Look at AMScope's stuff, though.
[14:31:54] <N1njaneer> Let me see which one I got. It's cheaper without the simulview
[14:32:06] <jeremyab1l> yeah I just want a camera port is all
[14:32:21] <jeremyab1l> actually my amscope is the trinocular one
[14:32:46] <N1njaneer> jeremyab1l: Make sure you get the simulview, else you sacrifice the left eye to engage the camera.
[14:32:51] <jeremyab1l> ah ok
[14:33:32] <N1njaneer> Only annoyance with mine is that the field of view for the camera is slightly difference from the field of view through the eyepieces due to optics. Different eyepieces improve it, but it's still not dead on.
[14:33:57] <N1njaneer> For high-quality stills I actually just stick my cheap point-and-shoot up to the eyepieces. Takes AMAZINGLY good pictures for a hack-method!
[14:34:09] <Bushman> N1njaneer: my board is just one of those prorotyping boards and 2 ICs, atmega16 and 485 interface
[14:34:27] <N1njaneer> jeremyab1l: Actually, the AMScope was really reasonable -- The simul-focal 7X-45X head I have was only $360
[14:34:36] <jeremyab1l> oh, link?
[14:34:40] <jeremyab1l> trying to find it now :P
[14:34:42] <jeremyab1l> but they have so many
[14:34:55] <N1njaneer> Item Code SM745TP
[14:34:59] <jeremyab1l> cool thanks
[14:35:04] <N1njaneer> 7-45x is a very ideal range for SMT work
[14:35:39] <N1njaneer> The 80-LED illuminator was $68 (LED-80S-YA) and the cheap USB camera is the MU300 and was $128
[14:35:43] <N1njaneer> So really not bad at all.
[14:36:05] <N1njaneer> The camera will stream, but you generally have to fiddle the exposure to get a better framerate. It's a lot better for snapping stills.
[14:36:09] <jeremyab1l> I'd be using a Canon 5D DSLR strapped to it
[14:36:21] <jeremyab1l> via a C-mount adapter thingy
[14:36:38] <jeremyab1l> is the setup I normally use on my other scope, so hopefully that'll work with the stereo one
[14:36:40] <N1njaneer> Yeah I'm considering replacing the cheaper USB camera with something a lot better :)
[14:37:17] <N1njaneer> I imagine it should. I had to fiddle around with some of the spacing on the camera mounting tube to get it to really focus well.
[14:37:39] <N1njaneer> Oh, also reccomended -- get a pair of 20x eyepieces as well to swap in with the regular ones -- EP20X30 for $60
[14:37:52] <N1njaneer> ALSO -- IMPORTANT
[14:37:58] <N1njaneer> IF YOU WILL BE SOLDERING UNDER THE SCOPE
[14:38:16] <jeremyab1l> yeah I have 20x for the other scope, I'll see if I can use those for the stereo one
[14:39:14] <N1njaneer> When you get the scope, open up the head (couple screws), and get a cheap tube of RTV silicone sealer and carefully apply it to ALL of the interface edges of all of the prism assemblies inside.
[14:40:15] <jeremyab1l> just to keep the solder flux fumes out?
[14:40:50] <N1njaneer> That is my biggest grief with AMScope -- their optics are not expressly sealed, and if you do a lot of soldering you WILL develop flux films between prism elements which are very difficult to clean because you either have to try to flush IPS in between them to get the flux film cleaned out, or you have to disassemble the optics and then spend a bunch of time realigning them which takes quite a
[14:40:50] <N1njaneer> bit of trial and error.
[14:41:04] <N1njaneer> flush +IPA
[14:41:31] <jeremyab1l> nice, thanks for the tips
[14:41:38] <jeremyab1l> what do you mean by "interface edges"?
[14:42:04] <N1njaneer> I have had zero problems with the ScienceScope in 12+ years with this. Just have to periodically wipe off the lenses on the bottom with IPA or methanol. Don't use acetone or MEK - will melt the plastic :)
[14:42:23] <N1njaneer> Basically "seal the edges of the cracks"
[14:42:43] <jeremyab1l> word
[14:42:51] <jeremyab1l> http://www.amscope.com/catalogsearch/result/index/?i_category=1461&q=simul-focal huh I can't find the one you mentioned
[14:42:54] <N1njaneer> So when a prism face mates to a prism face, they are two planes in contact with each other. Seal around the edges so the interface of those two planes is sealed and nothing can get in.
[14:43:12] <jeremyab1l> they have non simul-focal ones at that price point but not ones that have simul-focal
[14:43:40] <N1njaneer> Oh sorry, the $359 was because of a credit.
[14:43:56] <jeremyab1l> aha
[14:44:20] <N1njaneer> I had misordered the non-zooming one first.
[14:44:33] <jeremyab1l> I don't know if the simulfocal thing is really that huge a deal to me, I'll only be using the camera for my weird art stuff I do, otherwise I'll just use the eyepieces for actual inspection stuff
[14:44:39] <N1njaneer> So I guess it would have been closer to $600
[14:44:59] <N1njaneer> Then skip the camera and use put your DSLR up to the eyepieces when you need to take a picture :)
[14:45:30] <N1njaneer> By yes, make sure you get a something that will do 3.5-7x on the lower end, and for SMT work 45X is plenty.
[14:45:45] <N1njaneer> And make sure it is continuous zoom or you will become quickly frustrated.
[14:45:53] <jeremyab1l> yeah, cool cool
[14:46:38] <jeremyab1l> actually I put the DSLR in the camera port cause I do stop-motion stuff or long exposure things under there, so need the camera out of the way of the stage
[14:46:54] <jeremyab1l> is yours on a boom?
[14:47:01] <N1njaneer> Almost all SMT work I generally do is under 5-7x, and then joint inspection occasionally at the higher zoom.
[14:47:12] <N1njaneer> Yes, you absolutely NEED a boom for SMT work
[14:47:16] <jeremyab1l> cool
[14:47:22] <jeremyab1l> how's the movement on the boom feel?
[14:47:36] <jeremyab1l> like you do have to yank it around or does it move pretty smoothly?
[14:47:50] <N1njaneer> Most inspection requires significant oblique viewing, so you want all of the room under the scope to be open so you can move and tilt the board.
[14:47:57] <jeremyab1l> right right
[14:48:12] <N1njaneer> Once you set the boom it doesn't need adjustment regularly - it's just set screws that hold it in place.
[14:48:39] <N1njaneer> I actually like AMScope's boom better than the one I got with my ScienceScope 10 years ago, so maybe they have improved. The AMScope has more DOF, which is nice.
[14:48:40] <jeremyab1l> well I ask again for weird art reasons, in case I want to like do a "panning shot" with it :P
[14:50:26] <N1njaneer> While we're at it, I reccomend Pace for all soldering needs. It's all we use here, and I have rework stuff from Pace I bought 10 years ago that is still working fine. Only US-based, all-US-made soldering equiptment company too as far as I am aware. Their new WJS-series irons are the best thing I have ever used. Room-temp to ready in 12 seconds. :)
[14:50:44] <jeremyab1l> huh, nice
[14:50:53] <jeremyab1l> I use weller mostly
[14:51:26] <N1njaneer> Also when you change tips, the tip, heater, and sensor are all one slide-out module that you can hot-swap. They are also less than $10 and the whole assembly is changed out. Most places charge $5 or more for just metal tips. :)
[14:51:44] <jeremyab1l> huh, nice
[14:51:53] <jeremyab1l> yeah weller tips are not cheap :P
[14:52:19] <N1njaneer> Plus for doing lead-free, the fact that the WJS-100 with the setback cubby will throttle the iron temp down after about a minute of non-use, which DRAMATICALLY improves tip life. Lead-free is very hard on the tip with regard to oxidation and corrosion from the flux.
[14:52:44] <jeremyab1l> aha
[14:52:46] <theBear> weller make good irons (except the $15 crappy ones ratshack sell) but i'm pretty pleased with my noname soldering station that takes lovely well priced LONG lasting Goot tips
[14:53:41] <theBear> N1njaneer, that's a common feature in better stations these days, personally i got into the habit of doing it manually over the last few years, between using random irons at various workplaces and being broke and working at home a lot
[14:53:49] <N1njaneer> I've had good luck with Weller as well, but I like Pace better.
[14:55:34] <N1njaneer> But you find what works and stick with them. That and the local Pace rep is an aquaintance, and they shoveled me a boatload of tips with the WJS-100 when I bought it. :)
[15:00:05] <jeremyab1l> lol nice
[15:05:46] <ColdKeyboard> Did anyone work with Mifare RC522 module? I'm having some issues with SPI communication I belive
[22:30:05] <Devilholk> What is the best way of disabling interrupts in an ASM routine? push SREG, cli .. code .. pop SREG (this should enable interrupts if they were enabled, right?)
[22:30:19] <Devilholk> This is for attiny85
[22:30:43] <Devilholk> Or should I copy it it a temp register instead?
[22:30:49] <Devilholk> copy it to*
[22:33:32] <Thrashbarg> I just use cli and sei
[22:34:33] <Thrashbarg> you need to push and pop SREG via a temporary register in an interrupt routine so SREG doesn't change from the main program's perspective
[22:34:53] <Thrashbarg> if it's not an interrupt routine you don't need to
[22:35:16] <Devilholk> This is not an interrupt
[22:35:33] <Devilholk> So I don't need to bother with SREG then?
[22:35:38] <Thrashbarg> correct
[22:35:42] <Devilholk> Thanks =)
[23:30:29] <Casper> So, for I2C with 2 devices that sit at a very different ground level, one is 0/5V and the other device will be at -12/-7V (12V to ground, to 7805 to IC... positive grounding)... I tought of using a zener as the level converter. First issue is that if the 12V change, so will the voltages... second issue: I would need to put a pulldown, which will load the bus, causing it to drop in voltage... does anyone have a better solution?
[23:53:51] <Strukturalna> yo emma
[23:53:55] <Strukturalna> oh nevermind, you left