Saturday, 26 December 2015

Geometric Progression - Write A Program To Find SUM of GP Sequence -C Programming Examples

Geometric Progression Programming In C IngenuityDias
As we have started C Programming coding with Example Series, We have published last post Write A Program To Find SUM of AP. We have chosen to start with mathematical series and in this post you will find some basic idea and some useful concepts about Geometric Progression (G.P.).You can download C Codes below.Please let us know your feedback.

Suggested Reading:
Integrated Environment : TURBO C/C++ - Getting Started
TURBO C/C++: Installer and Installation
C Language Programming With Examples-INDEX

Arithmetic Progression Step-wise Video Tutorial(See C- Codes Below ):


      


Geometric Progression Basic Guide:-A sequence of non-zero numbers is a Geometric Progression (G.P.) if the ratio of any term and its preceding term is always constant.

A Geometric Progression (G.P.) is given by a, ar, ar2, ar3, ...
where a = the first term , r = the common ratio


Examples for Geometric Progressions
1, 3, 9, 27, ... is a geometric progression (G.P.) with a = 1 and r = 3


2, 4, 8, 16, ... is a geometric progression (G.P.) with a = 2 and r = 2

Nth term of a geometric progression (G.P.)

Sum of first N terms in a geometric progression (G.P.)

Wednesday, 23 December 2015

Arithmetic Progression - Write A Program To Find SUM of AP C Programming Examples


We re starting C Programming Tutorial Series.We will try to satisfy our readers by giving some quality content in this series.

To Begin-with we have chosen to start with mathematical series.First series that always troubles students is Arithmetic progression.In this post you will find some basic idea and some useful concepts below.

Arithmetic Progression Step-wise Video Tutorial(See C- Codes Below ):






Integrated Environment : TURBO C/C++ - Getting Started
TURBO C/C++: Installer and Installation
C Programming Basic Questions
Variables-Pointer-Array-Files
Write A Program To Find SUM of Geometric Progression
Write A Program To Find SUM of Infinite Harmonic Progression

Arithmetic Progression / Sequence  Mathematically Explained:

Arithmetic progression (AP) is a sequence of numbers in which each term after the first is obtained by adding a constant, d to the preceding term. The constant d is called common difference.

An arithmetic progression is given by a, (a + d), (a + 2d), (a + 3d), ...
where a = the first term , d = the common difference

Sum of first N Terms of AP:

Nth term of an arithmetic progression Tn = a + (n – 1)d
(where Tn = nth term, a= the first term , d= common difference)

Number of terms of an arithmetic progression
n=(l−a)d+1
(where n = number of terms, a= the first term , l = last term, d= common difference)

Tuesday, 15 December 2015

String To Float Data Type Conversion Using Microchip Controller PIC16F877A In Flowcode Programming Software

In previous post Float to String Conversion we have seen how to convert Float types of data in String type of Arrays using simple programming techniques.In this project we will be using FlowCode Software for writing a program to convert String Array or Array of Character to Floating type of Data using micro-controller of Microchip company PIC16 Family Micro controller PIC16F877A for testing and Simulation.This Project shows how we are outputting results values to LCD ( Liquid Crystal Display ).Varying the delay and write-erase sequence can be manipulated to different types of combination and lots of desired result.
Flow code program Snapshot(Above).

Here value used is of PI=3.1473



Command used is 
string = FloatToString$ (float)
float = StringToFloat$ (string)

Recent Related Programs
LCD Interfacing With Keypad PIC16F877A
Keypad and LED Interfacing With PIC16F88

More for Reading
ADC-Voltage as String Displaying Value On LCD with PIC16F1937
ADC-Voltage as Float Value Displaying On LCD
Printing Number on 16x2 LCD Display with PIC16F88
Printing and Updating Number on 16x2 LCD Display
Printing a Two line(String) message (LCD 16x2) PIC16F88



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


FlowCode Simulation [How To Do] Video Tutorial:



A brief introduction to the concept of Data types and String Array:-

Data types in c refer to an extensive system used for declaring variables or functions of different types. The type of a variable determines how much space it occupies in storage and how the bit pattern stored is interpreted.

Sunday, 29 November 2015

Float to String PIC16F88 FlowCode Microcontroller Programming And Simulation

In this sample project we are using Programming Software FlowCode for writing a program to convert Float Data to String Array using micro-controller of PIC16 Family PIC16F88 for testing and Simulation.Project shows how we are outputting results values to LCD ( Liquid Crystal Display ).Varying the delay and write-erase sequence can be manipulated to get desired result.
Above is the Flow code program Snapshot.

Recent Related Programs
String To Float Data Type Conversion
LCD Interfacing With Keypad PIC16F877A
Keypad and LED Interfacing With PIC16F88


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


Flow code Simulation and how to do Video Tutorial:

A brief introduction to the concept of Data types and String Array:-

Data types in c refer to an extensive system used for declaring variables or functions of different types. The type of a variable determines how much space it occupies in storage and how the bit pattern stored is interpreted.Data Types in C can be classified as follows −(a) integer types and (b) floating-point types.

A. Integer Types: The following table provides the details of standard integer types with their storage sizes and value ranges(See Image above).

B. Floating-Point Types: The following table provide the details of standard floating-point types with storage sizes and value ranges and their precision(See Image above).

Sunday, 6 September 2015

LCD Interfacing With Keypad PIC16F877A FlowCode Microcontroller Programming And Simulation

In this sample project we are using Programming Software FlowCode for Programming LCD ( Liquid Crystal Display ) With Keypad and Testing And Interfacing with PIC16F877A.It shows how to use and simulate and program Keypad with LCD for use in different projects.In this Project we are testing Keypad and outputting binary values to LCD ( Liquid Crystal Display ).Varying the delay and write-erase sequence can be manipulated to get desired result.

Above is the Flow code program Snapshot:

Recent Related Programs
Keypad and LED Interfacing With PIC16F88

LCD(16x2) Display Related Programs

Voltage as Float(LCD with PIC16F1937)
Voltage as String (LCD with PIC16F1937)
ADC Sampling and outputting to a LCD
Number on 16x2 LCD Display with PIC16F88
Printing and Updating Number on 16x2 LCD Display
Two line(String) message (LCD 16x2)
Printing a formatted number on ( LCD 16x2 )


OutPut On LCD Dispaly And LED Strip is as Given.This data is Further Used for Interfacing in other big and complicated Projects
Keypad
LED Strip
LCD(Liquid Crystal Display)
1
0001
1
2
0010
2
3
0011
3
4
0100
4
5
0101
5
6
0110
6
7
0111
7
8
1000
8
9
1001
9
*
1010
10
#
1011
11

Flow code Simulation and how to do Video Tutorial:

LCD (Liquid Crystal Display 16X2):-

Its screen is an electronic display module and find a wide range of applications. A 16x2 LCD display is very basic module and is very commonly used in various devices and circuits. These modules are preferred over seven segments and other multi segment LEDs.
The reasons being: LCDs are economical; easily programmable; have no limitation of displaying special & even custom characters (unlike in seven segments), animations and so on.

Thursday, 27 August 2015

Keypad and LED Interfacing With PIC16F88 FlowCode Programming And Simulation

In this sample project we are using FlowCode Simulation Software for Programming and Testing with PIC16F88.It shows how to use and simulate and program Keypad with LED for use in different projects.In this Project we are testing Keypad and outputting binary values to LED (Light Emitting Diodes ).Varying the delay and write-erase sequence can be manipulated to get desired result.

Above is the Flow code program:

Keypad Introduction:-The invention of the keypad is attributed to John E. Kerlin, an industrial psychologist at Bell Labs in Murray Hill.A computer keyboard usually has a small numeric keypad on the side, in addition to the other number keys on the top, but with a calculator-style arrangement of buttons that allow more efficient entry of numerical data.

This number pad (commonly abbreviated to "numpad") is usually positioned on the right side of the keyboard because most people are right-handed.

Monday, 6 July 2015

PIC18F4455 ADC Sampling and Writing to SDCard FlowCode Simulation

In this project "ADC Sampling and Writing to SDCard" PIC series micro controller - PIC18F4455 has been used with Liquid Crystal Display (16X2) in Flowcode Simulation Software.As Source of ADC Metal POT (PotentioMeter ) has been used as the variables for desired results and final results are being written to SD Card FAT16 Type.

In this example we are using LCD to display the results of ADC calculation as seen in the examples code and videos.You can manipulate the POT while sampling is going on.As per concept of sampling POT should be kept at desired position to emulate it as sensor and then sampling needs to be done.

Here is the Flow code program:


ADC Related Sample Projects and Programming Codes
  1. ADC-Voltage as Float(LCD with PIC16F1937)
  2. ADC Sampling and outputting to a LCD(LCD with PIC16F1937)
  3. Voltage as String Displaying Value On LCD with PIC16F1937
  4. ADC Simulation In Flow Code
Here is the complete list of projects:

Tutorials for Flow Code Programming and Simulation

We are doing 10 Samples per cycle.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 .


Flow code Simulation and how to do Video Tutorial:


Little Introduction:An analog-to-digital converter (ADC, A/D, or A to D) is a device that converts a continuous physical quantity (usually voltage) to a digital number that represents the quantity's amplitude.The conversion involves quantization of the input, so it necessarily introduces a small amount of error. Instead of doing a single conversion, an ADC often performs the conversions ("samples" the input) periodically.

Tuesday, 20 January 2015

Digital Clock On LCD (16x2) PIC16F1937 Used In FlowCode Programming and Simulation


In this sample project we are using FlowCode Simulation Software for Programming and Testing with PIC16F1937.It shows how to use and simulate and program LCD for use in different projects.In this Project we have created digital clock(Using two digit each for seconds minute and hours in 24 Hour format on LCD) on 16x2 Liquid Crystal Display.Varying the delay and write-erase sequence can be manipulated to get desired result.

Here is the Flow code program:

LCD(16x2) Display Related Programs
ADC-Voltage as Float(LCD with PIC16F1937)
ADC-Voltage as String (LCD with PIC16F1937)
ADC Sampling and outputting to a LCD(LCD with PIC16F1937)
Printing Number on 16x2 LCD Display with PIC16F88
Printing and Updating Number on 16x2 LCD Display

Printing a Two line(String) message (LCD 16x2)
Printing a formatted number on ( LCD 16x2 ) Using PIC16F88

LCD (Liquid Crystal Display 16X2):-
Its screen is an electronic display module and find a wide range of applications. A 16x2 LCD display is very basic module and is very commonly used in various devices and circuits. These modules are preferred over seven segments and other multi segment LEDs.

LCD Complete Tutorials for beginners

Thursday, 15 January 2015

Printing a formatted number on ( LCD 16x2 ) Using FlowCode Programming and Simulation (PIC16F88)

Using FlowCode Simulation Software for Programming and Testing with PIC16F88.It shows how to use and simulate and program LCD for use in different projects.In this Project we are printing formatted number(Using Three digit on LCD) on 16x2 LCD Display.Varying the delay and write-erase sequence can be manipulated to get desired result.

Here is the Flow code program:

Micro-controller used is PIC16F88 with 16x2 LCD for printing formatted numbers on LCD screen.You can change the no of places as per your requirement and delay to display the it.

LCD (Liquid Crystal Display 16X2) 
Its screen is an electronic display module and find a wide range of applications. A 16x2 LCD display is very basic module and is very commonly used in various devices and circuits. These modules are preferred over seven segments and other multi segment LEDs. The reasons being: LCDs are economical; easily programmable; have no limitation of displaying special & even custom characters (unlike in seven segments), animations and so on.

Readers' Choice