PIC18 Pulse Width Modulation (PWM) DC Motor Speed Controller with the RPM Counter Project

Equipped with sophisticated Enhanced Capture/Compare/PWM (ECCP) peripheral the Microchip PIC18F14K50 microcontroller could produce up to four PWM channels output. The enhanced PWM (Pulse Width Modulation) mode in ECCP peripheral is capable to drive the full bridge DC Motor circuit directly both in forward or reverse direction. It also could generate single PWM output on the selectable PIC18F14K50 pins when ...

Read more

The LM324 Quad Op-Amp Line Follower Robot with Pulse Width Modulation

Designing a simple and yet functional Line Follower Robot (LFR) is always a fascinating and challenging subject to be learned, the LFR actually could be implemented in many ways start from a simple two transistors to a sophisticated PID (Proportional, Integrate and Differential) which take advantage of the programmable feature of microcontroller to calculate the PID equation to successfully navigate the bla ...

Read more

H-Bridge Microchip PIC Microcontroller PWM Motor Controller

One of the advantages using the Microchip PIC microcontroller Pulse Width Modulation or PWM for short is; this PWM peripheral circuit is designed to control the DC motor using the full bridge mode PWM feature. The PWM peripheral works by supplying the correct signal to the H-Bridge DC motor circuit such as speed controlling and changing the DC motor direction. Therefore on this tutorial we will learn to use ...

Read more

Using Serial Peripheral Interface (SPI) with Microchip PIC18 Families Microcontroller

The Serial Peripheral Interface (SPI) is one of the popular embedded serial communications widely supported by many of today’s chip manufacture and it considered as one of the fastest serial data transfer interface for the embedded system. Because of its special in/out register configuration, the SPI master device could transfer its data and at the same time it receive a data from the SPI slave device with ...

Read more

Basic Servo Motor Controlling with Microchip PIC Microcontroller

The servo motor is widely used in model hobbyist such as airplane R/C model for moving the rudder, ailerons, elevators and acceleration control or in the car R/C model for steering and acceleration control. In this tutorial we will learn how to control the servo motor as well as the simple close loop control algorithm for this servo motor. The servo motor basically is a high quality geared DC motor equipped ...

Read more

How-to use PWM to Generate Analog (or Analogue) Voltage in Digital Circuits

Many times, designers are faced with the need of generating analogue or analog voltage levels in purely digital circuits. Although the market provides today a very broad range of dedicated digital-to-analogue converters, putting such a device in the schematic has a negative impact on the overall cost of the system. 1. Introduction In the first part of this article (Generating Analog Voltage with Digital Cir ...

Read more

DC Motor Speed Control using PWM with PIC Microcontroller

I already posted about Interfacing DC Motor with PIC Microcontroller. In our robotics applications we may have to control the speed of the DC Motor. In this tutorial we will see how to control the speed of a DC Motor using Pulse Width Modulation (PWM). By using PWM we can easily control the average power delivered to a load and by thus we can easily control the speed of the DC Motor. You may think that a va ...

Read more

pulse width moduration(PWM) for lcd 2 line For Basic PRO Compiler

@ device pic16f877 define osc 4 define adc_bits 8 define adc_clock 3 define adc_sampleus 50 Define LCD_DREG PORTD ' Define LCD connections Define LCD_DBIT 4 Define LCD_RSREG PORTD Define LCD_RSBIT 1 Define LCD_EREG PORTD Define LCD_EBIT 0 RW var portd.2 low RW 'LCD R/W low = write trisa = $ff trisd = $00 adcon1 = 0 num var word LCDOUT $FE,1,"lcd_read" pause 3000 while(1) gosub read_value gosub display pause ...

Read more

LED Heart PWM Fading using PIC18F252

With my Grandma's birthday fast approaching I wanted to put something together that was not too complicated but still sweet enough to make for a cool widget gift. Since fading LEDs never seem to go out of style and grandmas always love to see a heart, putting two and two together here was a no-brainer. The concept for this small birthday present was to create a small heart shape with red LEDs and then to dr ...

Read more

8 Channel PWM LED Chaser for 16F628A and 16F88

Description This neat little circuit provides 8 LEDs directly driven from the PIC along with a single mode control switch.  The firmware elsewhere on this page drives the LEDs with a 5 bit PWM signal providing each of the 8 LED channels with four levels of intensity; off, dim, mid, bright.  A number of sequences are programmed into the firmware to provide some interesting visual effects and chase sequences, ...

Read more
Scroll to top