Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/harrisoncramer/arduino-security

An alarm using Arudino Uno and TinyGo!
https://github.com/harrisoncramer/arduino-security

arduino golang tinygo

Last synced: 10 days ago
JSON representation

An alarm using Arudino Uno and TinyGo!

Awesome Lists containing this project

README

        

# arduino-security

Code for an alarm using Arudino and TinyGo. The motion sensor will detect motion and the alarm will go off, flashing blue and red lights. The buzzer will also sound, alerting of an intruder.

![An image of the completed module](https://hjc-public.s3.amazonaws.com/arduino-security.jpeg)

## Requirements

1. Tinygo
2. Arduino Uno, power supply, and USB-B data-transfer cable
3. Jumper Cables
4. Leds (x2)
5. 330Ω Resistor (x2)
6. PIR Infrared Sensor
7. Buzzers

## Build and Flash Arduino

```bash
$ go mod tidy
$ tinygo flash --target=arduino --scheduler=tasks --port=/dev/cu.usbmodem101
```

## Monitoring the Logs

```bash
$ brew install arduino-cli
$ arduino-cli core update-index
$ arduino-cli core install arduino:avr
$ arduino-cli monitor -p /dev/cu.usbmodem101 # Or whatever port the Arudino is attached to
```