Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:14 19 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Advice needed for building temperature control system

     Page 2 of 2    
Author Message
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3478
Posted: 03:38pm 27 May 2021
Copy link to clipboard 
Print this post

  rogerdw said  are there libraries of code to choose from and modify etc.

See "Advanced Graphics Programming Techniques" in the MM+ manual or in the F4 manual.
Edited 2021-05-28 01:39 by lizby
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 2171
Posted: 04:15pm 27 May 2021
Copy link to clipboard 
Print this post

  lizby said  
What do you use for bluetooth on the Micromite end? And what do you use to develop your interface app on the android phone?


For bluetooth; HC-05 or HC-06. Simply present as a serial port to the Micromite, some basic config (name, pin etc) and then pair it with your android/tab/iPhone.

Easy Android programming MIT App Inventor. Online, needs a Google ID to log in. Compiles to an Android *.APK installation binary. Simple interface can build really nice Android apps for simpler tasks like GUIs and logic for your Bluetooth enable project.

did my garage controller with these two in a day from scratch. Bit rusty now coz it all just worked first time so I haven't had cause to revisit much.

My 2p
Edited 2021-05-28 06:01 by CaptainBoing
 
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 873
Posted: 10:35pm 27 May 2021
Copy link to clipboard 
Print this post

Hi Roger,
As lizby says its all in the manual. Here is the F4 one (see page 73).
Each of the switches/spin wheels etc illustrated above take only ONE line of code to establish. MMBasic looks after the rest behind the scenes.
(If I can use it anyone can!)

Cheers,

Andrew
Edited 2021-05-28 08:37 by Andrew_G
 
rogerdw
Guru

Joined: 22/10/2019
Location: Australia
Posts: 940
Posted: 03:39pm 28 May 2021
Copy link to clipboard 
Print this post

  lizby said  
See "Advanced Graphics Programming Techniques" in the MM+ manual or in the F4 manual.



  Andrew_G said  Hi Roger,
As lizby says its all in the manual. Here is the F4 one (see page 73).
Each of the switches/spin wheels etc illustrated above take only ONE line of code to establish. MMBasic looks after the rest behind the scenes.
(If I can use it anyone can!)


Thanks for the links again guys. It's been like trying to drink from a fire hydrant    ...  though I've had a good read now and am slowly getting the picture. Pretty powerful devices.

Now I need to buy one or two and have a bit of a play.

I'm sure there will be lots more questions to come. Thank you.
Cheers,  Roger
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 2171
Posted: 03:43pm 28 May 2021
Copy link to clipboard 
Print this post

might seem like a lot to take in, but there are loads of people here who can provide help and worked examples, just sing out and don't be dissuaded

it'll be great
 
rogerdw
Guru

Joined: 22/10/2019
Location: Australia
Posts: 940
Posted: 12:24am 29 May 2021
Copy link to clipboard 
Print this post

  CaptainBoing said  might seem like a lot to take in, but there are loads of people here who can provide help and worked examples, just sing out and don't be dissuaded

it'll be great


Thank you, I can see you guys know your stuff.

Where are the best places to buy these things, are there Aust suppliers or do I need to wait to get from China? Thanks.
Cheers,  Roger
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2831
Posted: 12:56am 29 May 2021
Copy link to clipboard 
Print this post

Here is where I got mine. They also have the 320x240 display that plugs straight in.

https://www.aliexpress.com/item/33013274704.html?spm=a2g0o.productlist.0.0.4e0f2303RFzZpy&algo_pvid=73a9395f-ec2b-49fb-99df-1543deb0646d&algo_expid=73a9395f-ec2b-49fb-99df-1543deb0646d-0&btsid=2100bddd16128968983765283e1744&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_
 
horus
Newbie

Joined: 25/04/2021
Location: United States
Posts: 12
Posted: 03:17am 29 May 2021
Copy link to clipboard 
Print this post

  rogerdw said  Hi, I've been on thebackshed forum for a while but rarely ventured in here.

I'm currently building a solar air heater and have reached the stage where I need some controls.

I had experience many years ago with Z80's and then PIC Microchips  ...  but I assume it would be a lot easier and more effective to use something a little more advanced  ...  particularly in using prebuilt displays and temperature modules  ...  and associated library routines etc.

Does that mean a Raspberry Pi or Arduino of some sort  ...  or are there better options.

My requirements are to monitor five seperate temperatures  ...  have a reasonable size display so I can read from a distance  (7" or 9")  ...  an output to control a variable speed motor   ...  and some buttons or a pot to set desired parameters.

Apart from driving and reading the above, it will also need to perform some really basic decision making and timing functions.

Does anyone have any thoughts or suggestions please.


I haven't seen any mention in the thread so far of what type of sensors you will be using.  Two of the most common types for process control are Resistance Temperature Detectors (RTDs) and thermocouples.

Without getting too technical about it, RTDs vary in resistance as the temperatures they are sensing vary.  One of the most common types of RTD for HVAC applications is the Ni1000 (Nickel 1000 ohm) two-wire type, which can measure over a range from -50 to 250 deg. F (-45 to 121 deg C).  They are generally accurate within +/- 1 deg.F or less once calibrated against a prime standard, and are relatively inexpensive.

Thermocouples operate by actually generating a voltage in response to changing temperatures.  The Type T thermocouple (Copper/Constantan) is useful at subzero temperatures if that is a consideration, but any thermocouple you select is likely to be more expensive than a comparable 2-wire RTD.  You can, however, make your own thermocouples from compatible thermocouple extension wire.  

Since the Maximite family hardware can sense voltages in the millivolt range, it might be interesting to see what interfacing a thermocouple to one would do.

Generally, the lower the mass of a sensor, the quicker it will react to changes in temperature.  Sensors of higher mass/greater lengths can be useful for slower reaction times or temperature/surface area averaging (such as a supply air or return air temperature inside ductwork).

There are stand-alone panel-mounted controllers in 1/4 DIN, 1/8 DIN, and even 1/16 DIN formats that can provide simple on/off control (via a relay output) for cheap per point, and have their own display panels.  For units with analog and relay outputs that can support alarming and other functions the price goes up a bit.  These units are industrial process control grade.  

As an example of what's out there, you might check at automationdirect.com and look for their Solo Basic line of single-loop temperature controllers.  Specs and drawings are freely downloadable for the units sold there.  These use standard AC "house current" (the units tolerate from 100 to 240 VAC, either 50 Hz or 60 Hz), so no external DC power supply is required.  1/16 DIN is about 48 mm X 48 mm, and these are about 60 mm deep.

I don't see where these Solo controllers use Ni1000, but they do provide a wide range of other sensor options, one of which will almost certainly meet your needs (probably the Cu50 RTD or Type T Thermocouple).

There are other manufacturers of similar units - this is just an example with which I'm familiar from my work.  (Many years spent as an Instrument Technician and PLC programmer...)

I wish you all the best in developing and implementing your project.
 
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 873
Posted: 07:32am 29 May 2021
Copy link to clipboard 
Print this post

Rogerdw, Phil99 and horus,
BigMik is about to release something that is relevant to the F4 and common sensors. Don't necessarily delay getting your F4(s) but in a few hours you will have more food for thought about sensors.

Cheers,

Andrew
Edited 2021-05-29 17:34 by Andrew_G
 
horus
Newbie

Joined: 25/04/2021
Location: United States
Posts: 12
Posted: 02:11pm 29 May 2021
Copy link to clipboard 
Print this post

  Andrew_G said  Rogerdw, Phil99 and horus,
BigMik is about to release something that is relevant to the F4 and common sensors. Don't necessarily delay getting your F4(s) but in a few hours you will have more food for thought about sensors.

Cheers,

Andrew


Thanks.  I'm not at all familiar with the F4.  Looking back, the system under discussion here is a solar heating system, so might benefit from DC powered controls vs. AC?
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8297
Posted: 04:18pm 29 May 2021
Copy link to clipboard 
Print this post

The ArmMite F4 is similar to the Micromite+ in many ways.
It supports both SPI and parallel displays and has the same extended graphics as the MM+. There are plenty of IO pins and a RTC (with battery) on-board.

There are 13 pins that can be used for analogue input (would be useful with something like the MCP9700 active thermistor which is remarkably cheap).
The DS18B20+ 1-wire digital thermometer can also be used on the normal digital IO pins if you need more accuracy and don't mind paying more.
There are two DAC outputs that can give 0-3.3v outputs. An op-amp and a couple of resistors is all it needs to convert these to 0-10v, which is a standard control range for many motor controllers. Add a transistor and resistor to that and you get 0-20mA which is another standard.

It's actually a STM32F4VE board. The chip is STM32F407VET6 and you might find the board under that number. (I paid 12.60UKP from ebay with free delivery for mine - in the UK, of course). I couldn't find the specific LCD display in the UK, but I wanted a bigger one anyway.

Communication with the PC for programming is via USB serial.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 873
Posted: 06:17am 30 May 2021
Copy link to clipboard 
Print this post

G'day all,
From sunny but, locked-down Melbourne.

This is the release by BigMik I was referring to above.
It enables most of the modules we could think of to be connected to an F4, and displayed on the Eastrising LCD (5, 7 and 9") at 800x480 resolution.
The screen I posted on the first page of this thread is taken from the test program I wrote to help test Mick's board.
His "release" has links to my code (free), and his PCB.
I'll post updates to it as people pick up 'enhancement opportunities'.

Cheers,

Andrew
 
rogerdw
Guru

Joined: 22/10/2019
Location: Australia
Posts: 940
Posted: 02:29pm 30 May 2021
Copy link to clipboard 
Print this post

  phil99 said  Here is where I got mine. They also have the 320x240 display that plugs straight in.

https://www.aliexpress.com/item/33013274704.html?spm=a2g0o.productlist.0.0.4e0f2303RFzZpy&algo_pvid=73a9395f-ec2b-49fb-99df-1543deb0646d&algo_expid=73a9395f-ec2b-49fb-99df-1543deb0646d-0&btsid=2100bddd16128968983765283e1744&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_


Thanks Phil, that helps.


  horus said  I haven't seen any mention in the thread so far of what type of sensors you will be using.  Two of the most common types for process control are Resistance Temperature Detectors (RTDs) and thermocouples  .....


Thanks very much Horus, that was a very helpful summary. I had come to the conclusion that I'd need to build a controller and use software to read the temperatures and make the control decisions  ...  though I could possibly get by with a dedicated module if I wanted to keep it as simple as possible.

I really only want the additional sensors to gain more of an understanding of how the whole unit works together  ...  and then want to be able to access that info easily so I can hopefully finetune it some more.

Because this is a one off device built for home use, it doesn't have to be all that accurate  ...  though to have consistant readings would be helpful.

I'd have to have a bit more of a think about the reaction time for some of them as at present some of them are a bit slow acting  ...  so could do with a better idea just how slow they are  ...  and whether speeding them up is necessary, or just makes the whole thing too sensitive and bounce around everywhere.

And thank you for your best wishes. I may have to yell out and ask more questions later.


  Mixtel90 said  The ArmMite F4 is similar to the Micromite+ in many ways.
It supports both SPI and parallel displays and has the same extended graphics as the MM+. There are plenty of IO pins and a RTC (with battery) on-board.


Thank you for that suggestion and all the details. A bit more reading coming up, though I do now recognise some of the numbers you quoted. Thanks again.


  Andrew_G said  This is the release by BigMik I was referring to above.
It enables most of the modules we could think of to be connected to an F4, and displayed on the Eastrising LCD (5, 7 and 9") at 800x480 resolution.


Thank you Andrew, I have been hanging out to see what you were referring to. Looks very interesting.

I certainly appreciate all the suggestions and help everyone  ...  very encouraging, thank you all.
Cheers,  Roger
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8297
Posted: 03:34pm 30 May 2021
Copy link to clipboard 
Print this post

On most temperature control systems don't be afraid of the sensors being too slow. Usually even the slowest sensor will be very fast relative to the thermal inertia. You'll have plenty of time to take at least a dozen readings and average them. Think how long it takes to get water from 20C to 100C when you boil a kettle - and that's a low thermal inertia system. :) Room temperatures rarely vary much over 5mins. Aiming for fast response times will usually result in some sort of oscillation unless you are a whizz with PID loops, so keep it slow and simple if you possibly can.

I'd recommend avoiding thermocouple, ordinary thermistor or PT100 RTD sensors. They are all excellent in their own way but are non-linear so you have an extra job/cost there. The devices I mentioned don't have that problem.

(Phew... I thought I'd left all that rubbish behind when I retired. lol)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
flasherror
Senior Member

Joined: 07/01/2019
Location: United States
Posts: 159
Posted: 06:51pm 30 May 2021
Copy link to clipboard 
Print this post

  CaptainBoing said  
Easy Android programming MIT App Inventor. Online, needs a Google ID to log in. Compiles to an Android *.APK installation binary. Simple interface can build really nice Android apps for simpler tasks like GUIs and logic for your Bluetooth enable project.


Anyone else aware of Basic for Android (B4A)?
https://www.b4x.com/b4a.html
Program android devices in BASIC, gets cross-compiled to underlying Java bytecode so runs on phones/tablets.
IDE similar to Visual Basic .NET
Many available libraries to add camera barcode decoding, SQLite database, etc
Best part is that is is now free, used to be a commercial product.
Also other interesting software such as Basic for Arduino (B4R) - create Arduino/ESP8266/32 software using BASIC instead of C.
 
flasherror
Senior Member

Joined: 07/01/2019
Location: United States
Posts: 159
Posted: 06:56pm 30 May 2021
Copy link to clipboard 
Print this post

  Tinine said  

Semi time critical: PIC32MX170 running Bypic instead of MMBasic.
This is the same on-chip programming but with a sort of on-chip compiler and runs faster than the CMM2. Supports up to 20 tasks.


Never heard of bypic, but it seems like development stopped in 2018?
The firmware was supposedly released but the link doesn't work for me.
http://www.bypic.co.uk/index.php/ByPic_Firmware
Are firmware/docs for bypic available somewhere online?
Edited 2021-05-31 05:09 by flasherror
 
     Page 2 of 2    
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025