Big delay issuing command to arduino and execution

If you're having trouble with your LattePanda, here's the place to get help.
Forum rules
    Post technical issues here.

    - Discussion tone should be kept polite and focused on facts
    - Vulgar language or flaming constitutes an instant ban
    - Please note we cannot support PM requests for help
    - Members are asked to post in English only so that posts can be well received and properly monitored
    - You can find the RMA guide [here]
    - Please check if your question has already been answered before opening a new thread. If it has not, please verify the following:


    - Have you tried a hard reset?
    - Are you using a 5V@2A+ power supply and a high quality USB cable?
    - Have you tried powering the board through the CN2 headers?
    - Have you tried a cooling solution such as a fan or heatsink?
    - Have you tried reinstalling drivers?
    - Have you tried reloading the operating system?
    - Have you tried flashing the BIOS?
    - Are you able to flash the BIOS at the hardware level?

    If you have not found a solution, post a new issue. To speed up the process please let us know:
    - Have you tried the solutions listed above?
    - What board are you using? Standard (2GB RAM/32GB eMMC) or Enhanced (4GB RAM/64GB eMMC)?
    - Have you tried any other solutions?
    - How long have you had your board for?
    - When did you first boot your board?
    - Did it work ok before the issue occurred or has the issue always been there?
    - Use images and videos to help us understand the issue where possible

    If you are seeking RMA:
    - Please open a new topic rather than hijacking someone else's thread
    - Mark RMA posts with [DEFECTIVE] + <helpful description of issue>. We can then approve/disapprove each request
    - Completed RMA cases will be marked with [CLOSED]
    You can find the RMA guide [here]

    Resolved Issues
    - If you manage to fix an issue, please share your solution for the good of the community. It could help someone else in future.
    - If an issue is resolved the thread should be marked as [RESOLVED]. We can then sticky the thread to help people in future.

    What does troubleshooting support?
    - Hardware queries
    - Hardware issues that weren’t caused by you, e.g DOA board
    - Windows 10 specific issues
    Post Reply
    User avatar
    bhermer
    Posts: 2
    Joined: Sat Dec 29, 2018 1:44 pm

    Sat Dec 29, 2018 2:03 pm

    Hi,

    Enhanced (4GB RAM/64GB eMMC)

    I tried the Servo demo code found here:

    http://docs.lattepanda.com/content/1st_ ... reference/

    It works for a few seconds and gets slower and slower. I simplified it and just had a console app where I input a number to set the PWM

    Code: Select all

     arduino.pinMode(9, Arduino.SERVO);
                arduino.pinMode(13, Arduino.OUTPUT);
                bool isOn = true;
                while (true)
                {
                    arduino.servoWrite(9, int.Parse( Console.ReadLine()));
                    if (isOn)
                    {
                        arduino.digitalWrite(13, Arduino.LOW);
                        isOn = false;
                    }
                    else
                    {
                        arduino.digitalWrite(13, Arduino.HIGH);
                        isOn = true;
    
                    }
                }
            }
    Between issuing a command to the Arduino, and the Arduino acting on it is over a second? I am looking to control speed controllers through PWM.


    Thanks

    Ben

    Post Reply