Show Posts
Pages: [1] 2 3 ... 12
1  Products / Arduino Due / Re: Interrupt Handler Names on Due on: May 29, 2013, 08:06:31 pm
It depends, what are you trying to do an interrupt for?  If you just want an interrupt on one of the pins, use attachInterrupt(pin, function_name) and detachInterrupt(pin).

The Due supports arbitrary interrupts on all pins...you are not limited to 2 or 3 or 4 (or whatever the Uno has.)


The Uno also supports interrupts on more than 3 pins. The limiting factor on the Uno is that you still only have 3 interrupt vectors.
The user still needs to figure out which pin was interrupted.
This library makes it easier, but possibly at the cost of response time.
http://playground.arduino.cc/Main/PinChangeInt
2  Using Arduino / Programming Questions / Re: Displaying Date,time, and IDE/Compiler version in Serial Monitor on: April 02, 2013, 04:58:37 pm
The ISO C/C++ standards mandate some special macros that are expanded as strings when used:
  • __DATE__ -- date of the compilation in the locale specific format
  • __TIME__ -- date of the compilation in the locale specific format
  • __FILE__ -- filename of the compiled file

GCC defines some other macros, specifically (note non-GCC compilers probably do not define these):
  • __VERSION__ -- compiler version as a string
  • __GNUC__ -- compiler major version number, i.e. for gcc 4.3.2, this would be 4
  • __GNUC_MINOR__ -- compiler minor version number, i.e. for gcc 4.3.2, this would be 3
  • __GNUC_PATCHLEVEL__ -- compiler patch level number, i.e. for gcc 4.3.2, this would be 2

Thanks Michael
3  Using Arduino / Programming Questions / Re: Displaying Date,time, and IDE/Compiler version in Serial Monitor on: April 02, 2013, 04:57:57 pm
The define ARDUINO is 104 for version 1.0.4.
Serial.print(F( "Arduino IDE version: "));
Serial.println( ARDUINO, DEC);

Thanks.

May I ask where this is documented?
4  Using Arduino / Programming Questions / Re: Displaying Date,time, and IDE/Compiler version in Serial Monitor on: April 02, 2013, 04:41:30 pm
The compilation date and time can be written in a single string, and can also be placed in Flash.
I think that using the 'F()' macro requires different Serial.print() function calls.

Code:
// Example, not tested

// Combined string in RAM
Serial.println( "Compiled: " __DATE__ ", " __TIME__ ", " __VERSION__);

// The string in Flash
Serial.print( F("Compiled: ");
Serial.print( F(__DATE__));
Serial.print( F(", "));
Serial.print( F(__TIME__));
Serial.print( F(", "));
Serial.println( F(__VERSION__));


Thanks

This all works.
However, it's not easy to see at a glance which version of gcc is used with which version of the Arduino IDE.
I was hoping for a macro/function which will return the version of the Arduin IDE. ie 1.0.4, etc.

Thanks
5  Using Arduino / Programming Questions / Displaying Date,time, and IDE/Compiler version in Serial Monitor on: April 02, 2013, 04:23:33 pm

I've gotten into the habit of manually adding the compile date & time to my project, so that
I can see when the project was built, using the Serial Monitor.

I'd also like to add the compiler version number to be displayed as well.

Do macros/functions exist to add the date, time, and compiler version into the code?
If so, would you please provide an example?

Thanks
6  Products / Arduino Due / Re: Due IDE 1.5.1r2 crashes on startup, Windows XP SP3, 32-Bit on: January 08, 2013, 11:37:30 pm
I just installed this build and got this error as well on a Windows 7 64 bit machine.  (Just received my DUE today smiley )

So I experimented some, and I went into my Arduino Sketchbook directory and renamed my Hardware directory to some other name and now it runs.

My hardware directory contains stuff to run for Arbotix Robots on an Atmega644p processor...

So if you have a Hardware directory try removing it and see if that helps.

Kurt

Will try that- thanks.
How do we get this reported to the developers?
7  Products / Arduino Due / Re: Due IDE 1.5.1r2 crashes on startup, Windows XP SP3, 32-Bit on: January 08, 2013, 12:19:37 am
If you have Bluetooth enabled, disable it.  This is the most common issue with your error.

I don't have any bluetooth HW on that system
8  Products / Arduino Due / Due IDE 1.5.1r2 crashes on startup, Windows XP SP3, 32-Bit on: January 07, 2013, 08:15:21 pm
Is anyone else having a problem running the beta version of Due IDE 1.5.1r2?

When I launch it on Windows XP SP3, 32-Bit the splash screen is displayed for quite a while, but then

"Launch4J
An error occurred while starting the application"

is displayed.

I've successfully installed the USB driver.
9  Using Arduino / Interfacing w/ Software on the Computer / Re: Problems with Arduino and MAX/MSP (UDP communication) on: December 05, 2012, 09:51:44 am

Easy, it prints unto the serial monitor the data recevied via UDP by MAX/MSP. The problem is here...


I should receive only 3 bytes, I can't understand why I get 28! Also -

Print out the value of PACKET_SIZE, that is what is controlling your loop
10  Topics / Education and Teaching / Re: Arduino Simulator Open Source in c++ using free CPP Dev Compiler on: November 17, 2012, 11:19:06 pm
I need your help to make this an awesome free product


gcc is free- why do you need to use a different compiler?
11  Development / Suggestions for the Arduino Project / Re: Compile once, download on many systems on: November 17, 2012, 10:18:41 pm
Writing tools to remotely launch compile & download on multiple machines isn't difficult,
but we really need a mechanism in the Arduino tools to do cmd line compile &download first.

These  already exist, in several variants, I'm using (for example) Martin Oldfield's makefile for the Arduino. Has the added benefit of bypassing all of the bugs in the IDE precompiler (you need to declare your own prototypes, though -- but overall, a very good deal.) Also the standard C/C++ precompiler then works properly and predictably again without the IDE precompiler stuffing things up.  This by itself well worth the price of admission. Choose a decent programmer's editor and you'll never look back!

A link would be helpful.

Thanks
12  Development / Suggestions for the Arduino Project / Compile once, download on many systems on: November 16, 2012, 07:39:26 pm

For situations where people have many Arduino projects which need to be updated frequently,
it would be extremely helpful to have one or both of the following features added to the Arduino build and download environment.

1. Compile and download using cmd line tools only, so that this process can be automated.
2. Compile the hex file on one machine, and have the ability to run a tool which just downloads the hex file

Writing tools to remotely launch compile & download on multiple machines isn't difficult,
but we really need a mechanism in the Arduino tools to do cmd line compile &download first.
13  Using Arduino / Installation & Troubleshooting / Re: Where is the place to post suggestions for the Arduino IDE software? on: November 16, 2012, 07:09:53 pm

There should be a native way to invoke from the cmd line.
The IDE uses a unique temp directory for each compile.
Until they change this,cmdline compile & download is really difficult.


Anyway- the original question is- Where is the correct place to send developers requests for new features?
14  Using Arduino / Installation & Troubleshooting / Where is the place to post suggestions for the Arduino IDE software? on: November 16, 2012, 06:40:24 pm


I don't want to post any suggestions to the developers bug list.
Is there another list for IDE suggestions/requests?

I've made a piece of test equipment using the Uno, and have 25 of these in the lab where i work.
Each Arduino is connected to its own PC.
I want to automate downloading the code to the Arduino, so I don't have to use Remote Desktop to connect to each machine manually.

If the developers would add command-line compile & download capability to the Arduino software, it would
make many peoples job much easier.

I can easily write a tool which would kick off the compile & download process on the 25 machines I maintain,
but I need the Arduino software to take the first step.

Thanks


thanks
15  Using Arduino / Interfacing w/ Software on the Computer / Re: Problems with Arduino and MAX/MSP (UDP communication) on: October 05, 2012, 05:23:38 pm
Matt,

Have you tried posting this issue on the Cycling74 website?
There are more Max users there- and there is a special project just for using Max with the Arduino (Maxuino).
Chances are you'll get some good answers.

I've just started using Max myself- but haven't tried interfacing to the Arduino yet.
Pages: [1] 2 3 ... 12