Skip to content

This project uses PIC18F26J50 to read RPM using an encoder sensor witn a simple DC motor.

Notifications You must be signed in to change notification settings

Pybarguen/Rpm_Reader_PIC18F26J50

Repository files navigation

RPM Reader Using Encoder Sensor and PIC18F26J50

Photography

The objetive of this project is to change the speed of a motor using the PWM and read the RPM using a sensor encoder

Download the files a create a new project on MPLAB IDE.

Materials List

  • 1 -PIC18F26J50
  • 1- ST7735 128X160 TFT Dispplay
  • 1- F249 Speed sensor module
  • 1- FF030 DC Motor 3V - 6V
  • 1- AMS1117 3.3 Voltaje regulator
  • 1- Button N.O
  • 1- Mosfet IRF634A
  • 1- 2N3904 or 2N2222 Transistor
  • 1- PC817 optocoupler
  • 1- Pickit2 or recent version
  • 2- capacitor 10uF
  • 2- 1N4004 diode
  • 2- 220 Ohm Resistor
  • 3- 10K Ohm Resistor

Programs List

  • MPLAB IDE
  • Pickit 2 or recent version
  • KICAD
  • Proteus (Optional)
  • Blender

PIC18F2xJ50 Needs a basic circuit connection for work, you can make a fast circuit on your protoboard using 28-pin SOIC DIP adapter or you can make the PCB circuit : Make sure that you have read the PIC18F2xJ0 this device can be obtain in diferents packages 28-Pin SPDIP/SOIC/SSOP get the correct adapter for you device

Soic_Adapter

you can get 28-pin SOIC DIP adapter on this link :

https://www.robotshop.com/es/products/adaptador-sparkfun-soic-a-dip-28-pin?srsltid=AfmBOoozpeKQYVL6DKSeQ3S0GZn53rT4MvKraFbA1pY9f5YSlqqszgIC

https://es.aliexpress.com/w/wholesale-SOIC-28-adapter.html?spm=a2g0o.productlist.search.0

PIC18F26J50 Lite Develoment Board

This is a basic PCB board for test faster your prototypes using PIC18F26J50 microcontroller, you can use it on your protoboard I'm working in a advance version you could see it in others repositories, you can find lite_version'files on this project.

3DCircuit

IF You can get this board in PCBWAY click here

PCB from PCBWay

Updating More Information about this setion

Encoder Sensor, DC Motor Bracket and Base

this parts were built using Blender software and CAD Sketcher Addon, however you can use any CAD software for read de DXF,OBJ,STL,FBX files. I used a Laser Machine for cut the parts on MDF 2.5mm WOOD, you can see the parts of the model here and the physical model. If you can't make this part, you can also use a gear motor and simple basic encoder sensor

Technical planes

Technical Planes

3D Escene and physical model

3D Motor Support

How to Run

If you want to run the code on the microcontroller quickly Download .Hex and upload the Program on the microcontroller Using Pickit Software, you need to Know the PIC18F26J50 needs a basic circuit for work, the basic circuit is on the PIC18F26J50 Lite Develoment Board uploaded on this project, if you want some information about this click on this page:

https://www.northernsoftware.com/dev/pic18f/pic18f26j50.htm

PIC18F26J50_BasicCircuit

You can check the circuit using each module for example connect first the PIC18F26J50 with the ST7735 TFT Display and test how to work, then make the same add other module for example F249 Speed sensor module

Connect the circuit using the electronic technical planes on your protoboard

Full information can be found on the Wiki Setion

About

This project uses PIC18F26J50 to read RPM using an encoder sensor witn a simple DC motor.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages