Show Posts
Pages: [1] 2 3 ... 8
1  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino on Linux on: August 26, 2006, 07:45:16 pm


I just worked out a patch for the avr-gcc, etc. path issues with bbogart:

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1156638816/0

Tested on Mac OS X and Linux.
2  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Problem with 0017, Firmata 2.1 on Duemilanove on: November 17, 2009, 03:36:31 pm
Its not so much buggy as unimplemented.  Some of the guts of the Mega work quite a bit different than the rest of the Arduinos, so its a special case.  (Specifically, on the Mega, PORTs are not mapped to the pin numbers on the board sequentially)
3  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Problem with 0017, Firmata 2.1 on Duemilanove on: October 28, 2009, 08:26:03 pm
The 57600 baud change is part of Firmata 2.1 and was included in Arduino 0017.  StandardFirmataV2_0 is also included for backwards compatibility with the baudrate 115200.

As for the I2C stuff, I can't really say anything about that since I didn't write that part.  Shigeru Kobayashi and Jeff Hoeffs did that part.

Be sure to add a link to your project on http://firmata.org/downloads.  That's the place for all things that use Firmata.
4  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Problem with 0017, Firmata 2.1 on Duemilanove on: October 28, 2009, 06:35:39 pm
The library itself had to change to properly support the servo stuff.

You need to swap out the whole library from inside your Arduino app.  In hardware/libraries, delete the Firmata folder, and replace it with the one in this beta release.
5  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Problem with 0017, Firmata 2.1 on Duemilanove on: October 23, 2009, 12:09:34 pm
We have a new beta release we a major feature and minor fix:

- Shigeru Kobayashi added support running servos on almost all the pins!
- Hernando Barragán added some fixes for building for the Wiring board.

http://at.or.at/hans/pd/objects.html#pduino

I tested this on a Diecimila and original Arduino.  These are the only Arduinos I have, so testing and bug reports on those are very helpful.  There are no outstanding bugs that I know of, if I hear of no other bugs, I think this one will be the final release!

.hc
6  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Problem with 0017, Firmata 2.1 on Duemilanove on: October 22, 2009, 12:14:24 pm
Yup, that's my guess too.  I hope its not more complicated.  I think the hard part is that they numbered things out of order with the mega.  So while all the other Arduino boards pins 0-7 are one PORT, pins 8-14 are another PORT, and the analog pins are another PORT, on the mega, the numbers don't always go in sequence with the ports.
7  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Problem with 0017, Firmata 2.1 on Duemilanove on: October 22, 2009, 11:51:42 am
(sorry about the triple post, it said "Internal Server Error")

ruidlopes,

I think its feasible to make StandardFirmata include full Mega support, but it could add a lot of complexity.  If you are willing to take on the coding of it, I'll happily help where I can.  I think the easiest way to start would be to make a MegaStandardFirmata and get that all working, so we have an idea of what needs to happen, and people can start using it.  Then, we can check into the feasibility of merging the code into a single StandardFirmata.

How does that sound?
8  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Problem with 0017, Firmata 2.1 on Duemilanove on: October 22, 2009, 11:40:19 am
(sorry about the triple post, it said "Internal Server Error")

ruidlopes,

I think its feasible to make StandardFirmata include full Mega support, but it could add a lot of complexity.  If you are willing to take on the coding of it, I'll happily help where I can.  I think the easiest way to start would be to make a MegaStandardFirmata and get that all working, so we have an idea of what needs to happen, and people can start using it.  Then, we can check into the feasibility of merging the code into a single StandardFirmata.

How does that sound?
9  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Problem with 0017, Firmata 2.1 on Duemilanove on: October 22, 2009, 11:22:10 am
I don't have a 328-based board, so I would greatly appreciate you testing this latest test release.  On my boards, I fixed all of the bugs.

http://at.or.at/hans/pd/objects.html#firmata

If it doesn't work for you, I'll try to get my hands on a 328 board.
10  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Problem with 0017, Firmata 2.1 on Duemilanove on: October 22, 2009, 11:17:04 am
I don't have a 328-based board, so I would greatly appreciate you testing this latest test release.  On my boards, I fixed all of the bugs.

http://at.or.at/hans/pd/objects.html#firmata

If it doesn't work for you, I'll try to get my hands on a 328 board.
11  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Problem with 0017, Firmata 2.1 on Duemilanove on: October 22, 2009, 11:15:56 am
I don't have a 328-based board, so I would greatly appreciate you testing this latest test release.  On my boards, I fixed all of the bugs.

http://at.or.at/hans/pd/objects.html#firmata

If it doesn't work for you, I'll try to get my hands on a 328 board.
12  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Problem with 0017, Firmata 2.1 on Duemilanove on: October 20, 2009, 05:07:50 pm
Unfortunately, the Arduino Mega support is spotty right now.  There are some pins that work, and some that are mismapped (i.e. pin 13 is actually something like pin 20).  My advice if you want to try to use Firmata on the Mega is try all the pins. For example:

  • turn on all analog pins and look to see which one your pot is hooked up to
  • turn on all pins to Output then hook up LEDs to all of them then test
13  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Problem with 0017, Firmata 2.1 on Duemilanove on: October 05, 2009, 04:41:38 pm

The StandardFirmata in 0017 turned out to be kind of buggy, unfortunately.  We have things mostly fixed in SVN, but would love to have more testing and bug reports!  So here's a new release.  I fixed all bugs that I knew about, including the one where analog pins sometimes acted like they had a log curve on them.

http://at.or.at/hans/pd/objects.html#pduino

I tested this on a Diecimila, I hear there are troubles with the Arduino Pro and others, but I only have the older ones, so testing and bug reports on those are very helpful.

.hc

14  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Problem with 0017, Firmata 2.1 on Duemilanove on: September 13, 2009, 12:01:36 am
Thanks for your thorough bug report, I checked in a fix into the Firmata SVN.  It would be great if you could test it.  Either check out the whole thing:

svn co https://firmata.svn.sourceforge.net/svnroot/firmata/arduino/trunk

Or just download the file and copy it into place:

http://firmata.svn.sourceforge.net/viewvc/firmata/arduino/trunk/Firmata/Firmata.cpp
15  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: found bug in Serial.available() on: February 26, 2007, 10:54:07 pm
Quote

To fix this problem, the function serialAvailable needs to be modified as follows:

Code:
int serialAvailable()
{
    return (RX_BUFFER_SIZE + rx_buffer_head - rx_buffer_tail) % RX_BUFFER_SIZE;
}

Nice catch on that bug.  I was just checking out circular buffers myself recently, and I have been doing a lot of bitwise stuff for Firmata, so I thought this recommendation from the circular buffer wikipedia page might be useful:

Quote
where
    * w represents the position of the write pointer;
    * r represents the position of the read pointer;
    * n is the size of the buffer.

(If n is a power of 2, the calculation can be simplified to a bit-wise AND of (w [ch8722] r) with (n [ch8722] 1).)

e.g.

Code:
int serialAvailable()
{
    return (rx_buffer_tail - rx_buffer_head) & (RX_BUFFER_SIZE - 1)
}
Pages: [1] 2 3 ... 8