Source code of flamethrower firmware using Arduino Nano
It uses two PWM input to control:
- Ignition
- Power of the flame
For more details you can reference to the youtube channel:
https://www.youtube.com/channel/UCf2gzx_wVlQ8WtN4Uq27aKA
- Support of safety switch. When safety swith is ON, firmare turn off the flame and ignition. Also it skips any input fire signals
- Support for fire switch
- PWM_PIN_SAFETY - safety pin number
- PWM_PIN_INPUT - servo input for controlling flame power pin number
- OUTPUT_SAFETY - safety highlight diods pin number
- OUTPUT_PIN_IGNITION - ignition control pin number
- IGNITION_DELAY - how long ignition should be turned on (milliseconds)
- IGNITION_SERVO_POSITION - position for the servo when ignition is in progress (degress)
- FLAME_SERVO_START - start position of servo (usually same as IGNITION_SERVO_POSITION) (degrees)
- FLAME_SERVO_END - end positions of servo (degrees)
- FLAME_SERVO_UP_STEP - step of servo for increasing the flame (degrees)
- FLAME_SERVO_DOWN_STEP - step of servo for decreasing the flame (degrees)
- FLAME_SERVO_UP_DELAY - how fast to move servo to upper position (milliseconds)
- FLAME_SERVO_DOWN_DELAY - how fast to move servo to lower position (milliseconds)
- Support of lost signal. When there is no signal for 5-10 seconds - turn safety ON, switch off flame