summaryrefslogtreecommitdiffstats
path: root/door_lock
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2024-11-03 16:07:28 +0800
committerSadeep Madurange <sadeep@asciimx.com>2024-11-03 16:07:28 +0800
commita4482eb71f97af2b7e9449f0bd90f483a6c2e513 (patch)
tree44c3e3c885ae96be6d853584c2d9f5f2adb65461 /door_lock
parent6a97a71e2483f19a28f6b2d5ccd62854b0acfb42 (diff)
downloadsmart-home-a4482eb71f97af2b7e9449f0bd90f483a6c2e513.tar.gz
Readme with electrical connections.
Diffstat (limited to 'door_lock')
-rw-r--r--door_lock/README.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/door_lock/README.txt b/door_lock/README.txt
new file mode 100644
index 0000000..1e6046f
--- /dev/null
+++ b/door_lock/README.txt
@@ -0,0 +1,14 @@
+ELECTRICAL CONNECTIONS
+
+Following connections puts the atmega328p in a configuration that
+mirrors the configuration of an Arduino Uno.
+
+ 1. Pin 1 of the IC connects to the 5V via a 10k resistor to prevent
+ the atmega328p from resetting.
+ 2. A 16MHz crystal oscillator connects to pins 9 and 10, and each pin
+ of the crystal oscillator connects to ground via 22pF capacitors.
+ 3. Pins 7, 20 and 21 (counted clockwise from the bottom left of the
+ IC) connect to 5V.
+ 4. Pins 8 and 22 connect to ground.
+
+Now connect the PWM line of the servo to pin 15 of the IC.