![]() ![]() This milestone will include completion of a software to communicate with the individual sensors, data acquisition and display on the main matrix multimedia board using an LCD module. make sure you save the project and know the path of the hex file. Using the sensor eblocks and the I 2 C protocol a sensor network will be programmed using MPLAB/MikroC and PIC16F877A. And build the project by pressing ctrl+F9 mikro c will produce the hex file for you. sbit LCD_RS at RB1_bit sbit LCD_EN at RB2_bit sbit LCD_D7 at RB7_bit sbit LCD_D6 at RB6_bit sbit LCD_D5 at RB5_bit sbit LCD_D4 at RB4_bit // End specification for pins // specify the pin directions sbit LCD_RS_Direction at TRISB1_bit sbit LCD_EN_Direction at TRISB2_bit sbit LCD_D4_Direction at TRISB4_bit sbit LCD_D5_Direction at TRISB5_bit sbit LCD_D6_Direction at TRISB6_bit sbit LCD_D7_Direction at TRISB7_bit // End of LCD Pin direction int Volume=10 char Vol int maxvol=20 int minvol=5 void main() //Coding ends. ![]() specify what pins will be used as what. If you don't wanna include all library files, then include and in your program.Just copy and paste the code in Mikro C //Coding BEGIN //AN ARTICLE BY TheEffectiver. name the project as 'Volume Adjuster' and include all library files in it. Create a new project and select P16F877A microcontroller with frequency 8Mhz. Though it appears as more complex, appearances are deceptive:). The most important part and the most frustrating part is the coding part. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |