Author Topic: My Fully Automated Huky!  (Read 28772 times)

Offline phischmi

  • Jr. Member
  • **
  • Solid or Perf: Solid
  • Serial Number: 693
  • J or T : T
  • Charge Weight : 333g
Re: My Fully Automated Huky!
« Reply #15 on: July 13, 2016, 03:32:52 AM »
Ok, the reason is, that Artisan has a built-in interpreter which only has the necessary libraries included.
External Python-Scripts will be parsed with this internal interpreter :-\
Guess, i'll have to find a workaround like starting my script in a separate shell...

SusanJoM

  • Guest
Re: My Fully Automated Huky!
« Reply #16 on: July 13, 2016, 10:08:28 AM »

Offline rawman

  • Full Member
  • ***
  • Solid or Perf: Starting with perforated but I have a solid as well
  • Serial Number: 842
  • J or T : T
Re: My Fully Automated Huky!
« Reply #17 on: July 13, 2016, 02:17:26 PM »
I think this post indicates that Python 3 is in use

http://www.home-barista.com/home-roasting/artisan-v0-9-9-t40496.html?hilit=artisan%20python#p459787

I think the version that uses python 3 is the specific beta version he mentions here:

Quote
Linux binaries will follow later this week. For Windows there is an experimental build, artisan-win-0.9.9-py3-installer.zip, based on an updated software platform (Python 3, Qt5, PyQt5). Please report on how that performs for you as we plan to move exclusively to this platform for future releases.

So my guess is the baseline version is using python 2.x

jon

SusanJoM

  • Guest
Re: My Fully Automated Huky!
« Reply #18 on: July 13, 2016, 03:40:55 PM »
I think this post indicates that Python 3 is in use

http://www.home-barista.com/home-roasting/artisan-v0-9-9-t40496.html?hilit=artisan%20python#p459787

I think the version that uses python 3 is the specific beta version he mentions here:

Quote
Linux binaries will follow later this week. For Windows there is an experimental build, artisan-win-0.9.9-py3-installer.zip, based on an updated software platform (Python 3, Qt5, PyQt5). Please report on how that performs for you as we plan to move exclusively to this platform for future releases.

So my guess is the baseline version is using python 2.x

jon

You are absolutely right, my bad  :(

BUT, that new build is available:
https://github.com/artisan-roaster-scope/artisan/releases/tag/v0.9.9
and under the circumstances it seems like it might be a worth while download for someone who wants to use Python 3 ???
No????

Offline phischmi

  • Jr. Member
  • **
  • Solid or Perf: Solid
  • Serial Number: 693
  • J or T : T
  • Charge Weight : 333g
Re: My Fully Automated Huky!
« Reply #19 on: July 14, 2016, 02:54:24 AM »
Thanks for that hint, but as i'm on MacOS i have no possibilities to try :-\

Offline phischmi

  • Jr. Member
  • **
  • Solid or Perf: Solid
  • Serial Number: 693
  • J or T : T
  • Charge Weight : 333g
Re: My Fully Automated Huky!
« Reply #20 on: July 16, 2016, 03:48:36 AM »
Back again 8)
Though reading a lot on Stackoverflow i could'nt get rid of the described error. Nevertheless i solved my problem :)
I tried it the way Agrajag did and created a named pipe.
The first script is started from within Artisan and writes a value into a FIFO. The second script reads from that FIFO and passes the value to the Arduino.
Works just as it is supposed to!
Could have saved me from a lot of headache, if i'd tried this first... ::)

Offline phischmi

  • Jr. Member
  • **
  • Solid or Perf: Solid
  • Serial Number: 693
  • J or T : T
  • Charge Weight : 333g
Re: My Fully Automated Huky!
« Reply #21 on: July 17, 2016, 01:46:09 PM »
Accidentally i figured out, the described error reduces to a missing, corrupted, incomplete or obsolete (in fact i have no idea  ::)) io-module in the integrated Python-Interpreter of Artisan.
I placed _io.os from my systems Python2 dynload-directory in my scripts root-path and the error-message disappeared :)
Nevertheless calling Python3-Scripts is still not possible.

Furthermore i'm now using JSON to write my parameters to a file-like object and also pass this JSON-String through serial to my Arduino. Next step is to extend and refine code on the Arduino-side  8)

Offline monkey_lever

  • Jr. Member
  • **
  • Solid or Perf: Both. Solid Installed
  • J or T : T
Re: My Fully Automated Huky!
« Reply #22 on: July 20, 2016, 07:31:57 PM »
Nice application.

Can you share the link to the motor and pulleys that you use please?.

I have a TC4 board. Can I control the motor driver board with a TC4?.

Have you tried to use the PID function inside artisan?.

Rgds.

Offline phischmi

  • Jr. Member
  • **
  • Solid or Perf: Solid
  • Serial Number: 693
  • J or T : T
  • Charge Weight : 333g
Re: My Fully Automated Huky!
« Reply #23 on: July 26, 2016, 01:45:56 AM »
Marko from Artisan told me, that there will be a fix in the upcoming version 1.0 of Artisan.
He also yet sent me a beta of Artisan 1.0. Now i'm also able to call Python 3 directly from inside Artisan :)

My code is now virtually done and i'm waiting for some 3d printed parts in order to assemble everything.

Unlike Agrajag i'm using no pulleys but a "Doppelschlaufenkupplung" (no idea, how to call this in english  - maybe sth. like "double-loop-coupling" ;D ), to directly link the motor to the valve. The motor is the same as from Agrajag - a 28BYJ-48 stepper motor.

As the TC4 comes with stacking headers, it should be no problem, to attach a motor driver shield on top. I#m using the Adafruit motor shield for controlling the stepper and fan.

I'll post some pics and vids, when everything's done! Can't wait for it ::)
« Last Edit: July 26, 2016, 01:59:55 AM by phischmi »

Offline monkey_lever

  • Jr. Member
  • **
  • Solid or Perf: Both. Solid Installed
  • J or T : T
Re: My Fully Automated Huky!
« Reply #24 on: July 26, 2016, 03:29:51 PM »
Thanks for your infor phischmi.

Looking forward to see your Doppelschlaufenkupplung and your setup at work.

Rgds.

Offline phischmi

  • Jr. Member
  • **
  • Solid or Perf: Solid
  • Serial Number: 693
  • J or T : T
  • Charge Weight : 333g
Re: My Fully Automated Huky!
« Reply #25 on: August 13, 2016, 04:44:56 AM »
Hi all,
the work is done  8)
I just made some changes inside the code but basically the setup works just fine!
The fan is now controlled via a separate pwm-wire which makes it very easy to finetune.

I also did my first roast using the automated setup and especially the fan seems to fit perfectly in terms of airflow (it was @ 60% during the whole roast).
The Noctua NF A14 iPPC 3000 PWM is rated 158cfm.

So, here're some pics :)
If you have any questions, just let me know!













https://youtu.be/f3nSmdGeank
« Last Edit: September 10, 2016, 09:03:10 AM by phischmi »

Offline Crzyworm623

  • Newbie
  • *
  • Solid or Perf: Perforated
  • Serial Number: 958
  • J or T : T
Re: My Fully Automated Huky!
« Reply #26 on: April 17, 2017, 11:22:28 PM »
This is awesome.  Now that you have had it up and running for sometime, can you give a decent write up of the project.  Parts / How To.  Arduino is a new to me, but sounds like a fun project.  I'd love to start designing profiles and having them run automatically. 

 

Resources

PRICING and FAQs

ARTISAN RESOURCES

PHIDGET INFORMATION

ROASTING GUIDES

ROASTING TERMINOLOGY

GREENS SOURCES

A FEW VIDEOS

Temperature Converter

Celsius:
Fahrenheit:
Kelvin:

Recent Topics

Rob Hoos article on Thermocouples by SusanJoM
August 31, 2017, 02:52:23 PM

CFM range for exhaust fan by edtbjon
August 30, 2017, 08:13:09 PM

Standard Stove - any ideas what to substitute it with at the European market? by hankua
August 30, 2017, 08:07:16 AM

Just Purchased, Hello from Claymont, DE! by hankua
August 30, 2017, 07:57:21 AM

Hello from Melbourne, Australia! by hankua
August 30, 2017, 07:55:07 AM

New to Roasting (opportunity to buy a Huky) by hankua
August 30, 2017, 07:52:18 AM

Hello from South Korea! by K.Brown
August 30, 2017, 05:40:09 AM

First Roast with Artisan, Feedback Appreciated by edtbjon
August 28, 2017, 04:17:34 AM

And another checklist to validate… by SusanJoM
August 25, 2017, 09:15:43 AM

Estimated Cost after Mods and Tools For Maintenance etc. etc. by edtbjon
August 25, 2017, 01:46:56 AM

Phidget 1048 Temperature() [Error 126] by MasterKraus
August 23, 2017, 06:41:08 PM

Any ordering at MLGP by jay
August 22, 2017, 06:44:05 AM

Powered by EzPortal