Giter Club home page Giter Club logo

lattepanda-development-support's Introduction

LattePanda-Development-Support


Contains the following:

  • LattePanda C# Firmata library (Access GPIO from Visual Studio)
  • LattePanda C# Firmata Demo
  • FirmateWebClient: a hardware control platform that can be accessed on the web

To download, please click "Download ZIP"

Follow us on Twitter for updates and more information: https://twitter.com/LattePandaCN

Designed by Cain, Kelvin and Lauren for LattePanda

lattepanda-development-support's People

Contributors

dsjzn avatar johnatannvmd avatar lafrank avatar lattepanda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lattepanda-development-support's Issues

Firmata and PWM-pins problems

Hello,

I have an issue with those PWM / Analog pins (like the pin10).
If I change the "LattePandaFirmataDemo" so that I'm controlling PWM on pin 10 like this:

arduino.pinMode(10, Arduino.PWM);
arduino.analogWrite(10, bar.Value);

my LED lights up ONLY when the slider is on the right and I'm sending 255, nothing happens in-between. The app gets very unresponsive as well.

This issue doesn't appear if I use pin11 which is not overloaded by any Analog pin.

High 1 CPU core load after connect to Arduino

This Library implementation begins high CPU load on just open connection to Arduino. Profiler begins endless while loop for events didI2CDataReveive, digitalPinUpdated and analogPinUpdated in separate thread. This behaviour is very strange and does not suppose to block this if you do not need this events in your project.

CS0246 Error with aurduino.cs? 'SerialPort' could not be found

I'm trying to build the blinkLED example with Visual Studio 2017. Looks to me like the project is all setup correctly and I've added the aurduino.cs file as per the instructions. But I get the following error with I build:
Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'SerialPort' could not be found (are you missing a using directive or an assembly reference?) blinkBoard C:\Users\erikj\source\repos\blinkBoard\blinkBoard\arduino.cs 407 Active

I didn't modify the aurduino.cs file at all and just added it to my project. What am I missing?

Sometimes GPIO not work

Hi everyone.
I use the newest Arduino.cs code by lafrank which help reducing the CPU usage.

And test LED blink code like this:
Controller.digitalWrite(doorPin, Arduino.HIGH);
Thread.Sleep(2000);
Controller.digitalWrite(doorPin, Arduino.LOW);

It works at start but sometimes not blink after a while.

I observed the LED on the board is always on with the old Arduino.cs
However. Use the newest Arduino.cs is not.
Any idea about it? Thanks.

FirmataWebClient.js connect to wrong port

Hi, i have two serial ports connected to lattepanda by using USB-serial. When i run the FirmataWebClient.js . it try to connect to the other port, and for sure failed. How do i fix the com port so that the webclient connect to correct one?

Can I join TeamPanda?

I've recently created a BSP (board support package) for LattePanda running Windows IoT Core. It's MUCH better than Windows LTSB for many things.

For example, you can simply flash IoT Core on a USB stick, pop it in the Panda and it boots and runs. ...Or you can deploy the image to the internal memory and it boots even faster. From go to your app in ~20 seconds.

My employer wanted to use IoT Core because we're building digital instruments the Panda is used to control. We needed something that eliminated Windows from the user's view. IoT Core does that. With a custom boot logo from TeamPanda no one can tell it's running Windows.

It's also way more reliable. Designed to only be updated on demand (no random windows updates). Administered through the browser, etc.

Basically it's the Windows most LattePanda users want.

I would love to see this hosted/maintained here (as well as on the Microsoft IoT ADK Github repo).

So can I join and submit my BSP?

你好,请问有木有C++的呀

因个人平时的工程需求,很少使用C#编写东西,如果要用C++的话,可否直接用?或者如果我可否直接移植成C/C++的?

Q: Any way to use pins directly from C#?

Hi! Only after reading a whole hour about library and samples I realized, that it's communication library. My task is way simpler: is it possible for my C# program which runs on Arduino to use pins directly? I have Arduino on Intel Atom CPU + Windows 10. I want to run my C# app in Win10 and blink LEDs. Is it possible?

Resource Management Optimization

Hello team LattePanda,

We are using LattePanda V1 board with 2 GB RAM also we have install windows 11 Home addition with this board now we are adding one of the QT application with GUI interface.

We required some features like We not want Windows screen instead of Windows screen we want our own application so can you please suggest us how we can do this? also we are facing issue is slowness we have tested board with our application few days in result we found some slowness with time so we have plan to deploy our product with system on in 365 days so this is not good for us to slow with time can you suggest what the reason behind this slowness.

We have checked hardly 78 process running over the system so we have optimize maximum services now we not have option for system optimizer and also in some pick time CPU resourcing is touch the 100% but we are ensure that our application is only consuming 10-15% of CPU in any condition so how to minimize this CPU consumption?

please suggest me to run smooth application for long term right now we facing in just 3 days in lacking of the system.

Thanks,
Fenil

Concurrency issue with latest modification

Although I think it is a very useful and great work, I also believe - but could be wrong - that there is a serious concurrency issue with latest modification "Update Arduino library for less CPU consumption".

This change has introduced a thread that initiates a timed event that is called in every 30ms to read the serial port, a much better approach than the original code. The problem is however, that the timer will tick and initiate a new call disregarding whether the execution of the previous call has finished or not. This results is multiple, simultaneously running instances of InputProcessor.InputProcess() method.

In my view, InputProcessor.InputProcess() should be enclosed in a Monitor.TryEnter(_serialPort) and Monitor.Exit(_serialPort) try-finally clause to prevent parallel execution.

See pull request #8 for details

Possible Typo in Arduino.cs

In the file there is the word DataReveive not sure what that means but maybe a typo or maybe intentional. I changed my copy to be DataReceive which is more meaningful when I use it in C#. Today I know that DataReveive = the incoming data, tomorrow I may remember but next month I will have forgotten and maintenance of teh c# code will take time to relearn what it means. I changed it and it does not seem to clash with anything else. Search the file for DataReveive to find all the instances.

Imposible do find download zip button

Hi everybody
I am in front of the webpage since one half and hour and I don't find any way to click on download zip !!
Thanks to help me. I am going to be crazy....
Regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.