a5:octopi-zero
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
a5:octopi-zero [2018/02/19 02:44] – cedric | a5:octopi-zero [2018/02/19 03:40] – [Stuff you'll need] cedric | ||
---|---|---|---|
Line 1: | Line 1: | ||
(work in progress Sam :) ) | (work in progress Sam :) ) | ||
====== PIZERO OCTOPI ====== | ====== PIZERO OCTOPI ====== | ||
- | |||
This quick guide is an example of how you can you a **Raspberry Pi ZERO W** as an Octoprint controller. | This quick guide is an example of how you can you a **Raspberry Pi ZERO W** as an Octoprint controller. | ||
- | The recommended setup is still to use a Raspi3, as it has more CPU power and full width USB ports, however | + | The recommended setup is still to use a Raspi3, as it has more CPU power and full width USB ports. |
+ | However | ||
+ | This setup is "non invasive" (can be easily removed), and it can even fit on the A3S/A5 screws in an elegant way. | ||
- | {{: | + | {{: |
- | Detail | + | Detail |
{{: | {{: | ||
- | ==== SERIAL PORT ==== | + | What I do like about my own setup is that I can see not only the material beeing printed (to check if all is good), but also the spool moves, which **looks great when doing timelapses** with OctoPrint. |
+ | |||
+ | Additionnally, | ||
+ | |||
+ | ==== Stuff you'll need ==== | ||
+ | |||
+ | * Raspberry Pi official pizero case (comes with short camera cable https:// | ||
+ | * Raspberry **Cam V2** (comes with long camera cable : we don't need it here https:// | ||
+ | * Raspberry **PI ZERO W** ( W for wireless ) | ||
+ | * 1x USB cable ( **USB2 to Micro USB** : for power - https:// | ||
+ | * 1x micro USB OTG adapter (http:// | ||
+ | * or alternatively, | ||
+ | |||
+ | Everything can be put together in the case | ||
+ | - The Pi | ||
+ | - The Camera | ||
+ | - The little cable | ||
+ | |||
+ | You should end up with this | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Now - as covered in multiple other tutorials (eg http:// | ||
+ | |||
+ | As the PIZERO doesn' | ||
+ | | ||
+ | |||
+ | Then put it in the PIZERO, boot it and verify it gets an ip adress (eg : in your router) | ||
+ | |||
+ | Beware the **PIZERO has two USB ports and you need them both** | ||
+ | |||
+ | {{: | ||
+ | The one at the side of the case (right on the picture) is the " | ||
+ | |||
+ | The second cable, located in the center, is the **data port**. This one will send Octoprint' | ||
+ | You can find a micro USB to USB2.0 TYPE B cable, they do exist in china. (I'm waiting one myself.) | ||
+ | |||
+ | Once it's powered up (there a little green led flashing that you can see barely at the back of the case) **try connecting** to it with it's ip, or maybe http:// | ||
+ | |||
+ | |||
+ | ==== Serial port ==== | ||
Line 19: | Line 60: | ||
You should hardwire the data rate at 250,000 | You should hardwire the data rate at 250,000 | ||
- | As Samuel | + | As Samuel |
{{: | {{: | ||
Line 26: | Line 67: | ||
- | ==== CAMERA | + | ==== Camera |
You can of course put your camera wherever you see fit. I did put it next to the extruder, as it gives me a nice view of the current printing process, and it's not obstructing access to the printer. | You can of course put your camera wherever you see fit. I did put it next to the extruder, as it gives me a nice view of the current printing process, and it's not obstructing access to the printer. | ||
- | {{: | + | {{: |
You should use the 4:3 setting in Octoprint. | You should use the 4:3 setting in Octoprint. | ||
Line 36: | Line 77: | ||
However, I don't recommend you go much higher than that, as Octopi is already streaming at a ridiculous 10Mbps for that resolution. Also, the focus of the V2 is not very sharp anyway, so it's a bit of a waste of bandwidth. YMMV. | However, I don't recommend you go much higher than that, as Octopi is already streaming at a ridiculous 10Mbps for that resolution. Also, the focus of the V2 is not very sharp anyway, so it's a bit of a waste of bandwidth. YMMV. | ||
- | Should you wish to change the resolution of the cam, edit | + | Should you wish to change the resolution of the cam, |
- | / | + | edit / |
Here are some settings you can try | Here are some settings you can try | ||
- | '' | + | < |
#default : 640x480 10fps. Streams at 10Mbps which is already a lot. | #default : 640x480 10fps. Streams at 10Mbps which is already a lot. | ||
+ | |||
camera_raspi_options=" | camera_raspi_options=" | ||
Line 47: | Line 89: | ||
# Notes: Streams at 30Mbps ! | # Notes: Streams at 30Mbps ! | ||
# | # | ||
- | #'' | + | # |
# Raspberry Pi Camera V2, maximum resolution, stills mode, full field of view (4:3 aspect) at 15fps | # Raspberry Pi Camera V2, maximum resolution, stills mode, full field of view (4:3 aspect) at 15fps | ||
# Notes: Very slow for streaming, large images. Less image processing, generally looks worse | # Notes: Very slow for streaming, large images. Less image processing, generally looks worse | ||
Line 59: | Line 101: | ||
# Notes: Using 16:9 aspect crops your field of view so you will see less | # Notes: Using 16:9 aspect crops your field of view so you will see less | ||
# | # | ||
+ | </ | ||
+ | |||
+ | Don't listen to tutorials saying you to reboot the box after editing this file (?) simply do a | ||
+ | **service restart webcamd** (as root) | ||
+ | Then reload you browser window. | ||
==== Hardware setup ==== | ==== Hardware setup ==== | ||
- | in progress | + | //in progress |
+ | |||
+ | Basically : I'm using a 3D printed mount, then use two screws from the vertical rods to tighten it. | ||
+ | |||
+ | I then find a proper viewing angle, then glue it for good. | ||
+ | |||
+ | more details later :)// | ||
+ | |||
+ | ==== Final comments ==== | ||
+ | |||
+ | The Octoprint website is not very clear ; they "do not recommend" | ||
+ | And so do I. | ||
+ | |||
+ | **As long as you limit the bandwidth of the webcam**, which makes sense anyway for such a small and wifi device, I've never seen more than 17% cpu usage for streaming. You can even go lower than that by limiting FPS. | ||
+ | My experience has been very positive so far with a PizeroW setup as an octopi, it's also great to use with smartphone apps ( like " | ||
+ | I hope you enjoyed this little tutorial and that it inspired you to **think "out of the box"** and try things by yourself. :) | ||
- | j | + | **--CEDRIC** |
a5/octopi-zero.txt · Last modified: 2020/12/25 02:13 by 127.0.0.1