but now that I tried to solder it on to a copper board everything just fell apart...
Sounds like your soldering is a problemas the parts should remain on the board
It can be a steep learning curve to get the basics in hand when one starts out and only practice makes perfection for some of these skills many of us take for granted now.
The quality of the tools you have make a big difference to the results to, when soldering you need to heat the component leg and the board track evenly till the solder flows smoothly onto both.
There is many "how to solder " tips on the net and several Utube videos, so that should be easy to find.
Can you post a schematic of your circuit so we can help you with the design or the problem areas.
I have done a lot with picaxe so am able to help with coding and problems there too.
Pete.
First of all this might go much better if you post a circuit of exactly what you are doing and how it was designed.
This is obviously a continuation of this particular thread which you never posted back in as to the initial PIC problem? You started with motor control with a brief mention of flame detection. Then you left the thread hanging open?
Are the PIC problems resolved?
ah sorry, you are correct.
Can you post the circuit you are using?
Almost works is not a good answer.
How exactly did you settle on detecting the flame?
Ron
main:
If pin4 = 1 And pin3 = 0 Then MotorOn
If pin4 = 0 Or pin3 = 1 Then MotorOff
goto main
MotorOn:
wait 12 'Wait 12 Seconds
high 2 'Motor On
pause 500
DO: LOOP Until pin4 = 0 Or Pin3 = 1
goto main
MotorOff:
wait 1 'Wait 1 second
low 2 'Motor Off
pause 500
Do: Loop Until pin4 = 1 And pin3 = 0
goto main
First try the following code:
I changed the pinout and pins used from what you had. The code runs fine in simulation and I actually loaded it on a PICAXE 08M to test it. This should give the results you want. Try to keep the code broken down and structured as above.Code:main: If pin4 = 1 And pin3 = 0 Then MotorOn If pin4 = 0 Or pin3 = 1 Then MotorOff goto main MotorOn: wait 12 'Wait 12 Seconds high 2 'Motor On pause 500 DO: LOOP Until pin4 = 0 Or Pin3 = 1 goto main MotorOff: wait 1 'Wait 1 second low 2 'Motor Off pause 500 Do: Loop Until pin4 = 1 And pin3 = 0 goto main
I did not overly look at your circuit and you did not identify the opamp used?
I have no idea as to the chip cycling at start up? Never had one do that. I use a tiny little board I made up to run and program the little 08M chips that I dug out. Anyway, the above code works so just copy and paste into the PICAXE Programming Editor and play around with it. It should get you started.
Ron
main:
If pin4 = 1 And pin3 = 0 Then MotorOn
If pin4 = 0 And pin3 = 1 Then MotorOff
goto main
MotorOn:
wait 12 'Wait 12 Seconds
high 2 'Motor On
low 0
pause 500
DO: LOOP Until pin4 = 0 And Pin3 = 1
goto main
MotorOff:
wait 1 'Wait 1 second
low 2 'Motor Off
high 0
Do: Loop Until pin4 = 1 And pin3 = 0
goto main
main:
if input4 = 1 AND input3 = 0 then wait 12 high output2 ;gas and switch ON, wait 12s and Motor ON
endif
if input4 = 0 OR input3 = 1 then low output2 ; gas OR switch OFF, Motor OFF - if the flame is on in the middle
endif
goto main
if b0 > 1 then
goto label
else
goto label2
endif
if b0 > 1 then : goto label : else : goto label2 : endif
'#################################
#picaxe 08m
symbol thermister = 4
symbol ADC_value = b1
main:
readadc thermister, ADC_value ' (same as .... readadc 4, B1 )
debug
pause 200
goto main
'#############################################
The switch in the circuit diagram should in reality be replaced by a contact in the nob, so as it turns around it will touch the contact, turning the motor OFF. The reason I chose the 12s wait is because it takes around 10s for the thermistor's resistance to reach about 5k which will turn off the motor. If after that time, the resistance is still 10k then there is definitely no flame and thus the motor should be ON.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?