Show Posts
Pages: 1 ... 34 35 [36] 37 38 ... 40
526  Using Arduino / Programming Questions / Re: Global vs Local variables and efficiency on: March 04, 2011, 05:36:47 pm
Actually, the PC you were programming on didn't have memory capacity issues, not the language.

BTW, I needed to read something again, and this seems to have something wrong? Maybe it is the fact that I can't read between the lines too well. What was the point?

Cheers,
Kari
527  Using Arduino / Motors, Mechanics, and Power / Re: Servo Control on: March 04, 2011, 12:36:44 pm
http://arduino.cc/forum/index.php/topic,54186.0.html

Kari
528  Using Arduino / Programming Questions / Re: power switching on: March 04, 2011, 12:34:03 pm
Is it possible to cycle the 3.3v power pin on the arduino without having to cycle power on the whole unit?

Do you need to reset something behind that supply?
I have that problem with my GPS unit. One solution could be to control it by 1/7th of the uln2003 transistor array, it takes one output anyway.

Better ideas will be taken with gratitude.

Cheers,
Kari
529  Using Arduino / Programming Questions / Re: Global vs Local variables and efficiency on: March 04, 2011, 12:03:08 pm
Thank you guys, I really needed that information.

I don't use many local variables, that's why I thought that compiler might be aware that sram would be full, and hopefully let me know.

Long way for me to really understand the deepest secrets of mc's. So far the program logic have been the only thing to worried about, now there's memory and timing too. And many things I'm not aware of yet.
 smiley-confuse

Cheers,
Kari
530  Using Arduino / Programming Questions / Re: Global vs Local variables and efficiency on: March 04, 2011, 11:44:09 am
Actually, the PC you were programming on didn't have memory capacity issues, not the language. 

 smiley-razz
Well, you can put it that way, it's ok. My programs have been relatively small so far, when it comes to memory usage. Anyway, I've never needed to worried about that.

Now the situation is completely different, and it may cost me if I don't learn to be smart with my code. I have Mega for the final "product", but coding carefully with Duemilanove avoid me to waste precious bytes. I don't know yet how to calculate total use of variable space, but I believe it will tell me when I have gone too far.

Kari
531  Using Arduino / Programming Questions / Re: Global vs Local variables and efficiency on: March 04, 2011, 10:48:59 am
The second block is more likely to lead to problems for the simple reason that global variables often lead to unexpected side-effects.

I would like learn more about this. Few days back I had a long talk with my friend who has long history with C programming. I asked about just the same question from him, and also about volatile variables. I thought I almost had it, but what kind of problems there can be?

Our program has (too) many global variables that are used by so many subroutines. Sometimes some calculations gives unexpected results, but most of them were because I mixed INTs and DOUBLEs the wrong way, now I know how to handle them together.

Last 25 years I've programmed with good old QB and VB6, and that doesn't have problems with memory capasity, situation is completely different now, and new (C) language to me as well. So many places to go wrong...

Cheers,
Kari
532  Using Arduino / Displays / Re: Arduino LCD problem Help! on: March 04, 2011, 03:12:07 am
Yes, if this thread stays open I will check back when I need another laugh!
C'moon! Let's leave this kid alone, and see if he actually eventually solves this technical problem.
 smiley-grin

I am following this topic because of similar problem few years back. At that time I was playing with LCD's alone, and tried hard to learn only from dataheets and some random circuits found.
Don't lock this! And stop beeing shields up, take what you are getting because you need it!

Cheers,
Kari

PS. My name is Kari, in Finland it is males name, in Norway it's female... got it... dude?
 smiley-wink
533  Using Arduino / Displays / Re: Arduino LCD problem Help! on: March 03, 2011, 11:08:11 am
polishdude20,
Heh, you have some attitude problems, but I think you are not alone with that.
 smiley-cool

When you learn more, you will find out how little you actually knew today. Stop that disrespectful writing, and grow up asap. You might say that you are not here making friends, but... The thing you left behind today, probably comes back tomorrow.

Peace!

Kari
534  Topics / Robotics / Re: CODES FOR BALANCE ROBOT on: March 03, 2011, 07:59:00 am
   thanks for schooling me here ..   i am goings to try and use continues run servo to drive the robot. i could see the signal from the accelerator but can't get it to interface to the servos    thanks for any help ...BIG O

Now that you are started to post here, try to learn some basic rules
-No shouting
-Capital letters when starting a sentence, and "." when it ends.

It will be so much easier to read, and answer as well.
 smiley-neutral

Cheers,
Kari

535  Community / Website and Forum / Re: how to post/reply to thread ? on: February 28, 2011, 05:51:41 am
and btw, i do not agree with statements like "Back to school with you."

Heh, as I don't speak English, I can't understand all meanings for that frase... I should have left that out from the quote.
 smiley-red

Cheers,
Kari
536  Community / Website and Forum / Re: how to post/reply to thread ? on: February 28, 2011, 04:17:01 am
In time, you get used to it. But when you consider that if every web site in the world decided to just randomly implement underlines, changing colours, some things are links and some aren't, but you can't tell, well that is just bad user-interface design. Back to school with you.


Exactly! I wouldn't mind if all forums in the world looks like eachother, I just wish I don't need to waste my time to learn the fuzzy logic in them, again and again.
But still, somebody is learning here how to create forums, and what is the better way to do that than use actual users as beta testers. Hey, just like Microsoft does, and makes us pay too.
 smiley-neutral

In the name of humanity; change the orange color to some more technical, eye-friendly color!!! And get rid of the other eyecandy as well, don't try to integrate too much here! We are just simple end-users!

Cheers,
Kari
537  Community / Website and Forum / Re: how to post/reply to thread ? on: February 27, 2011, 06:34:56 am
Hmm, how is that possible?

Kari
538  Community / Website and Forum / Re: how to post/reply to thread ? on: February 27, 2011, 03:39:23 am
On the right side there is a button for reply, the first on line with few other functions.

This is very messy and confusing forum, functions are dropped around.
Try CTRL-F and type "reply".

By the way, can someone give an answer to this; What the hell is wrong with old good buttons with "Look_Like_a_Button"-style? Microsoft started to "fix" them Office at first, now I don't know what is button and what is just a text!!!

Cheers,
Kari
539  Community / Website and Forum / Re: Unread posts - can they be limited by language? on: February 27, 2011, 03:24:46 am
And I like to read new posts with RSS-reader. But instead of getting all replys and new topics, I only get topics. So, I have to use "Notify" function to get informed when somebody replyis, and that is by e-mail.

So many other forums gives RSS all new posts.

Actually this changed for me when I created independent RSS-tasks for specified forums, that was the way around that I didn't want foreign language forums posts to appear in to my reader.

Is there some parameters that can be used with the reader, to get all posts from those parts of the forum I have chosen?

Cheers,
Kari
540  Community / Local Groups / Re: Any in Bergen, Norway ? on: February 25, 2011, 10:43:26 pm
Does anybody see me, I live in Finland? That can't be right, right?

Besides, who cares where we live, this is the Internet!!!
 smiley-grin

Cheers,
Kari
Pages: 1 ... 34 35 [36] 37 38 ... 40