You Are Here: Home » AVR ATmega Projects » Slaveflash with Attiny24 ver. 2.0

Slaveflash with Attiny24 ver. 2.0




SlaveflashYou might have noticed the Slaveflash I built with an Attiny 24, the instructable can be found here: Slaveflash-trigger-for-digital-with-Attiny24

 

After building the first prototype I collected all my old flashes I got over the years and had four more slaveflash-triggers to built.
I already figured out an PCB-Layout for the SOIC-version of the attiny 24. But the biggest parts in the design are actually the hex-switch and the optocoupler, so it would make no sense to substitute only the microcontroller by a smaller one. Instead I replaced the hex-switch by a learning mode in software and also replaced the power source.

By replacing the 7805 voltage controller by a button cell with 3V, the power consumption was reduced from 2mA to below 0.5mA without the LED on.

So here it is: Let’s got started!

Step 1 Changes in the schematics

In comparison to the former model a lot of things are deleted and the schematics is much easier.

  • The complete voltage controller section is deleted.
  • The hex-switch is replaced by nothing.

And this is what is left:

  • The reset-button
  • the flash-detector
  • the status-Led
  • and the optocoupler

Step 2 The software

Also the software has changed a bit. The function to read out the hex-switch was omitted, instead two small if-statements were added in the timer overflow interrupt routine. And this is how it works:

After startup the variable “flashesneeded” is zero, that means unset. As long as this is the case the trigger waits to learn how many flashes there will be. The trigger will detect every flash and count it. After firing your real flash once you have to wait for the timer overflow (~1s). Then the if-function will recognize that there were flashes detected while the flashesneeded-variable is still zero. In this case the number of flashes detected will be written to flashesneeded and the learning mode is done. Now the variable differs from zero and no more learning occurs. To learn another number of preflashes only hit the reset button to restart the microcontroller.

Step 3 Making the breadboard

Making the breadboardI was up to print a dedicated PCB for this circuit, but when you look at how simple it is, this would be a waste of time!
I made the whole board in one hour in the evening. Just look at the two pictures to figure out what to connect. Or think on your own! 😉

This is all set up with standard parts, no SMD and with a standard breadboard. The size of the whole circuit is about 3×4.5cm.

For more Detail: Slaveflash with Attiny24 ver. 2.0

This free embedded project also found using:

  • attiny24

About The Author

Number of Entries : 6710

Leave a Comment

You must be logged in to post a comment.

Read previous post:
Driving voltage 0-5V from the computer.
External device control (i.e. coffee machine).

Note: Try any or all of these at your own risk. I will not be responsible for any issues. Get...

Close
Scroll to top