Automatic SMD Counter

Nice DIY project to help us count SMD parts correctly and preserve time and effort.

IntermediateFull instructions provided5 hours665
Automatic SMD Counter

Things used in this project

Story

Read more

Custom parts and enclosures

STL file for 3D Printing

Schematics

Block diagram

H0FR7 SPST MOSFET Switch Factsheet

H3BR6 6 Digit Seven Segment Factsheet

H03R00 DC DC Power Supply Factsheet

H3BR6x-Hardware

H0FR7x-Hardware

H03R0x-Hardware

Code

topology.h

C/C++
/*
 BitzOS (BOS) V0.2.9 - Copyright (C) 2017-20232 Hexabitz
 All rights reserved

 File Name     : topology.h
 Description   : Array topology definition.

 */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __topology_H
#define __topology_H
#ifdef __cplusplus
 extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32g0xx_hal.h"

#define __N	2					// Number of array modules

// Array modules
#define _mod1	1<<3
#define _mod2	2<<3

// Topology
static uint16_t array[__N ][7] ={
	{_H0FR7 , _mod2 | P3, 0, 0, 0, 0, 0}, 	 // Module 1
	{_H3BR6, 0, 0,_mod1 | P1, 0, 0, 0},     // Module 2

};

// Configurations for duplex serial ports
#if ( _module == 1 )
	#define	H0FR7 	      1
	#define	_P1pol_normal	1
	#define	_P2pol_normal 1
	#define	_P3pol_normal	1
	#define	_P4pol_normal	1
	#define	_P5pol_normal	1
	#define	_P6pol_normal	1
#endif

#if ( _module == 2 )
	#define	H3BR6		      1
	#define	_P1pol_normal	1
	#define	_P2pol_normal	1
	#define	_P3pol_reversed	1
	#define	_P4pol_normal	1
	#define	_P5pol_normal	1
	#define	_P6pol_normal	1

#endif


#ifdef __cplusplus
}
#endif
#endif /*__ topology_H */

/************************ (C) COPYRIGHT HEXABITZ *****END OF FILE****/

Automatic SMD Counter using Hexabitz - H0FR7 Firmware.zip

C/C++
Use Hexabitz V0.2.9 release firmware and build this code
No preview (download only).

Automatic SMD Counter using Hexabitz - H3BR6 Firmware.zip

C/C++
Use Hexabitz V0.2.9 release firmware and build this code
No preview (download only).

H0FR7x-Firmware

H3BR6x-Firmware

Credits

Mahmoud Mardnly
12 projects • 19 followers
Embedded System Engineer
Contact
Mohamad Khatib
3 projects • 5 followers
Contact
Aula 💡🕊️
60 projects • 226 followers
Electronic Engineering
Contact
Ibrahim Zaeiter
2 projects • 11 followers
Electronic Systems Engineer
Contact

Comments

Please log in or sign up to comment.