#avr | Logs for 2014-10-09

Back
[06:50:02] <hetii> I design small ttl frequency counter with voltmeter: http://imgh.us/freq.svg Any idea if I can do something better there ?
[09:47:21] <LeoNerd> So.. since it's quiet: Does anyone have any thoughts on why printf() might be instantly crashing and rebooting my ATmega328 every time I try to use it? I've got 'stdout' set up correctly, and fputc()/fputs() are nicely reliable. But printf, with any conversion at all, will crash
[09:47:38] <LeoNerd> printf("Hello world\n"); works. printf("Hello, %s\n", "world"); instant crash.
[09:55:18] <twnqx> probably due to the overkill ov emulating streams on a 8bit µC
[09:55:53] <twnqx> (you could just try this: char tmp[256]; sprintf (tmp, "Hello, %s\n", "world"); printf (tmp); +-errors
[09:56:03] <twnqx> and see if it is memory allocation problems
[09:56:10] <LeoNerd> Ooh.. I could see if sprintf works, yeah.. I'll try that tonight
[09:57:36] <twnqx> maybe printf uses a too large/small static buffer... or malloc/free for temp space that exceeds available memory
[09:57:43] <twnqx> so many candidates on a µC
[09:58:26] <LeoNerd> Mmm
[11:16:04] <Casper> guys, just want to confirm something....
[11:16:22] <Casper> can a 0201 resistor with "0" written on it can be anything else than a jumper?
[11:16:43] <LeoNerd> It likely can't be used for seasoning stews, for instance..
[11:17:00] <theBear> Casper, not that i can think of
[11:17:18] <theBear> 0 is the only thing big enough to be sure what yer reading on them anyway :)
[11:21:13] <Casper> I'll drop a drop of solder on it
[11:21:27] <Casper> I read online that they are sometme used as fuse
[11:21:40] <Casper> and it happend that the usb connector is damaged
[11:22:01] <Casper> but it cause windows to shutdown all of the rear usb ports...
[11:22:26] <Casper> yes, windows is idiot...
[11:24:36] <jadew> could be a short
[11:24:49] <jadew> maybe a fried chip?
[11:24:54] <jadew> or busted cap?
[11:25:03] <twnqx> or indeed a crap mainboard
[11:25:18] <twnqx> that doesn't have individual port overcurrent protection?
[11:25:21] <twnqx> like... most of them?
[11:25:22] <twnqx> >_>
[11:27:59] <Casper> it have per 2 ports polyfuse
[11:28:08] <Casper> but it go to the same usb hub
[11:28:14] <Casper> and windows shut down the hub
[11:28:33] <twnqx> \o/
[11:28:52] <twnqx> and that's why you always use an external hub for testing new devices :P
[11:29:29] <Casper> the problem is that someone smashed the tab away...
[11:29:35] <Casper> and bent the pins
[11:29:39] <Casper> but still
[11:29:59] <Casper> it do not explain why the 0R fried... the polyfuse should have did the trick...
[11:33:42] <jadew> any ideas on other sites like hackaday where I could promote my project? (I don't think hackaday will do it because the guy who made the bus pirate is or was an editor there)
[11:33:52] <vsync> facebook
[11:34:03] <jadew> I don't have much of a social network
[11:34:06] <vsync> twatter fivesquare
[11:34:10] <vsync> sixsquare
[11:34:15] <vsync> sevensquare
[11:34:31] <vsync> what's the project
[11:34:46] <jadew> https://www.indiegogo.com/projects/proto-talk/x/8683663
[11:36:05] <jadew> seems like a good portion of the visitors are actually interested, however in 20 days it only had 500 visits, out of which maybe 50 or 60 unique
[14:43:15] <Tom_itx> Casper i doubt an 0201 resistor has room for lettering on it
[14:43:29] <Tom_itx> but if it does and it's '0' it's a jumper
[14:44:50] <Tom_itx> jadew what project are you promoting?
[14:46:52] <jadew> Tom_itx: https://www.indiegogo.com/projects/proto-talk/x/8683663
[14:47:28] <Tom_itx> see you just promoted it twice here!
[14:47:37] <Tom_itx> what exactly does it do?
[14:47:40] <jadew> heh
[14:48:21] <Tom_itx> and why does it say you've raised $301 when in fact you've raised $295 ?
[14:48:33] <jadew> Tom_itx, someone paid extra
[14:48:40] <Tom_itx> holy crap!
[14:48:47] <jadew> it talks various protocols
[14:48:58] <jadew> with very nice baudrate resolution
[14:49:09] <jadew> and 1.2 to 5 V output levels
[14:49:10] <Tom_itx> is that the serial thing you've been working on?
[14:49:20] <jadew> yeah
[14:49:30] <Tom_itx> what translator chip are you using?
[14:49:31] <jadew> check the specs
[14:49:42] <jadew> there are also 3 videos in the gallery
[14:50:22] <jadew> I'm using two, but they're not set in stone yet, max 3378 and max3002
[14:50:39] <Tom_itx> did you look at the nxp ones?
[14:50:45] <Tom_itx> i like them
[14:50:45] <jadew> Tom_itx, yeah
[14:50:52] <jadew> but they don't have the range
[14:51:08] <jadew> I might replace the 3002 with an AD part
[14:51:12] <Tom_itx> the one i use i think claims 1v
[14:51:21] <jadew> oh really, up to 5?
[14:51:24] <Tom_itx> yes
[14:51:28] <jadew> there's also the issue of leakage
[14:51:44] <Tom_itx> it may not do what you want but it works good on my programmers
[14:51:53] <jadew> they have requirements like VL < VCC - 0.5 or things like that
[14:52:11] <Tom_itx> could be
[14:52:18] <jadew> I'll check them out, already went through a bunch of buffers
[14:53:00] <Tom_itx> GTL2003PW
[14:53:03] <Tom_itx> 8 bit
[14:53:08] <Tom_itx> they have 2 to many
[14:53:25] <Tom_itx> no direction pin
[14:54:15] <jadew> looks interesting, I'll order a few
[14:54:19] <jadew> thanks
[14:57:17] <Tom_itx> cheap too
[15:00:05] <jadew> yeah, much cheaper than what I'm using
[15:00:39] <Tom_itx> i looked at a couple max ones too but they cost too much
[15:01:25] <Tom_itx> i've actually programmed an avr at 1.5v but it gets hard to see the led blink at those voltages :)
[15:01:38] <jadew> :)
[15:01:57] <Tom_itx> i think the data sheet says 1v but i can't remember
[15:02:17] <jadew> for the buffer?
[15:02:21] <Tom_itx> yeah
[15:02:29] <jadew> they say 0.8 V
[15:02:32] <jadew> which is impressive
[15:02:34] <Tom_itx> oh ok
[15:02:43] <Tom_itx> 5v to .8 or whatever
[15:04:05] <Tom_itx> i've only had maybe 2 or 3 go bad out of several hundred and that could be due to hacker error
[15:04:49] <jadew> I had a weird error with an analog devices one, but I'm not sure if it was something I did
[15:05:09] <jadew> it went super hot the first time I tried to use it
[15:05:27] <jadew> maybe it was ESD related or something
[15:05:44] <jadew> but after a while it worked normally
[15:06:05] <jadew> it was a board by itself
[15:06:10] <jadew> *on a
[16:23:38] <xrlk> my two other atmega328 micrcontrollers have shipped
[16:59:08] <Lambda_Aurigae> LeoNerd, ever figure out your printf issue?
[17:28:01] <LeoNerd> Lambda_Aurigae: Not yet; not had time to look yet. Hopefully sometime this weekend