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
1
vote
3 answers

The relationship between Firmata, Arduino and Node js

This is a basic question of understanding. I'm trying to follow this explanation http://www.barryvandam.com/node-js-communicating-with-arduino/ but something there sounds a bit off to me. As far as I understood before, I only need to push the…
Gold Smith
  • 13
  • 3
1
vote
0 answers

Qt with Firmata Library

i want to link Firmata library to qt how do i do it? using includepath? i already change the environment variable in my pc to include the arduino folder in C: and i already include in my .pro file of Qt like these # OpenCv Configuration…
1
vote
1 answer

How do you make an image stay on screen in Processing with an Arduino switch?

I am connecting Processing and an Arduino pushbutton. It's successfully connected with Standard Firmata. What I want to happen is that when the button is pressed, an image will show up in Processing but also stay on the screen, just like the LED,…
1
vote
1 answer

Johnny-Five apps always fail with RangeError after less than 1 second

My Johnny-Five apps are all failing after less than 1 second. I've tried with 0.7.9 and 0.7.8. This is the error I'm seeing: ytham:[master]~/js/deltarobot$ node . 1386668719984 Board Connecting... 1386668719986 Board -> Serialport connected…
Yu Jiang Tham
  • 53
  • 1
  • 7
1
vote
0 answers

How to connect URM37 (rangefinder) to Arduino and read data through nodeJS

I bought this range finder http://www.dfrobot.com/wiki/index.php/URM37_V3.2_Ultrasonic_Sensor_(SKU:SEN0001) And now I'm having difficulties to make it work on nodeJS. My setup is Arduino UNO and nodeJs using "firmata" library. What have i tried: 1.…
mikrowelt
  • 143
  • 12
1
vote
1 answer

Python- Firmata and Arduino, script structure effecting firmata

When using this script to blink an LED on pin12, the script will not get past line27 where pin12 is set high. There is no error message. import json import urllib from firmata import * from pprint import pprint import time …
Hooperstu
  • 99
  • 1
  • 11
0
votes
0 answers

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. However, having followed the exact procedure of translating Arduino code to Python and downloading/using the correct…
0
votes
0 answers

I'm working on arduino using johnny five. I need to control stepper motor for my project

I was tried many times to install AdvancedFirmata and ConfigurableFirmata on arduino ide for my johnny five.It actually installed but when I try to compile it show an error what I have to do?
0
votes
1 answer

how to use INPUT_PULLUP using pyfirmata2

In Arduino IDE (C++ programming language) we can use pinMode(button, INPUT_PULLUP) to avoid using resistor, but here I'm using Arduino microcontroller and running StandardFirmata inside it, then I use python and pyfirmata library but I don't know…
D D
  • 1
  • 1
0
votes
1 answer

Firmata, undeclared PULSE_IN erorr

I am trying to use the HC-SR04 and utilize the results in a python script. For this I using the StandardFirmata.ino sketch from: https://github.com/jgautier/arduino-1/blob/pulseIn/examples/StandardFirmata/StandardFirmata.ino When I try to upload the…
Kermek
  • 13
  • 3
0
votes
2 answers

while not error-how to make an alternative

This is the current code: def wait_for_button(button): while not (button.read()) : pass wait_for_button(push_button1) print('Hi') wait_for_button(push_button2) print('Bye') But the problem with this code is that push_button1 has to be…
strilz
  • 63
  • 7
0
votes
0 answers

Q: Python problem converting 32-bit signed long to an array of 7-bit values

I'm struggling to solve a problem with Python and Firmata since it needs a conversion of 32-bit long into an array of 7-bit (midi style) ints. I have 2 variants, none working, looks like both functions send garbage value of "position". Motor starts…
CNCman
  • 43
  • 3
0
votes
1 answer

node red firmata arduino connection lost so often

I am trying to read a potentiometer data over firmata with node-red. potentiometer connects to analog pin of arduino and arduino is connect to raspberry pi 4 over usb. Program runs good and i can get the data from arduino but connection lost very…
zoltan hulle
  • 1
  • 1
  • 1
0
votes
1 answer

Controlling Servos with Firmata and Game Control Plus

Good Night, My Arduino has the example program of Firmata running on it, StandardFirmata, and I made a program in Processing using Firmata and a library called Game Control Plus. My program takes the values ​​of the PS4 joystick and converts them…
0
votes
0 answers

Serial(UART) Communication between Arduino Mega and NodeMCU ESP8266 using johnny five / Firmata js

I'm making a project wherein I wanted to make the two devices communicate (Arduino Mega and NodeMCU respectively) which the Arduino Mega can send data via serial comm.(UART) to the NodeMCU. The NodeMCU acts as a bridge which has a Firmata in…