Security Camera
7. Finalize and test your Security Camera
7 / 8

In this final section we’re going to do the following:

  • Remove the USB hub
  • Plug the USB modem directly into the Raspberry Pi
  • Plug the USB power adapter directly into the Raspberry Pi
  • View our portable camera feed on-line

Make the Security Camera portable

We’re going to remove the unnecessary components from the Assemble the materials step. By the end of this section, you will have the minimal amount of hardware required to operate the Security Camera.

  • Remove all USB cords from the USB hub
  • Insert the USB / micro USB cord that came with the USB power adapter into the USB power adapter security-camera-battery-usb
  • Insert the appropriate end of the Cable On The Go adapter from the shopping list into the USB modem
  • Plug the USB modem into the port labeled USB on the Raspberry Pi
  • Plug the power adapter into the port labeled PWR on the Raspberry Pi

The Security Camera is now ready to test in the wild! Place your new Security Camera around any environment you want to monitor.

Remember the code you deployed in the Deploy scripts to Functions step? A public, addressable, webpage URL was created during this step. Navigate your browser to that URL, now.

It will look similar to https://xxx-yyyy-7677.twil.io/.

This is one of the benefits of Functions. We've eliminated the need for separate web hosting by uploading a small number of scripts and assets to Functions. Developing on Functions means we can iterate on our application rapidly and our infrastructure automatically scales when needed.

security-camera-webpage-dashboard

That’s it! We’ve created a fully portable cellular connected IoT camera with client and server software running on Twilio Functions, a serverless environment to build and run your Twilio code and get to production faster.

Continue to the final section for tips to turn your prototype into a production solution.