Giter Site home page Giter Site logo

ivanchenko59 / smd_counter Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 8.9 MB

Device for counting the number of SMD elements in the tape.

C 91.18% HTML 6.93% Makefile 0.56% Assembly 1.33%
c smd smd-tape counter optical-sensor stm32 stm32f103 cmsis

smd_counter's Introduction

SMD counter

About project

The device is designed to count the number of radio components in the SMD tape. The counting is based on an optical principle using an optocoupler. The project was developed as a training project for working with STM32F103 microcontroller peripherals. The device uses the basic peripherals such as: GPIO, interrupts, timers, I2C, ADC, etc. I also used the state machine pattern. The firmware is written with CMSIS. The circuitry of the device and the PCB were also developed. The case was modeled and 3D printed.

Demo Video

Brief demonstration of the device menu Watch the video

Detailed video with a demonstration of work Watch the video

Hardware

To display information, used 0.96-inch OLED display with an I2C interface. Menu control is carried out using three buttons. The board also has a CP2102 UART converter for communicating with a computer, as well as an RFID module for reading tags, for organizing a warehouse and tracking the presence of components (not implemented at the moment).

The device is powered by two 1.5V AA batteries. To increase the voltage to 3.3V used a step-up DC-DC converter based on the NCP1402 chip.

Detailed circuit schematic

Menu organization

After turning on the device, the animation of the running SMD tape will be played on the screen.

After that, the user enters the main menu, from which you can enter the settings menu by holding the OK button, or start reading with a single press. On the screen there is a battery level, as well as a step size (for example, if two leads on the tape correspond to one component, the step is set to 2).

In order to count the number of SMD elements in the tape, press the OK button, and pass the tape through the guide slot in the housing. On the screen you will see the current number of counted items in the tape.

After the end of counting, and long holding the OK button, you will be taken to the save menu, where you can save the current value, change it, or continue counting.

Edit menu for changing the current value looks like this:

After saving, the user returns to the main menu, and the calculated value is transferred to the database, which is accessed through the settings. The settings menu looks like this:

smd_counter's People

Contributors

ivanchenko59 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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