topbanner.gif
December 18, 2017 01:33:15
Login
Username

Password




Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Navigation
bullet2.gif HOMEROASTERS.ORG
bullet2.gif Active Forums
bullet2.gif FORUM INDEX
bullet2.gif Downloads
bullet2.gif News
bullet2.gif Forum FAQ
bullet2.gif Contact Me
bullet2.gif Photo Gallery
bullet2.gif Search
bullet2.gif User's Voice
bullet2.gif Facebook Connect
bullet2.gif Videos
Forum Threads
Newest Threads
bullet2.gif DIY 002 Roaster Kit
bullet2.gif Update my old TC4 wi...
bullet2.gif Can't get RS232 conn...
bullet2.gif PID Tuning - TC4
bullet2.gif The Kaldi Home Roaster
Hottest Threads
bullet2.gif TC4 with aArtisan... [270]
bullet2.gif My 1kg Electric A... [256]
bullet2.gif Bobby M15's drum [98]
bullet2.gif TC4 Roasting App [63]
bullet2.gif Rainfrog's Roastm... [52]
Users Online
bullet2.gif Guests Online: 6

bullet2.gif Members Online: 0

bullet2.gif Total Members: 5,162
bullet2.gif Newest Member: fabriciod
BotSlap Panel
bullet2.gif Last check: 12.18.17
bullet2.gif Slap count: 0
bullet2.gif Last checked ID: 6375
View Thread
Homeroasters.org » DATALOGGERS - CONTROLLERS - RATE OF RISE METERS » Dataloggers/Controllers/Rate of Rise Meters
Who is here? 1 guest(s)
 Print Thread
TC4 with Android and Bluetooth
cyberelectronics
Hi,

First I want to say Thank You - Greencardigan for the TC4 App.
Only small changes was made on this software.
Some buttons was added, others removed + added CSV save file function.
Latest updates will be available here, in this new project:
http://www.cybere...org/?p=699
 
http://www.cyberelectronics.org/
greencardigan
Thanks for the update and welcome to HRO.

I haven't had a good look at your project page yet but it looks great.
 
JackH
Welcome to Homeroasters Cyber. Nice project site!

I was going to try this out and bought the bluetooth dongle but no time lately for projects.
---Jack

KKTO Roaster.
 
cyberelectronics
Thanks Jack and Greencardigan.

I hope this will work for you from the first try.

Csabi
 
http://www.cyberelectronics.org/
greencardigan
cyberelectronics wrote:

Hi,

First I want to say Thank You - Greencardigan for the TC4 App.
Only small changes was made on this software.
Some buttons was added, others removed + added CSV save file function.
Latest updates will be available here, in this new project:
http://www.cybere...org/?p=699


Thanks to Csabi (cyberelectronics) for the CSV logging code and bug fixes. I have incorporated his changes into the TC4 code repository with a few small changes.

Possible future updates
- Allowing button comands sent to TC4 to be customised.
- Allowing data input stream from TC4 to be specified.
- Allowing roast profiles to be loaded on phone and setpoints sent to the TC4 PID.
 
greencardigan
Here's the apk file for the latest version of my app if anyone wants to try it.

TC4_31_15_01_2015.apk

I may get around to doing some user documentation some day!
 
greencardigan
I have made some more changes to my TC4 Android App if anyone is interested. I have tested it with the latest version of aArtisanQ_PID (http://homeroaste...post_55072) but it should also work fine with the normal version of aArtisan. Feel free to test it (requires a bluetooth module connected to the serial pins on the Arduino/TC4). Let me know if you have any questions.

New features
- Enhanced logging of data in CSV file.
- Adjustable data read interval.
- Customisable command buttons (text on buttons plus serial commands sent to TC4).
- Customisable input parameters. Allows user to specify what parameters are being received from the TC4 and in which order.
- Added ET RoR and SV to display.
- Added a crack marker button
- Updated app icon

I have attached some app screenshots below along with the APK file for the app.

What's next.
- Add support for sending SV values to the TC4 based on a roast profile stored on your phone.
- Allow user to select which parameters get graphed.


.
greencardigan attached the following file:
tc4_44_28_03_2015.zip [281.79kB / 122 Downloads]
greencardigan attached the following images:
screenshot_2015-03-30-10-36-02.png screenshot_2015-03-30-10-35-52.png screenshot_2015-03-30-10-35-43.png screenshot_2015-03-30-10-35-30.png screenshot_2015-03-30-10-35-11.png screenshot_2015-03-28-16-50-10.png screenshot_2015-03-30-10-35-00.png
 
JorgeO
Hello, greencardigan

Im new to home roasting (but Ive been grinding my beans for quite some time).

I want to thank you for the TC4 Android app! Just what I was looking to mod my new Behmor in the future. Keep on the nice work!

Rgds,

Jorge
 
renatoa
After some weeks of pasionate work, succeeded to modify this application to use as data source an USB dual thermometer of type Mastech MS6514, just data logging for now.
Also modified the app in some points, to better suit my imagination about such application behaviour:
- the Crack button logic was been extended into a full cycle, all phases tagging, and also added some automated phase changes detection. A long press during any phase on the button will jump to Drop phase.
- the log file format was been modified to be fully complaint with Artisan CSV, so you can import the log in Artisan without any post-processing. The RoR computed during roasting will be not be saved, and redone by Artisan, based on logged values.
- the graphic also was been changed here and there: X scale show times, as mm:ss instead seconds, there is a grid over-imposed, whose color change green-yellow-brown, as roasting evolves, and also the phase change points are labelled/annotated.

The apk is not hosted anywhere for now, anyone interested just PM me with email.

It is still work in progress, in the second phase of development now, when control will be added.
Same PID controller used by TC4 was already been ported to Android. Also adapted a PWM library that outputs PWM for heater and fan on audio (headphones) of the tablet. The audio signals will drive PWM dimmers enough capable for heaters usually used in hobby roasters - 12A triac = 2500W@230V.

Unfortunately, a smartphone can't be used to drive the Mastech thermometer due to the large current draw, more than a smartphone USB port is capable. Unless you have a split USB cable providing separate power for the devices, and let data flow unaffected.

Will come next days back with some screens during a real roast.
Any question will be answered as fast as I can. Open to suggestion for improvement.
DIY: IR to bean, Popcorn
Moded commercial: Dieckmann RoestMeister, Nesco
PID/ramp/soak controllers, MS6514 USB/Artisan/App
Grinder: mod'ed Porlex to 47 conical burrs
 
greencardigan
Hey, thanks for posting this. It looks very interesting.

Can you tell us a bit more about the USB data? Could it be connected via USB to an Arduino/TC4 setup?
 
renatoa
Sure, it's a simple packet structure, 18 bytes long, two bytes header, two bytes time, the two temperatures as integers (tenths of volts), ended with CRLF.
Standard 9600 8N1 serial comm.
There are also some bytes with status info, not used so far, the only that sounds interesting is the channels switching, T1<->T2, some could prefer BT with bigger digits on screen, others could prefer ET.
The complete packet buffering/decoding code can be found in Artisan, main.py file, search for "def MS6514temperature(self, retry=2)"
 
Will2
Crazy idea, but real.
Will not be necessary Arduino+TC4 shield, a similar application can be run on Android and on a Linux.
Viliam
 
renatoa
What still continue to puzzle me is the heat control in manual mode... why no buttons for heater , as for fan up/down ?
Sending manually OT1 commands seem counterproductive for me...
Am I missing something ?

Please be aware my comment is about the public code, from github, subject of this thread, quite different than the store app, that is using profiles and PID for roasting.
 
greencardigan
In the version on the app store you can customise the command for each button. You could have a button set to use the OT1,UP or OT1,DOWN to adjust the heater in manual mode.

I can't remember how complete the github version was. Maybe it doesn't have the customisable buttons?
 
renatoa
They are quite customizable, using the command textbox and long press/click
You input either Text:NewButtonText, either Cmd:NewButtonCmd, and pressing long you store in preferences the new definitions.

Thinking to make the Up/Down buttons dual purpose, rewrite the long press code to switch between Fan and Heater. Long press on Fan UP would turn it into Heater UP, and viceversa. Same for Down.
Would be the fastest way for me to code and also operate that I can imagine atm, without adding more buttons.
Fan/Htr OFF will remain as they are.

Ok, if we clarified this... :) another fuzzy thing for me... what is the purpose of PID On/Off is we don't have a profile or a Set Value ?
DIY: IR to bean, Popcorn
Moded commercial: Dieckmann RoestMeister, Nesco
PID/ramp/soak controllers, MS6514 USB/Artisan/App
Grinder: mod'ed Porlex to 47 conical burrs
 
greencardigan
The TC4 sketch has a PID controller and can have profiles stored in the TC4s eeprom. When the TC4 PID is on it can read set values from the eeprom.
 
renatoa
Ok, first successful run today of a simulated roast, with PWM control output on audio channels. Set speakers low volume before watching :)

There are explanatory subtitles, maybe a bit more faster than you can read and watch screen changes.

https://www.youtu...pULH3PBJCE
 
Will2
Very nice, hopeful.

renatoa wrote:
...
The audio signals will drive PWM dimmers enough capable for heaters usually used in...



I assume that audio channels are connected to a relay with a cable.
Do you want to show the photo or schema of the used relay?
Viliam
 
renatoa
Not relay, pwm dimmer, this:

https://www.tindi...r-mpdmv41/

The dimmer was already been used in manual control mode.
 
Will2
A-ha, the same as here:

https://www.youtu...e=youtu.be
Viliam
 
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
Update my old TC4 with latest software version Dataloggers/Controllers/Rate of Rise Meters 3 12-18-2017 01:16
PID Tuning - TC4 Dataloggers/Controllers/Rate of Rise Meters 41 12-17-2017 05:35
TC4 with aArtisanQ_PID Dataloggers/Controllers/Rate of Rise Meters 271 12-12-2017 10:06
TC4 Roasting App Dataloggers/Controllers/Rate of Rise Meters 64 11-24-2017 03:29
Android / IOS Data Logging App Ideas Dataloggers/Controllers/Rate of Rise Meters 12 11-02-2017 12:48