caramoan tour package

caramoan tour package

Author Topic: Proton Picbasic Tutorial  (Read 26956 times)

Offline Mayalin22

  • Hydroelectric
  • ***
  • Posts: 3389
  • Pogi/Ganda Points: 402
  • Gender: Female
Re: Proton Picbasic Tutorial
« Reply #220 on: February 13, 2011, 12:22:58 PM »
Hello po, nabasa ko tong thread from the start, new mem po ako. pano po ba macontrol ng potentiometer yung delay ng 8LEDs ko? proton din po gamit ko. di ko lang po alam kung pano yun mangyayari.

Nasa RA1 yung Potentiometer.
RC0-RC7 yung 8LEDs.
4x3 keypad  sa PortD.
LCD sa PortB.

Pano po ba yung program nun sa Proton, ok na po lahat except yung control ng potentiometer yung delay ng 8LEDs. Thanks.

post your code  ;D
Simpler designs are usually better.

Philippine Electronics Forum

Re: Proton Picbasic Tutorial
« Reply #220 on: February 13, 2011, 12:22:58 PM »

Offline maldihtah13

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4674
  • Pogi/Ganda Points: 120
  • Gender: Female
  • Everyday is a learning process so try to learn ;D
    • Blogspot
Re: Proton Picbasic Tutorial
« Reply #221 on: February 14, 2011, 09:52:16 AM »
Hello po, nabasa ko tong thread from the start, new mem po ako. pano po ba macontrol ng potentiometer yung delay ng 8LEDs ko? proton din po gamit ko. di ko lang po alam kung pano yun mangyayari.

Nasa RA1 yung Potentiometer.
RC0-RC7 yung 8LEDs.
4x3 keypad  sa PortD.
LCD sa PortB.

Pano po ba yung program nun sa Proton, ok na po lahat except yung control ng potentiometer yung delay ng 8LEDs. Thanks.

I think it is better to connect your circuit this way
RA0 yung Potentiometer.
RC0-RC7 yung 8LEDs.
4x3 keypad  sa Portb.
LCD sa Portd

Philippine Electronics Forum

Re: Proton Picbasic Tutorial
« Reply #221 on: February 14, 2011, 09:52:16 AM »

Offline tontz88

  • LR44 Battery
  • *
  • Posts: 3
  • Pogi/Ganda Points: 0
Re: Proton Picbasic Tutorial
« Reply #222 on: February 14, 2011, 11:23:47 AM »
mga master, im doing my seniors project ryt now and im confined with the dilemma of what micro-controller should i use... im not fun of programing that is why its my dilemma coz im more on the electronic side of ece....

can any one help me with this,

btw im doing a integration of several sensing network(temperature, humidity and soil moisture) to control a solenoid valves and a motor pump for irrigation...

ill appreciate any suggestion...

Philippine Electronics Forum

Re: Proton Picbasic Tutorial
« Reply #222 on: February 14, 2011, 11:23:47 AM »

Offline maldihtah13

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4674
  • Pogi/Ganda Points: 120
  • Gender: Female
  • Everyday is a learning process so try to learn ;D
    • Blogspot
Re: Proton Picbasic Tutorial
« Reply #223 on: February 14, 2011, 12:04:40 PM »
mga master, im doing my seniors project ryt now and im confined with the dilemma of what micro-controller should i use... im not fun of programing that is why its my dilemma coz im more on the electronic side of ece....

can any one help me with this,

btw im doing a integration of several sensing network(temperature, humidity and soil moisture) to control a solenoid valves and a motor pump for irrigation...

ill appreciate any suggestion...

Determine first what you need in you circuit. Like how many sensor are you going to connect, what interface are you planning to use, how many digital or analog pins to use.

Philippine Electronics Forum

Re: Proton Picbasic Tutorial
« Reply #223 on: February 14, 2011, 12:04:40 PM »

Offline Need Tutor

  • CR2032 Battery
  • **
  • Posts: 10
  • Pogi/Ganda Points: 0
Re: Proton Picbasic Tutorial
« Reply #224 on: June 10, 2011, 07:15:10 AM »
hi, can some one help me on programming pic18f1220 using proton? We try to program it already and we got some errors. config_Start missing config_end. but we got it right. config_start is there and at the end of the configuration option we also have config_end. the program said thats the error but i think its not.

here's the code that we use.

Code: [Select]

Remarks On
Device 18F1220

Config_Start

OSC = XT
FSCM = On
IESO = On
PWRT = OFF
BOR = OFF
WDT = OFF
WDTPS = 32768
MCLRE = OFF
STVR = On
LVP = OFF
Debug = OFF
CP0 = OFF
CP1 = OFF
CPB = OFF
CPD = OFF
WRT0 = OFF
WRT1 = OFF
WRTB = OFF
WRTC = OFF
WRTD = OFF
EBTR0 = OFF
EBTR1 = OFF
EBTRB = OFF

Config_End


Declare Xtal 4
Declare Watchdog = OFF
Declare FSR_CONTEXT_SAVE = On

Hserial_Baud = 9600
Hserial_RCSTA = %10010000
Hserial_TXSTA = %00100100
Hserial_Clear = On 

Declare Adin_Res 10
Declare Adin_Tad 2_FOSC
Declare Adin_Stime 500

Symbol tailLight = PORTB.0
Symbol leftLight = PORTA.2
Symbol rightLight = PORTA.3

ADCON1 = $FC
ADCON2 = $80
TRISA = $F3
TRISB = $FC

Dim aRead1 As Word, aRead2 As Word

DelayMS 500



While 1 = 1

    aRead1 = ADIn 0
   
    aRead2 = ADIn 1
   
   
    If aRead1 > 600  Then
   
             
            leftLight = 1
            rightLight = 0
               
    ElseIf aRead1 < 400 Then
   
       
            leftLight = 0
            rightLight = 1
    Else
   
            leftLight = 0
            rightLight = 0
 
    EndIf
   
    If aRead2 > 350 And NFlag = 0  Then
   
            tailLight = 1
           
   
    ElseIf aRead2 < 150 And DFlag = 0 Then
       
            tailLight = 0
           
    Else
           tailLight = 0
           
    EndIf
   
    DelayMS 500

Wend


End


can some one check it tnx :D

Philippine Electronics Forum

Re: Proton Picbasic Tutorial
« Reply #224 on: June 10, 2011, 07:15:10 AM »

Offline Ikasamoko

  • Solar Power Satellite
  • *****
  • Posts: 5724
  • Pogi/Ganda Points: 414
  • Gender: Male
  • ..sexually deficit..
    • My "BLAG!"
Re: Proton Picbasic Tutorial
« Reply #225 on: June 22, 2011, 10:03:38 AM »
mga sis pahingi naman sample code para sa LED sign na gagawin ko..bale LED po ito forming a letter..

example

ELAB BADING


the letter will light up and stay lighted starting from E to G then all will turn off then ELAB will flash 2x and turn off then BADING will also flash 2x then off then both ELAB BADING will flash 3x then off and start again..


pwede kaya ito?

'
Start:

PortA.1 HIGH
DelayMs 100
PortA.2 HIGH
DelayMs 100
....... hanggang matapos lahat ng letter then

all port LOW

ELAB port HIGH
DelayMs 100
ELAB port LOW
DelayMs 100
ELAB port HIGH
DelayMs 100
ELAB Port LOW


BADING port HIGH
DelayMs 100
BADING port LOW
DelayMs 100
BADING port HIGH
DelayMs 100
BADING Port LOW


ELAB Port HIGH
BADING Port HIGH
DelayMs 100
ELAB Port LOW
BADING Port LOW
DelayMs 100
ELAB Port HIGH
BADING Port HIGH
Goto Start


Pwede kaya ito? or can you suggest a much efficient or cleaner code??


TIA





Offline maldihtah13

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4674
  • Pogi/Ganda Points: 120
  • Gender: Female
  • Everyday is a learning process so try to learn ;D
    • Blogspot
Re: Proton Picbasic Tutorial
« Reply #226 on: June 22, 2011, 07:23:44 PM »
Pwede naman pero ang masaklap nyan dami mo gagamiting port (for your example 10 na agad) so probably kulang ang isang port. For 1 by 1 pwede namang convert yung binary to decimal para counter na lang.

Sa akin pwede na yan simple lang circuit hiwalayin mo na lang yung word then group it by port para madali lang program.

Delay is too short I believe it should at least be more than 500 msec.

Offline Ikasamoko

  • Solar Power Satellite
  • *****
  • Posts: 5724
  • Pogi/Ganda Points: 414
  • Gender: Male
  • ..sexually deficit..
    • My "BLAG!"
Re: Proton Picbasic Tutorial
« Reply #227 on: June 23, 2011, 11:45:03 AM »
Pwede naman pero ang masaklap nyan dami mo gagamiting port (for your example 10 na agad) so probably kulang ang isang port. For 1 by 1 pwede namang convert yung binary to decimal para counter na lang.

Sa akin pwede na yan simple lang circuit hiwalayin mo na lang yung word then group it by port para madali lang program.

Delay is too short I believe it should at least be more than 500 msec.

about sa port ok lang 877 yung target ko...saka yung delay sample lang yun...can you suggest a much better and efficient approach?


Offline _ciel_

  • LR44 Battery
  • *
  • Posts: 4
  • Pogi/Ganda Points: 0
Re: Proton Picbasic Tutorial
« Reply #228 on: August 06, 2011, 11:39:29 PM »
mga boss pwede po ba ako magpatulong sa ADC ng 16f877, gamit ko lang isis, micro studio at proton ide...
pwede po ba manghingi ng mga files nyo jan yung makakatulong or mas maganda yung simulation nyo na at source code...
thnx po need lang po pag aralan yun para maiimplement sa design progject na gagawin namin... thanks in advance

Offline maldihtah13

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4674
  • Pogi/Ganda Points: 120
  • Gender: Female
  • Everyday is a learning process so try to learn ;D
    • Blogspot
Re: Proton Picbasic Tutorial
« Reply #229 on: August 09, 2011, 09:06:16 PM »
Post your code so we can comment.

Offline your most RIDICULOUS man :)

  • Diesel Generator
  • *
  • Posts: 1842
  • Pogi/Ganda Points: 53
  • Gender: Male
Re: Proton Picbasic Tutorial
« Reply #230 on: September 07, 2011, 11:47:29 PM »
;D ;D ;D up!
God give us the grace to accept with serenity the things that cannot be changed, courage to change the things which should be changed and the wisdom to distinguish the one from the other [Reinhold Niebuhr]

Offline o0oyaskaio0o

  • CR2032 Battery
  • **
  • Posts: 49
  • Pogi/Ganda Points: 1
Re: Proton Picbasic Tutorial
« Reply #231 on: September 08, 2011, 12:12:28 PM »
Thanks po. ..

malaki tulong po eto sa gaya ko newbie pa lang sa pic.

Offline ♥ ♥ Mel ♥ ♥

  • Size D Battery
  • ******
  • Posts: 348
  • Pogi/Ganda Points: 2
Re: Proton Picbasic Tutorial
« Reply #232 on: April 04, 2012, 08:27:41 PM »
mga sir paano po magset ng fusebits using proton?
Truth may suffer but it cannot perish -St. Teresa of Jesus

"All is well when we seek only the Divine Pleasure"
-St. Therese of the Child Jesus

Offline maldihtah13

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4674
  • Pogi/Ganda Points: 120
  • Gender: Female
  • Everyday is a learning process so try to learn ;D
    • Blogspot
Re: Proton Picbasic Tutorial
« Reply #233 on: April 07, 2012, 12:52:59 AM »
mga sir paano po magset ng fusebits using proton?

Anong device gagamitin nyo?

Offline patece

  • CR2032 Battery
  • **
  • Posts: 29
  • Pogi/Ganda Points: 1
Re: Proton Picbasic Tutorial
« Reply #234 on: October 21, 2012, 08:40:21 PM »
mga master newbie lan ako..i am recently doing a senior project regarding lpg leakage..ang gamit ko po ay pic16f877a,mq5 gas sensor, solenoid valve etc..patulong naman po sa coding..panu po magsimula sa proton basic?kaya po kaya ito?o kailangan ng licensed p?..nabasa ko po kasi license p dapat..i have one pero basag..salamat po..God bless.hope to hear you soon...

nga po pala:
mq5- AN0
solenoid and fans- by using h bridge chipset to drive them connected sa port b..
gsm modem- tx and rx of pic

take care always..thanks mga master

Offline maldihtah13

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4674
  • Pogi/Ganda Points: 120
  • Gender: Female
  • Everyday is a learning process so try to learn ;D
    • Blogspot
Re: Proton Picbasic Tutorial
« Reply #235 on: October 22, 2012, 05:38:41 AM »
Just post your inquiry here.

Offline babytoybits

  • Size AA Battery
  • ****
  • Posts: 139
  • Pogi/Ganda Points: 2
  • Gender: Male
Re: Proton Picbasic Tutorial
« Reply #236 on: February 05, 2013, 10:04:14 AM »
I missed this forum! Salamat sa mga tumulong sakin way back in 2010, kila maldihtah13, marcelino atbp. :D

Nakalimutan ko na mag Picbasic kaya basa-basa ulit. :D
Music is my passion but engineering will be my profession...^_^!

Offline ultrasonic™

  • Solar Power Satellite
  • *****
  • Posts: 7051
  • Pogi/Ganda Points: 924
  • Gender: Female
  • never be harsh coz everythng is fine
Re: Proton Picbasic Tutorial
« Reply #237 on: May 22, 2013, 06:12:56 PM »
mga sis pwede ko ba tong buhayin saglit ?

wala kasi akong mahanap na full version na Proton basic sa net..
meron sanang isa iyong crownhill pero di ko ma basag eh   (T_T

baka meron kayong nakatago jan... may kocompile lang sana ako  (T_T
im always walking on the rain so that no one could see me crying




TV SERVICE MODE - http://www.elab.ph/forum/index.php?topic=2267.0;topicseen

Offline Ikasamoko

  • Solar Power Satellite
  • *****
  • Posts: 5724
  • Pogi/Ganda Points: 414
  • Gender: Male
  • ..sexually deficit..
    • My "BLAG!"
Re: Proton Picbasic Tutorial
« Reply #238 on: June 13, 2013, 11:33:33 AM »
Install this

Compiler V3.5.2.7:

1D96b^S'-64)VE8TY`V^\eVZ]d[X[c

Patch:


1D96b^S'-64)VE8TY`V^\eV[Y`WXX_

Installation

    Install the Compiler and replace ProtonIDE.exe and PrPlus.exe with cracked version.
    Now you have an up-to-date full working version

Offline ultrasonic™

  • Solar Power Satellite
  • *****
  • Posts: 7051
  • Pogi/Ganda Points: 924
  • Gender: Female
  • never be harsh coz everythng is fine
Re: Proton Picbasic Tutorial
« Reply #239 on: June 13, 2013, 02:47:48 PM »
subukan ko yan sis kas...

pakiss ;D
im always walking on the rain so that no one could see me crying




TV SERVICE MODE - http://www.elab.ph/forum/index.php?topic=2267.0;topicseen

Philippine Electronics Forum

Re: Proton Picbasic Tutorial
« Reply #239 on: June 13, 2013, 02:47:48 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com