Roaster Automation - Drum Roaster

Discuss roast levels and profiles for espresso, equipment for roasting coffee.
blondica73
Supporter ❤
Posts: 854
Joined: 7 years ago

#1: Post by blondica73 »

Hi all,

I've looked at this thread Huky Gas Automation and tried to see I could use it with my BC 5 roaster. However, the Python code is from a different version, and after updating it, I can't seem to have my Python code talk to the Arduino board. Any help would be great.
When running the "arduinoCommunicator.py" file I see this message:

Arduino Uno (COM5) found at COM5
Pipe open for data from Artisan...

Then I run the "artisanprog.py GAS 50" to set the gas to 50 to check that Arduino sees the message; however, it gets stuck with

Sending data to arduino...

and I never receive the "Data sent" message

blondica73 (original poster)
Supporter ❤
Posts: 854
Joined: 7 years ago

#2: Post by blondica73 (original poster) »

Here's a screenshot of the buttons, which I don't think they work.


blondica73 (original poster)
Supporter ❤
Posts: 854
Joined: 7 years ago

#3: Post by blondica73 (original poster) »

it appears that the call command for the python file does not seem to work as nothing happens when I push that button. Any suggestions?

blondica73 (original poster)
Supporter ❤
Posts: 854
Joined: 7 years ago

#4: Post by blondica73 (original poster) »

Thank you to @Brewzologist, who helped me troubleshoot the code. I needed to downgrade Python to 2.7 so that the code works.
I'll report as I make progress in the next few weeks.

blondica73 (original poster)
Supporter ❤
Posts: 854
Joined: 7 years ago

#5: Post by blondica73 (original poster) »

I have a question about sliders in Artisan: I use the Python routine to send button commands to the Arduino board where I specify the value; see my screenshot above. How could I use the sliders portion to do a similar thing? Meaning, as I move the slider, a new value to be passed to the Python routine?

blondica73 (original poster)
Supporter ❤
Posts: 854
Joined: 7 years ago

#6: Post by blondica73 (original poster) »

My first attempt to roast using this setup failed miserably. Delta BT kept switching between 0 and a high value, see below.
Please keep in mind that this is a drum roaster.
Any suggestions?


Here's my PID setup


my curves set up

User avatar
Jeff
Team HB
Posts: 6906
Joined: 19 years ago

#7: Post by Jeff »

I'm not sure what all the lines are, but I would check the raw data for evidence of noise, either introduced or quantization. If a data series is "sticky" compared to the differencing interval, it would show "0" delta and then a large magnitude value as it stepped up/down to the next sticky value.

---

If https://github.com/phil-nelson/hukyroas ... nicator.py is the source, that shouldn't be too hard to port to Python 3 -- \'print\' is a function rather than a keyword and you probably have to convert to/from bytes rather than strings.

blondica73 (original poster)
Supporter ❤
Posts: 854
Joined: 7 years ago

#8: Post by blondica73 (original poster) »

Thank you, Jeff.

The source is from the Huky Gas Automation blog listed in the first post, and I tried porting to Python 3 but could not make it work. I ended up using Python 2.7, and that worked and I could create buttons and sliders, and I could manually open and close the gas valve.
I also checked the thermocouple noise and is fairly stable. It does appear that the data series is sticky; however, I don't know how to "unstick" it.

blondica73 (original poster)
Supporter ❤
Posts: 854
Joined: 7 years ago

#9: Post by blondica73 (original poster) »

Jeff wrote:I'm not sure what all the lines are, but I would check the raw data for evidence of noise, either introduced or quantization. If a data series is "sticky" compared to the differencing interval, it would show "0" delta and then a large magnitude value as it stepped up/down to the next sticky value.

---

If https://github.com/phil-nelson/hukyroas ... nicator.py is the source, that shouldn't be too hard to port to Python 3 -- \'print\' is a function rather than a keyword and you probably have to convert to/from bytes rather than strings.
My temperature readings in Artisan seem to lag behind the roaster's OMRON readings for ET and BT and get an update once every few seconds; I'm connected via Bluetooth. I don't know if that is an issue.

User avatar
CarefreeBuzzBuzz
Posts: 3875
Joined: 7 years ago

#10: Post by CarefreeBuzzBuzz »

I recall in some discussion that Bluetooth is slower. You might want to ask this on the GitHub Discussion site.
Artisan.Plus User-
Artisan Quick Start Guide
http://bit.ly/ArtisanQuickStart

Post Reply