I'd be interested! I build an arduino type with one sensor/laser but I have a second set. But I don't know the sensor width nor its threshold level so I use it just as an indicator (especially for 1/1000), not for repair. You can get an idea of the curtain travel by taking two measurements at each edge of the frame. And it works well for leaf shutters. Upgrading it would be nice.
If you are typing along with Paul, when he uses 13 for 'pinMode', change this to 16. Reason being the built in LED on Nano is on pin 16.
When ready, PM me via this form & I will send yo the code.
you could post the code onto something like Github?
Thanks for posting your project! It shows that a perfectly functional shutter tester can be built with only a handful off-the-shelf modules that are cheaply available across the globe. Cool!
I think on the original Nano the LED is on 13 alright (PB5):
View attachment 331767
This is from the Arduino Nano schematic V3.2 ; I don't think many changes have been made to the LED arrangement.
However, clones from China could have the onboard LED on pretty much any GPIO. Not all clones necessarily follow the schematic of the original, although the ones I've got here do. Hence, it's possible that on your particular board the LED really is on 16 (pin PC2 / A2). Btw, this would be an unfortunate choice as it will interfere with some applications where one would like to use ADC2 as an analog input. Having a fairly low impedance LED on there would pose a load on any analog signal one might want to measure. Hence, a well-designed clone should either follow the original or use another suitable GPIO for the LED.
Would you be willing to share the code here on the forum as a download? This would make the project work even in case you're unavailable and can't respond to queries anymore. Keep in mind that several years from now, people may (will) still find your project and may want to build it!
I ordered all the bits yesterday morning and the first one, the Arduino Nano board, arrived in the post this morning, impressively quick delivery. Loaded the Linux version of the Arduino IDE onto my desktop tonight and eventually managed to get my computer to talk to it, loading the 'blink' example - it took me a while to get it set-up as I only found the 'Tools/Processor' option with the 'old bootloader' displayed in the IDE once I realised it was a Nano board and not a Uno! PEBKAC!
My Nano board running the 'blink' example program - not that you can see it flashing!
View attachment 331911
Now I just need the other bits to arrive.
Excellent suggestion and I'd very much emphasize this. Moreover, it would really help if others are in a position to improve on a given starting point. Yes, it can be a painful/confronting experience if people point your code is full of holes after working hard on it for many hours. But in the end, everyone's better off that way if the project is intended for replication by others.
This looks great. I've ordered the parts, @Niglyn is there any chance you could post the code onto something like Github? I'm a retired (open source) software engineer and I'd love to be able to take a look.
Thanks Niglyn! This is what I was looking for, but I haven't got the knowledge to design this myselfGreat work! Parts have been ordered, can't wait to start with it. Would you be so kind to send the code to me as well?
PM me for the code.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?