Giter Site home page Giter Site logo

Instrumentino/Controlino about instrumentino HOT 4 CLOSED

yoelk avatar yoelk commented on August 29, 2024
Instrumentino/Controlino

from instrumentino.

Comments (4)

yoelk avatar yoelk commented on August 29, 2024

Hi Francesco,
Did you already read the documents in Instrumentino's GitHub repository?
You can find there a simple example for reading analog signals:
https://github.com/yoelk/Instrumentino/tree/master/documents/example_run_ArduinoPins.py

On Thu, Apr 2, 2015 at 11:33 AM, chiccodoro [email protected]
wrote:

Hi Israel Joel,
I am planning to use your GUI called instrumentino, to get some data
through the USB of the PC. I am using a set-up similar to this one
https://cdn.sparkfun.com/assets/1/5/9/9/9/simple-redboard_levelShift_bb.png
with an arduino micro.
At the moment I use the arduino serial monitor to check sensor values, but
I would like to replace it by using instrumentino.
I have no much experience in coding and GUI and I would like your help.
Therefore, I was wondering if you can help me how to configure
instrumentino to read data from the USB and plot them on a chart. Do you
have any example?
Thank you in advance,
Francesco.


Reply to this email directly or view it on GitHub
#9.

from instrumentino.

chiccodoro avatar chiccodoro commented on August 29, 2024

Hi Isreal Joel,
I have downloaded everything from this site, including your example and documentations.
I have few questions since things are not enough clear to me. I am not a Python or software expert :-)

  1. Do you use your GUI directly to control the Arduino as in the example ArduinoPins.py?
  2. Is there a possibility with your GUI to read only the content coming from the USB and plot it?
    if answer to question 1) is negative and to 2) is positive. I think I am missing something in your code.
  3. Talking about your example ArduinoPins.py, in which part of the code you set the GUI to read from the USB?
  4. Why you need to declare this
    pinAnalInA = 1
    pinPwmOutA = 9
    pinAnalInB = 2
    pinPwmOutB = 10
  5. Is it possible to have an explanation to how you built up your GUI, please? Adding more comments to your code would be tremendously helpful for the end user :-)
    My intent is to use what you have done and adapting to my needs.
    Thank you in advance for any help,
    Francesco.

from instrumentino.

yoelk avatar yoelk commented on August 29, 2024
  1. I didn't understand the question
    I run the system description file using python. This brings up a GUI
    window for my custom system.
  2. Yes. In the example, this is exactly what I do.
  3. Instrumentino is a framework, that hides as much as possible from the
    users, so they don't need to take care of things like USB communication. If
    you're interested in its internals, browse the instrumentino code itself.
    Specifically, USB communication is handled in the Arduino class
    https://github.com/yoelk/Instrumentino/blob/master/instrumentino/instrumentino/controllers/arduino/__init__.py
    .
  4. These are Arduino pin declarations, to be used in the components. It
    is good coding practice to give names to variables instead of using numbers
    in the code.
  5. Please google it, as this is question is about Python and not
    Instrumentino.

As you see, it's important to know your way around Python to use
Instrumentino. I chose Python because its the easiest programming language
I know, but it still requires some effort in learning it.
Here is a good way to start http://www.python-course.eu/.

Also, please read the release article (PDF) in the documents folder in
GitHub.

Good luck!
Joel

On Tue, Apr 7, 2015 at 9:00 PM, chiccodoro [email protected] wrote:

Hi Isreal Joel,
I have downloaded everything from this site, including your example and
documentations.
I have few questions since things are not enough clear to me. I am not a
Python or software expert :-)

  1. Do you use your GUI done in Python directly to control the Arduino as
    in the example ArduinoPins.py?
  2. Is there a possibility with your GUI to read only the content coming
    from the USB and plot it?
    if answer to question 1) is negative and to 2) is positive. I think I am
    missing something in your code.
  3. Talking about your example ArduinoPins.py, in which part of the code
    you set the GUI to read from the USB?
  4. Why you need to declare this
    Arduino pins

pinAnalInA = 1
pinPwmOutA = 9
pinAnalInB = 2
pinPwmOutB = 10
5) Is it possible to have an explanation to how you built up your GUI,
please? For instance, what this part of the code does
from future import division
from instrumentino import Instrument
from instrumentino import cfg
from instrumentino.action import SysAction, SysActionParamTime,
SysActionParamFloat, SysActionParamInt
from instrumentino.controllers.arduino import SysVarDigitalArduino,
SysVarAnalogArduinoUnipolar
from instrumentino.controllers.arduino.pins import DigitalPins, AnalogPins

My intent is to use what you have done and adapting to my needs.
Thank you in advance for any help,
Francesco.


Reply to this email directly or view it on GitHub
#9 (comment).

from instrumentino.

chiccodoro avatar chiccodoro commented on August 29, 2024

Hi Isreal Joel,
thank you for the time you took to reply to my questions.
I have read your paper entitled "Instrumentino: An-open source modular Python..." and it is very useful.
To the best of my knowledge, Instrumentino takes the control of the whole system (PIC, sensors, and so on). What I am going to try it is reading the data over the USB and plotting them. Therefore, I will have a look to point 3) of your answer as well as you manage the chart.
I am going to leave the main functionalities inside the PIC without controlling it with the GUI.
Thanks,
Francesco.

from instrumentino.

Related Issues (20)

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.