-
-
yol
Thanks a lot! that's super useful information, i'll do my research
However, when uploading the serial_write sketch to the board I get the following error apparently in the byte transferArray[0] = 0xc0; line 37:/run/arduino/sketches/serial_write_ADrymonitis/serial_write_ADrymonitis.ino: In function 'void loop()':
/run/arduino/sketches/serial_write_ADrymonitis/serial_write_ADrymonitis.ino:37:27: error: array must be initialized with a brace-enclosed initializer
byte transferArray[0] = 0xc0; // denote beginning of data
^~~~
/run/arduino/sketches/serial_write_ADrymonitis/serial_write_ADrymonitis.ino:44:45: error: array must be initialized with a brace-enclosed initializer
byte transferArray[index++] = analogVal & 0x007f;
^~
/run/arduino/sketches/serial_write_ADrymonitis/serial_write_ADrymonitis.ino:45:31: error: conflicting declaration 'byte transferArray [(<anonymous> + 1)]'
byte transferArray[index++] = analogVal >> 7;
^
/run/arduino/sketches/serial_write_ADrymonitis/serial_write_ADrymonitis.ino:44:10: note: previous declaration as 'byte transferArray [(<anonymous> + 1)]'
byte transferArray[index++] = analogVal & 0x007f;
^~~~~~~~~
/run/arduino/sketches/serial_write_ADrymonitis/serial_write_ADrymonitis.ino:50:35: error: array must be initialized with a brace-enclosed initializer
byte transferArray[index++] = !digitalRead(i + 2);
^~~~~~~~~~~~~~~~~~~
/run/arduino/sketches/serial_write_ADrymonitis/serial_write_ADrymonitis.ino:53:21: error: expected primary-expression before 'transferArray'
Serial.write(byte transferArray, numBytes);
^~~~~~~~~~~~~ -
yol
Yes, i'd like read analog values from gas sensors, together with the I2C from the CCS811 sensor (IN) and activate/deactivate fans and servos (OUT)
i could do it with the Firmata on the board, then i don't know how to read the I2C or communicate the board with PD via [comport] and then I dont know how to send the digital OUT messages that activate the board from the serial -
yol
the sensor is Adafruit CCS811. I can read it together with analog sensors if i send the data to the serial port (not with Firmata) but then it is problematic when i want to control digital outputs from PD
-
yol
hello there,
I normally use the Arduino board with Standard Firmata and control it from PD using [comport]. It is quite straight forward driving analog/digital inputs and outputs. I'd like to add a sensor that communicates using I2C but I can not find the way to read that when Firmata is installed. any tips?
arduinomega-test.pd -
yol
sorry, i solved it using command and sending exec shutdown now to it
-
yol
hi there,
i need to shutdown my Raspberry pi (Raspbian 64bit operating system), previously I was using the [shell] object from ggee sending a "shutdown now" message and worked perfectly. Now the [shell] is not updated to Pd 0.53, are there any other objects that would work as simple as [shell]? thank you!!