Difference between revisions of "Controlino Notes"

From OpenCircuits
Jump to navigation Jump to search
(Created page with "= Draft = Just a draft may or may not be completed. Controlino Notes = What is Instrumentino = Links to what the authors think: * https://github.com/yoelk/instrumenti...")
 
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
= Draft =
 
= Draft =
  
Just a draft may or may not be completed.
+
Just a draft may or may not be completed. See also:  [[Instrumentino Notes]]
  
[[Controlino Notes]]
+
= What is Controlino =
  
= What is Instrumentino =
+
It is the Arduino component of [[Instrumentino Notes]]
  
 
Links to what the authors think:
 
Links to what the authors think:
  
* https://github.com/yoelk/instrumentino
+
* https://github.com/yoelk/controlino
  
  
My Take
+
= Get it Running =
  
Instrumentino is an instrument control system designed to interface with various smart or semi smart systems.   
+
I want compile it and run on my UnoSee [[Russ's Computer Environment]]
Prepackaged with the system is a program that makes an arduino a sort of smart sensor ( this in C++ ) and the Python code to interface with this Arduino which we will call the controlino
 
  
= Why =
+
Ton of files ( well maybe 10 ) on gitHub. 
  
= Install =
+
* Seems the only one that matters much is  controlino.cpp. 
 +
*Download it.
 +
*Make a new arduino project.  I called mine controlino_ino. 
 +
*In the project's file, controlino_ino.ino, paste the contents of controlino.cpp.
 +
*Follow the directions in the file. 
 +
*Compile. 
 +
*Worked the first time. 
 +
*Now have something on my uno. What?
 +
*More comming
  
Misnomer I do not want to really install it I want to get it running in my Spyder environment.  [[Russ's Computer Environment]]
+
= Protocol =
  
== On windows not going well ==
+
What is the Protocol?  Have not found any documents.  Reading the code and probing with my terminal.  Send a command and get a response.
  
  C:\Users\Russ>pip install instrumentino
+
* commands appear not to be caps sensitive
  Collecting instrumentino
+
* use a cr at end of commands
    Using cached instrumentino-1.0.tar.gz
+
* at end of command Arduino says "done/r"
  Collecting wxPython (from instrumentino)
 
    Could not find a version that satisfies the requirement wxPython (from instrumentino) (from versions: )
 
  No matching distribution found for wxPython (from instrumentino)
 
 
 
  C:\Users\Russ>pip install wxPython
 
  Collecting wxPython
 
    Could not find a version that satisfies the requirement wxPython (from versions: )
 
  No matching distribution found for wxPython
 
  
 +
* BlinkPin <pin> <ms to blink>
 +
** BlinkPin 7 200  => works
  
=========================
 
  
 +
* set xxx yyy      => sets pin n to input or output ( digital )  if pin is out of range o..
 +
** set 3 in      => think this is correct syntax
 +
** set in 3      => looks incorrect
 +
** set xxx yyy  => cannot be valid but no error message, no error may be ok
  
  
  C:\Users\Russ>pip install wxPython
+
[[category:Russ]] [[Category:Arduino/RaspberryPi]]
  Collecting wxPython
 
    Could not find a version that satisfies the requirement wxPython (from versions: )
 
  No matching distribution found for wxPython
 
 
 
  C:\Users\Russ>pip install wxpython
 
  Collecting wxpython
 
    Could not find a version that satisfies the requirement wxpython (from versions: )
 
  No matching distribution found for wxpython
 
 
 
 
 
Well, not so bad.  Useful to know that my Spyder already had wxpython, came with it or I installed, who knows.  Also useful to know wxpython is called wx.  This helps a lot.
 
 
 
 
 
== This works ==
 
 
 
Download the file from github, the zip file.  Unzip.  Ignore a bunch of the stuff and take the
 
 
 
        \instrumentino
 
        from ( ........\instrumentino-master\instrumentino )
 
        and copy it to the place where your spyder projects live ( making a new project  instrumentino  )
 
 
 
Find the file:
 
          ......\SpyderP\instrumentino\__init__.py
 
 
 
and modify the top to:
 
 
 
          from __future__ import division
 
         
 
          import sys
 
          sys.path.append( ".." )
 
         
 
          #...... rest of file
 
 
 
This should make it run.
 
 
 
To do much more it seems you need an arduino.
 
 
 
== Clean Install on Mint ==
 
 
 
Installed spyder
 
 
 
went to https://pypi.python.org/pypi/instrumentino  link to git hub gave 404  search found https://github.com/yoelk/instrumentino
 
 
 
  using D:\_Source\Python\instremento\Using Instrumentino_v03.odt
 
 
 
  package manger wxpython
 
 
 
 
 
 
 
 
 
[[category:Russ Draft]][[category:Russ]]
 

Latest revision as of 11:11, 2 February 2017

Draft[edit]

Just a draft may or may not be completed. See also: Instrumentino Notes

What is Controlino[edit]

It is the Arduino component of Instrumentino Notes

Links to what the authors think:


Get it Running[edit]

I want compile it and run on my Uno. See Russ's Computer Environment

Ton of files ( well maybe 10 ) on gitHub.

  • Seems the only one that matters much is controlino.cpp.
  • Download it.
  • Make a new arduino project. I called mine controlino_ino.
  • In the project's file, controlino_ino.ino, paste the contents of controlino.cpp.
  • Follow the directions in the file.
  • Compile.
  • Worked the first time.
  • Now have something on my uno. What?
  • More comming

Protocol[edit]

What is the Protocol? Have not found any documents. Reading the code and probing with my terminal. Send a command and get a response.

  • commands appear not to be caps sensitive
  • use a cr at end of commands
  • at end of command Arduino says "done/r"
  • BlinkPin <pin> <ms to blink>
    • BlinkPin 7 200 => works


  • set xxx yyy => sets pin n to input or output ( digital ) if pin is out of range o..
    • set 3 in => think this is correct syntax
    • set in 3 => looks incorrect
    • set xxx yyy => cannot be valid but no error message, no error may be ok