Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harrisoncramer/arduino-security
An alarm using Arudino Uno and TinyGo!
https://github.com/harrisoncramer/arduino-security
arduino golang tinygo
Last synced: 1 day ago
JSON representation
An alarm using Arudino Uno and TinyGo!
- Host: GitHub
- URL: https://github.com/harrisoncramer/arduino-security
- Owner: harrisoncramer
- Created: 2023-01-16T22:16:03.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-28T00:30:46.000Z (almost 2 years ago)
- Last Synced: 2024-12-16T15:09:15.638Z (6 days ago)
- Topics: arduino, golang, tinygo
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```