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.
- 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
- 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
you can get 28-pin SOIC DIP adapter on this link :
https://es.aliexpress.com/w/wholesale-SOIC-28-adapter.html?spm=a2g0o.productlist.search.0
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.
IF You can get this board in PCBWAY click here
Updating More Information about this setion
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
3D Escene and physical model
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
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