« first day (907 days earlier)      last day (4026 days later) » 

12:00 AM
@AnindoGhosh Yeah, I really appreciate the user came back and improved it, and although it is not perfect it is more clear now.
 
 
1 hour later…
1:05 AM
@Kortuk I've noticed there seem to be a lot of broken images today that when I right click on the thing and go view image in new tab it seems to work fine... any ideas?
 
2:01 AM
@NickHalden Sorry, I dont know that problem at all.
 
2:32 AM
@hhh Since it looks like you're using all TI parts, the quickest one to bring up would be Tina-TI. It might not be the the best tool to learn for future use, but it will get that particular circuit running right away without worrying about importing libraries and stuff.
 
 
1 hour later…
3:54 AM
@Kortuk Agreed
 
4:23 AM
Anyone has experience with AVR inline assembly?
Or in-depth knowledge of avr-gcc?
 
5:13 AM
I am crashing. later guys
 
@Kortuk Goodnight
 
5:32 AM
@Kortuk Sleep well
@angelatlarge Not me sorry
 
5:46 AM
good morning
 
@jippie! Just the person I wanted to see! Wheee!
 
?
 
@jippie How are you with avr assembly?
 
I can read it
 
@jippie Have you ever used inline assembly with avr-gcc?
 
5:52 AM
nope
 
@jippie Crap, Obi-wan-jippie, you were my only hope...
 
for inline assembly, wring is required and I just mentioned I can read it :-p
whazzup?
 
@jippie I think avr-gcc is generating some stoopid code sometimes.
 
Hello
 
Maybe it is me who is stoopid, but have you ever seen what SOMEPORT = eightBitValue>>4; looks like?
 
5:55 AM
show me
morning @Noah
 
@Noah Hello
1200:	ac 2d       	mov	r26, r12
1202:	b0 e0       	ldi	r27, 0x00	; 0
1204:	b5 95       	asr	r27
1206:	a7 95       	ror	r26
1208:	b5 95       	asr	r27
120a:	a7 95       	ror	r26
120c:	b5 95       	asr	r27
120e:	a7 95       	ror	r26
1210:	b5 95       	asr	r27
1212:	a7 95       	ror	r26
1214:	ae bd       	out	0x2e, r26	; 46
This is for SPDR = dataByte>>4;
I mean jesus!
 
what is r12?
looks like code for 16 bit shift
@angelatlarge did you declare eightBitValue as uint8_t?
 
@jippie Sure did. Although, let me try to cast it, maybe that will help.
No difference. Back to figuring out inline assembly ;)
And now, thanks to "Islam" I get a shiny badge :)
Whew. And now thanks to the magic of inline assembly we have instead
spiSendPaddingPlusHighNibble; // idxNextSendType = 0
1218: 47 2d mov r20, r7
121a: 42 95 swap r20
121c: 4f 70 andi r20, 0x0F ; 15
121e: 4e bd out 0x2e, r20 ; 46
And through the magic of inlining it actually runs slower :(
 
6:20 AM
@angelatlarge :))
so how did you inline it?
 
@jippie It seems like the compiler decided to surround my inline code with code that saving registers to SRAM. LIke a stack.
@jippie

#define __spiSendPaddingPlusHighNibble(val) \
asm volatile ( \
"swap %0 " "\n\t" \
"andi %0, 0x0F" "\n\t" \
"out 0x2e, %0" "\n\t" \
: "=a" ((uint8_t)(val)) \
: "0" ((uint8_t)(val)) \
)
Yeah, it is doing that for my other inlined function. Jesus!
 
?
is it pushing and popping before your inlined code is executed?
 
@jippie Sort of...
    1286:	bc 83       	std	Y+4, r27	; 0x04
    1288:	ab 83       	std	Y+3, r26	; 0x03
    128a:	5e 83       	std	Y+6, r21	; 0x06
    128c:	4d 83       	std	Y+5, r20	; 0x05
				spiSendPaddingPlusHighNibble;		// idxNextSendType = 0
    128e:	47 2d       	mov	r20, r7
    1290:	42 95       	swap	r20
    1292:	4f 70       	andi	r20, 0x0F	; 15
    1294:	4e bd       	out	0x2e, r20	; 46
    1296:	74 2e       	mov	r7, r20
    1298:	4d 81       	ldd	r20, Y+5	; 0x05
    129a:	5e 81       	ldd	r21, Y+6	; 0x06
 
those std / ldd take all 2 clock cycles
 
Yeah, sure do!
 
6:32 AM
move more code into the inline assembly, so the std/ldd overhead gets lower
 
@jippie Actually using 4 lsrs does improve the performance over what pure gcc generated.
    12ae:	bc 83       	std	Y+4, r27	; 0x04
    12b0:	ab 83       	std	Y+3, r26	; 0x03
				spiSendPaddingPlusHighNibble;		// idxNextSendType = 0
    12b2:	76 94       	lsr	r7
    12b4:	76 94       	lsr	r7
    12b6:	76 94       	lsr	r7
    12b8:	76 94       	lsr	r7
    12ba:	7e bc       	out	0x2e, r7	; 46
    12bc:	ab 81       	ldd	r26, Y+3	; 0x03
    12be:	bc 81       	ldd	r27, Y+4	; 0x04
 
user61389
@angelatlarge for your badge: electronics.stackexchange.com/users/22912/mhmd (morning all!)
 
Still does some std / ldd
 
-6
A: TRIAC switching problem

mhmd((( O people Say No God But Allah, Achieve Eternal Salvation ))) " Laa illaha illa lah ." (There is none worthy of worship except Allah.) ( I bear witness that there is none worthy of worship except Allah and I bear witness that Muhammad is His servant and messenger )  http://aslam-ahmd.blogsp...

 
@CamilStaps Been there, flagged that
 
6:35 AM
pls flag
 
I flagged 'em all, your people's turn.
Badge coming up when some mod wakes up.
 
user61389
Me too :)
 
user61389
How many flags have you already?
 
@CamilStaps 78 (Thanks, Tony!)
 
user61389
@angelatlarge hah :)
 
6:37 AM
@CamilStaps Oh, there it is. 79
@CamilStaps I guess SPAM flags are democratic in terms of "helpfulness" assessment.
No mod necessary.
 
is this spam or unwelcome?
 
user61389
@angelatlarge the others are too, I believe
 
5×spamFlag = delete
 
@CamilStaps Oh, really?
 
user61389
@jippie it is 'promotional', so I flagged spam
 
6:38 AM
I marked those as spam too - just promoting a blog site
 
user61389
@PeterJ + the Islam
 
I flagged spam because it is the only one that deletes automatically, w/o need for the mods.
 
user61389
 
@CamilStaps This "Regardless of the moderator's final decision, those flags won't be computed as "helpful" for you or the user who flagged it as invalid." suggests that mods are involved in "helpful" designation.
 
wish I could give that guy 666 rep
 
user61389
6:40 AM
@angelatlarge yeah, but if there are no mods awake, it is handled by 10k users
 
@CamilStaps I am not sure other than "disputed" status whether that means anything for "helpful"
 
user61389
@angelatlarge also, when you flag something for off topic, and after that it is closed by 3k users for being off topic, I guess your flag is getting marked as helpful
 
At this given moment I guess it is closer to 10 users than 10k users
 
@jippie :)
 
6:42 AM
@jippie Brilliant! Good one!
 
@CamilStaps Been there, flagged that.
 
@angelatlarge What's the helpful flag thing useful for? I have 71 helpfuls out of 72 flags, what does that do for me?
 
@AnindoGhosh Nothing, until you get to 80.
@AnindoGhosh At 80 you get a badge.
 
@angelatlarge Gold?
 
@AnindoGhosh No...
 
6:46 AM
@angelatlarge Plastic?
 
@AnindoGhosh I think it is 10k helpful flags for gold.
@AnindoGhosh Chocolate
 
@angelatlarge Ahhh NOW you're talking. Excellent. Must get chocolate. :-)
 
@angelatlarge, it's 500, I've got 100 to go ;-)
 
user61389
@angelatlarge 500 :)
 
user61389
6:48 AM
I wish I still had <3k, now I can't flag to close anymore
 
@PeterJ You guys are talking about this one:
http://electronics.stackexchange.com/badges/77/marshal
 
@angelatlarge Yeah, I'll never have the time for that.
 
And now you are all welcome to look at my shiny new badge
 
There really needs to be a feature request for flagging spam users, such that they can be automatically suspended at the least, if enough flags are raised.
 
@AnindoGhosh +1
 
6:50 AM
top of the list too :-)
 
@PeterJ Shocker :)
 
@AnindoGhosh -1
 
@angelatlarge Congratulations! The next time we have an epidemic, I'll probably get one too.
 
@AnindoGhosh I want those badges too, then I'll upvote your proposal
 
@AnindoGhosh You mean when Tony misplaces the meds again?
 
6:52 AM
450 flags to go
 
@jippie Which badges and what proposal?
 
user61389
@AnindoGhosh it would be nice, but there has to be a high threshold for that privilege
 
@AnindoGhosh this one
 
@angelatlarge Or when the white jackets misplace him again.
 
the gold flag badge
 
6:52 AM
@CamilStaps I think "unregistered user + 4 posts marked as spam in one hour" is a pretty high bar to clear.
 
user61389
@angelatlarge yeah, but as I read it, @AnindoGhosh wants to flag users instead
 
@CamilStaps Yeah, I have no views on any of that - I'm just very tired of these spammers showing up during no-mods-around times and stinking up the place.
 
user61389
@AnindoGhosh perhaps there is a relationship between timezone and spamming :)
 
@AnindoGhosh maybe I should set up a proxy, so you can flag spammers form my account too. That gives you two flags already ;o)
 
@CamilStaps Yes I do: And that should be easy enough to secure as @Angela described, i.e. user cannot be flagged till X posts by them are flagged.
 
user61389
6:55 AM
@AnindoGhosh oh, so. Yeah, that would be a good idea @angelatlarge
 
@AnindoGhosh why not autoflag the user in such a case, (s)he is not leaving real answers anyway.
 
@CamilStaps There definitely is: Every spammer knows what times are low-policing periods.
 
@CamilStaps I am not sure that the user needs to be flagged. In think X amount of spam = automagic quarrantine until mods look at it
@jippie Yeah, exactly
 
@AnindoGhosh they still didn't figure out that I clean my own website every 12 minutes ;o)
 
user61389
@angelatlarge that's a nice one as well, but you wouldn't get a badge then!
 
6:57 AM
@CamilStaps You'd get the helpful flags badge.
 
@jippie Well, for one thing then these badge-hunters wouldn't have anything to do... and for another, I had discussed autoflagging users with too many spam-flagged posts, as in the bothersome dude's case, and I think the conclusion was no, that can't happen.
 
user61389
@angelatlarge you wouldn't get helpful flags when the user is auto-flagged
 
@CamilStaps Yeah, but there is a one-to-many relationship between flags for user and flags for spam.
 
@CamilStaps See?
 
@AnindoGhosh Stole my non-points! Damn you!
 
user61389
6:59 AM
@angelatlarge true - but there could be a new badge for flagging users :D
 
1
A: Relay(or Alternative of relay) without pull-back feature

Anindo GhoshWhat the question describes is called a latching relay: There are several types of latching relay manufactured: NO/NC/NO+NC, SPDT/DPDT, timed reset, switch reset, and so on. Depending on required rating and load type, latching relays are available in tiny sugar-cube type PCB mounted packages...

 
@angelatlarge Hahaha
 
I think SE should not have highest priority at badge/rep-hunters, but rather an healthy website.
 
@angelatlarge Hmm? What about it? Mistakes?
 
@angelatlarge Flagged it!
 
7:00 AM
@CamilStaps Yes. And there could also be a new badge for flapping your gums in chat. And we'll all have the gold versions by now.
 
user61389
@jippie badge-hunters are motivated to flag, so they can be useful as well
 
user61389
@angelatlarge :)
 
@CamilStaps I am a bulge-hunter. About to contribute to mine with extra beer.
 
@angelatlarge There are so many awkward ways of interpreting that!
 
@angelatlarge yeah most badges are 'designed' for SO's huge number of users and visibility and have high thresholds for EE-experience.
 
user61389
7:02 AM
Fortunately the beta sites have different thresholds. The private betas have even lower thresholds.
 
Found a nice whitepaper for the next time someone asks a basic encoder question... It's not too mathematical for newbies either: automationdirect.com/static/press/encoder-white-paper.pdf
 
@jippie I really like the size of EE community actually. It's like living in a place where you sorta know everyone. Unlike SO, which is like living in huge metropolis, where you couldn't possibly know every person.
What I've learned today: a) how to do a bit of inline assembly in avr-gcc.
What I didn't learn today: why my partially unrolled program doesn't work.
 
@angelatlarge reddit/TIL
 
@angelatlarge i like it too. I think we should close registration. New users only to be admitted if an idle user leaves.
 
@AnindoGhosh ?
 
7:04 AM
@jippie You mean the old one leaves, don't you ;-)
 
user61389
@angelatlarge SO is a horror. When someone asks a dumb question, he instantly has 5 downvotes and 5 comments that exactly say the same. His question gets closed within 5 minutes. That isn't new-user-friendly anymore...
 
@angelatlarge waht you showed me didn't work?
 
@angelatlarge reddit has this "Today I learnt" subreddit.
 
@jippie It does. Did you select the wrong line to respond to?
@AnindoGhosh Oh.
 
user61389
@angelatlarge it's because you're on AVR
 
7:05 AM
@CamilStaps Can we leave the Mac vs. PC flame wars aside here. I've been nice, haven't I?
 
user61389
@angelatlarge good idea :)
 
@CamilStaps Didn't some D-bag leave a comment like that on a question today (yesterday, for you foreign peoples)?
 
user61389
@angelatlarge linky?
 
@CamilStaps I flagged it, probably gone... let me try... hold on...
@CamilStaps Is there a way to see more recent questions?
...as in "active"?
 
user61389
Not that I know of.
 
7:09 AM
@CamilStaps Yeah, sorry, it was a while back.
 
user61389
@angelatlarge No problem
 
@CamilStaps The OP said that it was a bug in the S/W he used, and someone responded what "you shouldn't be using that crap anyway" or something like that.
 
user61389
@angelatlarge heh :) I've had the same with the C18 compiler, someone (I think Glaser) told me to use XC8 instead. But he formulated it nicely, that it was newer or so.
 
@angelatlarge, you're probably thinking of the MultiSim 'answer', I flagged it as not an answer and was about to add a comment but you already had
 
@angelatlarge, on your profile if you click on the number of flags, it will link to the questions you flagged
 
7:12 AM
@StaceyAnne really?
 
it works for me
oh, the number beside helpful flags
 
user61389
@StaceyAnne yeah but you won't get a deleted answer back if you aren't 10k, right?
 
nope
 
@StaceyAnne Oh, yeah, true, I forgot about that because I use it for a very different purpose :)
 
well, I'm not 10k, so I don't know :P
so yeah, if it's gone it's gone
 
user61389
7:13 AM
0
Q: How to use the PIC16F628A's PORTA,4-7 as inputs?

LuanI'm working on a countdown timer and I want to use the MSN of PortA for my switches. I'm using MPLAB. I can't use C to program the PIC because the collage taught us to program in decimal, and they will think I copied someone else work if I write in C. I've got the rest in order so far, but I'm ha...

 
user61389
I can't figure out what language this guy does use, only that he doesn't use C...
 
"taught us to program in decimal" ?
 
@CamilStaps, I'd guess assember, I think that's all MPLAB has by default isn't it?
 
user61389
@StaceyAnne that's no language :) or at least there is no MPLAB compiler for it
 
7:15 AM
I've used mplab before with C
 
user61389
@PeterJ yeah but there are compilers for C and perhaps others (Basic?)
 
@StaceyAnne Can't use hex?
 
I thought maybe ASM, but I remember using a lot of hex
but then that was 5 years ago, so my asm is a bit rusty
 
user61389
You can use decimal in ASM too, but it's ugly.
 
Normally hex is the sensible choice, been a while since I've done any PIC assembly but I can't think of a particular reason you couldn't do it all in decimal
 
user61389
7:20 AM
I found decimal only useful for delay routines or so, when you want 100ms I write D'100' instead of 0x64. For the rest...
 
@CamilStaps what's wrong with 0x64ms?
50Hz = 0x14 ms
 
user61389
@jippie D'100'is more readable
 
?
 
user61389
@jippie if you're not familiar with hex
 
@CamilStaps decimal is for wussies
 
user61389
7:30 AM
@jippie thanks man, appreciate it :)
 
@jippie Hexadecimal is for wusses. Real engineers use hexal
 
I think decimal is for people that use PIC and hex is for AVR-people, true engineers
 
user61389
@angelatlarge what's that?
 
@CamilStaps I don't know. I am not a real engineer.
 
user61389
@angelatlarge ah, now I see, hehe
 
7:32 AM
Pfft, I use binary and toggle switches to write my PDP-8 code
 
@PeterJ Get a lot done in a day?
@PeterJ 1.5 lines or so?
 
@angelatlarge lol, actually they were a little before my time but I did have a quick play with one once. A long time ago but I seem to remember apart from the switches you had to clock in the address and data seperates so it was probably about 1.5 instructions a minute
 
Here comes the mod to clean up.
 
@Kortuk I've found a serious beer
 
@PeterJ I think I'm going to make a USB keyboard later this summer, that has 8 toggle switches to set the ascii value and a send button. :o)
 
7:45 AM
@clabacchio @clabacchio He said he was going to bed
 
/me is out
 
user61389
 
@CamilStaps It's PIC beer. Doesn't taste as good as some other beers.
 
user61389
@angelatlarge meh, probably general C (and no, I will not discuss that!!)
 
@angelatlarge I know, he'll read it when he wakes up
 
7:56 AM
@CamilStaps I don't know if it is going to be useful, but you did say "free beer", so there you go.
 
user61389
@angelatlarge I think it is, but I don't know my *s and &s, so I have to decipher your answer first. Mike said something about a union, that sounds good too.
 
user61389
Ah, @PeterJ has used that C union in his answer :)
 
@CamilStaps A union could work. Mine is a more powerful (=more error prone) solution. Union is more specific.
 
user61389
@angelatlarge when wouldn't a union work then?
 
@CamilStaps Well, with union generally you would declare some structure as a union. You can cast anything to a byte pointer.
 
user61389
8:00 AM
@angelatlarge Yes, I see
 
@CamilStaps, a union is safer because you are restricted to the types specified within the union. using pointers, the compiler doesn't know, or care, about what you're casting to/from, so you are open to casting from anything to anything
which can lead to odd behavior if used incorrectly
 
@StaceyAnne That's a nice explanation. Except that you can cast something to a union :) I guess a good way to think about it is that casting is an inherently somewhat unsafe operation.
 
user61389
I'm out for a while
 
8:18 AM
teeheehee, I'm on 99 consecutive days visiting EE
 
user61389
Back, with more free beer:
 
user61389
0
Q: C18 pseudo variables

Camil StapsI'm looking for a way to make Jal-like pseudo variables in C using the C18 compiler. A pseudo variable is something that acts like a variable but actually is a function. In Jal, it's possible to make a pseudo variable like this: function the_var'get() return byte is -- some code end functio...

 
@CamilStaps Yeah, there aren't automatic getter/setter functions even in C++. But I am curious what the good people of EE.SE will come up with. Surely something, but it might be scary.
@CamilStaps Out of curiosity do you actually need that for something?
 
user61389
@angelatlarge I'm porting Jal libraries to C :)
 
user61389
Me is boaaard
 
user61389
8:29 AM
And hey, lcd='A' looks better than lcd_putChar('A'), doesn't it? It might get a bit unclear what you're doing though
 
@CamilStaps You know Olin will tear you a new one when he sees this, right?
 
user61389
@angelatlarge I'm wondering what he would do when he saw some actual Jal - whether he would ever come back after that or not
 
user61389
That language has, with respect, the worst syntax I've ever seen
 
@CamilStaps Well, don't let Wouter van Ooijen hear you say that
@CamilStaps But honestly, you might get better answers on SO. I know you are not a big fan, but it is a pure language question.
 
user61389
@angelatlarge sorry, I'm talking about Jalv2. Though the syntax looks similar indeed
 
8:35 AM
@CamilStaps ah
 
user61389
@angelatlarge yeah, hm. Let's give it a try
 
@CamilStaps, Jal looks a bit like python
 
@CamilStaps Even @jippie uses it for pure programming questions.
@StaceyAnne Wiki says pascal-like, but honestly, I don't see it.
 
user61389
See this. I had to edit that post like 4 times to bump it, now I have 10 views and no response, though it isn't really a hard question for a pro. That's why I don't like SO
 
SO closed one of my questions because "general questions about algorithms are off-topic"
wha?
"question about an algorithm" is listed right in the FAQ!
 
user61389
8:37 AM
@StaceyAnne does Python have semicolons after a line? That's a bad thing in Jal IMO, no semicolons or curly braces.
 
user61389
@Bitrex what question? Perhaps Programmers would like it?
 
@CamilStaps I can actually answer that question.
 
@CamilStaps no
re: python
 
@CamilStaps, python doesn't use semicolons or brackets
 
user61389
@angelatlarge do so, please? :)
 
8:38 AM
@CamilStaps, it also uses indentation in indicate the starts and ends of loops and such
 
user61389
@StaceyAnne so you can't actually write multiple statements on one line?
 
@CamilStaps I can't answer it professionally, but I stole someone's cod.. errr.. built an app that functions like that.
 
@CamilStaps, not that I know of
 
user61389
@StaceyAnne Well it's probably what you're used to. But I like curly braces and semicolons :)
 
user61389
@angelatlarge I don't care about professionalism, I just want an answer :P
 
8:39 AM
@CamilStaps If you don't see something from me on that tomorrow, poke me, OK?
 
you can do multiple things on one line, like a list comprehension
 
user61389
@angelatlarge will do, thanks in advance!
 
a = [i**i for i in xrange(0, 256)]
make a list of the square of every integer from 0 to 255
and assign it to a
 
user61389
Hmm, okay. That's good for Python then, but Jal can't do such a thing
 
user61389
Also, the JALEdit environment is horrible. Don't get me started on that.
 
user61389
8:41 AM
0
Q: C18 pseudo variables

Camil StapsI'm looking for a way to make Jalv2-like pseudo variables in C using the C18 compiler. A pseudo variable is something that acts like a variable but actually is a function. In Jalv2, it's possible to make a pseudo variable like this: function the_var'get() return byte is -- some code end fun...

 
Well, I can't help, but I upvoted your question :)
 
user61389
@Bitrex thanks :)
 
@CamilStaps I can answer it (the answer is "no") but you'll have three responses by the time I get up.
 
look at all those instant upvotes, and some say SO is unfriendly lol
 
@CamilStaps You are getting lots of cheap rep from posting it here :)
 
user61389
8:43 AM
@PeterJ it is to newbies
 
@CamilStaps rep-whore
 
user61389
Who, me?
 
@CamilStaps The answer to your comment is: use two functions. That's the workaround. :)
@CamilStaps Jesus. 4 upvotes. I don't get that on my good questions.
Maybe I should start promoting some of my posts here :)
 
user61389
I don't get it either - I'd think it would get closed soon as a duplicate of some other post asking for C getters and setters
 
ugh. @angelatlarge, using Jesus' name in vain is not something I appreciate.
 
8:46 AM
Consider, for instance, this answer:
3
A: Cheapest way to add wifi to a project

angelatlargeA very cheap way to add WiFi to a project, is to use a WiFi router as WiFi hardware. The router needs to be not-so-new in order to be cheap, and must support Serial/USB or JTAG ports on board OpenWRT (DD-WRT may work too, but I haven't used DD-WRT for this purpose) See OpenWRT supported hardw...

 
ahem, while we're upvoting...
 
user61389
@angelatlarge who's the rep whore?
 
@StaceyAnne Sorry. After a couple of beers the filters don't function as well.
@CamilStaps Me! Me!
 
user61389
@zakinster What do you have in mind with C++? — angelatlarge 16 secs ago
 
user61389
I was typing just that!
 
8:48 AM
@CamilStaps See, SO works.
 
user61389
@angelatlarge for this case it does
 
@CamilStaps Just don't accept anything until some more people had a chance to wake up, that would be my advice...
 
How does one link Circuitmaker sketches into posts?
 
user61389
@angelatlarge yeah, but after like 10 minutes there have been 10k other questions and nobody sees this one anymore
 
user61389
@Bitrex do you mean circuitlab?
 
8:49 AM
@CamilStaps People filter
 
Oh, yeah, Circuitlab.
 
user61389
@angelatlarge yeah, well, I sometimes watch the views and after some moment it won't increase anymore... or at least that's my experience
 
user61389
@Bitrex Ctrl-M
 
@CamilStaps you can have the SE sites notifiy you whenever new questions matching your filter come in
 
I guess I see what they have in mind: creating an object variable, and overloading the operators
 
user61389
8:50 AM
19
Q: Embedding a schematic editor

clabacchioI've noted that really often, questions require the use of schematics, and answers too. Since I've seen some online editors, why not to embed one also here, so even editing these questions would became easier?

 
@CamilStaps Thanks. Though when I click the link and it brings up the editor, if I try to open a saved file to insert, I lose the insert link.
Hm.
 
user61389
@Bitrex I don't think that's possible
 
@CamilStaps :(
My circuit doesn't simulate properly in Circuitmaker anyway. Works fine in LTSpice.
And I trust LTSpice any day of the week.
 
user61389
@Bitrex yeah, CircuitLab has troubles on Monday, it's a known issue.
 
:]
 
user61389
9:44 AM
Are there any delay functions for C that take care of milliseconds and so? I'm now using Delay10TCYx(5); for 5*10 clock cycles, but now I have to do the calculations...
 
9:56 AM
for most of my uc code, I make a for loop counting up to CLK_FREQ/1000 * num_of_miliseconds, where CLK_FREQ is the CPU freq constant and num_of_miliseconds is an argument into my function for the length in ms. for loop only contains asm("nop")
 
@CamilStaps, some specific compiler / cpu combinations will have a delay function in their library, not sure about PIC18 but there's not a generic C function / library that'll do it.
 
like this:
 
user61389
@PeterJ no, the Delay10TCYx and the like functions are of the compiler, but nothing more :(
 
`void delay(int miliseconds)`
`{ `
` for (i = 0; i < CLK_FREQ*miliseconds/1000 ; i++)`
` asm("nop");`
`}`
ugh, formatting
 
user61389
@StaceyAnne hmm, but how can you be sure that's actually a millisec?
 
10:00 AM
@CamilStaps, you'd have to double check how long the ASM nop command takes for the uC in question
 
user61389
@StaceyAnne but the for loops consumes time too!
 
@CamilStaps, I usually calibrate it :)
 
user61389
@StaceyAnne okay :) thanks, but I'm not going to use that
 
10:11 AM
why wasn't this migrated to the SO meta?
3
Q: Why doesen't finish signup work

skylerI was first going to ask this on Meta, but that was not possible because it required me to do "finish signup" which doesen't work for me. I always have this thing at the top of the screen next to my name that says "finish signup". So, I click on it, and see what happens. I get to this screen, a...

 
user61389
@StaceyAnne the SE team tracks all per-site-metas questions with the tag
 
user61389
So the question will be dealt with, however, I agree with you it would've been a better fit on MetaSO.
 
11:07 AM
I'm having a brain shorted moment here: Someone please help with something that should be trivial... If I'm protecting a circuit from reverse connection with a reverse-biased Schottky and a PPTC fuse (diode will short, fuse will go open-state), is there a simple way of indicating that the supply is reverse using an LED + resistor? The way I see it, if the Shottky is conducting, there's barely a few mV across it until the fuse blows, then the Schottky is out of circuit.
 
11:23 AM
@AnindoGhoshm couldn't you just put a LED from +V to GND before the PPTC back the front? I seem to remember in one way it's not a good way to have a LED connected reversed but from memory thought it was mainlly at higher currents.
 
11:35 AM
Voltages I meant to say
 
@PeterJ Voltage in this case is 20 V, so yes and no (the LED will see a reverse voltage of way over the typical 5 to 10 Volts)
@PeterJ I'm thinking exactly like you said, but LED plus regular cheapo Si diode in series. The diode should block the voltage off the LED. However, there ought to be a more elegant solution, says the voice at the back of my head.
 
11:54 AM
@AnindoGhosh, can't think of a better way myself than other than just a cheap small-signal diode as you say
 
12:32 PM
7
Q: Can Arduino operate under water?

HakonbogenI have an idea for an automated small toyish submarine. Can I use the Arduino for this? Does it behave well under the ocean surface? I think I'll need some kind of casing with silicone around it, and a small propeller that will push it forward. What's the best suited Arduino for this project? It...

Does this belong on EE ?
 
user61389
@AshRj I agree with Kevin Mark here:
 
user61389
@Shog9 I would love to see a majority of the questions moved over to other SE sites. I'm worried that some of the most helpful and interesting questions/answers on this site might be considered "too nooby" or off-topic for EE. Like arduino.stackexchange.com/questions/343/… or arduino.stackexchange.com/questions/329/…Kevin Mark yesterday
 
user61389
Possibly not off topic, but it will get downvotes because it's very broad and open, I think.
 
2:41 PM
Hi!
 
user61389
@abdullahkahraman morning!
 
@CamilStaps Nah, I am not from India USA
@CamilStaps I am from Turkey, 1 hours ahead from you, sometimes 2.
 
user61389
@abdullahkahraman sorry, good afternoon?
 
17:43 :)
@CamilStaps Good afternoon!
 
user61389
@abdullahkahraman :) (you're 0:59 ahead)
 
2:44 PM
@CamilStaps Sorry for the pings :)
 
user61389
@abdullahkahraman no problem
 
@CamilStaps lol
These guys and girls are not huge, but they are very powerful:
 
user61389
Is Bill Mr T. II?
 
@CamilStaps Could be, lol.. I understood none of his answers
 
user61389
@abdullahkahraman neither did I, flagged the digikey one as spam
 
2:49 PM
@CamilStaps lol, a spam!
 
user61389
@abdullahkahraman need. Helpful. Flags. :P
 
good (insert time of day) all
 
user61389
@rawbrawb good-16:57 to you
 
@CamilStaps Wow, is that good only for that instant, the whole minute or what? ;)
 
user61389
@rawbrawb I'm generous today, normally I greet people on the millisecond precise
 
2:58 PM
@CamilStaps LOL
@CamilStaps it looks like you were right. It's hard to tell, sometimes.
 

« first day (907 days earlier)      last day (4026 days later) »