V-memory variable update problem - Printable Version +- Virtuino Forum (https://virtuino.com/forum) +-- Forum: Virtuino (https://virtuino.com/forum/forumdisplay.php?fid=1) +--- Forum: Virtuino 6 (https://virtuino.com/forum/forumdisplay.php?fid=3) +--- Thread: V-memory variable update problem (/showthread.php?tid=1108) |
V-memory variable update problem - vovaself - 11-02-2022 Hi There is a strange problem I have Arduino sketch working with stepper motors. Connection to Virtuino - Bluetooth If I disable logic of steppers (skip it) Virtuino screen works properly. If I add steppers logic Virtuino screen works partually: I can press button to change V-memory variable and the program(sketch) reacts properly. But the same variable is not updated on the screen. Maybe somebody have an idea ? Thanks RE: V-memory variable update problem - iliaslamprou - 11-03-2022 Hi, I am not sure but I think that the Software Serial library doen't work with the Servo library. The solutions: 1. You have to test your arduino code using different Servo Library 2. You have to stop use the Software serial library. Try to replace it with the Serial. I have modify the first VirtuinoCM library example. I have replace the SoftwareSerial with the Hardware Serial of Arduino board You have to move the connected wires from the pins 2-3 to the Serial pins 0-1. But you have to do it after uploadind the following code because the Serial uses the pins 0-1 fot the uploading. I have removed all the Serial.print... functions of the code too You can't use the serial monitor anymore with this sketch Code: //#include <SoftwareSerial.h> Code: void onReceived(char variableType, uint8_t variableIndex, String valueAsText){ |