Security camera DFR1154Überwachungskamera DFR1154

TinyC program for Tasmota · DFRobot FireBeetle 2 ESP32-S3 AI CAMTinyC-Programm für Tasmota · DFRobot FireBeetle 2 ESP32-S3 AI CAM

What it doesWas es kann

TinyC program cam_dfr1154 for the DFRobot FireBeetle 2 ESP32-S3 AI CAM: live stream, motion detection (optionally confirmed by a person detector), alarm pictures on the SD card, alarm via MQTT (found by Home Assistant by itself), night vision with IR LEDs and light sensor, and voice output through the speaker.

TinyC-Programm cam_dfr1154 für die DFRobot FireBeetle 2 ESP32-S3 AI CAM: Livebild, Bewegungserkennung (optional mit Personenerkennung bestätigt), Alarmbilder auf der SD-Karte, Alarm per MQTT (Home Assistant findet ihn von selbst), Nachtsicht mit IR-LEDs und Lichtsensor sowie Sprachausgabe über den Lautsprecher.

Hardware

FilesDateien

All files, already named correctly: tinyc/other/cam_dfr1154. Download from there: cam_dfr1154.tcb (program), I2SAUDIO.cfg (audio pins), ped.espdl (person detection, esp-dl), picotts_de-DE_*.bin / picotts_en-US_*.bin (voices, German / English). The firmware and the audio plugin come from their releases (steps 1 and 7).

Alle Dateien, schon richtig benannt: tinyc/other/cam_dfr1154. Von dort herunterladen: cam_dfr1154.tcb (Programm), I2SAUDIO.cfg (Audio-Pins), ped.espdl (Personenerkennung, esp-dl), picotts_de-DE_*.bin / picotts_en-US_*.bin (Stimmen Deutsch / Englisch). Firmware und Audio-Plugin kommen aus ihren Releases (Schritt 1 und 7).

SetupEinrichtung

  1. Flash the image. Download tasmota32s3_dfr1154.zip from the tasmota-sml-images releases and unpack it. First time via USB: tasmota32s3_dfr1154.factory.bin, e.g. with the Tasmota Web Installer or esptool.py --chip esp32s3 write_flash 0x0 tasmota32s3_dfr1154.factory.bin. If the port does not respond: hold BOOT, press RESET, release both. Later updates: Firmware Upgrade → Start upgrade (the OTA URL is preset).
  2. WiFi: connect to the camera's access point (tasmota-…), open 192.168.4.1 and enter your WiFi.
  3. Template, in Tools → Console, one line at a time (the device restarts):
    Template {"NAME":"DFRWEBCAM","ARCH":"ESP32S3","GPIO":[1,0,0,0,0,0,0,0,641,609,6720,704,736,672,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,224,1],"FLAG":0,"BASE":1}
    Module 0
    I2C on GPIO 8/9 (light sensor), SD card on GPIO 10–13, Relay1 on GPIO47 = IR LEDs.
  4. Plugin partition (256 KB, needed for the audio plugin), in the console: chkpt a4. The device restarts.

    This erases the flash file system — so do it first.

  5. Insert the SD card. In Tools → Manage File system upload to the SD card (root): ped.espdl and the voice files picotts_de-DE_ta.bin, picotts_de-DE_sg.bin (for English also picotts_en-US_*.bin). Files over 256 KB go via port 83 by themselves.
  6. Program: Tools → TinyC Console → Upload Program: cam_dfr1154.tcb into slot 0, start it with ▶ and switch on A (autostart).
  7. Audio: in Manage File system switch to the flash file system and upload I2SAUDIO.cfg (must be /I2SAUDIO.cfg). Then Tools → Plugins directory: upload I2SAUDIO_32.bin and tick Autostart plugins at boot — without it the plugin does not start, and nothing tells you. Restart. mdir must list I2SAUDIO with a value in the RAM column.
  8. Test: the main page shows the Camera block, the live picture and the Camera Setup button. Speech: I2STTS Guten Tag; English: I2STTSLang en-US, then I2STTS Hello.
  1. Image flashen. tasmota32s3_dfr1154.zip aus den tasmota-sml-images Releases laden und entpacken. Erstes Mal per USB: tasmota32s3_dfr1154.factory.bin, z. B. mit dem Tasmota Web Installer oder esptool.py --chip esp32s3 write_flash 0x0 tasmota32s3_dfr1154.factory.bin. Reagiert der Port nicht: BOOT halten, RESET drücken, beide loslassen. Spätere Updates: Firmware Upgrade → Start upgrade (die OTA-URL ist vorbelegt).
  2. WLAN: mit dem Access Point der Kamera verbinden (tasmota-…), 192.168.4.1 öffnen und das eigene WLAN eintragen.
  3. Vorlage, unter Tools → Console, jede Zeile einzeln (das Gerät startet neu):
    Template {"NAME":"DFRWEBCAM","ARCH":"ESP32S3","GPIO":[1,0,0,0,0,0,0,0,641,609,6720,704,736,672,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,224,1],"FLAG":0,"BASE":1}
    Module 0
    I2C auf GPIO 8/9 (Lichtsensor), SD-Karte auf GPIO 10–13, Relay1 auf GPIO47 = IR-LEDs.
  4. Plugin-Partition (256 KB, fürs Audio-Plugin), in der Konsole: chkpt a4. Das Gerät startet neu.

    Das löscht das Flash-Dateisystem — deshalb als Erstes.

  5. SD-Karte einstecken. Unter Tools → Manage File system auf die SD-Karte (Hauptverzeichnis) hochladen: ped.espdl und die Stimmdateien picotts_de-DE_ta.bin, picotts_de-DE_sg.bin (für Englisch zusätzlich picotts_en-US_*.bin). Dateien über 256 KB laufen dabei von selbst über Port 83.
  6. Programm: Tools → TinyC Console → Upload Program: cam_dfr1154.tcb in Slot 0, mit ▶ starten und A (Autostart) einschalten.
  7. Audio: in Manage File system auf das Flash-Dateisystem umschalten und I2SAUDIO.cfg hochladen (muss /I2SAUDIO.cfg heißen). Dann Tools → Plugins directory: I2SAUDIO_32.bin hochladen und Autostart plugins at boot anhaken — ohne den Haken startet das Plugin nicht, und es gibt keine Meldung. Neu starten. mdir muss I2SAUDIO mit einem Wert in der RAM-Spalte zeigen.
  8. Test: Die Hauptseite zeigt den Block Camera, das Livebild und den Button Camera Setup. Sprache: I2STTS Guten Tag; Englisch: I2STTSLang en-US, dann I2STTS Hello.

Settings and alarmEinstellungen und Alarm

SourcesQuellen