GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - LMazzole/SmartFactory_Vehicle-Basis: The SmartFactory_Vehicle-Basis is an modular part of the SmartFactory Project. It consists of three modules: Environment-Detection, Drive-Control and Hoist-Control.

BranchesTags
Open more actions menu

Latest commit

 

History

20 Commits
20 Commits

Folders and files

NameName
Last commit message
Last commit date
docs
docs
 
 
doxygen
doxygen
 
 
src
src
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
library.json
library.json
 
 

Repository files navigation

SmartFactory_Vehicle-Basis

The SmartFactory_Vehicle-Basis is an modular part of the SmartFactory project.

SmartFactory_Vehicle-Basis is a vehicle which is equipped with a drive, sensors (line-detection, sonar and a camera) and a hoist. It consists of three modules:

  • Environment-Detection
  • Drive-Control
  • Hoist-Control

Multiple nested Finite State Machines (FSM) based on the pattern of the ArdFSM are used to control the processes.

Table of contents

  • The SmartFactory project
  • Tools and technologies
    • Doxygen
    • VSCode PlatformIO
    • MQTT
  • Documentation
    • Hardware
    • Software
      • Dependency graph
      • Collaboration diagram
      • Important functions and files
        • HardwareConfiguration.h
  • FAQ's
    • I'd like to use this code in my project. What do I need to know?
  • ToDo's
    • Hardware
    • Software
  • Contributors
  • Changelog
  • License

The SmartFactory project

SmartFactory_Vehicle-Basis is part of the SmartFactory project. It provides a library with basic vehicle functions.

Other SmartFactory-components are:

  • SmartFactory_MQTTCommunication

A possible implementation of the SmartFactory project can be seen in the Sortic-Showcase:

The associated repositories are:
SmartFactory-Sortic
SmartFactory_Box-Sortic
SmartFactory_Vehicle-Sortic
SmartFactory_Vehicle-Basis
SmartFactory_MQTTCommunication

Tools and technologies

The source code is written in C++. To achieve this project, the following listed tools and technologies were used.

Doxygen

Doxygen is used for the documentation of the source-code.
An intorduction to Doxygen and how to install it can be found in the ArdFSM-Repo.

VSCode PlatformIO

The used IDE is VSCode with the PlatformIO-extension.

MQTT

For a description of the MQTT-Technologie take a look at the MQTTCommunication-ReadMe.

Documentation

Hardware

[Source: FTS, BA FS18, Huber,Paly]

To build a SmartVehicle the following hardware is needed:

  • 1x Adafruit Feather M0 WiFi - ATSAMD21 + ATWINC1500 from Adafruit.
  • 1x DC Motor + Stepper FeatherWing Add-on
  • 3x Battery with an JST 2.0 connection
  • 1x PixyCam
  • 1x Sonar - HC-SR04
  • 5x IR Sensor - IR-Sensor breakout-board
  • 1x Servo for Hoist - Bluebird Midi-Servo BMS-390
  • 1x Servo for Cam and Sonar - SG92R Adafruit 169
  • 2x Drive Lego - LEGO® Power Functions M-Motor

For detailed building instructions please contact Felix Nyffenegger.

Software

All functions and files are documented on the GitHub-Page.

It is important to mention that all functions are non-blocking and as short as possible so no other processes starves.

The Sonar and PixyCam functionalities are not implemented at the moment and are crossed out.

The interface is documented in DriveCtrl, EnvironmentDetection and HoistCtrl.

Dependency graph



Click on the image to open doxygen-documentation.

Extern libraries:

  • Adafruit Motor Shield V2 Library
  • Arduino PID
  • Servo
  • NewPing

Collaboration diagram

Click on the image to open doxygen-documentation.

Important functions and files

HardwareConfiguration.h

In HardwareConfiguration.h, all important settings for the vehicle-hardware are defined:

  • Setup for Drive
    • Speed, Motor-pins, PID-values
  • Setup for the Linedetector
    • Pin-number
  • Setup for Hoist
    • Pin-number, delay, minimal and maximal position
  • Setup for Sonar
  • Setup for Vision

FAQ's

I'd like to use this code in my project. What do I need to know?

All you need to do is adding the GitHub-Link to this repository under lib_deps in your platformio.ini file and you're set. All dependencies are downloaded automatically. The interface is documented in DriveCtrl, EnvironmentDetection and HoistCtrl.

ToDo's

Hardware

  • The battery of the vehicle must be recharged manually. Inductive charging while waiting would be desirable.
  • Sensors for line recognition have an unfavourable distance to the turning point. They should be placed closer to the vehicle axis to increase the accuracy of alignment.
  • The line recognition functions unreliably. This may be caused by an imperfect white background and needs to be optimized.

Software

The open ToDo's can be found in the documentation on the GitHub-Page

  • Implement Sonar
  • Implement Vision

Contributors

  • Luca Mazzoleni
  • Glenn Patrick Huber
  • Robert Paly

Changelog

V 1.0 - Release BA FS19 - Luca Mazzoleni

License

MIT License

About

The SmartFactory_Vehicle-Basis is an modular part of the SmartFactory Project. It consists of three modules: Environment-Detection, Drive-Control and Hoist-Control.

lmazzole.github.io/SmartFactory_Vehicle-Basis/

Topics

arduinofinite-state-machinefsmhsriotmqttsmartfactorysortic

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

2 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.