Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sulaimanniazi/industrial_production_counter
A counter for industrial production items using PIC16F877A
https://github.com/sulaimanniazi/industrial_production_counter
c mechatronics microchip-pic microcontroller microcontroller-programming microcontrollers mplab mplab-ide mplabx mplabxide pic pic16f877a proteus proteus-simulation
Last synced: about 10 hours ago
JSON representation
A counter for industrial production items using PIC16F877A
- Host: GitHub
- URL: https://github.com/sulaimanniazi/industrial_production_counter
- Owner: SulaimanNiazi
- Created: 2025-02-08T19:24:36.000Z (7 days ago)
- Default Branch: main
- Last Pushed: 2025-02-09T14:23:37.000Z (6 days ago)
- Last Synced: 2025-02-09T15:28:45.630Z (6 days ago)
- Topics: c, mechatronics, microchip-pic, microcontroller, microcontroller-programming, microcontrollers, mplab, mplab-ide, mplabx, mplabxide, pic, pic16f877a, proteus, proteus-simulation
- Language: C
- Homepage:
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Industrial Production Counter
This project is a firmware application designed for the PIC16F877A microcontroller to count industrial production items. It displays the count and rate on LM016L LCD. The rate is refreshed every 10 seconds.
The firmware is developed using the MPLAB X IDE and the XC8 compiler.## Table of Contents
- [Prerequisites](#prerequisites)
- [Building the Project](#building-the-project)
- [Apparatus](#apparatus)
- [Uploading to the Microcontroller](#uploading-to-the-microcontroller)## Prerequisites
- MPLAB X IDE
- XC8 Compiler
- PIC16F877A Microcontroller## Building the Project
1. Open the project in MPLAB X IDE.
1. Ensure the XC8 compiler is selected.
1. Build the project to generate the `.hex` or `.cof` file.
1. Alternatively, you can build the project using Visual Studio Code with the MPLAB extension. Set the project output file path, name, and extension using `Ctrl+Shift+P` and selecting "Edit Project Properties".## Apparatus
Necessary components that can't be changed:
1. PIC16F877A microcontroller: To run the program.
1. LM016L LCD display: To display output.
1. Quartz Crystal and 2 1nF non polarized capacitors.Optional components depending on your circuit:
1. Button: For clear input button.
1. LED: To indicate that an item is being detected.
1. OP-47 Op - Amp: For amplifying sensory input.
1. RLY-SPNO Magnetic Relay: to provide stable 5V to CCP pin.
1. Rheostat: To adjust op - amp potential according to sensor input
1. APDS-9002 Miniature Surface-mount Light Photo Sensor: For detecting the items.
1. 5 Resistors## Uploading to the Microcontroller
After building the project, upload the generated `.hex` or `.cof` file to the PIC16F877A microcontroller using a suitable programmer.
The file can be find in either of the following paths:1. In case of using MPLAB X IDE: [dist\default\debug\Industrial_Production_Counter.X.debug.hex](./dist/default/debug/Industrial_Production_Counter.X.debug.hex)
1. In case of using VScode (if the file name was set as default): [out\Industrial_Production_Counter\default.hex](./out/Industrial_Production_Counter/default.hex)