Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/calle66/custom_made_webcam_for_h0-locomotive_with_xiao-esp32-cam
Upgrade a classic Märklin H0 locomotive (Model 3366) with modern tech! Using the Xiao ESP32-CAM, this project transforms an analog loco into a digital video loco, streaming its surroundings live to a web server. Watch the video here: https://www.youtube.com/watch?v=oGMQHV2rfZA Components include ESP32-CAM, LiPo battery, LEDs, and more.
https://github.com/calle66/custom_made_webcam_for_h0-locomotive_with_xiao-esp32-cam
esp32 lokfuehrerperspektive marklin modellbahn modellbahnsteuerung selbstgebaut webcam webserver
Last synced: 22 days ago
JSON representation
Upgrade a classic Märklin H0 locomotive (Model 3366) with modern tech! Using the Xiao ESP32-CAM, this project transforms an analog loco into a digital video loco, streaming its surroundings live to a web server. Watch the video here: https://www.youtube.com/watch?v=oGMQHV2rfZA Components include ESP32-CAM, LiPo battery, LEDs, and more.
- Host: GitHub
- URL: https://github.com/calle66/custom_made_webcam_for_h0-locomotive_with_xiao-esp32-cam
- Owner: calle66
- Created: 2024-12-19T16:33:41.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-24T12:30:46.000Z (27 days ago)
- Last Synced: 2024-12-24T13:51:39.056Z (27 days ago)
- Topics: esp32, lokfuehrerperspektive, marklin, modellbahn, modellbahnsteuerung, selbstgebaut, webcam, webserver
- Language: C++
- Homepage: https://DerModellbahnBlogger.de
- Size: 51.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
The program uses a XIAO ESP32S3 chip to control a camera inside a model train locomotive and provides a "driver's perspective" using simple means via WLAN streaming to a browser.
The Arduino IDE example program "CameraWebserver" was used as the basis and adapted for the CAMERA_MODEL_XIAO_ESP32S3 with the OV2640 hardware.![grafik](https://github.com/user-attachments/assets/ea44c011-0c8e-4dc5-b395-ff33295a599d)
The module is powered on via an SMD relay controlled by an ESU Lokpilot 5 and runs continuously without automatic shutdown.
Once activated, the address (e.g. http://192.169.10.20) can be displayed using a serial monitor (requires a connection via the USB-C interface) or obtained through the router used.![grafik](https://github.com/user-attachments/assets/0086866f-3aae-4d6c-b335-5c60a77eda08)
The operational status is indicated by a red interior LED that lights up for 30 seconds, providing information about the connection of the slider contact.
The LED blinking indicates the charging status of an optional LiPo battery connected to the chip board.For illumination under low light conditions, a white LED connected to GPIO4 is used and can be controlled via the web server.
The following parameters have been successfully tested for correct programming in the Arduino IDE:
Board: XIAO ESP32S
Port: As per Device Manager
PSRAM: OPI PSRAM
Erase Flash: EnabledTo program the module, it must be removed from the locomotive interior and programmed via the integrated USB-C interface using the Arduino IDE.
Install the Arduino IDE as described in https://wiki.seeedstudio.com/xiao_esp32s3_getting_started/ and copy the following files:
ESP32s_XIAO_LokCamBR152.ino
app_httpd.cpp
camera_index.h
camera_pins.h
ci.json
into any directory. Then, open the file ESP32s_XIAO_LokCamBR152.ino with the Arduino IDE and set the following parameters:Select the Board:
Go to Tools > Board > ESP32 Arduino > Seeed Studio XIAO ESP32S3.
(Ensure the correct board is selected, as the PSRAM option is specific to ESP32 models.)Enable PSRAM: Go to Tools > PSRAM > Enabled.
Erase Flash: Go to Tools > Erase Flash > Enabled.Don't forget to adjust lines 46 and 47 for your WiFi settings in the file 'ESP32s_XIAO_LokCamBR152.ino:
const char *ssid = "WLAN";
const char *password = "XXXXXXXX";To flash the ESP32: Compile and upload the program.
ESP32Cam-Flashen: https://wiki.seeedstudio.com/xiao_esp32s3_camera_usage/
Pins: https://wiki.seeedstudio.com/xiao_esp32s3_pin_multiplexing/
Here’s how it works: You can watch it here: https://www.youtube.com/watch?v=oGMQHV2rfZA
H A R D W A R E:
Orderlist (Devices): https://www.reichelt.de/my/2214141
Orderlist (DC-Stepdown-converter): https://eckstein-shop.de/Projekt?wlid=6768dbc1075dd5.54857069&jtl=w
Orderlist (ESU Decoder): https://www.behr-mobile.eu/esu-58410-loksound-5-dccmmsxm4.html
Orderlist (H0 Locomotive): https://www.ebay.de/itm/305974326571![grafik](https://github.com/user-attachments/assets/0433439c-28e4-4b95-9080-3f1522fd3b61)
Circuit diagram:
![grafik](https://github.com/user-attachments/assets/4cf01036-653d-43a3-b1bd-57ffb624fd43)
Pins Decoder:
![grafik](https://github.com/user-attachments/assets/26362463-b7e2-406f-9144-3efffc761e92)
Detail Decoder:
![grafik](https://github.com/user-attachments/assets/4e73d8ae-b6c9-4ac4-ad9d-3b06c31d133d)
Detail Cap:
![grafik](https://github.com/user-attachments/assets/3e00e87b-1905-4e32-a280-45e8636cd748)
Detail ESP32 Cap Connector:
![grafik](https://github.com/user-attachments/assets/01e1c604-c471-4d8f-82bc-06aeb8f4bb53)