Show Posts
Pages: [1] 2 3
1  Products / Arduino GSM Shield / Error in code sample on: April 07, 2013, 04:35:38 am
Code:
In [url]http://goo.gl/dj5gY[/url]

The suggested code for starting the GSM looks like:

[code]  // Start GSM shield
  // If your SIM has PIN, pass it as a parameter of begin() in quotes
  while(notConnected)
  {
    if(gsmAccess.begin(PINNUMBER)==GSM_READY)
      notConnected = false;
    else
    {
      Serial.println("Not connected");
      delay(1000);
    }

The error lies in the use of the begin() function. Under the above conditions, gsmAccess.begin(PINNUMBER) is solely required. For asynchronous operation, use:

  while(notConnected)
  {
    if(gsmAccess.begin(PINNUMBER, true, false)== GSM_READY)
      notConnected = false;
    else
    {
      Serial.println("Not connected");
      delay(1000);
    }[/code]

And add timeout checking according to your taste
HTH

2  Products / Arduino Due / Re: Implementing FFT on the DUE on: March 07, 2013, 05:41:46 pm
Nope, I do not plan to make any change in my code policy. The reasons are clearly explained and technically benefit to all. And why not say, I enjoy a lot the mails that I exchanged with real smart people, nicely minded with awesome ideas and kind to others.
3  Products / Arduino Due / Re: DAC support on: January 26, 2013, 06:08:49 am
Thanks for saving my nerves!  smiley-mr-green
4  Using Arduino / Audio / Re: Audio Input from Microphone on: January 08, 2013, 04:37:58 am
You may have a look here http://goo.gl/8pc8P
5  Products / Arduino Due / Re: IDE 1.5.1 on: January 07, 2013, 07:17:04 pm

Try "ant clean" first.


Thank you, it worked. smiley

... but now I feel stupid. Got any ant argument for that?


You are not alone! I was stuck there for two days, before finding this post. Thanks a lot cmaglie for the trick!
My config is:
Arduino 1.5.1r2 (co-resident with Arduino 1.0.3)
Windows XP SP3, running on a Compaq NC6000
6  International / Réalisations et Projets Finis / Re: alarme avec gestion sms on: October 21, 2012, 02:14:33 pm
Un petit up @propos des questions posées sur le shield GSM? GPRS?  smiley-wink
7  Using Arduino / Audio / Re: Eletret for sound sensor. on: February 09, 2011, 12:52:56 pm
You may try this one too which was designed and optimized for Arduino http://didier.longueville.free.fr/arduinoos/?p=1057
HTH
8  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino IDE won't start on windows XP on: January 27, 2008, 05:16:34 pm
Happy again!  smiley-wink
I removed WinAVR, used CCleaner, and everything is order again  smiley except the chip  smiley-razz
9  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino IDE won't start on windows XP on: January 27, 2008, 03:24:15 pm
 :-/ same pb happened to me.
Every thing worked perfect while using arduino-007 and then arduino-010. Then I made a real big mistake while testing a prototype interface (I fed the +5V with some +12V high amps  smiley-razz ). So as to say, I prepared a roasted ATMEGA168  :-[ . I checked it anyway: power supply is OK, FTDI interface is OK, but communication problem with the processor.
Here is the important information: I decided to upload a fresh bootloader, so that I added to install WinAVR on my PC. Since that time, I cannot launch arduino.exe, unless I use the run.bat script. (And my processor is definetly dead)
Very confusing indeed  :-?
10  Forum 2005-2010 (read only) / Troubleshooting / Re: Problem using timer1 overflow on: March 05, 2010, 11:09:48 am
I cannot go into details, but...
I noticed something which I know (for sure) is wrong! It relates to:

TCNT1H=0;
TCNT1L=0;

look at the ATMEGA168 Datasheet in 15.11.4 TCNT1H and TCNT1L – Timer/Counter1! It says:

The two Timer/Counter I/O locations (TCNT1H and TCNT1L, combined TCNT1) give direct access, both for read and for write operations, to the Timer/Counter unit 16-bit counter. To ensure that both the high and low bytes are read and written simultaneously when the CPU accesses these registers, the access is performed using an 8-bit temporary High Byte Register (TEMP). This temporary register is shared by all the other 16-bit registers. See “Accessing 16-bit Registers” on page 109.

Your pointer may be some place... why not in timer0 area... locking the serial comm port.

HTH

11  Forum 2005-2010 (read only) / Troubleshooting / Re: Clock with Arduino on: February 08, 2010, 03:47:49 am
Thanks for the example.
Finally, I jumped out the frying pan (millis function  :-/ ) into the fire (Timers  smiley-razz). It took me a little time  :smiley before being confortable about them, but it's OK now and find them muuuuch more handy: now I can really control time accuracy and forget about roll-overs, changes in versions, etc. And they are accurate: heavily tested on functions generators http://forums.adafruit.com/viewtopic.php?f=25&t=14149  smiley-wink
12  Forum 2005-2010 (read only) / Troubleshooting / Re: Clock with Arduino on: September 08, 2008, 11:43:40 am
I see, thanks for the hint.
See, I am still from the memory greedy VB.NET, and I have to get used to smaller environments (that I love anyway); takes me back to the early 80's and HP1000 running progs in 32K!  :o

How many ticks for a mod?
13  Forum 2005-2010 (read only) / Troubleshooting / Re: Clock with Arduino on: September 08, 2008, 09:46:50 am
Quote
Quote
Do you know what the specs say for the accuracy of the crystal used on Arduinos?
No, I don't know. I've only measured time difference with a stopwatch, looking at Arduino and an atomic clock via internet. I can be a little imprecise, but over 6 hours of measuring, results are clear:
Code:
0h       0.00s
1h      -0.70s
2h      -1.10s
3h      -1.60s
4h      -2.00s
5h      -2.40s
6h      -3.00s
7h      -3.50s

This morning I read result of the overflow test from my Arduino EEPROM. It's exactly the value you calculate: 34359737 before overflow, 0 after overflow. So I will use:
Code:
#define MAX_MILLIS_VALUE 34359738
...
if (current_millis_value < previous_millis_value)
     m += MAX_MILLIS_VALUE - previous_millis_value + current_millis_value;
else m += current_millis_value - previous_millis_value;
On the simpler overflow (from 34359737 to 0):
MAX_MILLIS_VALUE - previous_millis_value + current_millis_value = 34359738 - 34359737 + 0 = 1
1 millisecond is elapsed.
Thank you Ben!  smiley-wink

Nice post indeed. I though I could understand the question in snap... no way  smiley-wink
Question is: why nobody uses the modulo function in order to have a smooth constant elapsed time calculation? Kind of:

elapsed_time=(max_counts+this_tick-last_tick)%max_counts ?

Am I misleading?

14  Forum 2005-2010 (read only) / Syntax & Programs / Re: Debouncing on: August 29, 2010, 02:29:14 am
Generally speaking, debouncing applies to many places, other than switches.
At this stage I may explain (taking the risk to bring some confusion) that my personnal approach to Arduino is to try to challenge it using the minimal number of external components. In the case of the rotary encoder, I did not even use the recommanded filter (RC, 10 k + 10 nF wired to ground)! So that I tried to apply a software only solution to the bouncing problem. And it works fine. I would not obviously recommend that for military/medical devices  smiley-razz)
Back to bouncing in general, I remember very well a very nicely written paper in Measure (the internal newspaper at HP) dealing with pulse recognition from magnetic heads in 10 Mb disk drives (which were as big as washing machines  smiley-grin ): this was the starting point of my interest to signal recognition. Since then I paid strong interest to that, applied to other purposes (I am actually lecturing this science from times to times at university). But the techniques in use for such debouncing techniques require a lot of real time analysis and  high tech ressources. Thus my choice for having a little fun with a minimalist approach (Way back to Occam razor) smiley-wink
15  Forum 2005-2010 (read only) / Syntax & Programs / Re: Debouncing on: August 27, 2010, 12:39:11 pm
After multiples tests, I can say that the push button switch is much more prone to bounces than the A & B contacts from the encoder.
Pages: [1] 2 3