Show Posts
Pages: [1] 2 3 ... 5
1  Using Arduino / Programming Questions / Re: Time and TimeAlarms Libraries – Ask here for help or suggestions on: July 22, 2012, 08:27:45 am
Pauls:  Please indicate at least one or two of the places where update instructions are given.  I'm new to this and so don't know where to look.  Thanks !! 
2  Using Arduino / Programming Questions / Re: Time and TimeAlarms Libraries – Ask here for help or suggestions on: July 21, 2012, 09:54:15 pm
Hello, I’m trying to find out why the Examples in the Time library won’t compile. 

I recently downloaded Ardiuno 1.0.1, then followed the directions on the Arduino playground - Time libary page at:  http://arduino.cc/playground/Code/Time

First, I downloaded the time.zip file, then extracted the folders within it.  This yielded one folder named “Time” as well as three folders within this top level “Time” folder.  These three folders were named “DS1307RTC”, “Time”, and “TimeAlarms” . 

Then I copied the “Time” library into the Arduino “libraries” folder, then started Arduino.exe, and selected TimeSerial.pde from the Examples list.  This sketch loaded and I pressed “Verify” and received the error message : “The ‘BYTE’ keyword is no longer supported.  “  All of the example sketches failed to compile but had different error messages. 

I think I did everything correct, and did it both for the top level “Time” folder and also for the “Time” folder contained within the top level folder.  Neither one worked. 

Unless I’m doing something wrong, there must be something wrong with the folder structure of the library, but, if so, I am surprised this error is not already well known. 

I’m not very experienced with Arduino, so that’s why it is confusing. 

Thanks in advance for any information about this problem.   
3  Using Arduino / Programming Questions / Re: How can I get Timer example sketches to compile correctly? on: July 21, 2012, 06:32:03 pm
Thanks for your responses. 

Yes, I followed the directions on the Arduino playground - Time library page at: 
http://arduino.cc/playground/Code/Time

First, I downloaded the time.zip file, then extracted the folders within it.  This yielded one folder named “Time” as well as three folders within this top level “Time” folder.  These three folders were named “DS1307RTC”, “Time”, and “TimeAlarms” . 

Then I copied the “Time” library into the Arduino “libraries” folder, then started Arduino.exe, and selected TimeSerial.pde from the Examples list.  This sketch loaded and I pressed “Verify” and received the errors above.  I think I did everything correct, and did it both for the top level “Time” folder and also for the “Time” folder contained within the top level folder.  Neither one worked. 

Unless I’m doing something wrong, there must be something wrong with the folder structure, but, if so, I am surprised this error is not already well known. 

I also noticed that the Arduino playground page mentioned above says that questions about this library should be directed the forum at:  http://arduino.cc/forum/index.php/topic,66054.0.html
so maybe I should ask these questions there. 

I’m not very experienced with Arduino, so that’s why it is confusing. 

Thanks again for any further information. 
4  Using Arduino / Programming Questions / How can I get Timer example sketches to compile correctly? on: July 21, 2012, 11:28:33 am
How can I get Timer example sketches to compile correctly?     

I’m trying to use the example sketches in the Timer library in Arduino 1.0.1 for the first time, but none of the example sketches will compile correctly.  (Example sketches from other libraries DO compile correctly).  Here are the error messages that I get:   

TimeGPS    ‘TinyGPS’ does not name a type    
TimeNTP    UDPBytewise was not declared in this scope
TimeRTC    RTC was not declared in this scope
TimeRTCLog    RTC was not declared in this scope
TimeRTSSet   RTC was not declared in this scope
TimeSerial    The ‘BYTE’ keyword is no longer supported. 

What do I have to do to get these sketches to compile correctly? 

Thanks in advance for any suggestions. 

5  Using Arduino / Programming Questions / How to compile SyncArduinoClock? on: July 17, 2012, 10:01:01 pm
How to compile SyncArduinoClock?   

I’m trying to use the time.h library for the first time. 
I loaded the SyncArduinoClock sketch and tried to compile it, but immediately received the error message: 

‘import’ does not name a type

for the line: 

import processing.serial.*;

When I select “Find in Reference” for “processing.serial.”, the following error message is returned: 
“no reference available for processing.serial” 

I only have a hazy idea of what any of this means.  What do I need to do to compile the SyncArduinoClock sketch? 

Thanks in advance for any advice for what I assume is a relatively simple question. 

6  Community / Website and Forum / Re: Can I add the "Notify me of replies" option after I post a topic? on: July 15, 2012, 07:14:36 pm
Thanks !  I didn't realize there was an option for that, and forgot to look.   
7  Using Arduino / Project Guidance / Re: Does Duemilanove power switcher work with USB power and VIN? on: July 10, 2012, 02:45:29 pm
How about my final question: 

If VIN has to be at least 7 volts, then 7/2 > 3.3, so if VIN IS present, then it is always used, whether or not USB power is present.   

Is that correct?

Thanks again. 

8  Community / Website and Forum / Can I add the "Notify me of replies" option after I post a topic? on: July 10, 2012, 02:31:13 pm
I posted a new topic in another forum and forgot to mark "Notify me of replies"  Can I add that option to my forum post after I posted the note?  and if so, how do I do that?  Thanks

I DID remember to mark "Notify me of replies" on THIS note .


9  Using Arduino / Project Guidance / Re: Does Duemilanove power switcher work with USB power and VIN? on: July 10, 2012, 02:00:07 pm
Thanks again, PaulS and CrossRoads, for your comments, but are you disagreeing with each other? 

PaulS said:  “The USB port overrides the power pin...”
but CrossRoads said:  “If Vin/2 > 3.3V, then Vin is used for power..” 
Does the power source choice depend on how the NDT2955 works, which I don’t really understand. 
I’m not very good at reading schematics, but it looks to me like CrossRoads is correct.  If VIN has to be at least 7 volts, then 7/2 > 3.3, so if VIN IS present, then it is always used, whether or not USB power is present.   Is that correct? 

Also, PaulS said “It is not recommended that you feed power in the VIN pin.” 
But the Arduino Duemilanove description at:  http://arduino.cc/en/Main/arduinoBoardDuemilanove
says:  “ You can supply voltage through this (VIN) pin...” 

Sorry to be so confused on all this.  I want to understand what will happen so that I don’t burn up something when I try it. 

10  Using Arduino / Project Guidance / Re: Does Duemilanove power switcher work with USB power and VIN? on: July 10, 2012, 11:50:47 am
Thanks for your comments.  I realized that the 5 volt battery pack was connected to 5 volt/ground, NOT VIN/ground, so my original question was incorrect. 

But I am still wondering how the power switching works.   If power is present at both the USB port and VIN, which is chosen?  is it the highest voltage (presumably always VIN if present)?  If I want to use VIN as a battery backup source, is there any way to force the selection of USB power is present, and only use VIN power if USB power is NOT present? 

Thanks again for any response. 

11  Using Arduino / Project Guidance / Does Duemilanove power switcher work with USB power and VIN? on: July 09, 2012, 09:11:59 pm
Does Duemilanove power switcher work with USB power and VIN? 

 I’m trying to add battery backup to my Duemilanove using the automatic power switching circuit, but I’m not quite sure how the power switching circuit works.  Specifically, suppose power is supplied to the Duemilanove (after it’s been programmed) through the USB port using Sparkfun’s 5 volt USB Wall Charger ( http://www.sparkfun.com/products/10214 ), and 5 volts is supplied to VIN via a Bodhilabs 5 volt battery pack ( http://bodhilabs.com/vpack5aa2.html ).  My goal is that power would be drawn from the Wall charger unless power fails or flickers and then power would come from the battery pack without interruption. 

Will the power switching circuit work correctly if (as above) both voltage sources are regulated 5 volts?  And does the power switching circuit block any current usage from the battery pack if the USB voltage is present? 

Thanks in advance for any explanations. 
12  Using Arduino / Installation & Troubleshooting / Re: How does Duemilanove power switching work? on: July 04, 2012, 10:48:47 am
Thanks for your responses. 

Would the reset occur if I supplied power to the USB port via a battery instead of using my PC ?  Or does the reset occur whenever power is is applied to the USB port, regardless of its source ? 

Is there any way to disable the automatic reset via software, or does it require one of the hardware modifications that Grumpy Mike mentioned? 

Thanks again. 
13  Using Arduino / Installation & Troubleshooting / How does Duemilanove power switching work? on: July 04, 2012, 09:10:33 am
How does Duemilanove power switching work? 

I’m powering my Arduino Duemilanove with a wall-wart but I want to add a battery backup via the USB port to handle power glitches and outages from the wall-wart.  My understanding is that the Duemilanove will switch power sources automatically, but it’s not working as I expected so I am hoping somebody can explain it to me. 

As a way of testing the automatic power switching, I did the following: 
a.  I loaded the LiquidCrystal Library “Hello World” example sketch, which displays “Hello World” on my LiquidCrystal display and then increments and displays a counter once a second.  This works. 
b.  After loading the above sketch, I exited from the Arduino program on my Windows PC, so that the USB connector is only providing power.  The displayed counter continued to increment without interruption, as expected. 
c.  I attached a wall wart to the Duemilanove and then disconnected the USB cable.  The displayed counter continued to increment without interruption, as expected. 
d.  I reconnected the USB cable to the PC.  The onboard LED blinks several times, and then the counter resets and starts counting from zero.  This is NOT what I expected or desire to occur.  Apparently, plugging the USB cable back in causes the Arduino board to reset.  Does this always happen?  Or is it related to something that Windows might be doing?  Would the reset occur if I supplied power to the USB port via a battery instead of using my PC (that’s what I originally planned to do but was testing with the PC to make sure it will work) ?   

Thanks in advance for any explanation. 
14  Forum 2005-2010 (read only) / Syntax & Programs / Re: Why won't micros() compile???? on: January 04, 2010, 07:45:47 am
Thanks - code compiles correctly for me with Arduino 17, also.  Must have been a bug in the compiler.  Thanks again.  
15  Forum 2005-2010 (read only) / Syntax & Programs / Why won't micros() compile???? on: January 03, 2010, 10:33:49 pm
The simple program below compiles correctly if I use millis() in the
line with the comment "this line is the problem".  But if I use micros() in the exact same spot as shown, then I get the compile error message "error - micros was not declared in this scope"  I tried it several times and I don't think I have a typing error or strange character in the line.   Why won't micros() compile?  (I assume this is a simple problem that I am just not seeing - thanks for your help.  I'm using Arduino 12 Alpha, if that matters)  

/*
TimerMicro - Test micros() to see how long it takes
*/
unsigned long timearray[10];
void setup()   {     }
void loop()    {
for (int i=0; i<=9; i++) {timearray= micros(); //this line is the problem
}
}
Pages: [1] 2 3 ... 5