I developed with a Mega as the Nextion is very particular about its use of serial comms - you cannot use the Nano or Uno as you need spare lines for debugging (and the Nextion is not intuitive, so there was a degree of debugging necessary).
I did use a Nano in the finished article as it makes life very easy: it can handle 12V on Vin, which is what the solenoid needs, and it can provide 5V to the Nextion. The signal to the camera is via an optocoupler so the camera is electrically isolated. The signal to the solenoid is via a TIP120 (iirc).
I have also added three LEDs to make it look more gadgety: mirror is up, solenoid open, shutter activated (as if you couldn't tell the shutter was activated either by its noise, or by the flash activation ;-) )
I ran it off a breadboard originally as I didn't expect it to last but eventually soldered it on vero and put it in a small housing. The flashing lights certainly impress nerds and boy scouts!
On a separate note; the Nextion is a great device but I only use it to pass the parameters to the Nano. It could do a lot more processing itself but I only needed a GUI and documentation for the Nextion is not too good as it is a stand alone device, not an Arduino add on.
I have used the Nano on a bunch of projects as I was getting them from China for less than £2.00 including postage, and I still have several left over.
I did use a Nano in the finished article as it makes life very easy: it can handle 12V on Vin, which is what the solenoid needs, and it can provide 5V to the Nextion. The signal to the camera is via an optocoupler so the camera is electrically isolated. The signal to the solenoid is via a TIP120 (iirc).
I have also added three LEDs to make it look more gadgety: mirror is up, solenoid open, shutter activated (as if you couldn't tell the shutter was activated either by its noise, or by the flash activation ;-) )
I ran it off a breadboard originally as I didn't expect it to last but eventually soldered it on vero and put it in a small housing. The flashing lights certainly impress nerds and boy scouts!
On a separate note; the Nextion is a great device but I only use it to pass the parameters to the Nano. It could do a lot more processing itself but I only needed a GUI and documentation for the Nextion is not too good as it is a stand alone device, not an Arduino add on.
I have used the Nano on a bunch of projects as I was getting them from China for less than £2.00 including postage, and I still have several left over.







