Show Posts
Pages: 1 ... 4 5 [6] 7 8
76  Using Arduino / Project Guidance / Re: Decode NOAA Weather Radio SAME codes on: August 18, 2012, 06:50:02 pm
So that is a VHF weather band receiver? That ic is so small next to the smd crystal!
I wonder how much it is?
Don
77  Using Arduino / Project Guidance / Re: Question about using a separte file or making a library on: August 08, 2012, 03:24:28 pm
Hi Paul
I will read that over I never saw that before. 
I was using 6 bytes to store that number.
This is the function to retrieve the number.
The maximum amount of numbers stored is 31.
The numbers are coded for National Weather Service locations.
PSSCCC the size of the number must take up 6 bytes or I can't look it up
correctly.. 

P is part of county   
SS is the state number here in the USA
CCC is the county number for that state in the USA.

 
long getNumber(byte index)
{
   long code = 0;
   byte value = 0;
   byte address = 0;
   if (index < 32)
     { 
       address = 6 * (1 + index);
       value = eeprom.read(address+0);
       code += value * 100000UL;          //P
       value = eeprom.read(address+1);
       code += value * 10000UL;           //S
        value = eeprom.read(address+2);
       code += value * 1000UL;            //S
       value = eeprom.read(address+3);
       code += value * 100UL;              //C
        value = eeprom.read(address+4);
       code += value * 10UL;               //C 
       value = eeprom.read(address+5);
       code += value * 1UL;                 //C
   }
    return code;
}

Don     

   
78  Using Arduino / Project Guidance / Question about using a separte file or making a library on: August 08, 2012, 02:10:51 pm
Hi
I designed about 6 functions for setting and retrieving values from the eeprom.
Should I declare them external or make a library for them. I'm going to possible reuse the
code in a similar project. Is there any rules or conventions on this? I need to store and retrieve a long variable
which I divided by 100,000 10,000 1000 100 10 1 to put the result in each byte of eeprom.
I'm looking for your thoughts and ideas.
Thanks
Don
79  Using Arduino / Networking, Protocols, and Devices / Re: XML Library on: July 30, 2012, 07:03:05 pm
I had that felling but I wanted to post it on the forum and see what everyone thought.
Here is a link to a message in my county here in Chicago,Il. is in Cook County
http://alerts.weather.gov/cap/wwaatmget.php?x=ILZ014&y=1 on you browser click view source.
Don
80  Using Arduino / Networking, Protocols, and Devices / XML Library on: July 30, 2012, 05:25:00 pm
Hi
Is there any XML Libraries for Arduino ethernet shield?
I'm looking to parse CAP data from NWS  here is a link to provide some
back around on the subject. http://wiki.citizen.apps.gov/nws_developers/index.php/Category:Common_Alerting_Protocol
thanks
Don
81  Development / Other Software Development / Re: what about debugging? on: July 09, 2012, 09:57:42 pm
I've been spoiled with AVR Studio and JTAGICEmkii for so long before Arduino. I like to use simulate or monitor what going on if I feel that something is not happening correctly. I made a simple SPI pod for my logic analyzer it has helped me. Serial.print is very useful too.
Setting and clearing output also.
Don
82  Using Arduino / Programming Questions / Re: Serial Monitor help! on: July 09, 2012, 09:46:10 pm
Say you wanted to display a variable or something you could do it this way.
Serial.print("Display the value of myVar: ");
Serial.println(myVar);
Don

83  Using Arduino / Programming Questions / Re: Looking for some reading material on: July 09, 2012, 09:24:53 pm
Nick looks really nice I could live with 8 channels these days. Mine is old and I have to use my cell to make a screen shot. It has a pod for 68HC11 dissembler which I used before the Atmel Avr became so popular I got it cheap and have had it for 18 years now.
Don 
84  Using Arduino / Programming Questions / Re: Serial Monitor help! on: July 09, 2012, 09:10:15 pm
Hi
To make a new line when you are done sending use
Serial.printnl("say something here");

Don
85  Using Arduino / Programming Questions / Re: Looking for some reading material on: July 08, 2012, 07:23:30 pm
Nick
Which logic analyzer do you have? Looks like a pc based one nice! I have a Aruim ML4400.
Don
86  Using Arduino / Programming Questions / Re: Looking for some reading material on: July 08, 2012, 07:08:39 pm
Nick
Thanks for your reply. I was on your site this afternoon. I like your shift register 74hc597 project well made.
Don
87  Using Arduino / Programming Questions / Looking for some reading material on: July 08, 2012, 06:08:15 pm
Hi
I'm looking for some reading material on the Arduino information working with the internal registers.
I read someplace not to mess with Timer 0 because it used in all timed based items like delay().
Are there any special rules with Timer 1 and Timer 2? What about using other AVR interrupts and sleep modes? Is there any restrictions using PORTx or DDRx registers directly?  Why use _BV() macro?
Do you have to restore anything when done?

 I met someone here that designed a library that used output compare with Timer1 and Timer2.
Also used external interrupts 0 and 1 too. I didn't realize you could access these timers and registers
directly. Maybe we could make a pdf or something. I'm just looking to expand my knowledge of the language and Arduino.

Thank you for reading the thread.
Don
 
88  Using Arduino / Networking, Protocols, and Devices / Re: how to increase more I/O pins with all individual controls on: July 05, 2012, 02:26:36 pm
http://asynclabs.com/store?page=shop.product_details&product_id=26&vmcchk=1
I guess it's a shield
89  Using Arduino / Programming Questions / Re: difference between static and volatile variable on: June 25, 2012, 06:37:07 am
Nick
Thank you for the explanation of that.
Don
90  Using Arduino / Programming Questions / difference between static and volatile variable on: June 24, 2012, 10:04:02 pm
Hi
could someone please explain the difference between static and volatile variables please and when to use each. I'm looking to define a few variables for time inside a function and don't want to lose there values between calls to the function.
Thanks
Don
Pages: 1 ... 4 5 [6] 7 8