topbanner.gif
Login
Username

Password




Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Shoutbox
You must login to post a message.

renatoa
04/17/2024 9:27 AM
morning, branchu

renatoa
04/14/2024 5:56 AM
TheOtherJim and papajim, welcome to forum !

allenb
04/11/2024 6:33 PM
Zemona Welcome

renatoa
04/11/2024 9:19 AM
Mrbones and sgupta, coffee drink ?

renatoa
04/10/2024 1:09 AM
welcome cup, Ed K

In Memory Of Ginny
Donations

Latest Donations
dmccallum - 10.00
JackH - 25.00
snwcmpr - 10.00
Anonymous - 2.00
Anonymous - 5.00
Users Online
Guests Online: 2

Members Online: 0

Total Members: 8,208
Newest Member: branchu

View Thread

Who is here? 1 guest(s)
 Print Thread
TC4 - Coding and tech issues
happycat

Quote

atsamattau wrote:

I know this is probably redundant or not the right place to ask, but I am overwhelmed by all of the information and have a simple question.

I want to get started with a TC4C and would like to know which Arduino is the most capable version the TC4C will work with. Is it the Mega 2560? Has anyone used it with the ADK? Is there any reason to stick with the regular UNO? Will it work with the DUE?

Any help is appreciated. Thank you.


TC4C doesn't need an Arduino... It incorporates an Arduino and TC4 board together in one board.
 
atsamattau
Yes I know, How about if I rewrite the question without the C on the end...


....I want to get started with a TC4 shield and would like to know which Arduino is the most capable version the TC4 will work with. Is it the Mega 2560? Has anyone used it with the ADK? Is there any reason to stick with the regular UNO? Will it work with the DUE?

Is that better?
atsa lot a pizza pie, mozzerella too
peperroni, provalone
atsa matta u?

Astra Mega 2C Auto, Nuova Simonelli Beach, La Pavoni Europiccola, Brassilia Club, Gaggia Classic, Enrico of Italy Lever, Cunhill Full Metal & Bosch Burr Mills, etc,....

Got crema?
 
JimG

Quote

atsamattau wrote:
....I want to get started with a TC4 shield and would like to know which Arduino is the most capable version the TC4 will work with. Is it the Mega 2560? Has anyone used it with the ADK? Is there any reason to stick with the regular UNO? Will it work with the DUE?


A regular Uno is the best.

It can be made to work with Mega, but the locations of the I2C connections are different on these boards, so bending of pins and fly wires would be needed. The TC4 makes extensive use of the I2C bus.

On the Uno and older boards, pins A4 and A5 carry the SDA and SCL signals needed for I2C. On the Mega, the SDA and SCL pins are separate from A4 and A5.

The Due is a 3.3V board, so using it with the TC4 (designed for 5V operation) would probably create issues with the on-board LED's and the transistors used on OT1 and OT2. The "important" chips on the TC4 would probably work OK, but I am not aware of anyone having verified this. The SDC and SCL signal issue described for the Mega is also an issue with the Due.

I don't have any experience with ADK, so I can't answer that one. Best guess is that the I2C interface issue described above applies.

Jim
 
atsamattau

Quote

JimG wrote:

Quote

atsamattau wrote:
....I want to get started with a TC4 shield and would like to know which Arduino is the most capable version the TC4 will work with. Is it the Mega 2560? Has anyone used it with the ADK? Is there any reason to stick with the regular UNO? Will it work with the DUE?


A regular Uno is the best.

It can be made to work with Mega, but the locations of the I2C connections are different on these boards, so bending of pins and fly wires would be needed. The TC4 makes extensive use of the I2C bus.

On the Uno and older boards, pins A4 and A5 carry the SDA and SCL signals needed for I2C. On the Mega, the SDA and SCL pins are separate from A4 and A5.

The Due is a 3.3V board, so using it with the TC4 (designed for 5V operation) would probably create issues with the on-board LED's and the transistors used on OT1 and OT2. The "important" chips on the TC4 would probably work OK, but I am not aware of anyone having verified this. The SDC and SCL signal issue described for the Mega is also an issue with the Due.

I don't have any experience with ADK, so I can't answer that one. Best guess is that the I2C interface issue described above applies.

Jim


Thanks Jim, I'll start with a regular Uno and go from there, it looks like it would be fairly easy to get it to work with any of them and even the clones and look a likes with some work, but thanks for the direction, I just need a place to start and was wondering the quickest way to get one going.

I was mainly interested in the voltage levels, sticking with 5 volts makes it easier to work with other hardware, and pulling them down to 3.3V would be easy enough (I would think anyway) for using it with the Due, but I will probably start with a Uno or one of the clones.

I've been trying to read as much as I can, wow, there is a lot of information, I had no idea people were doing this. I went through a DIY CNC craze and have a couple of routers and a lathe and mill to work with so building roasters should be a lot of fun.

Thanks again.
 
JimG
Another option might be to not stack the TC4 on to the Arduino.

The I2C header (4 pins, labeled I2C) on the TC4 will provide access to the temperature sensing system and the EEPROM on the shield. You would lose the functions of OT1, OT2, I/O2 and I/O3 since those ports rely on the connections made through the stacking header. But if you are only using the TC4 as a temperature reading device that should not be a problem.

So you might want to try making a 4-wire cable that carries Vcc, GND, SDA, and SCL and connect it to the TC4. Be sure and consult the TC4 schematic to get the signals in the correct positions on the 4-pin header.

Jim
 
atsamattau
I'm going to start with an Uno and then I'll see about trying the others. I'm not sure if I'll try control or not, I need to do some more reading and see what software is available and what options there are. It would be nice to be able to call up profiles and control the temperatures from a PC. I can switch to another controller later if I need to, or even add a little PLC or an rs 232/485 PID controller if that's better. I just need to get started and then go from there.

Thanks everyone for all the information, homeroasters.org is a great resource,
 
JimG
Have a look at Brad's aArtisanQ_PID application here:
code.google.com/p...&can=2

It may do what you need.

Jim
 
atsamattau
Yes, thats great, i went with the tc4c since there is no major benefit to running any other control computer, or any savings going another route.

I started thinking about it and the least I need to do the better with all the other projects I got going on. I'm adding CNC to a 9X20 lathe and in the middle of another CNC router build, along with a roaster build, the espresso machine rebuilding and modding and just trying to keep up with life, its easy to bite off more than I can chew - since I'm always hungry for more!

Now I need to pick one (or more) of the roasting programs. There doesent seem to be any consensus on which to use - Roastlogger, Catui, Artisan, or Kona.

Any advice?
atsa lot a pizza pie, mozzerella too
peperroni, provalone
atsa matta u?

Astra Mega 2C Auto, Nuova Simonelli Beach, La Pavoni Europiccola, Brassilia Club, Gaggia Classic, Enrico of Italy Lever, Cunhill Full Metal & Bosch Burr Mills, etc,....

Got crema?
 
greencardigan
I'd stick with Artisan or Roastlogger. Both of these now have fairly similar feature sets I believe. Just try them both out. I prefer Artisan and for that reason developed my PID code to be compatible with Artisan.

But for my last few roasts I've been using my phone instead of my laptop. Not having to lug the laptop out has been very enjoyable. Although the app currently controls the roaster and doesn't do any data logging.
 
JackH

Quote

greencardigan wrote:


But for my last few roasts I've been using my phone instead of my laptop. Not having to lug the laptop out has been very enjoyable. Although the app currently controls the roaster and doesn't do any data logging.


Hi Brad, What is the name of the roaster phone app you are running?

I found that Artisan very sluggish unless you have a powerful laptop. RoastLogger runs very well on my old Dell and I was able to get it running on a Raspberry Pi just for fun.

--Jack
 
greencardigan
It's an app I have been developing myself so it doesn't have a name as such yet.

I can currently send serial commands over bluetooth to control all my roaster functions.
 
Zoundguy
I'm getting the compile error that was discovered here:
http://code.googl...&can=1
I've attempted to edit the thermocouple.cpp/h files with the patch, but I've apparently implemented it incorrectly, and it continues to not compile. Any help would be great. thanks
Mark.
Edited by JackH on 07/20/2014 5:38 AM
 
JimG
The April 20, 2012 version of the thermocouple library fixes this problem:

https://tc4-shiel...couple.cpp

https://tc4-shiel...mocouple.h

Jim
 
Zoundguy
thanks, I couldn't find that on the tc4 site, it doesn't seem to appear in the downloads section. I have TC4-StdLib-REL-300.zip anything else I might be missing?
thanks for the link!
 
JimG
Unfortunately, Google no longer supports the download feature on their googlecode sites. Old downloads can remain, but no new ones can be created.

You can browse the source code for latest versions of everything.

Jim
 
Zoundguy
Thanks Jim, New problem. Im attempting to make this shield work with an Arduino YUN, among other issues, the SDA/SCL pins on the typical UNO have been moved from A4/A5 to Pins D2/D3
that wouldn't be a problem in my breadboard setup, except that pin D3 is being used by the shield for something else already, I've been searching, but have not been able to find what the TC4 uses D3 for. any direction on what I would need to change?
thanks,
Mark

p.s. using this website http://shieldlist.org/homeroasters/tc4 for the basis of my belief that the TC4 is using D3 already. (d9/d10 are OT1/OT2 I believe)
 
Zoundguy
lost my edit ability, (and all my post fixes)
D3 is the ZCD, I think i'll have to move it to D5 to "get out of the way" of the moved SDA/SCL pins.
Friends: Dont let friends experiment with new boards!
 
JimG
The D3 pin (PD3 on the ATmega chip, connected to INT1) is direct wired to IO3 on the TC4 shields and TC4C boards. Depending on the application sketch, it is used as an input pin from the ZCD board, or as an output pin for PWM control of DC fans (Hottop roasters, for instance).

You will have to check me on this, but I believe you can reassign IO2 (connects to INT0) as the input pin for picking up ZCD signals. Edit 2 lines in the user.h file and you should be good to go. I think I tested that configuration ...

Jim

PS here is a link to the "official" schematic for your version 5.31 TC4 shield:
https://tc4-shiel...31-sch.pdf
 
Zoundguy
oh! I did see that in the code, but I was afraid that the ZCD would also require the PWM abilities of IO3. (I've been searching for the past hour or so trying to figure that out)

If not, then its only slightly different in that the YUN has 2 additional interrupts available on D0/D1 (INT 2/3) (I cant use INT0 simply because that pin is also part of the SDA/SCL)
thanks for all the help, I think im getting close.
Mark
 
JimG

Quote

Zoundguy wrote:

oh! I did see that in the code, but I was afraid that the ZCD would also require the PWM abilities of IO3. (I've been searching for the past hour or so trying to figure that out)



Which sketch/application are you planning to use?

Typically the phase control and ICC output for controlling AC devices comes from OT1 and OT2. So as long as you don't have a conflict on those pins (D9/PB1 and D10/PB2) things should work out OK.

Jim
 
GUILHERME T
I changed a lot the sketch to add pot controll to TC4. It did work well. Now, I can change the fan and the heater values on the fly, even when connect to the roastlooger.
I'm using a cheaper version of the IC2 LCD to.

Living in Brazil make those adaptions imperative. The Custons here are terrible.
Recently, I bought to tc4 boards with Jim. I payed more than the double of the price just to bring it here. It's very sad.
 
JimG

Quote

GUILHERME T wrote:

I changed a lot the sketch to add pot controll to TC4. It did work well. Now, I can change the fan and the heater values on the fly, even when connect to the roastlooger.
I'm using a cheaper version of the IC2 LCD to.


This information may be too late to help you, but the aCataui sketch (and a few others) also contain code to support potentiometer control of the fan and heater. Hopefully you did not have to write your's from scratch!

I would be interested in a source for an inexpensive I2C LCD that is compatible with the TC4 project code. I'm sure others would as well.

Alternatively, if you wrote new code that supports your I2C LCD, perhaps you would be willing to share that on the project googlecode site?

Sorry about the customs Shock

Jim
 
sdfghjkl
HI guys, I'm pretty new here, but very eager to set my tc4 v4.00 up,
I've got arduino uno + tc4 v4.00 + laptop with win 7pro and thermocouples type K
The UNO seems to be working but when I launch Artisan 0.7.4
I get an error:
ser.arduinotc4temperature():list index out of range @line 20998

Any help on how to set it up properly or any alternatives would be very much appreciated.

Rapolas
 
MaKoMo
@Rapolas: did you install the FTDI serial2usb driver for your platform? Did you select the correct serial port?
 
timbarnes
I think there's a pin conflict in the latest version of aArtisanQ_PID - it appears that the parallel LCD and the phase angle control both use D2. This causes display corruption (I don't know what it does to ZCD reads, as I don't have one).

If hand-wiring, it's easy enough to modify the code to move the parallel display connection to D5, but with the default configuration there's an issue.

The configurations that don't use ZCD on D2 / IO2 work fine. I posted an issue on Github (don't know if I did it correctly, as I am very much an amateur). The link is here: https://github.co...eld/issues

There's also more information in this thread: https://homeroast...ad_id=6676.

Thanks,
tim
 
Jump to Forum:

Similar Threads

Thread Forum Replies Last Post
New TC4+ Popcorn Pumper issues Building a Coffee Roaster 19 04/24/2023 9:30 AM
Arduino - TC4+ - SSR issues Dataloggers/Controllers/Rate of Rise Meters 16 11/21/2022 2:11 AM
Heating Issues with Nesco Pro Other Roasters 4 04/22/2021 1:51 PM
Repeatability Issues Due to Chaff Combustion During Roasting?? HotTop Roaster 5 01/01/2019 2:14 AM
TC4/Artisan Temp Read Issues Dataloggers/Controllers/Rate of Rise Meters 16 01/04/2018 12:03 AM
Homeroasters Association Logo, and all Content, Images, and Icons © 2005-2016 Homeroasters Association - Logos are the property of their respective owners.
Powered by PHP-Fusion Copyright © 2024 PHP-Fusion Inc
Released as free software without warranties under GNU Affero GPL v3
Designed with by NetriX
Hosted by skpacman