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
Pi Chef Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Pi Chef Design Challenge
  • More
  • Cancel
Pi Chef Design Challenge
Blog S.H.E.L.F. - 3D model, OpenCV - Pi Chef Design Challenge - Blog post #3
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: milosrasic98
  • Date Created: 2 Feb 2018 9:33 PM Date Created
  • Views 599 views
  • Likes 5 likes
  • Comments 2 comments
  • pi chef design challenge
Related
Recommended

S.H.E.L.F. - 3D model, OpenCV - Pi Chef Design Challenge - Blog post #3

milosrasic98
milosrasic98
2 Feb 2018

This week has been pretty fun playing around with the Raspberry. I am new to the platform so I didn't know what to expect. Turns out there are a lot of great tutorials, guides and books online which helped me a lot on getting started with it. For this week i managed to write Arduino data to a file on the Raspberry, to do the first 3D model of the shelf and to start with computer vision. Here is the complete rundown of this things:

 

1. 3D model

For the 3D model I used Autodesk Inventor, a great and intuitive program. The model helped me with some of the decisions regarding the placement of bigger modules and also making it so its easy to assemble. I went with a two piece design where the left one is for heavier things and the right one is for lighter things like spices etc. Here is a picture of the model:

image

I decided to go with different thicknesses of wood to try to make it as light as possible. The model also gave an idea for where to place the Raspberry and Arduino, which will be inside the right part of the shelf, this way it will remove a lot of clutter and the user will have an easier time finding the things he needs. Here is the picture of the back where those modules will go:

image

There are two things missing on this model and those are the support legs and the camera mount. There will be three support legs one on each side and one in the middle which will split into two to accommodate both the left and right part. The left part will be supported by 4 50kg load cells (right), while the right part will be supported by two 10kg load cells (left) (This is too much I know, but these are the ones I have at disposal atm, the thing i am looking at is accuracy which will be good for both parts). When it comes to the camera mount it will have a small servo which will swivel the camera around so I can get the view of the whole shelf, I will be using a 50cm extension cable for the camera.

image

 

2. Writing to a file with Arduino

For this I used an open source program called grabserial (https://raw.githubusercontent.com/tbird20d/grabserial/master/grabserial ).I found several ways to do this but this one stood out as the simplest of the bunch. All I needed to do was edit the baud rate and add the file to which the programs writes the data.

 

3. Computer vision

The last thing I did this week and the newest thing by far that I have done is the start of computer vision (OpenCV). I found a lot of great tutorials and books online, and am going slowly to get to know it as best as I can. For now I can do some simple color, line and circle detection. I am trying to go through as much as I can and experiment along the way so I can see what is the best and easiest I can do for the labels later. These are some of the programs I wrote during this week, the first one focuses on color detection (a wide range of the green color), and the other program on circle detection. Here are the images and sample codes:

image

 

image

The codes are the attachments in this blog. Thank you for reading all the way, hope you like the blog!

 

Milos

 

Attachments:
CircleDetection.txt.zip
Greenpy.txt.zip
  • Sign in to reply
  • e14phil
    e14phil over 7 years ago

    That is pretty awesome!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dixonselvan
    dixonselvan over 7 years ago

    A solid foundation is all you need to achieve great heights and milosrasic98 you have started openCV part of your project very well. I have kept an eye for CV projects but never started doing one. With the output you have shown and with the code, i’m encouraged to try one soon.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
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