CrashOverride85 / collar

Arduino library to control dog shock collars
BSD 2-Clause "Simplified" License
16 stars 7 forks source link
arduino arduino-library collar shock shock-collars

Collar

This is an Arduino library to control (currently) two types of shock collar which are easy to find at the moment on ebay. Because they seem to go by different names, I'm just going to unimaginatively call them TypeX:

Type 1

CollarType1

For more details, see Type1.

Type 2

CollarType12

For more details, see Type2.

Others

Hardware

The only required hardware is an Arduino (tested on an Uno) and a 433MHz transmitter and/or receiver module which can be obtained cheaply from ebay. The TX module can be used on any digital pin, but the RX module must be connected to either digital 2 or 3, as these have interrupts.

Installation

Similar to pretty much any other Arduino library... either:

  1. Put the contents of collar directory of the repo into the Arduino/sketchbook libraries folder, or
  2. Download a zip of this repo, and use the "Sketch -> Include Library -> Add .ZIP Library" option from the IDE

Examples

All examples can be used with both types of collar, just change the single reference from Type1 to Type2 as needed (examples have a comment above the line that needs changing).