I’m working on a project that involves sending and receiving the data through the Firmata Library to Processing and it works wonderfully with the StandardFirmata sketch as long as it only uses built-in arduino functions.
However, I have a DHT-11 sensor that uses its own library, so of course Firmata is not pre-coded for that. I have been looking around for a solution, but so far the only conclusion I could draw from other people’s questions is that one cannot import an arduino-specific library into processing.
So, I was thinking, instead of importing the library into processing, what if I import the library into arduino into the StandardFirmata sketch and only send the output-data to Processing? This would circumvent the issue of having to translate external libraries in Processing - at least in theory. I have been googling for precedent projects that would have had the same problem, but I was not able to find a good explanation/example on how to do such a thing.
Does anyone have experience with this? Would it be potentially easier to not use Firmata and write a code for serial communication myself? Alternatively, how hard is it to add the necessary firmata code to my existing sketch without uploading the StandardFirmata sketch?