Show Posts
Pages: 1 ... 123 124 [125] 126 127 ... 279
1861  Using Arduino / Programming Questions / Re: Disabling Interrupts Period on: February 19, 2013, 01:03:46 pm
I believe this would ensure that only your code runs.

Code:
void setup(void)
{
    cli();
    for (;;) {
        //your code here
    }
}

void loop(void)
{
}
1862  Community / Bar Sport / Re: Russia gets hit by meteor and watch a flyby live on: February 19, 2013, 12:59:08 pm
I read the blast was estimated at 500 kt, at an altitude of 10-15 miles. That's huge! I'm surprised it didn't do more damage. Good thing it wasn't closer in.
1863  Using Arduino / Project Guidance / Re: Alternative Blink without Delay on: February 19, 2013, 12:51:03 pm
According to the datasheet, the flash memory that holds the program is good for 10,000 write/erase cycles, so that puts an upper limit on the number of times the part can be programmed. But once the program is running, nothing will "wear out". (The EEPROM memory, used for non-volatile data storage has an endurance of 100,000 write/erase cycles.) "Regular" variables declared in the code usually go into the static RAM (SRAM), which has no endurance limits.
1864  Using Arduino / LEDs and Multiplexing / Re: 38khz??????????? on: February 19, 2013, 10:56:50 am
Should be able to come pretty close by setting up one of the timers to output a fixed frequency. Lots of info at:
http://www.gammon.com.au/forum/?id=11504
1865  Using Arduino / Project Guidance / Re: Alternative Blink without Delay on: February 19, 2013, 10:48:55 am
The single line of code in the loop below flashes a LED without use of delay().
Only issue I see is that pin 9 is being written to on every loop cycle.
Is this a bad thing to be doing ?

Not necessarily a bad thing, was there a specific concern you had in mind?
1866  Using Arduino / General Electronics / Re: High Side Switching on: February 18, 2013, 09:37:37 pm
I'd include the diodes, cheap insurance. The back-EMF is likely to be a relatively high voltage, so not something I'd want running around. Would hate to see hand-crafted beer ruined smiley-grin
1867  Community / Bar Sport / Re: Not quite available yet on: February 18, 2013, 09:27:29 pm
Yeah the free version is 128K, which as you say doesn't seem like much of a restriction. Then there are 256K and 512K versions, for $256 and $512 respectively. Cute. Obviously not a serious pricing policy, I wonder what they were thinking.
1868  Using Arduino / Programming Questions / Re: Trying to learn how to code Sketches on: February 18, 2013, 08:17:17 pm
Executable code must go in a function, e.g. the setup() function, the loop() function, or functions you write yourself. Global variables can be declared outside of functions, e.g. before setup().

Try http://arduino.cc/en/Tutorial/Foundations
1869  Community / Bar Sport / LPC81xM chips on: February 18, 2013, 08:06:01 pm
Looks like the LPC81xM chips are getting closer, Mouser now lists them as on order, although no delivery dates. Prices (single quantities) range from $0.78 for the LPC810 to $1.16 USD for the most expensive LPC812. Unfortunately the development board went up from $15.00 to $18.75 since I last checked. I may just order one up anyway. I also discovered that the free LPCXpresso IDE only does C, not C++. Major bummer.
1870  Using Arduino / Microcontrollers / Re: Programming standalone ATmega328p-pu, works but runs slow on: February 18, 2013, 06:56:24 pm
Excellent!
1871  Using Arduino / Microcontrollers / Re: Programming standalone ATmega328p-pu, works but runs slow on: February 18, 2013, 06:14:30 pm
From the factory, the ATmega328P comes with the system clock set to use the internal 8MHz RC oscillator divided by 8, in other words, the system clock is 1MHz, which as you observed, is 1/16 as fast as the Uno 16MHz clock.

Either do "burn bootloader" from the IDE, or use AVRDUDE to set the fuse bytes to use the external crystal rather than the internal oscillator.
1872  General Category / General Discussion / Re: Push Button Not Working on: February 18, 2013, 05:52:30 pm
Need to see your circuit. How is the button wired?

Edit: Easy enough to test a switch, use the circuit below.
1873  Using Arduino / Project Guidance / Re: NEED HELP WITH TIMER on: February 18, 2013, 05:15:02 pm
Here is a library I wrote to deal with buttons, it comes with example sketches to get you started.

Here is a project that uses the button library to set time and several other parameters.
1874  Using Arduino / LEDs and Multiplexing / Re: Newby Arduino UNO Blinking LED Issue on: February 18, 2013, 05:08:52 pm
Welcome to the forum, hope you have fun with Arduino!

For future reference, please see:
http://arduino.cc/forum/index.php/topic,148850.0.html

Item #7 illustrates how to properly post code.
1875  Using Arduino / Project Guidance / Re: NEED HELP WITH TIMER on: February 18, 2013, 05:03:45 pm
so can anyone help with this at all? all these views so far and only one comment?

Define "help" ... if you want it written for you, post in the "Gigs and Collaborations" section. Looks to me like the hobbytronics link contains a big piece of what you want to do. CrossRoads' advice about the current-limiting resistors is well taken, though.

Usually when asking for "help", the expectation is that something has been tried and either needs to be built on or possibly some issue has presented itself, in which case there are good pointers as to how to proceed on the forum here:
http://arduino.cc/forum/index.php/topic,148850.0.html (Item 11 in particular)
Pages: 1 ... 123 124 [125] 126 127 ... 279