Git Product home page Git Product logo

soldering-table's Introduction

Description of project

Project DIY Soldering table is a firmware for the STM32G031F6P6 microcontroller used to control the temperature and the output information to the OLED display . It is written in CMSIS and includes written libraries for configuring and controlling peripherals.

Structure of project

flowchart LR
A[core] --> B(device) -->|stm32g0xx.h| H[src, inc]
A[core] --> C(arm) -->|core_cm0plus.h| H[src, inc]
A[core] --> E(sys) -->|linker.ld, startup.s..| H[src, inc] 
F[common] --> |menu.h, tempControl.h...| H[src, inc]
H[src, inc] -->|i2c.c, timer.c, i2c.h, timer.h...| D{Decision}
Loading
  • Workspace is organized as in the picture. The main loop of the program is executed in main.c in the /src/ directory

    Note: But in future it will be RTOS management...

Conceptions

The project was based on the concept of FSM (finite state machine), although it is redundant. The principle of its operation is that we have event pool, in which events from different subroutines are added and processed in an endless loop. Each event has its own transition state that handles the event. In the future, the state table will be involved and the code in C ++ will probably be rewritten. The principle is shown on the slide below and you can find out more about it by following this link:

Also

In addition, the DMA and EXTI principles are implemented in the project, which allow receiving input data without loading the main computing thread.

Building

To build the program you need execute the make command in the terminal from the main working directory:

$ make build=Release

The result is 3 main formats of executable programs - .hex, .bin and .elf.

Flashing

To flash the microcontroller, you need the stlink software. To install it use the command:

$ sudo apt-get -y install stlink-tools

After it from main directory run this command:

$ st-flash write build/Release/table.bin 0x08000000

or

$ st-flash --format ihex write build/Release/table.hex

soldering-table's People

Contributors

yaaaniks 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.