Weedo X40 Wifi / Camera Modul
Modul specification
- Controller ESP32
- Camera
- Video streaming 640*480 pixel (MJPG encoding), With tricks also 800x600 pixel
- Still picture 1024*768 pixel (JPEG), with Quality 15 or higher up to 1600 x 1200 pixel (JPEG) - MicroSD Flashcard 4GB / 8GB
- WIFI
- 802.11b/g/n wireless network (only 2.4GHz frequency band) with AP (Access Point) and STA (Station) mode
More Informations:
- ESP32-CAM Video Streaming and Face Recognition with Arduino IDE
- https://www.fambach.net/esp32-cam-modul/
Setup
View the image from the Weedo X40 webcam through a browser:
You can display the images from the Weedo X40 camera on a browser without a special app. The printer only has to be registered in your network and you have to know the IP address of the printer or assign a name to the printer in the router.
Camera settings GUI:
http://IP-address:8080/
To stream the live video, enter the following in the browser:
http://IP-address:8080/?action=stream
To take a webcam photo, enter the following in the browser:
http://IP-adress:8080/capture
With, the printer has the IP address 192.168.178.41 and the name Weedo-X40. So it is also possible:
http://192.168.178.41:8080/?action=stream
http://Weedo-X40:8080/?action=stream
http://192.168.178.41:8080/?action=stop
http://192.168.178.41:8080/stream
Camera status
http://192.168.178.41:8080/status
Camera resolution
http://192.168.178.41:8080/control?var=framesize&val=11
Value | Resolution |
0 | THUMB (96x96) |
1 | QQVGA (160x120) |
3 | HQVGA (240x176) |
5 | QVGA (320x240) |
6 | CIF (400x296) |
7 | HVGA (480x320) |
8 | VGA (640x480) |
9 | SVGA (800x600) |
10 | XGA (1024x768) |
HD (1280x720) | |
11 | SXGA (1280x1024, works only with low quality, quality=15) |
12 | UXGA (1600x1200, works only with low quality, quality=15) |
Camera settings
Call http://192.168.178.41:8080/control?var=<key>&val=<val>
with a settings key and value to set camera properties or trigger actions.
<key> |
<val> |
Example |
quality |
10 to 63 |
http://192.168.178.41:8080/control?var=quality&val=15 |
contrast |
-2 to 2 |
http://192.168.178.41:8080/control?var=contrast&val=1 |
brightness |
-2 to 2 |
http://192.168.178.41:8080/control?var=brightness&val=1 |
saturation |
-2 to 2 |
http://192.168.178.41:8080/control?var=saturation&val=0 |
ae_level |
-5 to 5 |
http://192.168.178.41:8080/control?var=ae_level&val=-1 |
special_effect |
0=No Effect 1=Negative 2=Grayscale 3=Red Tint 4=Green Tint 5=Blue Tint 6=Sepia |
http://192.168.178.41:8080/control?var=special_effect&val=2 |
awb |
0 = disable 1 = enable |
http://192.168.178.41:8080/control?var=awb&val=1 |
awb_gain |
0 = disable 1 = enable |
http://192.168.178.41:8080/control?var=awb_gain&val=1 |
wb_mode |
if awb enabled: 0=Auto 1=Sunny 2=Cloudy 3=Office 4=Home |
http://192.168.178.41:8080/control?var=wb_mode&val=3 |
aec |
0 = disable 1 = enable |
http://192.168.178.41:8080/control?var=aec&val=1 |
aec_value |
0 to 1200 |
http://192.168.178.41:8080/control?var=aec_value&val=200 |
aec2 |
0 = disable 1 = enable |
http://192.168.178.41:8080/control?var=aec2&val=1 |
ae_level |
-2 to 2 |
http://192.168.178.41:8080/control?var=ae_level&val=0 |
agc |
0 = disable 1 = enable |
http://192.168.178.41:8080/control?var=agc&val=0 |
agc_gain |
0 to 30 |
http://192.168.178.41:8080/control?var=agc_gain&val=20 |
gainceiling |
0 to 6 |
http://192.168.178.41:8080/control?var=gainceiling&val=2 |
hmirror |
0 = disable 1 = enable |
http://192.168.178.41:8080/control?var=hmirror&val=0 |
vflip |
0 = disable 1 = enable |
http://192.168.178.41:8080/control?var=vflip&val=0 |
More Information see: https://github.com/easytarget/esp32-cam-webserver/blob/master/API.md
Software
see https://gist.github.com/georoen/d12a98b2b5591efa4ce5c91d38bd9d2e
Capture and download still image
curl --xattr -o myimage.jpg http://192.168.178.41:8080/capture
Transmitting a gcode file via WIFI to the Weedo X40
Provide your file and IP address accordingly
curl -H "X-Api-Key: AAAAAAAAAAAAAAAAAAAA4AAAAAAAA" -F "file=@myfile.gcode" -F "select=true" -F "print=false" "http://192.168.178.41/api/files/local"
Transmitting and print a gcode file via WIFI to the Weedo X40
Provide your file and IP address accordingly
curl -H "X-Api-Key: AAAAAAAAAAAAAAAAAAAA4AAAAAAAA" -F "file=@myfile.gcode" -F "select=true" -F "print=true" "http://192.168.178.41/api/files/local"