Sunday, 23 March 2014

Reading A Switch and outputting to a LED with PIC16F88 - FlowCode - LED & Switch Simulation

Here we are using FlowCode Simulation Software for Programming and Testing  with PIC16F88 for switching LED ON or OFF Using Switches.It is the basic program for starters.


Here is the Flow code program:
Here Switches are used for respective LEDs,taking output through LED array.You will see corresponding LED blinking.

Suggested Reading:
LED & Switch-Masked inputs with PIC16F88
Lighting an LED with PIC16F88
LED & Switch-Outputting an 8-bit value with PIC16F88
Reading a switch and outputting to a LED with PIC16F88

In video you will be able to see step-wise execution of program and their effect on LED array as they blink.

Outputting an 8-bit value with PIC16F88 - FlowCode - LED & Switch Simulation

Here we are using Flow Code Simulation Software for Programming and Testing  with PIC16F88 for switching LED ON or OFF .
Here is the basic program for starters.


Here is the Flow code program:

Here values are being Set at PORTB and taking output through LED array.You will see corresponding LED blinking after interval of one second.

Values used in this program are: 
5 100 255

Here is the complete list of projects:
Tutorials for Flow Code Programming and Simulation

Learn More About LED

Masked inputs with PIC16F88 - FlowCode - LED & Switch Simulation

Here we are using Flow Code Simulation Software for Programming and Testing  with PIC16F88 for switching LED ON or OFF .Here is the basic program for starters.In this masking of Inputs is used.

Flow code program:

In video you will be able to see stepwise execution of program and their effect on LED array as they blink.You will notice only alternate LEDs are blinking and rest are not even if switching on the Toggles s/w.

Here is the complete list of projects:
Tutorials for Flow Code Programming and Simulation

Basic Theory Of Input Pins:- Most of a microcontroller’s I/O pins can be configured as an output or an input. Part 2 described the basics when a pin is configured as an output. This section describes it when it is configured as an input. A special register will control if a pin is an input or output. You need your program to set up the port direction registers as an early step when power is applied to the chip or it comes out of reset

I/O pins are usually configured in groups of 8 bit I/O ports. The program can read the port and will get a value between 0 and 255 depending on the states of the input pins. In assembly language programming there will usually be op code instructions that allow reading a single pin of a port.

Lighting an LED with PIC16F88 - FlowCode - LED & Switch Simulation

Here we are using Flow Code Simulation Software for Programming and Testing  with PIC16F88 for switching LED ON or OFF .
Here is the basic program for starters.In this a LED is made to blink (ON/OFF) after 1 second.

Here is the Flow code program:

Here is the complete list of projects:
Tutorials for Flow Code Programming and Simulation

Although you can easily test an LED by connecting it to a circuit and seeing if it will light up, you can also use a multi-meter with a diode test function to test an LED and discover a few more things about it too.
Steps:
  1. Connect the black lead to the COM terminal on the multimeter. 
  2. Connect the red lead to the Ω terminal, unless your particular model differs. 
  3. Turn the dial to the diode symbol on the multimeter. This allows for electric current to travel in one direction (the arrow) and not the other.
  4. Turn the multimeter on. The display window should indicate either 0L or OPEN. 
  5. Choose a regular red LED.

Learn More About LED

Friday, 21 March 2014

Controlling a single output pin Using PIC16F88 - FlowCode - LED & Switch Simulation

Here we are using Flow Code Simulation Software for Programming and testing the Graphical LCD with PIC16F88 for switching LED ON or OFF on sequence.
In video you will be able to see step-wise execution of program and their effect on LED array as they blink.

Here is the Flow code program:

Two Channel Scope Example Using PIC16F88 - FlowCode - Graphical LCD Simulation

Here we are using Flow Code Simulation Software for Programming and testing the Graphical LCD with PIC16F88 for displaying sampling being done by two ADC Channels represented by Green and Red POT drivers.You will see in video variation in values of ADC channels is getting reflected on Graphical LCD

Here is the Flow code program:

Here is the complete list of projects:
Tutorials for Flow Code Programming and Simulation

Macros used are 1.Graphical LCD-2 Channel Scope Example Macro - Plot_ADC

Pong game Example Using PIC16F877 - FlowCode - Graphical LCD Simulation

Here example of PONG game is used for demonstration on Graphical LCD in Flow Code Simulation Software.You will be able to play the game while simulating the program.

In this program Red and blue colors are use for two different sides on the LCD.Here micro-controller used is PIC16F877.


Here is the Flow code program:


Here is the complete list of projects:

Tutorials for Flow Code Programming and Simulation

Macro Used in Programming are

Thursday, 20 March 2014

Three-D Text Example Using PIC16F88 - FlowCode - Graphical LCD Simulation

Graphical LCD-3D Text Example-Flow Code with PIC16F88

Here we are using Flow Code Simulation Software for Programming and testing the Graphical LCD with PIC16F88 by printing text for display.You will see in video Ingenuity Dias being displayed on LCD.


Flow code program:

Here is the complete list of projects:
Tutorials for Flow Code Programming and Simulation

Wednesday, 19 March 2014

NAND Logic Gate - Boolean Algebra in Digital Electronics - Proteus Simulation

Logic Gates- NAND Gate

This is a NOT-AND gate which is equal to an AND gate followed by a NOT gate. The outputs of all NAND gates are high if any of the inputs are low. The symbol is an AND gate with a small circle on the output. The small circle represents inversion.


Logic Table

           
Related Links:

Logic Gates- AND Gate
Logic Gates- OR Gate
Logic Gates- NOT Gate
Logic Gates- NOR Gate
Proteus Tutorials with Examples - Home Page - Index 

Wednesday, 12 March 2014

ADC Sampling and Outputting to a LCD with PIC16F1937 - Flow Code Simulation

Flow Code-ADC Sampling and outputting to a LCD(LCD with PIC16F1937)

Here is the example of using ADC and manipulating the variables for desired results.In this example we are using LCD to display the results as seen in the examples code and videos.

Here is the Flow code program:
LCD(16x2) Display Related Programs
  1. ADC-Voltage as Float(LCD with PIC16F1937)
  2. ADC-Voltage as String (LCD with PIC16F1937)
  3. Printing Number on 16x2 LCD Display with PIC16F88
  4. Printing and Updating Number on 16x2 LCD Display
  5. Printing a Two line(String) message (LCD 16x2) PIC16F88
Here is the complete list of projects:
Tutorials for Flow Code Programming and Simulation

Counting switch presses(Seven Segment Display with PIC16F88) - Flow Code Simulation

Flow Code-Counting switch presses(Seven Segment with PIC16F88)

Here is the example of counting using switch presses.In this example we are using 7 Segment Display to display the results of  calculation as seen in the examples code and videos.


Here is the Flow code MAIN program:
Suggested Reading:
Counting using loops Using Seven Segment with PIC16F88 Microcontroller
Seven Segment with PIC16F88 Microcontroller And Displaying Numbers

Here is the complete list of projects:
Tutorials for Flow Code Programming and Simulation

Counting switch presses Macro - CHECK_BOUNDS:

Timed Counter And Use of Timer Interrupt Using PIC16F88 Microcontroller - Flow Code Simulation

Flow Code-Timed Counter And Use of Timer Interrupt(PIC16F88)

In this example of counting seconds using Timed Counter and Timer Interrupt.In this example we are using 7 Segment Display to display the results of calculation as seen in the examples code and videos.

Here is the MACRO for Interrupt Program Code:


Here is the Flow code MAIN program:
Complete list of projects:
Tutorials for Flow Code Programming and Simulation

ADC-Voltage as String Displaying Value On LCD with PIC16F1937 Microcontroller - Flow Code Simulation

Flow Code-ADC-Voltage as String (LCD with PIC16F1937)

Here is the example of using ADC and manipulating the variables for desired results.

In this example we are using LCD to display the results of ADC calculation as float values on the LCD as seen in the examples code and videos.

Here is the Flow code program:

LCD(16x2) Display Related Programs

  1. ADC-Voltage as Float(LCD with PIC16F1937)
  2. ADC Sampling and outputting to a LCD(LCD with PIC16F1937)
  3. Printing Number on 16x2 LCD Display with PIC16F88
  4. Printing and Updating Number on 16x2 LCD Display
  5. Printing a Two line(String) message (LCD 16x2) PIC16F88
Here is the complete list of projects:
Tutorials for Flow Code Programming and Simulation

In video you will be able to see stepwise execution of program and their effect on LCD in panel which is by default in the software .

ADC-Voltage as Float Value Displaying On LCD with PIC16F1937 Microcontroller - Flow Code Simulation

Here is the example of using ADC and manipulating the variables for desired results.In this example we are using LCD to display the results of ADC calculation as float values on the LCD as seen in the examples code and videos.

Flow code program:

LCD(16x2) Display Related Programs
  1. ADC-Voltage as String (LCD with PIC16F1937)
  2. ADC Sampling and outputting to a LCD(LCD with PIC16F1937)
  3. Printing Number on 16x2 LCD Display with PIC16F88
  4. Printing and Updating Number on 16x2 LCD Display
  5. Printing a Two line(String) message (LCD 16x2) PIC16F88
  6. ADC Simulation
  7. Servo with ADC control input
  8. Motor Types
  9. DC Motor
Here is the complete list of projects:
Tutorials for Flow Code Programming and Simulation

Micro-controller used is PIC16F88 with 16x2 LCD for printing numbers and then updating them.

In video you will be able to see step-wise execution of program and their effect on LCD in panel which is by default in the software .

Here is the Flow code Simulation and how to do Video Tutorial:


You can Download Flow Code Program File :

Saturday, 1 March 2014

Using Seven Segment with PIC16F88 Microcontroller And Displaying Numbers - Flow Code Simulation

Here a Sample Program and simulation in Flow Code.We have used PIC16F88 micro controller (From Microchip Technology 8-bit Micro-controllers).Seven Segment is used for Displaying numbers.At first single number is being displayed afterwards combination of numbers are used.

Flow code program:
Suggested Reading
Counting switch presses(Seven Segment Display with PIC16F88)
Counting using loops Using Seven Segment with PIC16F88 Microcontroller

Here is the complete list of projects:
Tutorials for Flow Code Programming and Simulation
Micro-controller used is PIC16F88 with 7 segment Display for printing numbers and then updating them.










Readers' Choice