Show Posts
Pages: 1 2 [3] 4 5 ... 40
31  Forum 2005-2010 (read only) / Interfacing / Re: AnalogWrite LED problems MAX/MSP to Arduino. on: March 22, 2009, 10:53:15 pm
is max transmitting bytes or ascii encoded characters?
Does it send the value 100 or the string "100"?

And limit the output for the colors, 255 is no longer a valid value for any coloe... in max you must limit the faders to 0..254
32  Forum 2005-2010 (read only) / Interfacing / Re: AnalogWrite LED problems MAX/MSP to Arduino. on: March 22, 2009, 10:08:27 pm
I don't know a tutorial... it is protocol design. And this protocol is bad, because it steals a valid value from each color... but I am sure, you will not notify any difference between red 254 and 255.
Maybe you find some information about (communication) protocol design in google.

And maybe you can skip the
while(!Serial.available()){};
lines... but I am not sure right now. I hope that Serial.read() is blocking, but I am not sure at the moment.


33  Forum 2005-2010 (read only) / Interfacing / Re: AnalogWrite LED problems MAX/MSP to Arduino. on: March 22, 2009, 09:36:01 pm
maybe just send the three bytes one after the other, so first bye is the red value, then the green value and then the blue value.
You must indicate the beginning of a "color message", so I suggest:
use values 0..254 for the colors and use 255 for the sync if this is possible with max...

then the (untested) code might look like this:
Code:
void loop()
{
  if (Serial.available())
  {
    val = Serial.read();
    if(val == 255)//START or SYNC
    {
      //now read three values (rgb), each in the range 0..254
      while(!Serial.available()){};
      analogWrite(outputPinR, Serial.read());
      while(!Serial.available()){};
      analogWrite(outputPinG, Serial.read());
      while(!Serial.available()){};
      analogWrite(outputPinB, Serial.read());
    }
  }
}
34  Forum 2005-2010 (read only) / Development / Re: AVRProjectIDE - Editor for AVR/Arduino Projects on: October 19, 2009, 03:55:21 am
great work!
35  Forum 2005-2010 (read only) / Development / Re: Optiboot - improved Arduino bootloader on: May 11, 2010, 02:44:16 pm
Hi Udo,

not sure what you want to suggest... connecting an attiny via SPI to the PC does not seem to be the right way to me. SoftwareUART on the other hand seems to be a good choice. But maybe I did not get your point, please explain your idea...
36  Forum 2005-2010 (read only) / Development / Re: Optiboot - improved Arduino bootloader on: May 09, 2010, 09:27:37 am
I can test on MAC OS X with any Arduino platform and of course with LumiNet and other attiny boards. I can also test on any Windows platform.

I dod not checkout V3 yet, but yesterday a test on Mac OS X with a 168 Arduino had timing issues... looked like the FTDI driver on the Mac can not handle the high baud rate... I will test V3 at 115000 tonight.
37  Forum 2005-2010 (read only) / Development / Re: Optiboot - improved Arduino bootloader on: May 08, 2010, 08:52:09 am
wow, really nice news!

Did you mean attiny84? Do you need hardware for the tests?

230400 baud sounds amazing.

I also used AVR305 on LumiNet. Implemented it in Assembler for different I/O pins. That was the reason why I needed .S file support in the official Arduino software (which was added in 0018).

38  Forum 2005-2010 (read only) / Development / Re: Optiboot - improved Arduino bootloader on: May 05, 2010, 06:39:57 pm
Peter, thank you for this great bootloader!

Currently I am redesigning LumiNet and I think the biggest problem is that I use my own bootloader on the attiny chips...

I would love to see attiny support in the main distribution and a stk500-compatible bootloader is the missing link at the moment.

Maybe you can help? One problem with attinys is that they don't have a bootloader section... the other problem is that most of them don't have a U(S)ART. I appreciate all ideas and hints here or in the LumiNet Thread:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1236434254
39  Forum 2005-2010 (read only) / Development / Re: MIDI Controller on: September 23, 2009, 09:29:12 pm
this thread was read 5856  times but no reply? Strange.
I just tried your code right now with Arduino0014 and it works out of the box, just as I expected. Great work!

I use it to send Midi CC messages to my guitar amp. I connected a modified wah-wah pedal to the analog input and now I have a digital expression pedal. Great! And easy, thankx a lot.
40  Forum 2005-2010 (read only) / Development / Re: Windows command line build on: March 23, 2009, 05:41:41 pm
Yes, Different compiler options.

have a look at Compiler.java to get an idea of the compiler options used by the IDE.
41  Forum 2005-2010 (read only) / Development / Re: .net based Arduino Sketch Editor on: August 11, 2009, 07:00:57 pm
Curs0r, the editor looks great!

Is there a todo list for this project? What are the next steps?

There might be some developers out there (including me) who want to support this project. Maybe you can explain your classes somewhere and add some comments to the source code so it is easier for others to participate?

But all in all it looks very nice! Thank you.
42  Forum 2005-2010 (read only) / Development / Re: .net based Arduino Sketch Editor on: June 11, 2009, 09:50:45 am
Some guys are happy with the origignal IDE, others use emacs, others use Eclipse... now a group of users wants to use a .NET-based IDE... I don't see any problems. Nobody is forced to use the new IDE.
43  Forum 2005-2010 (read only) / Development / Re: .net based Arduino Sketch Editor on: June 10, 2009, 06:51:08 pm
When will you release the code? The IDE looks really great!

Put it on google code, it is a good way to go.

I offer my help, I am an experienced .NET developer and I am not happy with the current Java-based IDE (see my modifications for LumiNet).

We really need a new IDE. Emulation is not important. But it should be compatible... sketches for the original Arduino release must compile on the new IDE.
44  Forum 2005-2010 (read only) / Development / Re: Assembler library on: March 09, 2009, 10:51:44 am
You can find the "LumiNet patch" in this thread:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1236434254

this patch should work with all Arduino boards and includes the "assembler patch". Tell me if this is working for you or if I need to create an isolated "assembler patch".
45  Forum 2005-2010 (read only) / Development / Re: Assembler library on: March 09, 2009, 09:21:56 am
I am using .S assembler files in my core. follower is right, you have to modify you IDE.

A first step is to find this line in Target.java:

if (files.endsWith(".c") || files.endsWith(".cpp"))

and replace it with this line:
if (files.endsWith(".S") || files.endsWith(".c") || files.endsWith(".cpp"))

and then you have to modify the Compiler.java and get the .S files into the build process.
I have a modified Arduino IDE that can compile the assembler files, I will try to create a patch if you are still interested.
Pages: 1 2 [3] 4 5 ... 40