Show Posts
Pages: [1] 2 3 ... 6
1  Forum 2005-2010 (read only) / Troubleshooting / Re: Error compiling 0017 on: September 03, 2009, 04:02:30 pm
Some programs, and sometimes the operating systems also,  divide up a path (directory name) into words if they contain spaces, because they wrongly assume that the space means the end of the path+filename and the rest is command flags and options.

This creates untold confusion as you have noticed.

So the rule for safe hacking is : No spaces in pathnames or filenames.

Of course some of them can handle path and file names with spaces inside, but the risk of problems increases a lot.
2  Forum 2005-2010 (read only) / Troubleshooting / Re: IDE errors under Linux on: November 06, 2009, 02:19:42 am
So probably your avr-gcc is configured to look for the include files somewhere else. What flags did you use to configure the gcc build ?

3  Forum 2005-2010 (read only) / Troubleshooting / Re: examples not compiling!! on: November 09, 2009, 02:47:05 pm
It is files from the avr-gcc installation that are missing.
4  Forum 2005-2010 (read only) / Troubleshooting / Re: Erm...We got a problem... on: September 20, 2009, 03:55:42 pm
Remove the line:
 note = rawnote+5;//sets the current note to the note returned by the potenmeter and adds 5 to it

And change:
 if (note==minhz)//if the note is at the minimun hertz value
 if (note<=minhz)//if the note is at the minimun hertz value

 if (note==maxhz)//if the note is at the maximum herts value
 if (note>=maxhz)//if the note is at the maximum herts value

And then take a pen and paper and trace out by hand how  note changes as you go through the loop two or three times, and also note what value is played.

Old fashioned ! Yes, but very powerful !
5  Forum 2005-2010 (read only) / Troubleshooting / Re: Erm...We got a problem... on: September 20, 2009, 02:45:38 pm
Well, you set note equal to analogRead(potpin2)+5 at the top of the loop, so this is the value you will get. The changes to note at the end will the be overwritten on the next loop.

 [glow]rawnote = analogRead(potpin2);[/glow]

  minhz = rawnote;//sets whatever was read as the minimum hertz value
  maxhz = rawnote+rawnote;//sets whatever was read as the maximum hertz value and doubles it
  [glow]note = rawnote+5[/glow];//sets the current note to the note returned by the potenmeter and adds 5 to it

Also, expecting your problems to be solved within 40 minutes is a bit naive.
6  Forum 2005-2010 (read only) / Troubleshooting / Re: open serial-terminal triggers an reset on: August 25, 2009, 01:41:01 pm
It is not the IDE playing with the DTR, it is somewhere between to OS and the FTDI serial port driver. What operating system are you using ?
7  Forum 2005-2010 (read only) / Troubleshooting / Re: Compiled sketch sizes too large in linux on: September 07, 2009, 04:05:39 pm
I do not think it is the version of IDE or Java. It is the version of avr-gcc and avr-lib and avr-tools that is installed on your system. The toolchain and compiler maintainers are constantly tweaking these. Sometimes a slightly larger code makes for more stable code.

Some reported differences bewen different chips like 168, 328 and mega is that the big ones have more ports and sometimes allocates more memory for peripherals, both in flash and in ram.
8  Forum 2005-2010 (read only) / Troubleshooting / Re: arduino-0017 - Binary sketch size 0 on: September 03, 2009, 01:09:20 pm
You cannot really expect things always to work if you upgrade one part, the Arduino IDE, and not the the tools that this part uses, avr-gcc.

Sometimes it will work, many times it will not work.

There has been know cases of people using a lot of time to fix problems under Windows when upgrading applications, this also happens for MacOS and Linux. But I can definitely assure you that the latest versions of Ubuntu ( I use Fedora ) are more stable and easier to upgrade than the old ones.  So if you want to use Linux (why ask otherwise ?) IMHO the smart thing is to upgrade as soon as there are no super important projects for the next couple of days.
9  Forum 2005-2010 (read only) / Troubleshooting / Re: ADC conversion vs.  Interrupts on: August 24, 2009, 03:18:47 pm
The problem is the wait for ADC conversion completed loop. We want to be able to do other processing while the ADC conversion is taking place.

I think a usable strategy is to have a timer interrupt that does the following:

    Check, Read and store result from previous ADC conversion
   /* That is analogConversionRead() */
    Start next ADC conversion
   /* That is analogConversionStart(chn) */
   end of TimerInterruptHandler

So the ADC conversions are done between the TimerInterrupts, not within the timer interrupts.

Or you might place an interrupt on the ASDC conversion completed event.

All of this requires some low level coding, the first is easier: just take the analogRead code, reverse the read value and start conversion and place this in the TimerInterruptHandler.

10  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino 0017 on Fedora 10 - no avr-g++ on compile? on: August 21, 2009, 08:00:27 am
In the package info from your first post:
Name       : avr-gcc-c++
Arch       : i386
Version    : 4.3.3
Release    : 1.fc10
Size       : 2.7 M
Repo       : updates
Summary    : Cross Compiling GNU GCC targeted at avr
we can see that avr-gcc-c++ was available (from Repo updates) but not installed on your computer. All the other packages are listed as Repo: installed.
So the simple solution should be to just run "yum install  avr-gcc-c++"
11  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Log functions not included in list of math functio on: November 21, 2009, 11:14:16 am
AFAIK,  all functions defined in the mathematics library in AVR LibC are avaliable:
One thing to note is that all floating point variables, both float and double, are 32 bits.
12  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Serial monitor window suggestions on: September 18, 2009, 04:39:26 pm

The simple answer is to replace the file found
in  "app/src/processing/app" and then rebuild the Arduino application.

So you need the source distribution and some build tools. I have done this under Linux and it is really easy there (but I do have full blown development system and a few years practice).

More instructions can be found at :

Yes it is a bit complicated if you are not used to this, but after the first setup and rebuild any more changes is build with a simple ./ command. One line to rebuild and the one line to start arduino.
13  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Serial monitor window suggestions on: September 01, 2009, 08:42:09 am
I have a new experimental SerialMonitor for Arduino 0017 at
Then click down to arduino-stm32 / app / src / processing / app /

It has logFile, Pause/Resume and Clear . Also the window is not cleared when reopenened.

14  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Serial monitor window suggestions on: August 31, 2009, 01:10:58 pm
I have started to play with the Arduino IDE source code and done some modifications to the SerialMonitor window:

I can test out and post some of the modifications suggested. Is this interesting for the core team or should we rather post suggestions to the issues list ?  

I have noted that some of the modifications suggested is not in the SerialMonitor window code but rather in the Editor code that controls the SerialMonitor.
15  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Defect in long map() function?--integer scaling on: November 08, 2009, 05:29:02 pm
The documentation states that out of range arguments are allowed.
Does not constrain values to within the range, because out-of-range values are sometimes intended and useful. The constrain() function may be used either before or after this function, if limits to the ranges are desired.
Pages: [1] 2 3 ... 6