Questions tagged [firmata]

Firmata is a protocol for communicating with micro-controllers from software on a host computer

There are two main models of usage of Firmata. In one model, the author of the Arduino sketch uses the various methods provided by the Firmata library to selectively send and receive data between the Arduino device and the software running on the host computer.

The second and more common model is to load a general purpose sketch called StandardFirmata on the Arduino board and then use the host computer exclusively to interact with the Arduino board.


See: https://github.com/firmata/arduino and https://github.com/firmata/protocol

19 questions
12
votes
1 answer

Update Dynamically Tkinter Widget Scale from Arduino Ports using python and firmata

I'm having trouble trying to get Arduino digital ports values and set these values into a Python Tkinter Widget Scale. I'm using Python and Arduino with Firmata. I'm able to access my arduino board with python code. For example in a label widget…
3
votes
1 answer

Read/write data from 2 Arduinos simultaneously with Python

So for my project I have one Arduino Mega hooked up with a quadrature rotary encoder which is connected to the computer. An Arduino Uno is connected to a circuit I built, which in turn is connected to a valve and a touch connector (also connected to…
Max
  • 31
  • 2
2
votes
3 answers

Firmata: strings sent from the computer become damaged after Arduino

I have a Python program that acts as a Firmata client. This program connects to the Arduino at a user-specified COM-port (with Firmata onboard, the sketch can be seen below), sends the user-requested string message to the Arduino, and awaits…
Starter
  • 153
  • 12
2
votes
2 answers

Example code and documentation on using Firmata communication in native Java

I have been trying for some time to get documentation on using Java and a Firmata client library for the communication between a PC and an Arduino. Please note I want to use Java only, i.e., not Processing. Up to now I used the excellent Haskell…
mrsteve
  • 181
  • 1
  • 5
2
votes
2 answers

Firmata: how to set a particular pin to high on boot?

I'm working on a project that use J5, so is using the standard firmata, this project is using an opto 4 channel relay, when the board is booting the pins state are set to low, so as soon as I power the board my relay goes to a close state and make…
FabioEnne
  • 233
  • 5
  • 18
2
votes
2 answers

Interface with mux-controlled LED rope

I'm working on using a GUI in Processing to control some LED rope from Adafruit, and using this multiplexer. I've gotten the following Arduino code working the way I want to cycle through the various strands of LED rope and turn them on: #include…
narner
  • 267
  • 1
  • 3
  • 16
1
vote
2 answers

Firmata.SendString doesn't work with specific `char` variables

I have a Firmata sketch, that accepts string messages, partitions them and sends its' parts back to a Firmata client program. My problem is certainly at the sketch's side. The problem is that Firmata.sendString(argument1) and…
Starter
  • 153
  • 12
1
vote
0 answers

Connect and detect multiple arduinos using firmata

i am trying to connect several arduinos to usb ports and have the abillity to define between them. i added Firmata.attach function on the arduino board. how do i call it from my python script? thank you #define BOARD_NAME '1' void readName()…
1
vote
0 answers

Arduino Nano 33 IoT StandardFirmataPlus

newbie here. So I've been trying to upload StandardFirmataPlus into my Arduino Nano 33 IoT so that I can program in Johnny-Five. However I have this issue. I've checked that my port is connected and that the libraries are up to date. The docs say…
1
vote
0 answers

Setup Firmata for PC-less usage

I want to use an Arduino Uno with Firmata as a standalone datalogger for recording analog signals. I will use power banks to power the Arduino. How is it possible to setup Firmata pins once with PC and use that battery powered in PC-less situation?
John
  • 11
  • 1
1
vote
1 answer

How to work with analog readings using RPi and Firmata?

For context: I'm working on a project where I need to use sensors to figure out the current state of the environment. This process is done using an Arduino UNO and a RPi. The easiest way that I found to perform communication between both boards is…
1
vote
1 answer

Actual baud rate of UNO R3 Firmata protocol

Probably a silly question. But the Internet is confusing me. The Firmata website says the default baud rate is 57600. But AFAIK, the baud rate set for UNO R3 is 9600(In Windows device manager, it say so). I'm making the Firmata client program and…
Abrar Borno
  • 113
  • 1
  • 5
1
vote
1 answer

Firmata C++ library for host?

Firmata seems to be a popular protocol for communicating between the Arduino and host computer. However, there only seems to be C/C++ libraries for the Arduino. Most Firmata libraries for the host appear to be in Python. I've found a few C/C++…
Cerin
  • 1,578
  • 2
  • 21
  • 41
1
vote
1 answer

Can you save data to EEPROM using firmata?

I have a few Arduino boards connected to my computer running firmata and I want the computer to be able to differentiate between them even when I unplug them and plug them back into a different USB port in a different sequence. My solution was to…
Airfield20
  • 176
  • 4
1
vote
2 answers

Getting Firmata to control WS2801 LEDs

I am trying to control a strip of WS2801 LEDs through an arduino uno running firmata from Python on my laptop. I've written some basic code based on adafruit's library here (from line 187): from pymata_aio.pymata3 import PyMata3 from…
angusprune
  • 13
  • 3
1
2