Giter VIP home page Giter VIP logo

proj_eggbotapp's Introduction

Eggbot

Co-worker: Zhiling Zhang(张志凌), Zijie Zhou(周子杰), and Siyuan Liu(刘思源)

1. Overview

Our eggbot has 2 servos to control the position of eggs and the angle of the pen, a stepper motor to control the height of the pen and a microcontroller unit to manage all these motors.

To draw images on eggs, we also develop an App on iPad to allow users either draw or upload images.

eggbot_app

The whole structure is shown in the following image, basically 3 parts:

  • User Interaction Application
  • Embedded System
  • Mechanical Structure

eggbot_structure

2. Image Processing

The image that is not drawn directly on the iPad must be pre-processed to extract edges of the main object on it. We simply first apply Canny operator to detect and extract the edges, like this

eggbot_image_processing

However, our eggbot doesn't draw images like printers -- pixel by pixel. Instead, the eggbot draws a continuous curve on an egg, just like human! To this end, we should decompose the black-white image into many different continues curves and save these points. For each curve, we only need save the start point and the offsets.

3. PCB Design

The embedded system is based on STM32F105. The system has 3 parts:

  • Microcontroller
  • Stepper Driver
  • Power Management

Details can be found in the following circuit diagram.

PCB Circuit

Moters need 12V power while microcontroller only needs 5V, so we add the power management unit.

4. Application Development

The iPad application is written by Swift linked with OpenCV, a C++ library.

3 functions was embedded in this application, namely

  • User Interation
  • Image Processing
  • Data Comunication

The User Interation allows users to either draw images on the iPad or upload images from photo library. The image processing was introduced in the [2. Image Processing](#2. image-processing).

The EggBot.xcodeproj directory is Xcode Project file in macOS

The Eggbot directory stores source files

This repo lacks Opencv framework that is necessary for the APP, so please download it manually (This files are too big to upload to GitHub)

proj_eggbotapp's People

Contributors

yxli2123 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.