Exercises

  • Build a project similar to the burglar alarm, but use another type of sensor. There’s tons of inspiration out there on the Web.[123]

  • Add the current timestamp to the burglar alarm email. Get the timestamp from a Daytime service.

  • Add support for DHCP and DNS to the burglar alarm.

  • Add support for Base64 to the burglar alarm, so you no longer have to manually encode your username and password. A Base64 library is available.[124]

  • Add a piezo buzzer to the project and emit a beeping sound whenever a burglar is detected.

  • Get a TTL Serial Camera[125] and attach photos of the burglar to your emails. This is a fairly advanced exercise. You have to learn how to control the camera, and you also have to learn how to send email attachments. ...

Get Arduino: A Quick-Start Guide, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.