Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AntiBotCaptcha has a deprecated constructor in /homepages/8/d680172117/htdocs/QA/qa-plugin/q2a-captcha-antibot-master/AntiBotCaptcha.php on line 22
soldering code_2 (code fix) - Electronoobs Q&A

Welcome to Electronoobs Q&A, where you can ask questions and receive answers from other members of the community.


PCBWay Ad

Categories


+1 vote

hi there...

At first i want to thank you for all the knowledge that you share with us .. and your useful youtube channel   ..

my question is about the code of "Homemade portable soldering iron" that i take from this video comments section :    https://www.youtube.com/watch?v=RNTs9bqowc0

I found a problem in encoder code ,you mentioned :

//I/O

int PWM_pin = 5;  //Pin for PWM signal to the MOSFET driver (the BJT npn with pullup)

int clk = 12;      //Pin 1 from rotary encoder

//int data = ِA2;     //Pin 2 from rotary encoder

and

  pinMode(A1,INPUT);

  pinMode(12,INPUT);

  pinMode(A2,INPUT);

these pins as i understand is for the encoder but its not work for me also i found the click pin is D4 !?

i tryed to change it but not get it to work !!!

is there any thing that i need to change or check ? libraries for example ??

# i put resisters as the schematic

asked in Arduino by (170 points)
edited by

1 Answer

+1 vote
 
Best answer
That is wrong! This is not the code for the portable soldering iron! This is the code: https://www.electronoobs.com/eng_arduino_tut32_code1.php You've downloaded the wrong code. The portable soldering iron dose not have an encoder, only 2 push buttons! Keep up!
answered by (30.8k points)
selected ago by
dear ..

thanks for every things...

still the same problem ...can not get the pins to work as i want even if i change it in the code!!

do i should use the same pins that you choose ?!!

also the code have some small bugs you can check it by your self...

thanks again.....
...