firmata firmware

For issues with communication ports, protocols, etc.
Post Reply
BasicCoder2
Posts: 3906
Joined: Jan 01, 2009 7:03
Location: Australia

firmata firmware

Post by BasicCoder2 »

While learning to use the Processing language I came across this and wondered if it could also be used with FreeBASIC?

https://www.arduino.cc/en/reference/firmata
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Re: firmata firmware

Post by D.J.Peters »

How many bytes are free if you install the firmware on your Arduino ?

Joshy
BasicCoder2
Posts: 3906
Joined: Jan 01, 2009 7:03
Location: Australia

Re: firmata firmware

Post by BasicCoder2 »

While playing with Processing3 and noticing firmata being mentioned with regards to the Arduino it was only a thought bubble to use it with FreeBASIC instead of Processing3 as I haven't really had any time to explore what was involved.
The examples of using Processing3 and the Arduino,
https://processing.org/tutorials/electronics/

Installing it on the Arduino,
https://www.instructables.com/id/Arduin ... d-Firmata/

Compiling the StandardFirmata sketch,
Sketch uses 16402 bytes (6%) of program storage. Maximum is 253952 bytes.
Global variables use 2029 bytes (24%) of dynamic memory, leaving 6162 bytes for local variables. Maximum is 8192 bytes.

I downloaded the Firmata Test from
http://firmata.org/wiki/Main_Page
but all I got was a blank window.
Maybe because I am using a mega2560
I will have to try it again tomorrow with a Uno.
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Re: firmata firmware

Post by D.J.Peters »

http://firmata.org/wiki/Main_Page wrote:Arduino Mega it is necessary to change the sampling interval in file StandardFirmata.ino from 19ms into 99ms !
BasicCoder2
Posts: 3906
Joined: Jan 01, 2009 7:03
Location: Australia

Re: firmata firmware

Post by BasicCoder2 »

Thank you Joshy.
It seems to work now.
I have buttons attached to pins 22,23,24,25 and the image shows me pressing the button attached to pin 23.
Image
Post Reply