Alarm ctl with ethernet, gsm modem, onewire

Date: 02-04-2008
Ex of ethernet ENC26J60, GSM modem,One Wire to ctl Alarm Ethernet adapted from the MB ex for ENC26J60, GSM modem Wavecom WM0D2 to receive and send SMS, One Wire with 4 x Ds1820 for temp DS2408 , DS2450 to ctl the alarm sys

Download Now [403.16KB]

PS2 Laser Mouse Interface

Date: 02-04-2008
This is a demonstration program which gives the relative displacement on X and Y of a laser mouse. This demonstration could be useful for everyone which are looking after unexpensive solution of position sensor.

Download Now [69.13KB]

1-Wire Library

Date: 27-07-2007
This program uses the Ow_romcmd_lib to communicate with single and multidrop devices. The program seeks and finds all devices coupled to the 1-wire line and reports them. Later on, these parts data is filtered and processed to show the results in a RS232 terminal window. The devices can be of 9 or 12 bit resolution and will be recognized by the applied filter. For this example, the families 10h, 22h and 28h can be addressed, for others, the filter will have to be modified.

Download Now [348.91KB]

LCD4 OPTIMUM for mikroBasic, mikroPascal, and mikroC

Date: 17-05-07
LCD4 is a stand-alone program that writes optimized 4-bit Mode Character LCD functions for mikroBasic, mikroPascal, & mikroC. Supports PIC16 and PIC18 MCUs. RS & E lines can be located anywhere. LCD Dataline connections can be the upper or lower half of any Port. Features selectable powerup timings to fit a users LCD model. 4 simple functions and easy to add to your existing code project.

Download Now [30.54KB]

PIC REAL TIME CLOCK

Date: 17-05-07
Using PIC Timers to achieve the same accuracy as dedicated RTC ICs and also be able take advantage of other MCU IO and processing features is a challenge for any programmer. This is a compilation of 4 unique coding methods in mikroBasic to ease the pain of adding precision RTC features to your project. Each example outputs a 24-Hour Time Clock to a 2-Line LCD. All examples are PIC18 and will compile using the free demo version of mikroBasic.

Download Now [120.43KB]

Soft Uart for P12

Date: 12-03-2007
This is intended to help the average programmer get a fundamental idea of how to develop accurate UART code. The example below is interrupt based as I highly recommend, which frees the programmer somewhat to do other code. It is recommended that a deeper RX buffer be created in code which will take some of the pressure off of the code to retrieve received data. This example shows how to achieve 19200 baud using a 4MHz oscillator.

Download Now [3.26KB]

Playstation 2 Controller with Mikrobasic

Date: 06-02-2007
This project uses Mikrobasic and a PIC 16F88 to interface with a Playstation 2 game controller and grab the state of all controller buttons. The program them outputs the state of the "X" and "O" buttons on ports RA0 and RA1.

Download Now [210.80KB]

One Wire NetWork

Date: 09-01-2007
This program, searchs for devices 1-Wire on the One Wire Bus and returns the code and serial number of the attached devices.

Download Now [8.05KB]

Accurate Extended Event Timer (48MHz) project

Date: 24-11-2006
There are times when we might need to create an event that is beyond the normal interrupt cycle of the internaltimers. Also, PIC's are getting faster and the real time range of the timers are somewhat shortened as a result.

Download Now [31.27KB]

PRINT_DEC FUNCTION project

Date: 25-09-2006
Now it is possible to easily format a number and send directly via USART and to an LCD. PRINT_DEC() (or Print Decimal) is a very useful and powerful function which converts any unsigned number to an ascii string of parsed decimal digits.

Download Now [5.35KB]

Manchester signals decoding project

Date: 14-09-2006
Manchester code carries information about bit rate and this is very useful to make transmitter and receiver synchronized. However, two levels per each bit require double the bandwith for transmition.

Download Now [74.29KB]

LCD Format LongInt

Date: 05-09-2006
This program, format a long Integer in the exit of LCD starting from a mask previously maid. Here go the module program and program test. He was tested with 16F877A and 18F8520.

Download Now [74.38KB]

18F2550 USB-HID 8- 50Hz PWM SERVO CONTROLLER project

Date: 10-07-2006
This a Windows PC/PIC based graphical controller capable of managing 8 individual 50Hz servo motors with high resolution positioning connected to the USB capable PIC18F2550. Included is a free Windows program written in Visual Basic that has 8 separate servo positioning controls, including linking capability for any or all servos to move in unison. The mikroBASIC USB_HID library and program examples helped make this project possible.

Download Now [91.30KB]

Serial Stepper Controller project

Date: 28-06-2006
PIC Code is designed for a 16F877a. Output is PortD. Connect PortD to the EDE1220 as Follows in directions below. This is tested on a easypic3 using RC6 and RC7 for the Tx and Rx.I also tested it with a USB to serial adapter.Select Comport First then Connect. Com port can be 1 - 5. Please Report Bugs or problems via PM at the ME forum.

Download Now [766.97KB]

Serial LCD project

Date: 23-05-2006
This project can be used with a standard Hitachi HD44780 (or compatible) controller chip to control it through only 2 wires. There is a variety of shapes and sizes available. Line lengths of 8, 16, 20, 24, 32 and 40 characters are all standard, in one, two or four-line versions. The problem was that these LCDs required at least 4 data wires and 2 control wires. With this project you can communicate with the LCD through only 2 wires.

Download Now [99.22KB]

Dual Pwm

Date: 22-05-2006
This program demosntrates 2 ccp pwm signals 2 khz rate 180 degree out of phase tested on EP3 , 8 mHz , 16F877a , 18F242 , 18F452, 18F4520 and 18F4620. this unit uses Timer1 , CCP1 and CCP2 modules and installs interrupt-services for these . principle : use CCP-module in compare-mode setup timer1 for interrupt every 0.5 ms clear CCP1 output , set CCP2 output setup both CCP-modules to generate interrupt on compare match.

Download Now [17.95KB]

8 DECADE COUNTER

Date: 21-05-2006
This is a demonstration program for the Character LCD that can be adapted for real-world applications such as a KWh Meter, BTU Meter, Liquid Flow Meter, etc. The visual effect of an older mechanical odometer is possible by using the LCD controller's user-RAM area, where the user can place up to 8 custom characters of 8 bytes each.

Download Now [211.80KB]

Bi Directional DC motor Control project

Date: 19-05-2006
This code is for PWM generation without using mikroC functions. This code was developed using PIC16F684. U can use the required MCU frequency, prescalar, and PWM frequency and dutycycle by just replacing the values in #define at the begining of the program.

Download Now [13.28KB]

Time And Temperature project using Dallas DS1629

Date: 18-05-2006
Example using the Dallas DS1629 chip on a 18F8720 PIC. code used is standard mikroBasic so should work on most PICs. On the smaller PIC's you would be advised to select only the routines required.This is a 2-wire (I2c) Digital Thermometer and real Time Clock with 32 byte ROM and programmable external oscillator output and alarm output (for time and hi / low temperature).

Download Now [35.85KB]