Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

Sort By

USER REQUESTS

first | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 last
Kursad Guler
kursadgulereem

posted on 2014/02/09 08:55:10 PM CET

Graphics & LCD

i2c oled driver

Hi!
i have i2c ds1306 oled 128x64 (CRIUS CO-16 OLED Display Module).
i need display driver for mikroC
Can someone help me write a code?

best regards
kursad

Jabir J
JAbir

posted on 2014/02/06 08:50:09 PM CET

Measurement

code for reading negative temp

I am using PIC18F4550 and temp sensor LM35 to read both '-' and '+' temperature. I am using Mikrobasic pro for writing the code.can anyone help me to correct the code that i have written...please..?


dim LCD_RS as sbit at LATB4_bit
LCD_EN as sbit at LATB5_bit
LCD_D4 as sbit at LATB0_bit
LCD_D5 as sbit at LATB1_bit
LCD_D6 as sbit at LATB2_bit
LCD_D7 as sbit at LATB3_bit
dim LCD_RS_Direction as sbit at TRISB4_bit
LCD_EN_Direction as sbit at TRISB5_bit
LCD_D4_Direction as sbit at TRISB0_bit
LCD_D5_Direction as sbit at TRISB1_bit
LCD_D6_Direction as sbit at TRISB2_bit
LCD_D7_Direction as sbit at TRISB3_bit

dim R_S as word
dim T as word
dim V as byte
dim temp as string[15]

main:
ADCON0 = 0x00
ADCON1 = 0x00
ADCON2 = 0x00
ADRESL = 1
ADRESH = 0

PORTA=$01 'Initialize port A to 0
PORTB=0 'Initialize port B to $01
TRISA3_bit = 1 ' Configure RA3 pin as input
TRISB=0 ' port B is output


ADC_Init() ' Initialize ADC

Lcd_Init() ' Initialize LCD
Lcd_Cmd(_LCD_CLEAR) ' Clear display
Lcd_Cmd(_LCD_CURSOR_OFF) ' Cursor off

Lcd_Out(1, 1, "Temperature :")
Lcd_Chr(2,8,223) 'char code for degree

Lcd_Chr(2,9,"C") ' Display "C" for Celsius
R_S = 0

While TRUE
R_S= ADC_Get_Sample(3) 'Get 10-bit results of AD conversion
V=R_S*(5/1024) 'convert digital reading to voltage,verf=5 V
T=V*100 'converting this voltage to Celsius, Since sensor's sensitivity is 10mV/C
wordToStr(T,temp)
temp[4] = 0
Lcd_out(2,3, temp) ' Write string in second row
delay_ms(500)
wend

end.

Gavriel Koretz
gkoretz

posted on 2014/02/04 02:50:02 PM CET

Audio & Speech

playing wave file

Hi!
I have been trying to play music from an SD card with no succes.
I am using PIC f1845k22.
Can someone help me write a code?

Antonio Poggi
Antonio Poggi

posted on 2014/01/29 05:07:12 PM CET

Communication > Ethernet

Mail Server with Ethernet PIC

Hello guys,
someone has created a "mail server" with the PIC?
I would like to use the Ethernet module of the PIC to send email
Thanks to all who help me.
Best regards

nicola mangiameli
nicola

posted on 2014/01/28 04:11:01 PM CET

Communication > Ethernet

peer to peer via ethernet

hi all,
i'm nicola and i have a easypic pro v7 development board.
The MCU card installed is PIC18F87J60.

I would like to make two modules (A/B) that can communicate with each other peer to peer via Ethernet:
a change of state of one of the 4 input ports of A is transferred to B, which changes the status of the corresponding
output port (for example: (A) input port 1 -> (B) output port 1). in the same way, a change of state of one of the 4 input ports of B is transmitted to A.
So for every module we have 4 input ports and 4 output ports.

Can you help me? have you a example of firmware in mikrobasic o mikroc?
Since I only have one board, how can I test the two modules?
Have I to purchase some card add/on (mikrobus sockets)?

thanks
best regards
nicola

first | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 last