Who is here? 1 guest(s)
 Print Thread
TC4 with aArtisanQ_PID
greencardigan
Good to hear that you got it sorted. I power my Arduino/TC4 from a separate 9v DC power supply. That helped a few issues I was having.

Also try putting a piece of wire across the terminals of each unused thermocouple input.
 
monkey_lever
THanks for the suggestions.

The root cause of the noise is my apartment (rented). The electricity connections are not grounded. I wired the ground coming from the laptop to a metal near the electricity connection and the noise was gone.

Then I connected the DC motor for the drum and the noise started again (+/- 1 degree C) I grounded the roaster and the noise was almost cancelled.

Rgds.
 
monkey_lever
Hi.

Im trying to control an AC fan with aArstisan_PID. Just the FAN I have no heater in my roaster. I have a Randon Fire SSR connected to OT2 and the ZCD connected to IO3.

When trying to comment out either the Analog comments for the Potentiometers or the OT1 outputs the skecth is no compiling.

However if I upload the default sketch without comment out anything Im able to send commands to OT1 through the serial port but the fan is not working.

How should I configure the sketch for controling just the FAN?

Rgds.
 
greencardigan
I would leave all the OT1 code as is. It should work fine even with nothing connected to OT1.

If you want to disable the potentiometer inputs, just comment out the two #define ANALOGUE lines like this.


//#define ANALOGUE1 // if POT connected on ANLG1
//#define ANALOGUE2 // if POT connected on ANLG2

There shouldn't be any reason for it not to compile with this change. Let me know if it still doesn't compile.
 
monkey_lever
Brad.

Thanks I manage to compile your code with the POT comented out. I was using an older version. The latest version is working fine.
 
BokehF1
woo hoo first post!
Thank you for any help in advance
I'm using this code on a Arduino mega 2560. not the tc4 board. When I use the Profile_Loader code it loads in to the Arduino ok. But when I run the serial monitor I get back bad text. Like this for the default profile 1

-----------------------------------------// response from arduino-----------------------------------
-5137
-16514
™
?}????}O??0???m??????????t???ru?=???Description of Profile 1
???“??????9y??{??{—??{?0????_?›?N?o???‘???h+Ÿ?????j?+??3?“?{Gw?p[o?V??????
28777 26996 28271 28448 8294 29264 26223 27753 8293 49 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 25344 30063 29806 15648 32 29808 8306 8253 28160 15648 32 8299 8253
11264 25088 29817 8293 8253 21248 21076 27680 28261 29799 8296 8253 21504 13379 0 0 11264 -1019 -19196 -16892 11264 -1019 -19196 -16892 -31738 10240 -21496 179 2344 161 0 -14800 12288 705 5632 33 22784 -32148 2048 2679 30472 2058 849 0 34 0 0 0 -7680 -61

-----------------------------------------// end response from Arduino-----------------------------------

I used other code to test the read/write of the eeprom and it worked perfectly.
what did I do wrong? How do I fix it?
A yawn is a silent scream for coffee!
 
greencardigan
Hi and welcome!

I haven't used the profile loader for some time now so I'll have to refresh my memory by looking at the code again.

Could you attach your profile loader sketch so i can have a look at it?
 
JackH
Looks like wrong baud rate on the serial monitor to me.
---Jack

KKTO Roaster.
 
greencardigan
Not sure about that. Some of the data looks like it's coming back ok which wouldn't occur if the baud rate was set wrong?
 
JackH
Sorry, I missed where he said the other code ran OK.
---Jack

KKTO Roaster.
 
BokehF1
i checked the code many ... many times for the baud rate its the same as my monitor. its 19200

the Profile_Loader is directly from the aartisanq_pid_5_3.zip in post #90 on this thread.
I checked 5.0
and 4.3 as well

steps taken
1) download
2) unzip to a DIR
3) run code

I haven't changed the file at all. I tested on a mega and uno with no luck.
do you have a better solution for running profiles? by no means do I have to stick to a particular set up or code base. is this the best way?
BokehF1 attached the following file:
aartisanq_pid_5_3_2.zip [27.58kB / 679 Downloads]

A yawn is a silent scream for coffee!
 
greencardigan
Does the aArtisanQ_PID sketch run correctly? Does it respond correctly in the serial terminal?

I haven't touched the profile loader for ages as I now roast with my Android App (or Artisan Roasting Scope) which stores the profile on the phone or computer instead.

When I get a chance I'll try running the profile loader sketch.
 
BokehF1
the aArtisanQ_PID runs like a dream. I love it! I have pid control over my roaster i set the sv temp from the serial terminal and it does the rest. I have been using the pid temp and an alarm on my phone. but this process is becoming a little demanding. I'm thinking of adding a second roaster with the same set up. it would be nice to automate this process and have a little finer control over the roast as well.

on a separate note, I've used the artisan software to log roasts and manually controlling ot1 (by setting it high and low) to follow the roast profile and repeat a roast. but that is time consuming as well.

have you released your app?
or do you have a link to help me get Artisan and aAtisanQ_PID working with some kind of timed profiles?

I've researched this for a while now. ether i haven found the right thread, or i didn't ask goggle the right question.

thank you for taking your time to help me smile
A yawn is a silent scream for coffee!
 
greencardigan
Hmm sounds like an issue with my profile loader code then... maybe it's not compatible with the latest TC4 libraries or latest Adriuno software???

In Artisan you can set up ramp soak profiles and then Artisan will automatically send the SV commands to the TC4. There's some info re the PID functionality of Artisan here.

http://www.home-b...32351.html

My App essentially does the same thing. However, you need a bluetooth module connected to the serial pins on the Arduino so the phone or tablet can connect. There's a thread re my App here.

http://homeroaste...post_56322
 
greencardigan
@BokehF1
I haven't forgotten about the profile loader. I have finally tried uploading it to my UNO without changing the sketch at all and it seems to work fine for me.

This is what I get returned in the serial monitor.

1
1
C
PROFILE 1
Description of Profile 1
0   160   180   200   220   240   400   420   440   460   480   720   960   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
25   117   127   136   144   151   193   197   201   204   207   232   257   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   


My setup is an Arduino UNO, TC4 rev4, Arduino 1.0.6.

What version of the Arduino IDE are you running?
 
greencardigan
Just updating this thread so it's easier to find the latest aArtisanQ_PID code and libraries.
greencardigan attached the following files:
libraries_2.zip [44.9kB / 666 Downloads]
aartisanq_pid_5_3_1.zip [27.58kB / 676 Downloads]
 
JackH
Brad, we really appreciate your effort keeping this maintained!
---Jack

KKTO Roaster.
 
buckwheat
First i'd like to thank everyone on this forum. Your help and expertise was greatly appreciated and got me sooooo close to achieve my project.

I made some mods on my Popper and tried really hard to control everything through my smartphone. My popper has a DC motor connected to IO3 through a mosfet controller. Everything on the TC4 Android app works finally except one thing: manual (or automatic) control of the DC motor.

Here's what i tried:

aArtisan.ino : I can manually control the heat and the fan, temperature sensors works but i don't have any readings other than that.

aArtisanQ_PID 4.3 : Fan works but not the heat. Also no reading (SV, HTR, FAN)

aArtisanQ_PID 5.3 : Heat works but not the fan. I have reading from everything (BT, ET, RoR, SV, HTR) and PID profile works (i can see the heat going on to catch the profile temperature). I'm so close right now i don't know what else to do. The IO3;xx command do nothing.

I can't connect the DC fan in OT2 because i goes on and off every one second.

If someone could somehow help me troubleshoot my problem i would be very happy.

I don't understand why the fan worked on aArtisanQ_PID 4.3 and not on 5.3.
 
greencardigan
I haven't had time to read through your other thread where you talked about your setup. Could you clarify how you have everything connected.

Are you using a zero cross detector?

What do you have connected to OT1, OT2 and IO3?


Quote

aArtisan.ino : I can manually control the heat and the fan, temperature sensors works but i don't have any readings other than that.

aArtisan only sends SV, HTR and FAN when the PID feature is active.

I don't think any aArtisanQ_PID version will output anything on IO3 unless you modified the code. I recall that someone else here did that for their setup. I'll see if I can find the post.

I'm not sure either why aArtisanQ_PID 4.3 is behaving different to 5.3.
 
greencardigan
Have a look at these post here.

http://forum.home...post_57708

PhilH got PWM output from IO3 using aArtisanQ_PID 5.3.
 
greencardigan
I have updated aArtisanQ_PID to include PWM control the same as aArtisan. This is in addition to the usual phase angle control in aArtisanQ_PID. The corresponding commands (IO3;xxx and DCFAN;xxx) have also been added.

I have done limited testing at this stage, so let me know here if you find any issues.

Phase angle control mode is selected by default but can be disabled in the user.h file by commenting out the #define PHASE_ANGLE_CONTROL line.

A brief summary of each control option:

Phase Angle Control mode
- Requires a zero-cross detector on IO3
- Phase angle control on OT2 for an AC fan
- ICC control on OT1 for a heater
- No PWM output on IO3

PWM mode
- Slow PWM on OT1 for a heater (default 1Hz but adjustable)
- Fast PWM (analogue out) on IO3 for DC fan control
- Additional slow PWM on OT2

You can find the update here including a zip file containing the sketches, and latest TC4 libraries. https://github.co...nQ_PID_6_0

Or direct zip file download here. https://github.co...p?raw=true
 
greencardigan
I've done a few roasts with this version now and it seems to be running fine in phase angle control mode.

If anyone gets it working with PWM mode (DC fan) let me know here.
 
JackH
Brad, thanks for the continued support and help with this software.
---Jack

KKTO Roaster.
 
greencardigan
I've released another update for testing.

A few members here and on Home-Barista were asking about getting a PWM output to control a gas valve while also getting phase angle control for an AC blower. I have created a test version of aArtisanQ_PID which can do that. Main changes in Bold.

Phase Angle Control mode
- Requires a zero-cross detector on IO2
- Phase angle control on OT2 for an AC fan
- ICC control on OT1 for a heater
- Optional PWM output on IO3 (3.922kHz) for heater. Defined using IO3_HTR in user.h. The PID should control IO3 in this mode.

PWM mode
- Slow PWM on OT1 for a heater (default 1Hz but adjustable)
- Fast PWM (3.922kHz) on IO3 for DC fan control
- Additional slow PWM on OT2

The PWM frequency is currently fixed at 3.922kHz but I could make it user adjustable if required.

You can find the update here including a zip file containing the sketches, and latest TC4 libraries. https://github.co...sanQ_PID_6

Or direct zip file download here. https://github.co...p?raw=true
Edited by greencardigan on 04/16/2016 5:34 AM
 
Will2

Quote

greencardigan wrote:
...If anyone gets it working with PWM mode (DC fan) let me know here.


I have done some roast with the last two versions.
First aArtisanQ_PID_6_0 with 3kw fluid bed roaster (AC blower), no problems.

up.picr.de/25371047xo.png

Then with popper (DC motor).
I had problems with interference, mosfet was directly connected to io3 without optocoupler, then problem solved.

up.picr.de/25371051ze.png
up.picr.de/25371052ab.png

Then once aArtisanQ_PID_6_2 with 3kw fluid bed roaster.
I had to uncomment lines 391 and 392 of aArtisanQ_PID.ino because I need to log the counter data (application CSV Grapher will not work with Time format MM:SS). Blower, therefore no heating, does not work when ZCD connected to I/O3, only to I/O2.

up.picr.de/25371054eu.png

For making graphs were used TC4 Roasting App and CSV Grapher.
Viliam
 
Jump to Forum: