Pages: [1]   Go Down
Author Topic: processing on MEGA 2560  (Read 479 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm a bit of an advanced cut and paste programmer and have been experimenting with processing on both the UNO and the MEGA 2560. I have a sketch that works on the UNO and the analog and PWM pins on the MEGA. I have not been able to access the digital pins 22 - 53 on the MEGA. I've seen similar questions on some other forums but no real answer. Is there something special about accessing these pins via processing.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Is there something special about accessing these pins via processing.
No, unless you mean via Firmata. Firmata happens to not be supported on the Mega, or at all for the Arduino, despite its popularity.

Do not confuse available and supported.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes I was using firmata and it does work on the UNO and to some extent on the MEGA... there is a version that is supposedly for the MEGA but it looks just like the one for the UNO.

Thanks... was wondering if I was beating my head against the wall.

Is it possible to do this without firmata?  If so could you point me in the direction of some examples?

Thanks Again

Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Firmata defines a protocol. The Processing application is sending specific information to the Arduino when a pin is to be read/written to.

There is nothing magic about the protocol or the code to implement that protocol. You can develop your own. Something simple like "R10" to read pin 10, "W50,0" to write 0 (LOW) to pin 50, and "A10,120" to perform an analog write on pin 10 with a value of 120, could be implemented in a couple of hours.
Logged

Pages: [1]   Go Up
Jump to: