BTC USD 84,218.4 Gold USD 4,287.47
Time now: Jun 1, 12:00 AM

c programming


lupe nk bagi tau, saya pakai MpLab...compiler guna Hi-Tech C...
so x same ngan C language biase...
utk keypad 4x4 ni mmg blh buat n lepas...
masalahya dia nk guna keypad 3x4...matrix dia x same...
sape2 yg familiar ngan Hi-Tech C compiler blh bg advice...
utk LCD dan motor dh boleh running...
skg tinggal nk declare keypad 3x4 tu yg susah tu...
dh search kt google, byk yg 4x4 je....
anyone can advice...#:-S
 
im pogrammer...

attcly ap yg bro nk tnya ni...
mcm bro sendiri pon xclear...

skrng ni pintu ke motor tu wujud ke?

or just andaian....
ap kata bt step2 proses yg bro nk tu

cth:
1. msukkkan passwrd
2. enter .. if betul....bla bla bla
3. ......
.

.
.
n

bila dah ad step2 ni bru la tau ap yg nk cr kt google

This project is a “password enable DC Motor Controller” with 3 by 4 keypad and Liquid Crystal Display (LCD). The password is required to activate or deactivate the motor, change motor direction and regulate the speed of the motor.

Upon Power Up / Reset, the motor should be at idle. The preset speed and direction is three (3) and Clockwise (CW) respectively.

lebih kurang gini le arahan dia...
 
pada sape2 yg berminat nk bermain2 ngan PIC, ni saya ada tools dia...tp download sendiri la ye...
1. editor guna MPlab
-Go to microchip website: http://www.microchip.com
-Look for MPLAB Integrated Development Environment
-Download MPLAB IDE v8.70*
2. compiler guna Hi-Tech C compiler..
-lepas download MPLAB td, last dia akan suh install Hi-Tech C compiler, ikut je arahan dia...

3. then simulation saya guna Proteus7...
4. PIC guna PIC16F877A...

oke...pada yg berminat nk bermain2 ngan PIC la...hehehe...
 
lupe nk bagi tau, saya pakai MpLab...compiler guna Hi-Tech C...
so x same ngan C language biase...
utk keypad 4x4 ni mmg blh buat n lepas...
masalahya dia nk guna keypad 3x4...matrix dia x same...
sape2 yg familiar ngan Hi-Tech C compiler blh bg advice...
utk LCD dan motor dh boleh running...
skg tinggal nk declare keypad 3x4 tu yg susah tu...
dh search kt google, byk yg 4x4 je....
anyone can advice...#:-S

ooo sebab tu u kena bagi tau spec u dgn jelas... :)

anyway I dah tunjukkan jalannya... yg lain I tak rasa susah untuk u cari :)
 
dari dulu nak blajar coding yg libatkan external input ngan output ni ...

yg penah blaja pun PLC je ...

agak2 kalau nak start main2 dengan benda ni kena start dari ape ek ?

rasa2 bro ni course Electronic kan ... ?
 
dari dulu nak blajar coding yg libatkan external input ngan output ni ...

yg penah blaja pun PLC je ...

agak2 kalau nak start main2 dengan benda ni kena start dari ape ek ?

rasa2 bro ni course Electronic kan ... ?

kalo betul2 minat, saya ade slide utk basic pengenalan sampai la cth2 programming yg dh boleh run...blh la try simulate and run utk main2...
saya kos electrical...:)cgrock
 
bro aziz...ade kod utk controlled running light tak?
pakai variable resistor utk contrl dia nye blinking speed...ade tak
 
bro aziz...ade kod utk controlled running light tak?
pakai variable resistor utk contrl dia nye blinking speed...ade tak

ni cth utk blinking LED..
boleh adjust kt high bit and low bit tu utk buat running light...
selamat mencuba...:)cgrock

#include <htc.h>
#include <pic16f877a.h>
#define _XTAL_FREQ 20000000 // Set the oscillator frequency to 20MHz

void main ( )
{ TRISB = 0xF0; //Port B in/output
while (1) //Always running
{ RB0 = 1;
RB1 = 1;
RB2 = 1; //Pins B0-B3 high
__delay_ms(13); //delay for 13 ms
RB0 = 0;
RB1 = 0;
RB2 = 0; //Pins B0-B3 low
__delay_ms(13);
**
**
 
nsib bek aku comp eng, ada la basic asas nak bermain
benda2 electronik ni ...

cuma penekanannya kurang dulu...

Arduino ni kira lagi advance ka dari PIC ?

ka berbeza ??? rasa2 dua2 ni microcontroller jugak kan....
 
Back
Top
Log in Register