I can either use two transistors one for each gate, or use 2 diodes to isolate the 2 gates an only one transistor.
I used the digital output so that I could adjust my threshold via the Arduino and not have to adjust the POT on the chip ( coarse adjustment compared with the 1024 available digital adjustments). But for you implamentation, the analog output and adjusting via the POT would be the way to go, especially if you changed the POT out for one with a finer adjustment.
![]()
Gravity: Analog Flame Sensor For Arduino
The Arduino flame sensor detects fire or other wavelength at 760 nm ~ 1100 nm light. It outputs analog signal which is proportional with strength of fire or light. It is also compatible with Raspberry Pi.www.dfrobot.com
Correct! My flame sensor has only analog output.I got a flame sensor with both a pot controlled logic output and the analog output. I think the analog output is the more flexible allowing monitoring the sensor close to 10K times per second if needed using a low end Atmega 328p.
Yes. I will revisit once I'm further along with the sensor.That's where gate control will come in handy if you want to control the (on/off cycle) duty cycle of the heater more quickly than either a relay or SSR could do.
I suspect you might be in for a real pile of difficulty trying to do this. The point of the board is it's self-oscillating (with a frequency dependent on the inductance of the work coil). I'd rather let it do its thing in this regard.If you want to get fancy, one could control both gates directy with a single PWM pin at 50% duty cycle by varying the frequency to best match the case being annealed. But a lot of testing would need to be done to optimize the frequency. I think when the current through the heating coil near saturation (peaks off) then the polarity to the gates should be reversed. The frequency would change with the case type, placment and temp of the case.
Sorry for the confusing post you referenced. I captured the raw analog output of the flame sensor and processed it through the A/D convertor on the Arduino. The Arduino A/D convertor then outputs a value of 0-1023 with 1023 being the value for the lowest temperature and 0 representing the hottest temperature. The POT on the sensor is not used in my implementation. I can adjust, on the fly, the value at which I stop annealing. This allows for very fine tuning of the amount of annealing the case receives and is constant no matter what the case size, thickness or brass characteristics.I see some are using the sensor modules with digital output, @oliverpsmile you linked to the analog one without pot. @itchyTF are you using the digital out? I'm wondering what would be the best direction to head...
I'm a bit confused by the first post above. I thought the trim pot was simply a triggered high/low output based on the analog signal from the sensor. So to adjust the threshold via there Arduino surely you take in the analog signal (rather than the digital output)... And if you're going to do the A/D conversion yourself then the simpler device Oliver linked to is more than suffice.
Yes, 1 bit digital out. My pic was tapped out for available pins and I didn’t/don't have time for a software project. I changed the pot to a multi turn which gave it much finer adjustment. Figured it should be easy to set the pot once for the temp.ItchyTF are you using the digital out?
I do not do any smoothing of the readings from the flame sensor. I do record the final value of the sensor when annealing stops and it is usually within one of the set value, rarely is within two. (eg. my threshold to stop annealing is set at 50 and the final value is usually 50 or 49, rarely 48). As far as my eyes can tell, I get a very consistent glow from case to case, but I have not measured the actual temp of each case. I still feel I get a much more consistent anneal with the flame sensor than I was getting using either a set time or a set about of energy (Joules) to stop the anneal process, especially with mixed head stamp cases.Do you guys smooth (average) the readings from the flame sensor? How erratic is the analog stream?
Sent you a PM.A FWIW - for you guys that would like to put in a DC SSR (not made in china) ahead of the inductor board, I bought some Crydom D1D40's (100VDC, 40A). If all goes well I might have 6 or so left. The are listed as new and I'd be willing to sell what's left for $25 plus shipping. Just wanted to know if there was any interest before I post this in the For Sale forum. Most of the guys in that forum probably wouldn't know what these are.
Do you guys smooth (average) the readings from the flame sensor? How erratic is the analog stream?
Yes, it is the output from the 10 bit DAC. My experimenting demonstrated that distance to the object and ambient light both affect the "calibration". My initial temporary set up of the flame sensor had it a little further from the case and the calibration value needed was 32. With my permanent install of the sensor being closer the case, the value needed to be decreased to 50 (higher value = less glow). I did not want to anneal in the dark so my setting is for annealing in my normal ambient light. I noticed that the ambient light had less of an affect on the value than the sensor to object distance. I am careful not to anneal with sunlight from a window shining on the case.50 being the 10 bit DAC output from reading the analog value from the flame sensor?
(It would be interesting to compare 'calibrations' at some point.)
Longest thread ev-verrrrr.... just wanted to be a part of it. Carry on....
In the 1.88 sec of Arduino loop (maintaining 1000 F), every 0.01 sec the reading of IR sensor is averaged. Then, the Avg temperature value is compared with the 1000 F set up value. If the Avg value is below the set point the inductor is switched ON, other wise switched OFF.
The reading is erratic if the sampling is very fast . I've never measured how fast. This is why I average.
I also average every 100 readings when the case is heated to 1000 F,