Decoder Encoder With 4017 Circuit Without Microcontroller.

Thread Starter

KRAB

Joined Aug 12, 2025
47
I'll try and explain the transmit circuit.
Before a button is pressed all output pins are Low except for pin3, the LED is OFF and the counter is reset to zero.
Now say we press button #1 connected to pin 4. Because the output on pin 4 is Low it activates the PC817 which starts sending pulses to the input counter pin14 at 24 pulses a second while simultaneously pulsing the 2N2222 IR LED transmitter.
After the second pulse is received pin 4 of the 4017 counter goes High which deactivates the PC817 shuting off the transmitter so only two pulses are sent.
During this same time frame and after the first pulse is received pin 3 goes Low and activates the LED.
This starts the delay timer which after a couple of seconds resets the counter back to zero.
Once the LED goes out the circuit is ready for another button push.
Dear sir, you have doen a great deal of time and energy to explain me. thanks. still the pin 4 gives one pulse out , pin7 gives 2 out, and 3 for pin10. may be i need to undnerstand it more on how, the 1 pulse , 2 pulse and 3 pulse, 4,... upt 6 pulses originate. Is it anything to do with 24hz. let me assume it for some reason, change the same to 40 Hz or diff. will it have some effect sir. pl. excuse me.
 

sghioto

Joined Dec 31, 2017
8,634
i need to undnerstand it more on how, the 1 pulse , 2 pulse and 3 pulse, 4,... upt 6 pulses originate. Is it anything to do with 24hz. let me assume it for some reason, change the same to 40 Hz or diff. will it have some effect sir. pl. excuse me.
Yes with the 24 hz and really doesn't matter the frequency.
Lets look again at the #1 switch connected to pin 4 of the 4017, IC3.
Remember the voltage on all the output pins at this time is zero volts except pin 3 because IC3 gets a reset when first powered ON.
Pin 3 is High and the LED is OFF.
Pressing switch #1 turns on the transistor inside the PC817 by providing a Low or ground connection to the cathode side of the internal LED.
This transistor is a switch and begins passing the 24hz signal generated by IC2 into the input pin 14 of IC3.
IC3 begins counting and each pulse advances the count starting from Q0 to Q9 then repeats.
Pin 4 of IC3 is actually output Q2 so after 2 pulses have been counted pin 4 will go High which shuts Off the PC817 and stops the counter from advancing further.
During this time the two pulses that passed through the PC817 also activated Q3 which sent two burst of the 38Khz signal generated by IC1 to the receiver circuit.
I have tested this circuit on a breadboard and it does work as described.
Feel free to ask any questions.
1755868054277.png
 
Last edited:

Thread Starter

KRAB

Joined Aug 12, 2025
47
Yes with the 24 hz and really doesn't matter the frequency.
Lets look again at the #1 switch connected to pin 4 of the 4017, IC3.
Remember the voltage on all the output pins at this time is zero volts except pin 3 because IC3 gets a reset when first powered ON.
Pin 3 is High and the LED is OFF.
Pressing switch #1 turns on the transistor inside the PC817 by providing a Low or ground connection to the cathode side of the internal LED.
This transistor is a switch and begins passing the 24hz signal generated by IC2 into the input pin 14 of IC3.
IC3 begins counting and each pulse advances the count starting from Q0 to Q9 then repeats.
Pin 4 of IC3 is actually output Q2 so after 2 pulses have been counted pin 4 will go High which shuts Off the PC817 and stops the counter from advancing further.
During this time the two pulses that passed through the PC817 also activated Q3 which sent two burst of the 38Khz signal generated by IC1 to the receiver circuit.
I have tested this circuit on a breadboard and it does work as described.
Feel free to ask any questions.
View attachment 354598
Thank you sir. for the great help. i hope you saw the pulses gradually increasing from 1 to 6 pulses or as it corresponds. great sir. it is really a puzzle to me, on how it increases counting instead of 1-1-1-1 , but to 1-2-3-4 and so on. may be i lack some basic point of view here. But, you are giving your best to help me know. seems to me, as the output pin of IC3, GOES far away from 3, they give more pulses. incrementally on a pattern.
how that pattern is arrived from the 555 -24HZ WAVEFORM , and the quick reset using Q1 , Q2. May be that has the clue.
Thank you sir. i am trying to make a pcb and going to assemble and try .
 

sghioto

Joined Dec 31, 2017
8,634
I would suggest using a breadboard first.
This way you can construct and confirm the operation of the individual circuits in the schematic before proceeding with a pcb.
 

Thread Starter

KRAB

Joined Aug 12, 2025
47
I would suggest using a breadboard first.
This way you can construct and confirm the operation of the individual circuits in the schematic before proceeding with a pcb.
i made the pCB already and when i press the switches, the led is glowing, not seeing a glow in IR LED THOUGH. buT Not sure if i get 1, 2,3 pulses when i press these switches sir.
 

Attachments

ericgibbs

Joined Jan 29, 2010
21,442
hi KRAB,
Use your mobile phone camera, in a very darkened room, you should be able to see the IR LED flash White, when you press the button.

E
 

Thread Starter

KRAB

Joined Aug 12, 2025
47
hi KRAB,
Use your mobile phone camera, in a very darkened room, you should be able to see the IR LED flash White, when you press the button.

E
yes, i also believe since the other nORMAL LED is flickering upon pressing THE SWITCHES, I Doubt if that will affect the IR led tOO
 

Thread Starter

KRAB

Joined Aug 12, 2025
47
Thank you sir. for the great help. i hope you saw the pulses gradually increasing from 1 to 6 pulses or as it corresponds. great sir. it is really a puzzle to me, on how it increases counting instead of 1-1-1-1 , but to 1-2-3-4 and so on. may be i lack some basic point of view here. But, you are giving your best to help me know. seems to me, as the output pin of IC3, GOES far away from 3, they give more pulses. incrementally on a pattern.
how that pattern is arrived from the 555 -24HZ WAVEFORM , and the quick reset using Q1 , Q2. May be that has the clue.
Thank you sir. i am trying to make a pcb and going to assemble and try .
Dear sir, i fabricated the RX and TX as per the design. while i see some output from transmitter and the receiver also responding, but all the three outputs( LED Lights for now) flickering at the same time . And whatever switch i press, they all respond, and even after stop using Tx BOARD, i see the lights flickering and dancing. could you help me with some inputs. i Repeat, i am not an expert but want to do a good one with expert's advice. so pl. consider my request.
 

Attachments

sghioto

Joined Dec 31, 2017
8,634
After a further look I do see an error in the schematic concerning the Reset Circuit in the Receiver.
Should be configured Like this:
1756571480847.png
 

Thread Starter

KRAB

Joined Aug 12, 2025
47
Dear sghioto
I Repaired the wiring to ensure the output goes to pin15. as you suggested. I also saw the similar autoreset arrangement on the transmitter. Thank you very much for pointing out the error.
Albeit that, when i powered the board, and did a scrutiny on the board.For some reason i could not understand the ic4017 pin no 3, that has to output based on the trigger on Pin14 only.

Unfortunately, i see a high voltage always on pin3.The LED is also glowing despite it connected thro. S8550 pnp. I could not udnerstand why pin 3 is always high. i replaced the IC assuming some problem but it is same again. sorry. seek your advice from this team here.
Thanks
 

sghioto

Joined Dec 31, 2017
8,634
KRAB said "Unfortunately, i see a high voltage always on pin3. The LED is also glowing despite it connected thro. S8550 pnp."

Which board are you speaking of, transmit or receive?
 
Last edited:

sghioto

Joined Dec 31, 2017
8,634
Looking at the photo of the receiver board I don't see any relays.
I suspect the circuit is wired as seen below, is this correct?
Can you repost the photo of the receiver board with the Transistors and SCRs labeled as in the schematic below.
1756738348462.png
 

Thread Starter

KRAB

Joined Aug 12, 2025
47
Just need to see where each Transistor and SCR is positioned on the circuit board.
i am not using SCR since, the need of the SCR here to latch into two simultaneous consecutive output pins. my need is not that. For me a cascaded one output is sufficient. So, i am taking the ( SPECIFIC) pin output (pin 4, 7, or 10) via 2n2222 transistor. While making the pCB the pin out that u suggested was not done. so, i used jumper wires to accomplish as you adviced. it looks a mess around . pl. excuse. photo attached.
Note: some error happened, that 5v provision not made. so, i have to feed in externally the 5v to power up the board. I added 3 additional wires to 4017 outputs 1,9, and 2 for off reset, but yet to go to that level sir.
 

Attachments

Top