Use devices on the Useful PIC I/O Devices page instead of trying to design and build them yourself (especially H-bridges and stepper motor controllers).
Research and order free samples for any PICs needed via these links:
Make sure the selected model is supported by the Lab software before ordering. Make sure it is listed in the software, and make sure a test program compiles before placing an order.
Use the PIC16F88 where possible:
most familiar from Lab work.
can use multiple PICs in design if necessary (and to subdivide tasks and I/O demands).
pinout diagram and the special features summary (and print and insert this in your design notebook).
“Oscillator Configurations” for “OSCCON” settings.
“I/O Ports” for pin functions (e.g., open-drain or not, Schmitt Trigger, weak pull-ups, analog/digital, etc.) and important “Special Function Registers” (e.g., ANSEL, with details later in data sheet in “Analog-To-Digital Converter (A/D) Module”).
Be sure to look at the “Electrical Characteristics” section of the data sheet of the PIC (or other microcontroller) you are using to be aware of current limitations for each pin, each port, and the entire chip. If the currents are not sufficient for the external components you are using, you will need to use transistors, relays, and/or buffers to boost output currents.
Divide and conquer (implement and test only one thing at a time).
When debugging (finding errors), remove (or comment out) all nonessential and non-related code to help you narrow down where the error might be occurring (and add Lcdout commands throughout to help track and diagnose the problem).
Implement an LCD early in your design (even if it isn’t required in the final solution) so you can display messages and values while developing and debugging.
When having trouble, carefully read the command descriptions in the PicBasic Pro manual (printed copies available in the Lab) and study the examples in the textbook and in the PIC section on the project resources page.
Be very careful with Configuration Settings every time you compile a program onto a PIC (e.g., if the Code Protect bit is ON, you will never be able to program that PIC ever again. Also, if the I/O pin functions are not set correctly, the I/O won’t work properly). See the PIC16F88 code template and the PIC programming procedure for information on how to automate this.
If you want to study and learn from various examples of PicBasic Pro code, many are provided under “PIC – programming examples” on the project resources page.
Be very careful when applying power to circuits and sub systems (e.g., actuators).
If using a variable-voltage power supply, set the voltage before cables are attached to your circuits.
If using more than one power supply (or battery or AC adapter), with different voltage levels, be very careful to not switch them by mistake.
Applying a high voltage to a PIC or other digital IC will damage them instantaneously and permanently.
Consider using different connectors for the different supplies to prevent a possible mistake (which can be very costly and time-consuming to fix).
If using an AC cable to power components in your project, attach earth ground to your project chassis (or electrical enclosures) to prevent a shock hazard and to help provide shielding from EMI.
Watch as many videos as possible on the YouTube Channel: Great Scott (for lots of fully-documented mechatronics projects ideas).