Questions tagged [firmata]

a protocol for communicating with micro-controllers from a host computer

Firmata is a generic protocol for host to micro-controller communications. It is frequently used to interface sensors and outputs attached to an Arduino to graphical programming systems, DAQ applications and other programming languages.

70 questions
5
votes
1 answer

Firmata with Arduino Mega 1280, can't read all input pins

I got an Arduino Mega 1280 and want to communicate with it via Firmata. That sounds easy... So my problem: If I use the StandardFirmata Firmware for the Arduino, which is included in Arduino 1.0, I can set output Pins, and send a signal to them…
nbuechi
  • 229
  • 4
  • 20
4
votes
4 answers

Firmata over Bluetooth on Arduino?

I have Firmata working fine on an Arduino Uno, communicating over cable USB to Processing. I want to get rid of the cable, and run the connection over Bluetooth transport (with a BlueSMIRF module). I am unclear on what I need to do to Firmata to…
Darrell Berry
  • 203
  • 2
  • 14
4
votes
2 answers

ConfigurableFirmata module functions

I'm writing custom modules for ConfigurableFirmata, I see libraries are using callbacks such as: void Class::handleCapability(byte pin); boolean Class::handlePinMode(byte pin, int mode); ... boolean Class::handleSysex(byte command, byte argc, byte…
Nika
  • 1,864
  • 3
  • 23
  • 44
3
votes
3 answers

arduino read in pyfirmata gives output as none

I wrote a basic code for reading values from analog pin 0(I have a light sensor attached to it and the output is coming at analog pin 0) in python3 using pyfirmata, but it is giving the output as none no matter what. I tried the same code in arduino…
ButterCup
  • 71
  • 1
  • 4
3
votes
2 answers

Python PyQt Timer Firmata

I am pretty new to python and working with firmata I am trying to play around with an arduino . Here is what I want to happen: Set arduino up with an LED as a digital out Set potentiometer to analog 0 Set PyQt timer up to …
3
votes
0 answers

Firmata over nRF24

I'm having some technical problems... I'm trying to use Firmata for arduino but over nrf24, not over Serial interface. I have tested nRF24 communication and it's fine. I have also tested Firmata over Serial and it works. Base device is simple…
Aleksandar Toplek
  • 2,792
  • 29
  • 44
2
votes
1 answer

connect Modelica with arduino by firmata

I would like to connect my arduino with modelica by using the firmataprotokoll and the arduinolibrary. But the compilation always fails because of the error: LINK : fatal error LNK1181: cannot open input file 'ModelicaFirmata.lib' Does anybody have…
2
votes
2 answers

Python: How to Convert 32-bit Signed Long to 7-bit ints

What is the best way (in Python) to convert 32-bit signed longs to 7-bit ints, in order to transmit them via Firmata/serial link? Converting into 8-bit is not a problem, just (long_val).to_bytes(4, 'little'). The final sequence should be like…
CNCman
  • 43
  • 3
2
votes
0 answers

Arduino Firmata I2C Slave writer nodejs

Hi I'm trying to read code from an slave arduino using nodejs connected with and arduino through firmata, however i can't get the correct values in the read. I'm using this package https://www.npmjs.com/package/firmata Also I tried sending data…
user236582
  • 424
  • 1
  • 4
  • 6
2
votes
1 answer

Windows Powershell not quitting script with Ctrl-C

So I am running Python 3.4 scripts on Windows, and when I run a particular script, I have an infinite loop (while True:) which I am using, but when I try to quit the script with Ctrl-C, it is not exiting the script. It prints Keyboard Interrupt, as…
rtmurad
  • 127
  • 2
  • 14
2
votes
1 answer

How to use Arduino Uno analog pins as digital pins with pyfirmata

I am trying to use Arduino analog pins (A0-A5) as digital pins (D14-D19) with pyfirmata. I'm doing a simple blink test with D14 (or A0) to test this: #!/usr/bin/python # Blink test with analog as digital pins # Import required libraries from…
Dot Silverman
  • 29
  • 1
  • 2
2
votes
1 answer

Use external C++ library with Johnny Five for Arduino based projects

I need to use the RFID-RC522 module in my Johnny Five project (it is an NFC reader). There is an arduino Library that makes it easy to interface with that: https://github.com/miguelbalboa/rfid Can i use this library through Johnny-Five? If yes,…
Morrisda
  • 1,380
  • 1
  • 11
  • 25
2
votes
1 answer

How do I send arduino a firmata command to turn on a pin

I'm trying to implement the firmata protocol and having a bit of a difficult time deciphering the spec for writing digital pins: I have noted the following parts of the spec of Firmata 2.3 * type command channel first byte …
kealist
  • 1,669
  • 12
  • 26
2
votes
2 answers

How to break out of a subrule once a certain part of the rule is met?

Currently parsing Midi messages for the Firmata protocol in Rebol 3, and came across a situation I haven't seen before. Basically, I have a generic rule to copy bytes between the framing bytes. However that rule is eating the framing bytes. I have…
kealist
  • 1,669
  • 12
  • 26
2
votes
1 answer

Node.js with socket.io and firmata on raspbian (model B) runs slow

I´m running a Raspberry Pi Model B (512MB RAM) with a 16 gB 300MB/s SD-card and recent raspbian with all updates. On this machine I´ve set up a apache2-server, node.js with socket.io and firmata. Within my web-application, video streaming is a key…
goetzmoritz
  • 453
  • 1
  • 5
  • 23
1
2 3 4 5