Your EasyEDA usage duration is brief. In order to avoid advertising information, this action is not supported at present. Please extend your EasyEDA usage duration and try again.
Editor Version×
Standard
1.Easy to use and quick to get started
2.The process supports design scales of 300 devices or 1000 pads
3.Supports simple circuit simulation
4.For students, teachers, creators
Profession
1.Brand new interactions and interfaces
2.Smooth support for design sizes of over 5,000 devices or 10,000 pads
3.More rigorous design constraints, more standardized processes
4.For enterprises, more professional users
Ongoing
STD
SynScan PIC tester
License: Public Domain
Mode:Editors' pick
1.6k
1
0
0
Update time:
2021-12-30 22:29:35
Creation time:
2020-07-18 10:52:03
Description
This schematic shows how to test PIC16F886 microcontrollers after downloading the .HEX file from MPLAB IDE.
It is a common problem with these motor boards, that the hand controller displays "No response both axles". This is usually caused if the serial communication fails on the microcontrollers.
The board has 2pcs. PIC16F886 microcontollers, one for each axle. There axle stepper motors are bipolar, each coil has its own A3959SLBT stepper driver.
The PICs has the same firmware, the 21st pin (RB0) tells the PIC, is it the RA or the DEC PIC.
If the PICs failed, it is possible to replace and reload them. Be aware, every component on the PIC side of the board is glued onto the board. The easiest way to cut the PIC legs with a sharp knife right next ot the package and then the PIC can be pried up from the board with a screwdriver without damaging the delicate traces on the PCB!
The firmware (.mcf) can be downloaded from Sky-Watcher website for the motor controller, butan an empty PIC cannot be downloaded with the Windows utility through the hand controller. Luckily, the .mcf file is a .bin file, which can be converted to .HEX, which can be flashed to the PIC from Microchip MPLAB X IDE. This conversion is not simple, some bin2hex converter work, some don't.
I attached the HEQ5.HEX which worked for me. This is untouched, with code-protect flags set by Sky-Watcher. Code protect is not a problem, we don't want to read it from the PIC anyway.
Flashing the PIC with PICKit 3:
![IMG_20200812_185519.jpg](//image.easyeda.com/pullimage/PxSvNKT2guMFJm1hIibFFUbCQZs1YgUstrBxCQcN.jpeg)
If you are not familiar with PICs (like me), the PICKIT is not enough alone to download the firmware, you have to supply an external 5V (VDD) to the PIC to be able to download it. The simplest / safest is to supply from the USB 5V.
After flashing the firmware, it is possible to test the PIC,by connecting the hand-controller to the breadboard using this schematic. The +5V is supplied from USB to the breadboard. The hand-controller powered from this 5V source, through the 5-wire cable from the mounts power panel, and the HC is plugged into its original RJ-45 socket on it. DON'T connect 12V, this will damage the PIC and the USB port!!!
If the programming was succesful, the HC will display "RA/Azm... No response!" if the PIC is in DEC mode, and "Dec/Alt... No Response!" if the PIC in in RA mode.
In this case, the PIC is **working ** and it is safe to solder it on the motor board.
![IMG_20200813_103544.jpg](//image.easyeda.com/pullimage/iHskAKALjL7FRFg6AOJqNDnWtybZvAmUI3mC30Xs.jpeg)
![IMG_20200813_103612.jpg](//image.easyeda.com/pullimage/qo4u4Mn8O2YYSB2wqVrxdAsgUhGJQktPcTkrb2IL.jpeg)
(Ignore the ESP8266 @ Co. on the left side of the breadboard.)
**Important!** If the PICs are soldered on board, test the board with the motors connected. I don't know why, but the A3959SLBT motor driver ICs developed a short circuit inside, maybe because they were turned on without the motors connected and I had to replace them as well. I noticed later, that the motor driver ICs get **HOT ** if the motors are not connected, or the OUT-A (pin16) or OUT-B (pin21) are not soldered properly on the PCB. Always check the motor controller ICs by touching, if everything is fine they shouldn't be hot!
More pictures of the HEQ5 motor board: [https://photos.app.goo.gl/DFYHGF5gYhKZSGPw8](https://photos.app.goo.gl/DFYHGF5gYhKZSGPw8)
Forked project will be set private in personal workspace. Do you continue?
Clone
Project
The Pro editor is about to be opened to save as. Do you want to continue?
private message
Send message to higany
Delete
Comment
Are you sure to delete the comment?
Report
SynScan PIC tester
No Profile
Announcer: Higany
Creation time: 2020-07-18 10:52:03
Published time:
2021-12-30 22:29:35
*
Report type:
Please select report type
*
Report reason:
Please fill in the reason for your report and the content is 2-1000
words
*
Upload image:
+
Upload image
*
Email address:
Please fill in your email address
Report
*
Report type:
Please select report type
*
Report reason:
Please fill in the reason for your report and the content is 2-1000
words
*
Upload image:
+
Upload image
*
Email address:
Please fill in your email address
Report
Submitted successfully! The review result can be viewed in the personal
center, review notification.
Kind tips
Your EasyEDA usage duration is brief. In order to avoid advertising information, this action is
not supported at present. Please extend your EasyEDA usage duration and try again.
Share
Project
Copy
Copy
Scan the QR code and open it on the mobile terminal