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

24 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
2 answers

How can I stop digital pins from floating at reboot?

I've got a LattePanda 3 Delta, which runs windows on its main processor and an Arduino sketch called StandardFirmata on its coprocessor. It's connected to a lock, which locks at HIGH and unlocks at LOW. When I boot/reboot the LattePanda, there is a…
2
votes
1 answer

Connecting Arduino Mega 2560 to Python with PyFirmata

I am currently controlling two servos using the Arduino IDE, but now need to integrate my Arduino code into a Python script. I read about how to use PyFirmata and went through the process of uploading StandardFirmata to my Arduino Mega 2560 board…
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
  • 1
  • 13
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
  • 7
  • 19
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
  • 17
1
vote
1 answer

Arduino board with StandardFirmata doesn't respond to C# and Python client

I have a Seeeduino XIAO board with Firmata running on it. I'm currently trying to write C# client to communicate with this board. I have tried using Iot.Device.Arduino, SolidSolis.Arduino and pyfirmata for that purpose but I'm struggling with…
Cregennan
  • 21
  • 4
1
vote
1 answer

How to sue Arduino Nano to control Stepper motor with Firmata

I have a stepper motor and at present it is controlled by a sketch all working fine. I need now to add it to a Win32 app to control it in circuit with existing Servo Motor. The servo Motor is working well via Firmata from Win32 app as follows in…
user3884423
  • 111
  • 3
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
  • 1
  • 13
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
2