Using Pic Microcontroller

Connect USB HID schematic

Connect USB HID with PIC18F4450 Code

Universal Serial Bus (USB) provides a serial bus standard for connecting a wide variety of devices, including computers, cell phones, game consoles, PDA’s, etc. USB Library contains HID routines that support HID class devices, and also the generic routines that can be used with vendor specified drivers. USB HID Class The HID class consists primarily of devices that are used by humans to …

Connect USB HID with PIC18F4450 Code Read More »

USB Indoor Outdoor Thermometer

USB Indoor/Outdoor Thermometer using PIC18F2550 microcontrollerUSB Indoor/Outdoor Thermometer using PIC18F2550 microcontroller

USB Indoor/Outdoor Thermometer (or, ‘My first USB device’) This is a simple design that demonstrates the USB peripheral on the PIC 18Fs. There are a bunch of examples for the 18F4550 40 pin chips online, this design demonstrates the smaller 18F2550 28 pin version. The PCB uses surface mount parts, but all components are available …

USB Indoor/Outdoor Thermometer using PIC18F2550 microcontrollerUSB Indoor/Outdoor Thermometer using PIC18F2550 microcontroller Read More »

Connect Matrix Keypad schematic

Connect Matrix Keypad with PIC Controller Code

The mikroC PRO for PIC provides a library for working with 4×4 keypad. The library routines can also be used with 4×1, 4×2, or 4×3 keypad. For connections explanation see schematic at the bottom of this page. External dependencies of Keypad Library The following variable must be defined in all projects using Keypad Library: Description …

Connect Matrix Keypad with PIC Controller Code Read More »

Connect I²C schematic

Connect I²C with PIC

The I²C full master MSSP module is available with a number of PIC MCU models. mikroC PRO for PIC provides library which supports the master I²C mode.   Important : Some MCUs have multiple I²C modules. In order to use the desired I²C library routine, simply change the number 1 in the prototype with the appropriate module number, i.e. I2C2_Init(100000); Library Routines I2C1_Init I2C1_Start I2C1_Repeated_Start I2C1_Is_Idle I2C1_Rd I2C1_Wr …

Connect I²C with PIC Read More »

USB GLCD expansion board

USB & GLCD expansion board for 8051SBC using pic microcontroller

Simple expansion board for 8051SBC provides easy USB port and graphic LCD interface. I am planning to design the x86 board for some of my application that needs more computing capability. One of the features that I need to add to the x86 board is the USB port. I found the ASIC that enables 8-bit …

USB & GLCD expansion board for 8051SBC using pic microcontroller Read More »

digital potentiometer

How to interface MAXIM’s DS1868 digital potentiometer with a PIC microcontroller

Potentiometers find applications in many electrical devices. For example, a light dimmer uses a potentiometer to control the brightness of lamps. In amplifiers, they are used to control the output volume of the music, or change the bass level. In an adjustable power supply we see potentiometers to vary the output voltage and current. In …

How to interface MAXIM’s DS1868 digital potentiometer with a PIC microcontroller Read More »

USB Stepper Motor Driver (1)

USB Stepper Motor Driver using pic microcontoller

USB Stepper Motor Driver In this project we are going to drive a unipolar Stepper motor (5 wire) using USB interface from a PC Computer. This project is an application of the USB Interface Board PIC18F4550 which was published here in the past. You can run other stepper motors too. It is simple and easy to make, we are going …

USB Stepper Motor Driver using pic microcontoller Read More »

Connect CAN SPI schematic

Connect CAN-SPI with PIC Controller

The SPI module is available with a number of the PIC compliant MCUs. The mikroC PRO for PIC provides a library (driver) for working with mikroElektronika’s CANSPI Add-on boards (with MCP2515 or MCP2510) via SPI interface. The CAN is a very robust protocol that has error detection and signalization, self–checking and fault confinement. Faulty CAN data and remote frames are re-transmitted automatically, similar to the …

Connect CAN-SPI with PIC Controller Read More »