limchengwei
Published © CC BY-NC

555 Timer 50 Duty Cycle Sponsored by JLCPCB

Thank you JLCPCB for sponsoring this project. Please order your PCB at jlcpcb.com/RAT

BeginnerWork in progress1 hour180
555 Timer 50 Duty Cycle Sponsored by JLCPCB

Things used in this project

Hardware components

JLCPCB Customized PCB
JLCPCB Customized PCB
×1
NE555 Timer through hole
×1
IC socket 8 pins 2.54mm through hole
×1
Male Header 40 Position 1 Row (0.1")
Male Header 40 Position 1 Row (0.1")
×1
Capacitor 10 nF
Capacitor 10 nF
×2
0.25W 1000 Ohm Resistor
×2
1N4007 – High Voltage, High Current Rated Diode
1N4007 – High Voltage, High Current Rated Diode
×2

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Solder Wire, Lead Free
Solder Wire, Lead Free

Story

Read more

Schematics

555 Timer 50 Duty Cycle Compact schematic PDF

555 Timer 50 Duty Cycle Compact schematic EasyEDA

555 Timer 50 Duty Cycle Compact PCB EasyEDA

555 Timer 50 Duty Cycle Compact Gerber

Code

Frequency meter

Arduino
#define pulse A0
int ontime, offtime, duty;
double freq, period;
   
void setup()
{
  pinMode(pulse, INPUT);
  Serial.begin(230400); 
}
void loop()
{
   ontime = pulseIn(pulse,HIGH);
   offtime = pulseIn(pulse,LOW);
   period = ontime + offtime;
   freq = 1000000.0/period;
   duty = (ontime/period)*100;
   Serial.println(freq);
   Serial.println(duty);
}

Credits

limchengwei

limchengwei

24 projects • 4 followers

Comments