Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 81
61  Using Arduino / Programming Questions / Re: please can someone help me? on: March 14, 2014, 07:46:47 am
I suspect you are running foul on the IDE rearrangement bug.  Here is a discussion http://forum.arduino.cc/index.php?topic=201407.msg1484378#msg1484378

You add an irrelevant variable in the file before anything else (execpt comments and #define") and it cures the problem. It may be somehing else, but it is worth trying.


(The occasional swedish(?) word in your text either means you are typing far too fast - faster than your thoughts can follow, or you're using google translate. Help your self and think about what you write - it may even make you discover the fault before hitting the POST button smiley Och ja, jag kan läsa svenska - but this forum is english)
62  Community / Website and Forum / Re: Harsh words on: March 12, 2014, 02:02:16 pm
Irony/Sarcasm is good for entertainment, rarely for education.

Some years ago, I needed a Unix introduction - I found a book to "100 things I hate about Unix" (or similar) and it contained the pitfalls. I thought that would be a good way not to make those mistakes. Unfortunatly it also left me with a negative attitude to *ix'es, which I am finally (slowly) getting over.

Likwise (humorously) explaining what not to do to an Arduino project will confuse and discourgage newbies. By all means include some examples why & how the projects fails when one ignores the postive good advice otherwise given.

But we can (over in Bar Sports) do a list for the enjoyment of "those who know" (... or think they know  smiley-wink )
63  Community / Website and Forum / Re: Nick Gammon? on: March 12, 2014, 01:44:14 pm
According to his members page - last active 2 march. That is only 10 days ago. Maybe he is having a holiday. I, too, somethimes get a little "fed up" and let ArduinoForum survive without me for a month. It does.

OTOH nice of you to worry.
64  Using Arduino / Project Guidance / Re: Demonstration code for several things at the same time on: March 11, 2014, 02:03:45 pm
Me sits here feeling slightly miffed smiley-eek-blue that my explanation (reply#8)
of the reason why timer += increment is the better way is quietly ignored by Robin2
 -- only to be repeated by PeterH (reply#17)  smiley-wink  smiley-wink  smiley-wink (and I am sure PeterH invented his own).

Robin2 -
Code:
void loop() {
  delay(12) ;
  Serial.println(millis()) ;
  }
millis() now increases by 12 in each loop ! Eh?! And sometimes by 13. Eh eh!?!?

Quote
SECOND ... (though, I had forgotten) The code in "BlinkWithouDelay" uses "previousMillis = currentMillis; "
Unfortunatly there are several things missing, misleading and sometimes plain wrong in the reference/tutorials.
These have been pointed out, but the Arduino team has choosen not to use advice from this forum on that matter.

Quote
MY CONCLUSION ... is that this is a discussion about angels on the head of a pin
You're entitled to your point of view. However, this is not a religous point - it is mathematically deterministically provable true.
It may be for some applications the slippage/jittery is of no consequence, but it is there.

PeterH said it succinctly "the fact that it's taking so long to explain it to you demonstrates that it's quite a subtle problem - but it is still a problem."
65  Using Arduino / Project Guidance / Re: Demonstration code for several things at the same time on: March 10, 2014, 06:23:09 am
Nice long example (not all examples can be 1<10 lines).

I wondered what the difference was between the attached file in the first and reply#1 with the code inline. My editor only shows comments lines are shorter  smiley-mr-green

I would do it slightly different (which means neither better nor worse)  smiley-kitty

I do not quite get the educational value of having update_LED_state() and switchLEDs() as seperate functions - it means you have to carry LED-desired-state as global variables, when they could be nicely encapsulated. Place most variables as static inside the function where they are exclusivly used - this way you can not inadvertently modify a timer variable elsewhere.

CodingBadly's comment is that if your loop takes - say - 5 millisec to execute (because of some not-yet-written heavy calculation code), then the LEDs will blink at the interval+5ms. By adding "interval" to the  "timer" (not the measured millis() value) you get it to run at the "interval" rate. For a "real" project it may be desirable to include the loop overhead/jitter, for some you want a steady rate.
66  Using Arduino / Project Guidance / Re: Weightlifting analysis tool Project on: March 10, 2014, 06:02:39 am
Defenitly do-able. At least from a component point of view.

As with all projects of this type, one starts with a "thrown together" prototype, to get some experience how the measurements look (and get it to work reporting "something"  smiley-roll-sweat )  Wire it up on  a breadboard and get the Arduino to send all the values out on Serial - as fast as it can. By using some other Serial window like Putty, you can spool it to a file, import in Excel and start looking at curves. Again, just as an initial experiment.

Then worry about how to make the board small and robust, wired or wireless (requiring a battery). You can also then (re)design the software to do some filtering of bad values. You can decide on the type of local display on the unit.

Good luck with the project.
67  Using Arduino / Project Guidance / Re: Frequency Counter Troubleshooting on: March 10, 2014, 05:45:12 am
Code:
void loop() {

 FreqCounter::f_comp= 12;             // Set compensation to 8
 FreqCounter::start(100);            // Start counting with gatetime of 100ms
 while (FreqCounter::f_ready == 0)         // wait until counter ready
 
 frq=FreqCounter::f_freq;
Compensation 8 - value set to 12 - either comment or code is wrong

the while  loop is missing a ";". Unless you meant to read the value constantly - and then not read the last (presumably correct) value.
68  Using Arduino / Project Guidance / Re: Finished with my bluetooth robot, need help deciding the robot's purpose. on: March 10, 2014, 05:38:24 am
World Domination

 smiley-cool
69  International / Scandinavia / Re: Problem med åäö på 1602 display med I2C on: March 09, 2014, 01:53:02 pm
Jeg har inte själv en LCD så jag gissar lite - men jag har mycket erfaring med I18N problemtik i andra sammenhäng.

Problemt är att någon har bestämt at talet 65 skal visas som A och 66 som B osv.  Det går fint med A-Z och dom andra engeslka bogstavarna. Men så är där både svenska, grækiska, cyrilliska hæbraiska bokstavar ... och der är bara 256 möjligheter i en byte. Så därför har din LCD valt et "character set". Här tykte nogon at kanji var vigtigere än äöå...  smiley-sad

Unicode kan rymma miljonvis af tecken, frågan är om LCDen har pixelmönstra för alla. Troligen inte. Unicode används internt i din kodefil (java använder unicode) och äöå har så stort et talvärde at det visas som två byte/tecken.

Så dit forsök med ägna tecken vil funka om du
Code:
String message = "\01 \02 \03 ";
och så behöver du inte göra replace()  Det där med backstreckciffror er http://en.wikipedia.org/wiki/Escape_character
70  Using Arduino / Project Guidance / Re: How to initialize (or Declare) a multidimensional array on: March 06, 2014, 04:13:00 am
Hi LTU1,

this might make your thread to go off topic, and that is a shame, because I think you have made a good positiv attempt to contribute. Thumbs up.

However:
Paul,

This is the second time you've trolled one of my posts.  After reviewing your past posts prior to my logging back on, it appears you get your jollies from being negative and unhelpful.
PaulS is always obtuse and sarcastisc in his answers because he hopes to get people to THINK about their problems instead of just whining "it dont work - do it for me". As he is correct in his observations and comments, I for one consider it more helpful than not.

Leaving the choice of wording to one side at the moment you have factual errors (as in fact - proved by reading manual or doing experiments): There is no exponential growth - the array grows with exactly the size you specify (which is mutiplying each dimension as virtual1 points out), all elements and rows are counted (how else would it know how much memory to use?) and there is only an error if your count and the compilers count in number of lines differ - and the compiler is always right in this case. (thats what computers do best; count smiley )

You use emotive / anthropomorphism to express your opinion on how the compiler works. Of course you are entiltled to your opinion - and PaulS is thus allowed to voice the opposite.

There are several of shortcommings and indeed a few errors in the reference and tutorials. There has been forum debate about this, but the Arduino team has choosen not to enlist help from here. Also the Arduino team has made some decisions on how much of the language C++ (which is what Arduino code is) or C (which is almost a subset of C++) to ignore in their explanations, in order to present a "simple" language.

Now, lets get the thread back on the subject, and hope some persons finds the information and finds it helpfull. I suggest you make a new post with the factual corrections (rather than edit the top post as this makes the succeeding posts confusing).
71  Community / Exhibition / Gallery / Re: new shield on: March 05, 2014, 01:13:02 pm
I am only one person, but my personal opinion is that would be a good idea.

In the usual OpenHardware spirirt - you may consider including the circuit diagram in your excellent manual. (It would f.ex. make it easier for someone to replace a burned out chip)
72  Community / Exhibition / Gallery / Re: new shield on: March 05, 2014, 06:05:59 am
I think it is nice, looks good and all that.

100mA is not a lot of current. I would suggest that your guide makes it very clear that the switching capabilty is only 100mA. Otherwise there will be lots of blue smoke...
73  Using Arduino / Installation & Troubleshooting / Re: When I Try To Upload Something There Is No Upload Button. on: March 03, 2014, 02:27:23 pm
I don't have he Upload Button.
Do you have the menu? The File menu has an entry "Upload".
74  Community / Bar Sport / Re: Chip off the old chip! on: February 27, 2014, 05:41:06 pm
Quote
Just had to tell you, my lad ...
of course you had to.  smiley  I'd do the same.

Its OK to feel proud. Enjoy.
75  Community / Bar Sport / Re: The "BAN THE ABOVE" Thread on: February 27, 2014, 05:34:22 pm
Ban SirNickety for trying to Ban the Ban with the above post
 smiley-twist
Pages: 1 ... 3 4 [5] 6 7 ... 81