So I tried something new for me this time around. I have known about the Blynk IoT libraries/services for a while now but had never tried them out. Their website is https://www.blynk.cc. I was very impressed with the simplicity of using it. To start off, I downloaded the app onto my iPhone and created an account. I then created a very basic UI of the two controls I would need, one for rotating the servo controlling the turret, and a second, a non toggling push button for the LED (laser). I then went and assigned either virtual or physical pins for each controller. This was done at first with a couple rounds of trial and error, but with some googling was able to easily get past it.

Next was getting the Blynk library into the Arduino IDE. The Arduino code was one of the simplest I have ever written with the exception of the LED Blink I did in my earliest days of developing on Arduino. To see what I mean look at my code, and you'll see it's not much more complicated than a basic blank project. The Blynk library does a lot of the heavy lifting for you.

I have added the QR Code for my app so that you can download it and load my code directly on your own board (you'll need to change the username, password and auth token).