Cookie Dispenser: verified firmware hardware map

CookieDispenser.ino pin map here, actual code rather than guessing from the wiring picture
btSerial on 5/6 is commented out; active status LED is pin 4. easy thing to miss

Recovered the actual CookieDispenser.ino linked in the presentation, rather than inferring firmware from screenshots. Includes are Adafruit_Fingerprint.h, Stepper.h, SoftwareSerial.h and TimeLib.h (lines 1–5). The stepper configuration uses 2,048 steps/revolution and pin order (11,9,10,8) (lines 8–10), with speed set to 15 in setup() (line 30).

Cookie Dispenser wiring diagram.
Cookie Dispenser wiring diagram.

Fingerprint reader, breadboard and motor electronics.
Fingerprint reader, breadboard and motor electronics.

On AVR/ESP8266 except ATmega2560, the fingerprint sensor uses SoftwareSerial mySerial(2,3); the alternate branch aliases Serial1 (lines 15–20). Status output is pin 4, and hardware serial starts at 9,600 baud (lines 35–40). The proposed Bluetooth SoftwareSerial declaration on pins 5/6 and its setup calls are commented out in this snapshot. Do not reproduce them as active wiring.

Useful code landmarks: getFingerprintID() performs image acquisition, template conversion and fast search, returning −1 on failure; the command function is spelled recieveSignal(); checkForFingerprint() contains the allowance and dispensing behavior; userOutput() drives the single LED pin. The source snapshot was stored March 26, 2022. This review read source only; no build, device upload or electrical test was performed.