Go Down

Topic: Arduino processing Firmata (Read 1 time) previous topic - next topic

BertusJ

Is there anybody that was able to succesfully connect an arduino 2560 mega board via StandardFirmata to processing?

baum

What happens if you try? Do you get an error?

BertusJ

I can get everything working except anolog pins 6 to 15

baum

That's because the firmata sketch is only set up for Analog pins 0-5 on an uno. What firmata sketch are you using? Try some of the other ones; they may work.

BertusJ

I am using StandardFirmata uploaded to my arduino 2560 mega board.

baum


BertusJ

Thank you very much you really made my day. I have been strugling for a week with this problem. They are all working thanks.
Bertus

BertusJ

Sorry I answerd to quick. now my digital outputs don't work anymore.

BertusJ

Hope I'm back for the last time. I opened the standardFirmata and the allInputsFirmata sketches next to each other and looked for something I could change on the standardFirmata. I replaced the line in standardFirmata that reads "if (analogPin < TOTAL_ANALOG_PINS) {" with the line that says "for (analogPin = 0; analogPin < TOTAL_ANALOG_PINS; analogPin++) {" and all pins are working. Thank you again for pointing me in the direction of the problem for I have thought the problem to be on processing side and spend a lot of time trying to fix it there.
Kind regards
Bertus

hugo007

what software are you using for processing?
Debian,Mint,Ubuntu
Arduino Mega 2560
Arduino Nano
Arduino Duemilanove
MAC OS Montain Lion
Raspberry PI Model B

Go Up