Skip to main content
5 votes
Accepted

Interface with mux-controlled LED rope

You're using a 16-channel analog multiplexer to talk to your devices (the LED ropes) via a single pin on your Arduino. "Multiplexer" is just a fancy name for a switch; "analog" ...
cjs's user avatar
  • 594
3 votes

Firmata: strings sent from the computer become damaged after Arduino

You have to understand the Firmata protocol to write your own client library. The spec is here: https://github.com/firmata/protocol. In this particular case, you need to know that data that is sent (...
PMF's user avatar
  • 1,296
3 votes

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

It would seem you are right. If I understood the source correctly, Firmata initializes all digital pins as OUTPUT LOW. Hard to believe, as this seems like a silly thing to do... My understanding is ...
Edgar Bonet's user avatar
  • 43.3k
3 votes

Interface with mux-controlled LED rope

After reading your github page, I came to realize that: you do not require full color control, but only setting the strips to full red or full blue you are using MOSFETs for driving them. Given ...
Edgar Bonet's user avatar
  • 43.3k
3 votes

Firmata C++ library for host?

openFrameworks appears to have this capability. It's written in C++. From openFrameworks - Communication: Arduino and other serial devices communication The communication module has classes ...
jackjaquejack's user avatar
2 votes
Accepted

Can you save data to EEPROM using firmata?

You have to edit the Firmata source code and add a few lines of code: add the EEPROM library include the library into the Firmata code in the setup() function use the EEPROM library to read the id ...
Roberto Lo Giacco's user avatar
2 votes
Accepted

How to work with analog readings using RPi and Firmata?

It does not appear that Firmata has proceeded with the ability to change the analog reference source. You referenced one of the issues opened for it, but I don't see anywhere where it committed to the ...
jose can u c's user avatar
  • 6,974
1 vote
Accepted

digital input pins on arduino nano with standard firmata and pyfirmata are always 'None'

"None" indicates that there is no data to be found by read() because the incoming serial stream has never been serviced. Launch an Iterator to start a new Python thread that services the ...
MAXdB's user avatar
  • 51
1 vote
Accepted

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

The problem was in serial port connection settings. When I used these i was finally able to get response from board: var port = new SerialPort("COM3", 115600); port.Open(); port.Parity = ...
Cregennan's user avatar
1 vote

Diecimila with firmata standard not working

Is there a workaround (I only need inputs, maybe even only digital)? OldStandardFirmata I don't know enough about homeassistant to know what you need exactly. But it seems very likely that you can ...
timemage's user avatar
  • 5,299
1 vote
Accepted

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

Firmata.sendString does not send anything to the client in two cases: If the message is empty; If the message does not contain the \0 terminator in it. In this case, while you're sending methodName, ...
Starter's user avatar
  • 153
1 vote

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

Here's a simplified version of your command parser using cstrings and pointers: void parseArgs(char * rec){ char cmd[32]; char arg1[32]= {0}; char arg2[32]= {0}; char * ptr; // this is a re-...
dandavis's user avatar
  • 1,037
1 vote
Accepted

Firmata: strings sent from the computer become damaged after Arduino

Instead of using the UTF-8 encoding, def receiveString(self, *args, **kwargs): print(f'Received: {args}') def sendString(self, data): self.send_sysex(0x71, bytearray(data, 'utf-8')) it is ...
Starter's user avatar
  • 153
1 vote

Firmata: strings sent from the computer become damaged after Arduino

Alternatively, if you want a system without Firmata's baggage of ancient MIDI constraints, like its bizarre 7-bit limit, you might consider DaqPort https://www.daqarta.com/dw_rraa.htm
Boggyman's user avatar
  • 609
1 vote

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

Just put digitalWrite(anyPin,HIGH) in void setup() this will make that specific pin HIGH to reset. It works for me. void setup() { digitalWrite(8,HIGH); Firmata.setFirmwareVersion(...
bilaltehseen's user avatar
1 vote

Reading digital port with pullup via Firmata

Never mind, I found out what the problem is. The Firmata SDK (Remote Wiring) for Windows just completely ignores the PULLUP pin mode. There are PR (https://github.com/ms-iot/remote-wiring/pull/102) ...
Jasper's user avatar
  • 115
1 vote

Getting Firmata to control WS2801 LEDs

It's possible that time.sleep is causing a latching issue. You should instead use pymata-aio's sleep function: uno.sleep(0.001) The documentation for it can be found here: http://htmlpreview.github....
Zachary Lawrence's user avatar
1 vote

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

in your code: pos2 = d8.read() print("pos2 is {} type {}".format(pos2, type(pos2))) # This way, you'll know the var type you're getting on the console if posX == True: posX = int(posX) ...
SMFSW's user avatar
  • 367
1 vote

Example code and documentation on using Firmata communication in native Java

Maybe this can work for you. Some months ago i used RXTXcomm library [1] to send Arduino data to a Program i made in java and store in in a file, it works fine with some issues: I made the Java ...
Juan Botero's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible