Doorbell: Difference between revisions

From Noisebridge
Jump to navigation Jump to search
No edit summary
Line 15: Line 15:
{{boxend}}
{{boxend}}


== Doorbell 4.0? ==
== Doorbell 4.0 ==
[[File:Esp32bell.png|300px|thumb|left|Doorbell diagram]]
[[File:Esp32bell.png|300px|thumb|left|Doorbell diagram]]


Line 21: Line 21:


'''Summary'''
'''Summary'''
* ESP32 Based ([https://gist.github.com/danasf/6aed0be2e0327a3e5c4c52de47e8bb54 arduino sketch])
* ESP32 Based ([https://gist.github.com/danasf/6aed0be2e0327a3e5c4c52de47e8bb54 sketch for arduino ide])
* DY-SV8F MP3 board for chimes and sound effects ([https://grobotronics.com/images/companies/1/datasheets/DY-SV5W%20Voice%20Playback%20ModuleDatasheet.pdf manual]).
* DY-SV8F MP3 board for chimes and sound effects, it has 8MB? of storage built in ([https://grobotronics.com/images/companies/1/datasheets/DY-SV5W%20Voice%20Playback%20ModuleDatasheet.pdf manual]).
* ESP32: GPIO23 - INPUT to trigger doorbell, GPIO17 - TX, connect to RX on MP3 Board
* ESP32: GPIO23 - INPUT triggers doorbell, GPIO17 - TX, connect to RX on MP3 Board


'''Features'''
'''Features'''
* It's possible to make OTA firmware updates
* It's possible to make OTA firmware updates on the ESP32
* ESP32 broadcasts the doorbell ring to network and a Discord webhook
* ESP32 broadcasts the doorbell ring to the network and a Discord webhook in #doorbell
* You can trigger various sound effects (try sending the doorbell MOO\n, BAAH\n, TRASH\n as UDP packets)
* You can trigger various sound effects (try sending the doorbell MOO\n, BAAH\n, TRASH\n, PLAY some_number\n as UDP packets)
* Customizable chime (connect USB micro to MP3 board, replace 00001.mp3 with your chime).
* Customizable chime (connect USB micro to MP3 board, replace 00001.mp3 with your chime).
'''Quirks'''
You can send a UDP packet to the device `PLAY 2` for example would play file #2 on the device. The file system does not always order things as you expect. This dedicated library gives a [https://github.com/SnijderC/dyplayer#important-files-do-not-play-in-order-of-named-sequence good overview of the issue and possible mitigations]. Absolute worst case you can send UDP packets, iterate through files, playing them, make note of the appropriate file and update the ESP firmware if needed!


== Doorbell 3.0 ==
== Doorbell 3.0 ==

Revision as of 17:20, 29 October 2022

Noisebridge | About | Visit | 272 | Manual | Contact | Guilds | Resources | Events | Projects | 5MoF | Meetings | Donate | (Edit)
272 Capp St. | Layout | Parking | Fence | Access | Patio | Entrance | Front | Hackitorium | Stage | Lockers | Stairs | Upstairs | Classrooms | Exits | Roll up door | Bathrooms | Network | Roof | Audio | AV | Construction | Electrical | Print Shop | Elevator | Back hall | Back patio | Fire escape | Plants | Sustenance | Housekeeping | (Edit)
Access | Gate | Front Door | Doorbell | RFID Token | Payphone | Security Camera | SecWG | Olympus (Door) | (Edit)
Nbdoorbell.png
You are standing at the Doorbell of Noisebridge's gate.

You see a red doorbell button, a payphone, and an RFID Token reader.

EXITS: Gate, Patio

> PRESS DOORBELL

You press the doorbell and wait for someone to let you into the patio.


> Blinkingcursor.gif

The doorbell will ring for someone to let you into the space. Be patient and don't ring multiple times without waiting a while for someone to come to greet you.

Doorbell 4.0

Doorbell diagram

Updated: 2022-10-28

Summary

  • ESP32 Based (sketch for arduino ide)
  • DY-SV8F MP3 board for chimes and sound effects, it has 8MB? of storage built in (manual).
  • ESP32: GPIO23 - INPUT triggers doorbell, GPIO17 - TX, connect to RX on MP3 Board

Features

  • It's possible to make OTA firmware updates on the ESP32
  • ESP32 broadcasts the doorbell ring to the network and a Discord webhook in #doorbell
  • You can trigger various sound effects (try sending the doorbell MOO\n, BAAH\n, TRASH\n, PLAY some_number\n as UDP packets)
  • Customizable chime (connect USB micro to MP3 board, replace 00001.mp3 with your chime).

Quirks

You can send a UDP packet to the device `PLAY 2` for example would play file #2 on the device. The file system does not always order things as you expect. This dedicated library gives a good overview of the issue and possible mitigations. Absolute worst case you can send UDP packets, iterate through files, playing them, make note of the appropriate file and update the ESP firmware if needed!

Doorbell 3.0

Unknown

Doorbell 2.0

Arduino-based, includes lights and a customizable tone.

To do

* mount in a stable enclosure
* move transistor (sound) from pin 12 to another pin so we can use ethernet. (4,10,11,12,13 are used by ethernet/sd card. 5 is buzzer signal, 7 is LEDs)
* run an ethernet cable to the doorbell
* Improve and expand doorbell code!

Troubleshooting

* Check that the speaker is connected to the green terminals of the arduino, and an audio cable is plugged into the intercom box by the top door.
* Hit the reset key on the Arduino
* Ring the door bell. Does it work?
* Re-upload or modify the Arduino sketch

If this fails you can revert to doorbell 1.0.

Want to improve the doorbell? Change the chime? Here is arduino code. Hack it!

You'll need a USB mini cable to connect. The board is a [1], but choose Uno in the Arduino IDE.

Improvements & ability to alter light and sound patterns via ethernet will be coming soon.

Doorbell 1.0

Via original intercom box.

Fallback instructions.

Go to the intercom box by the top door:

* Ensure the buzzer switch on the top is set to 'On'
* Unplug the audio cable from the side of the intercom box by the door.

Doorbell 1.0 functionality should work

Pacific Electronics 3403 Door buzzer system.