Giter Site home page Giter Site logo

emre108 / control-unit-design-stm32-pcb--user-interface-python Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 205 KB

Embedded C code, Python Interface Application, Control Unit-Motor driver PCBs

C 65.84% Python 34.16%
motors python-interface sensor flow-sensor frequency uart kicad pcb power-electronics python

control-unit-design-stm32-pcb--user-interface-python's Introduction

Control-Unit-Design-STM32-PCB--User-Interface-Python-

In this project, all 12V three pump motors and one solenoid valve are controlled by trimmer potentiometers and a 5V analog input. For switching and controlling the velocity of the motors n-channel MOSFETs and Half-bridge drivers were implemented. Two four-layer PCBs were designed. One for driving the motors and the other one for the rest of the work. All power regulation circuitry, pull up-pull down resistors, voltage dividers, RC filters, etc. were implemented on the PCB board. A flow sensor was used to calculate how many liters of water going through the tube in an hour. There are also four digital inputs for an indication of the process. STM32F103 was the main controller of the process. For 12-bit resolution 4 channel analog inputs, DMA peripheral is used. For communication with the interface, UART was chosen. To generate PWM signals timer1, to capture and calculate the frequency of the flow sensor, timer2 is activated. The motors and LEDs can be controlled by a user via an interface program written in Python. In this program, the user can see analog values, digital signals, and the frequency of the sensor. Baud-rate and com-port settings are also available in the python interface. The thread feature was used to listen to a com-port that is connected. All the motors(duty cycles, ON/OFF) and indicators can also be controlled by the buttons via Python.

control-unit-design-stm32-pcb--user-interface-python's People

Contributors

emre108 avatar

Stargazers

 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.