Upgrade timer con keypad

Discussioni sui vari accessori necessari in camera oscura (tank, termometri, marginatori, taglierine, focometri, timer, esposimetri, etc..)

Moderatore: isos1977

Avatar utente
donf99
appassionato
Messaggi: 4
Iscritto il: 02/03/2018, 20:14
Reputation:

Re: Upgrade timer con keypad

Messaggioda donf99 » 03/03/2018, 14:59

Daniele,

Please excuse my use of English. I just wanted to thank you for your work on this project. I wanted to construct a simple f/stop enlarger timer and ran across this site. The set of features is perfect for my needs.

I wanted to use a 16x2 LCD display and found ciromattia's Github version of the code. His latest version seemed to lack some of the features of the most recent code posted here (with channels), so I used the most recent code that you posted a few years ago.

I made a few small changes. I needed to add some conditional compilation statements for the channel additions and the LED brightness control. I also fixed some LCD formatting issues. I changed some of the inputs to use internal pullup resistors. I also added a push button toggle for the mode, rather than the toggle switch.

One final change was to add a rounding function to the f/stop step increase/decrease. As pointed out, without this, stepping up or down from a set time, then returning to that time resulted in an error in the original time. Even with the rounding function, there is still a slight error due to the precision of the Arduino, but it is much better.

Finally, I transferred the compiled code to a bare ATMega 328p chip and use an external crystal. This resulted in a much reduced parts count. I will place a red filter over the blue back-lit LCD for safety in the darkroom.

Thanks for making the code available.

Best regards,

Don

Immagine



Advertisement
Avatar utente
donf99
appassionato
Messaggi: 4
Iscritto il: 02/03/2018, 20:14
Reputation:

Re: Upgrade timer con keypad

Messaggioda donf99 » 03/03/2018, 15:00

Daniele,

Please excuse my use of English. I just wanted to thank you for your work on this project. I wanted to construct a simple f/stop enlarger timer and ran across this site. The set of features is perfect for my needs.

I wanted to use a 16x2 LCD display and found ciromattia's Github version of the code. His latest version seemed to lack some of the features of the most recent code posted here (with channels), so I used the most recent code that you posted a few years ago.

I made a few small changes. I needed to add some conditional compilation statements for the channel additions and the LED brightness control. I also fixed some LCD formatting issues. I changed some of the inputs to use internal pullup resistors. I also added a push button toggle for the mode, rather than the toggle switch.

One final change was to add a rounding function to the f/stop step increase/decrease. As pointed out, without this, stepping up or down from a set time, then returning to that time resulted in an error in the original time. Even with the rounding function, there is still a slight error due to the precision of the Arduino, but it is much better.

Finally, I transferred the compiled code to a bare ATMega 328p chip and use an external crystal. This resulted in a much reduced parts count. I will place a red filter over the blue back-lit LCD for safety in the darkroom.

Thanks for making the code available.

Best regards,

Don

Immagine



Avatar utente
donf99
appassionato
Messaggi: 4
Iscritto il: 02/03/2018, 20:14
Reputation:

Re: Upgrade timer con keypad

Messaggioda donf99 » 03/03/2018, 15:04

Here is an image of my uncased version.

Best regards,

Don

http://projectmf.homelinux.com/timer.jpg



Avatar utente
donf99
appassionato
Messaggi: 4
Iscritto il: 02/03/2018, 20:14
Reputation:

Re: Upgrade timer con keypad

Messaggioda donf99 » 13/03/2018, 16:18

Code bug in latest multi-channel code published in the thread:

Line 783.

Should be "appo_time = time_fstdown[ch];", not "appo_time = ncifra_fstdown[ch];".

The saved time will display incorrectly if function "C" key is pressed twice with this bug.

Best,

Don



Advertisement


  • Advertisement

Torna a “Accessori vari per camera oscura”

Chi c’è in linea

Visitano il forum: Nessuno e 2 ospiti