Skip to content

Detecting and controlling mains voltages with a Raspberry Pi or Arduino

License

Notifications You must be signed in to change notification settings

pdcastro/mains-io

Repository files navigation

Sensing and controlling mains voltages with a Raspberry Pi

Check the article published at: https://pdcastro.github.io/mains-io

This repo contains:

  • docs folder - Contents of the article (Jekyll website) linked above.

  • lib, scripts, Dockerfile and others - Trivial Raspberry Pi app to support some experiments. The app monitors a GPIO input pin and replicates the input state to an output pin. The pin numbers are currently defined in lib/index.ts.

The app was tested with the balena platform (docs). If your balena fleet was called "ssr", the app could be deployed with the balena CLI's command "balena push ssr" on the directory where this repo was cloned.