Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 05:26 02 Jun 2026 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 : Just a side project

Author Message
Bryan1

Guru

Joined: 22/02/2006
Location: Australia
Posts: 2047
Posted: 07:28am 31 May 2026
Copy link to clipboard 
Print this post

Well guy's as I keep getting errors with my surface grinder project it is going to take Lyle to the rescue to finish it off.

So now I as had that spare 3.5" ILI9488 LCD I hooked up with my zero board only to find the touch would fail and doing a research Phill gave a while ago pointed me at the spi lines well finally I got the touch calibrated  

> option list
PicoMite MMBasic RP2040 V6.03.00RC14
OPTION SYSTEM SPI GP10,GP11,GP12
OPTION COLOURCODE ON
OPTION CPUSPEED (KHz) 200000
OPTION LCDPANEL CONSOLE
OPTION DISPLAY 26, 60
OPTION LCDPANEL ILI9488, LANDSCAPE,GP2,GP1,GP0,GP5
OPTION TOUCH GP4,GP3
GUI CALIBRATE 0, 4062, 4061, -840000, -866666


Now what I found was hitting enter in MCCC after I ran the program with Phill's code for the DS1820 thread.

50
Temp = 18.1°C
50
Temp = 18.1°C
50
Temp = 18.1°C
5
> mp = 18.1
> mp = 18.1°
> 0p = 18.1
> mp = 18.1°
> option list


As for this project if I'm correct we switch the active rather than the neutral line on the AC a 12 volt relay is needed so a new PCB will be designed.

Now my idea is as I have a 240 volt AC 30 watt heating belt that will cook a 25 litre fermenter so temperature control is needed.

So using the DS1820 we can keep a 22-26 C range so the beer ferment goes smooth and lets face it US Aussies just love a beer where temperature controlled ferment is needed to get that right drop.

Anyway thats my goal but honestly the PCB design will work for any temperature range we set it too with 2 relays that can switch AC loads to achieve the temperature ranges we need.

Regards Bryan
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8868
Posted: 09:17am 31 May 2026
Copy link to clipboard 
Print this post

I cheat. :-) STC-1000 temperature controller. £3.80 from AE including the necessary temperature sensor. Individual isolated Heat and Cool relays rated for mains. Available for 12VDC, 24VDC or AC mains supply.

I'm going to use two of these for controlling aquarium temperature. You configure the setpoint and the hysteresis, that's all you need. For heating only I will have the setpoint at 24.5°C and the hysteresis at 1°C. The heater then kicks in at 23.5°C (setpoint-hysteresis) and drops out at 24.5°C. The Cool contact will close at 25.5°C (setpoint+hysteresis) and drop out at 24.5°C. That makes it useful for either cooling fans or an overtemp alarm.
Mick

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

Guru

Joined: 22/02/2006
Location: Australia
Posts: 2047
Posted: 09:45am 31 May 2026
Copy link to clipboard 
Print this post

Well I guess I'm having fun with Claude tonight as here is the code for upto 8 DS1820's to hook upto 8 relays on a 2040 zero with my ILI9488


TempControl_v1.zip


So with meeting with Claude am I finally waking up to a world here writing MMBasic code is just asking Claude a few questions and the code is done.

Gotta say for a guy deciding to have some shed beers after waiting 6 months getting to know Claude has been a eye opener for me.

I did ask Claude to give me a sprint layout but it was a no go as it was a closed source so fun tomorrow in Sprint Layout making the board with a 2 relay option.
Edited 2026-05-31 19:56 by Bryan1
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1935
Posted: 10:29am 31 May 2026
Copy link to clipboard 
Print this post

I wonder... Could Claude (or similar) come up with Gerber plots. SL6 can import Gerbers and then all that's left is to add the TH pads, etc.

🤔
 
Bryan1

Guru

Joined: 22/02/2006
Location: Australia
Posts: 2047
Posted: 10:44am 31 May 2026
Copy link to clipboard 
Print this post

  PhenixRising said  I wonder... Could Claude (or similar) come up with Gerber plots. SL6 can import Gerbers and then all that's left is to add the TH pads, etc.

🤔



Yea I was hoping Claude would design the circuit for me but where will the fun go of designing the boards for review go but eh we can't ask AI to do everything can we.
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 3256
Posted: 12:11pm 31 May 2026
Copy link to clipboard 
Print this post

Had a look at Claud's** code and it calls a DS18B20() Function that isn't included.
You could add one from the "tempr not working" thread but MMbasic has it's own.
TEMPR START GPxx,3 : Temp = TEMPR(GPxx)
Print Temp

The ",3" sets the resolution to 1/16°, ,2 = 1/8°, ,1 = 1/4° and ,0 = 1/2°. Lower resolutions convert faster.

The example above shows TEMPR(GPxx) immediately following TEMPR START but it doesn't need to. You can put other code between to make use of the 600mS or so it takes to do a conversion.
When reading multiple DS18B20s for maximum efficiency do all the TEMPR STARTs in a block, other code then all the TEMPR(GPxx)s in a block.
eg for 4 sensors on pins 4 to 7 (GP2 to GP5)
For n=4 to 7 : TEMPR START n,3 : Next

** Should we be using a capital "C" as claude isn't a person?
Edited 2026-06-01 08:00 by phil99
 
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 2026