element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
MusicTech
  • Challenges & Projects
  • Design Challenges
  • MusicTech
  • More
  • Cancel
MusicTech
Blog Controlling and Monitoring your 3D printer with BeagleBone and OctoPrint
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: carmelito
  • Date Created: 16 Mar 2016 2:09 AM Date Created
  • Views 4439 views
  • Likes 5 likes
  • Comments 4 comments
  • 3d-printing
  • beablebone
  • project_diydrumkit
  • music
  • music-tech
Related
Recommended

Controlling and Monitoring your 3D printer with BeagleBone and OctoPrint

carmelito
carmelito
16 Mar 2016

My project the DIY drum kit is going to include quite a bit of 3D printing, which meant that I had to try out setting up OctoPrint (OctoPrint.org )on the BeagleBone black, which would give me a web enabled UI to control,3D print and monitor my printer.

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

I have been using OctoPrint for more that six months using a Raspberry Pi B+. Setting up OctoPrint on the Pi was pretty simple, which include flashing a modified image of Raspbain called OctoPi, but in case of the BeagleBone you will have to set it up manually using the steps at

https://github.com/foosel/OctoPrint/wiki/Setup-BeagleBone-Black-Rev-C-%28Jessie%29

 

Here are few points to remember

- You will need to upgrade your BeagleBone OS to the latest version of Debain , that is Debain - Jessie(image I use - Flasher: (lxqt-4gb) (BeagleBone Black/Green 4GB eMMC) )

- After you have flashed the latest image of Jessi run-  sudo apt-get update  , followed by sudo apt-get upgrade before you run the commands in the link above

- Once you've run the commands and setup OctoPrint to start automatically on boot,setup a user name and password when you first access the OctoPrint URL (http://BeagleBoneIPaddress:5000 ), this is important, and will prevent other folks on your network from accessing/messing around with your 3D printer.

- Now as part of the setting section of OctoPrint, you will have to select your 3D printer serial port and baud-rate as shown in the screen shot below(in my case I am using a Printrbot Simple Metal)

image

 

To setup a webcam for monitoring, you will have to run the following commands to install MJPG-Streamer

-First check if your webcam is detected by the BeagleBone

   lsusb

image

   I am using the Logitech HD Webcam (C270)

 

- Install the 3 libraries that MJPG-Streamer requires using the command

    sudo apt-get install libjpeg62-turbo-dev imagemagick libv4l-dev

 

- Download the modified version of MJPG-Streamer from Shrkey github repo, and then extract it, and install

  wget https://github.com/shrkey/mjpg-streamer/raw/master/mjpg-streamer.tar.gz

  tar -xvf mjpg-streamer.tar.gz

  cd mjpg-streamer

  make

  sudo make install

 

- Now, if you are using the same webcam as I am run the following command

./mjpg_streamer -i "./input_uvc.so -y YUYV" -o "./output_http.so -p 8088 -n -w ./www"

Note: if you are using a different web cam you may have to modify the above command to include the video format of your webcam. To check the video format run

v4l2-ctl --list-formats

 

If the above command is successful, you should have access to the video feed of you webcam at the url

http://BeagleBoneIPaddress:8088

image

 

- Now are part of your OctoPrint - webcam setting, setup the Stream URL and Snapshot URL

image

 

- Save and reboot the OctoPrint service using the command

sudo service octoprint reboot

Now you should see your webcam stream in the control tab as shown in the screen shot below.

image

 

Note:

If you want to webcam to start on reboot you will have to add the above ./mjpg_streamer command to crontab file.

 

There are a lot of feature and plugin that I still need to explore as part of Octoprint, i will update the blog if I come across something interesting..

 

Here are a STL files you can use to 3D print yourself a BeagleBone case

Suggested printer setting

Layer height - 0.2mm

Fill Density - 20 %

image

Attachments:
BBCaseSTLs.zip
  • Sign in to reply

Top Comments

  • clem57
    clem57 over 9 years ago +1
    Nice case and color. Clem
Parents
  • gihu
    gihu over 9 years ago

    Looks great!!

    Sorry for my lack of knowlegde on this, then The BBB/RPi acts as a kind of printer server? And you plug the 3d printer to the BBB/RPi over USB?

    Will it work with a Makerbot?

     

    Regards

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • clem57
    clem57 over 9 years ago in reply to gihu

    Can not be sure if compatible, but sounds like a simple matter of programming.

    Just my two cents worth,

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • clem57
    clem57 over 9 years ago in reply to gihu

    Can not be sure if compatible, but sounds like a simple matter of programming.

    Just my two cents worth,

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube