Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Resource icon

Pulse Sequence Generator / Smart Timer 2021-06-04

No permission to download
Often users, developers, hobbyists need timed and qualified event generators,
many resorting to 555 timers and the like. The venerable 555 has had a long run
but its limited in accuracy and capability.

This approach uses block language to create pulse streams of desired width and inter
pulse delay. In addition it has the capability to gen a series of pulses, then halt waiting
for a trigger from an A/D value or a pin state. All intermixed in any order. More features
can be easily added later, like compound qualified triggers. And or frequency/pulse
with input qualifiers. Even the ATTINY85 can run the code, 8 pin mini dip, with
internal oscillator accuracy of +/- 2% if I recall correctly.

Can run on UNO, Nano and the like boards. Timing events out to days/months/years if needed.

IDE is mBlock 5.0, freebee.

This is not meant to replace lab grade instrumentation, but is fine for broad simple applications.


mBlock, you drag and drop and configure blocks, when done mBlock converts that to Arduino code,
as shown on right, and programs board.


1622924383582.png


The above example puts out 3 pulses, 10 mS, 100 mS, 1 Sec, with inter-pulse delays of
500 mS, 400 mS, 300 mS respectively, then waits for A/D to trigger on > 2.5V to issue the
next pulse of 700 mS with delay of 5oo mS, then waits for a pin to fire, lastly putting out a
pulse of 300mS and a delay 0f 2S. Could have done a train in years if needed, of NN
# pulses. Different pins can be pulses or the same, different analog pins used for analog
triggering....

Lots of fun, easy to program, not rocket science.

To program ATTINY85 additional steps needed, eg. use another Arduino as a programmer.
But not difficult once you know how to do it. Multiple examples on web. Programing
Nano, Uno boards done directly with mBlock.

1622891807894.png


Note I did not invoke the intermediate triggers for this screen shot.


Regards, Dana.
  • Like
Reactions: solipso
Author
danadak
Downloads
2
Views
4,983
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from danadak

Latest updates

  1. Project and Added Pulse Width Triqqer

    Added a trigger for Pulse Width Note all the triggers are blocking, code is sequential and...

New Articles From Microcontroller Tips

Back
Top