I'm trying to get pduino working in a setup where I have Arduino reading an analog input and also controlling a relay on the digital output. I have tried the StandardFirmata sketch for Arduino but it doesn't seem to be able to read the analog input with this sketch (it controls the digital output no problem with this however). When I use the AllInputsFirmata instead, it reads the analog inputs just fine but I'm getting no response on the digital outputs.
Is there perhaps something where you can't use analog inputs and digital outputs at the same time? Could I be doing something else wrong? I've tried all the other Firmata sketches that come with Pduino (out of desperation!) but with no success. Any help greatly appreciated!
Pduino is an Arduino object for Pure Data which uses Firmata firmware, a protocol for communicating with microcontrollers (such as Arduino) from software on a host computer) . So that one can get data into Pure Data from the Arduino, and send data to it, over the serial port.
I've attached the two Firmata sketches I mentioned before.
You weren't being thick! I maybe just didn't explain it properly. PDuino is a name for a system which uses an external/object and patches in Pure Data (a visual programming language that's a bit like MaxMsp) that can communicate with Arduino when Arduino is plugged in via usb. The other half of Pduino is a series of sketches (and dependent libraries) which are uploaded to the Arduino to allow it to do this (two of which I attached to the earlier message). It's a bit weird that it doesn't seem to be able to read and write to the Arduino, which made me wonder if it's a glitch or if I'm doing something stupid. Perhaps I underestimated the amount of people still using Pduino in 2019!