Philippine Electronics Forum
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
Philippine Electronics Forum
»
Digital Electronics
»
Microcontroller/Microprocessor Unit Projects and Programming
»
PIC Microcontrollers
(Moderators:
marcelino
,
paranz
) »
Proton Picbasic Tutorial
« previous
next »
Print
Pages:
1
...
9
10
[
11
]
12
Go Down
Author
Topic: Proton Picbasic Tutorial (Read 26958 times)
OPTIMUS PRIME
Diesel Generator
Posts: 1524
Pogi/Ganda Points: 28
Gender:
Re: Proton Picbasic Tutorial
«
Reply #200 on:
February 07, 2011, 11:55:33 PM »
@Kasamiko
Maverick II code for PICBASIC Pro
include "modedefs"
Define osc 4
trisa = %11110000
trisb = %11111110
CMCON = 7
'txmit var PORTB.0
rxmit var PORTB.1
ir_right var PORTB.2
ir_forward var PORTB.3
ir_left var PORTB.4
photo_right var portB.5
photo_center var portB.6
photo_left var portB.7
phase1 VAR PORTA.0
enable1 VAR PORTA.1
phase2 VAR PORTA.2
enable2 var PORTA.3
start:
'rest
low phase1
High enable1
low phase2
High enable2
'forward
if ir_forward = 0 then
high phase1
low enable1
high phase2
low enable2
pause 15
endif
'turnright
if ir_right = 0 then
high phase1
low enable1
low phase2
low enable2
pause 15
endif
'turnleft
if ir_left = 0 then
low phase1
low enable1
high phase2
low enable2
pause 15
endif
'backward
if ir_left = 0 and ir_right = 0 then
low phase1
low enable1
low phase2
low enable2
pause 150
endif
'PhotoRight
if photo_right = 1 and photo_center = 1 then
high phase1
low enable1
low phase2
low enable2
pause 1000
endif
PhotoLeft
if photo_left = 1 and photo_center = 1 then
low phase1
low enable1
high phase2
low enable2
pause 1000
endif
'photo left & right
'if photo_left = 0 then
'low phase1
'low enable1
'pause 1500
'low phase2
'low enable2
'pause 1500
'endif
goto start
end
Logged
Dont worry about failures but worry about the chances you miss if you dont even try...........
Philippine Electronics Forum
Re: Proton Picbasic Tutorial
«
Reply #200 on:
February 07, 2011, 11:55:33 PM »
arceo
CR2032 Battery
Posts: 26
Pogi/Ganda Points: 0
Re: Proton Picbasic Tutorial
«
Reply #201 on:
February 08, 2011, 08:56:53 AM »
Calling Proton masters... bakit po kapag full charge yung gamit namin na battery mabilis yung process ng delayMs X sa program ng proton pero kapag nagamit na yung battery ng matagal mahaba na yung delayMs X ?
example: delayms 1000 = 75 sec when full charge battery
delayms 1000 = 50sec when after battery used for few minutes
meron po ba regulator IC for 12volts?
Logged
Philippine Electronics Forum
Re: Proton Picbasic Tutorial
«
Reply #201 on:
February 08, 2011, 08:56:53 AM »
Ikasamoko
Solar Power Satellite
Posts: 5724
Pogi/Ganda Points: 414
Gender:
..sexually deficit..
Re: Proton Picbasic Tutorial
«
Reply #202 on:
February 08, 2011, 10:17:41 AM »
Ganda point sa'yo sis Prime....try ko port sa Proton code mo sis..
hirap pala gamitin itong sa tv remote decoder...
...back to mouse muna ako.....
Logged
Visit My "BLAG!"
http://rbt-techdepot.blogspot.com/
Philippine Electronics Forum
Re: Proton Picbasic Tutorial
«
Reply #202 on:
February 08, 2011, 10:17:41 AM »
maldihtah13
Technical People
Nuclear Reactor
Posts: 4674
Pogi/Ganda Points: 120
Gender:
Everyday is a learning process so try to learn ;D
Re: Proton Picbasic Tutorial
«
Reply #203 on:
February 08, 2011, 10:39:16 AM »
Sir kasamiko
Nahihirapan din me sa pwm for remote that's why I use nop to create a 38Khz pulse.
Logged
Philippine Electronics Forum
Re: Proton Picbasic Tutorial
«
Reply #203 on:
February 08, 2011, 10:39:16 AM »
Ikasamoko
Solar Power Satellite
Posts: 5724
Pogi/Ganda Points: 414
Gender:
..sexually deficit..
Re: Proton Picbasic Tutorial
«
Reply #204 on:
February 08, 2011, 11:02:28 AM »
panu mo ginawa madam? meron pa ako extra port para sa 38khz out...pwede kaya output yung pulse sa dalawang port then combine na lang paglabas?
at besides di pala pwede yung tv remote receiver na continuous receive..
dapat burst lng...
Logged
Visit My "BLAG!"
http://rbt-techdepot.blogspot.com/
Philippine Electronics Forum
Re: Proton Picbasic Tutorial
«
Reply #204 on:
February 08, 2011, 11:02:28 AM »
maldihtah13
Technical People
Nuclear Reactor
Posts: 4674
Pogi/Ganda Points: 120
Gender:
Everyday is a learning process so try to learn ;D
Re: Proton Picbasic Tutorial
«
Reply #205 on:
February 09, 2011, 10:04:11 AM »
Yes.
Teka ano ba talaga application mo. PM mo na lang if gusto mo discreet.
Logged
Ikasamoko
Solar Power Satellite
Posts: 5724
Pogi/Ganda Points: 414
Gender:
..sexually deficit..
Re: Proton Picbasic Tutorial
«
Reply #206 on:
February 09, 2011, 11:27:13 AM »
sa mobot to sis..need ko 38khz to drive infra led para sa tv remote ko na sensor....
Logged
Visit My "BLAG!"
http://rbt-techdepot.blogspot.com/
maldihtah13
Technical People
Nuclear Reactor
Posts: 4674
Pogi/Ganda Points: 120
Gender:
Everyday is a learning process so try to learn ;D
Re: Proton Picbasic Tutorial
«
Reply #207 on:
February 09, 2011, 01:33:23 PM »
Gamit ka na lang ng 555
Logged
Ikasamoko
Solar Power Satellite
Posts: 5724
Pogi/Ganda Points: 414
Gender:
..sexually deficit..
Re: Proton Picbasic Tutorial
«
Reply #208 on:
February 09, 2011, 02:41:28 PM »
ito na napili ko....
kaso tataka ako dito...tried simulating with 74HC14 gumana..but any other 74xx14 ayaw...meron naman model...
saka yung limiting nya is 100k in series with 1k trimmer? at dalawang LED in series din??
Logged
Visit My "BLAG!"
http://rbt-techdepot.blogspot.com/
Ikasamoko
Solar Power Satellite
Posts: 5724
Pogi/Ganda Points: 414
Gender:
..sexually deficit..
Re: Proton Picbasic Tutorial
«
Reply #209 on:
February 11, 2011, 02:13:32 PM »
Hirap pa rin paganahin to..
BTW: ang "AND" operator ba ay valid sa Proton?
eg:
Quote
If A = 1 AND B = 1 Then
C = 1
End If
Try ko compile wala naman error...
Logged
Visit My "BLAG!"
http://rbt-techdepot.blogspot.com/
Mayalin22
Hydroelectric
Posts: 3389
Pogi/Ganda Points: 402
Gender:
Re: Proton Picbasic Tutorial
«
Reply #210 on:
February 11, 2011, 02:28:49 PM »
yup valid yan pero matakaw sa code
mas maganda simple lang compare mo to pareho lang sa "AND"
if a = 1 then
if b = 1 then
c = 1
endif
endif
Logged
Simpler designs are usually better.
Ikasamoko
Solar Power Satellite
Posts: 5724
Pogi/Ganda Points: 414
Gender:
..sexually deficit..
Re: Proton Picbasic Tutorial
«
Reply #211 on:
February 11, 2011, 02:44:06 PM »
kahit ilang If..EndIf ba yan sis?
Logged
Visit My "BLAG!"
http://rbt-techdepot.blogspot.com/
Mayalin22
Hydroelectric
Posts: 3389
Pogi/Ganda Points: 402
Gender:
Re: Proton Picbasic Tutorial
«
Reply #212 on:
February 11, 2011, 03:01:22 PM »
yup
Logged
Simpler designs are usually better.
Ikasamoko
Solar Power Satellite
Posts: 5724
Pogi/Ganda Points: 414
Gender:
..sexually deficit..
Re: Proton Picbasic Tutorial
«
Reply #213 on:
February 11, 2011, 03:03:15 PM »
ayot sis...
if ilang If same then yung closing statement ng End If...
Logged
Visit My "BLAG!"
http://rbt-techdepot.blogspot.com/
Mayalin22
Hydroelectric
Posts: 3389
Pogi/Ganda Points: 402
Gender:
Re: Proton Picbasic Tutorial
«
Reply #214 on:
February 11, 2011, 03:07:21 PM »
oo kahit umabot ka ng baguio
Logged
Simpler designs are usually better.
Ikasamoko
Solar Power Satellite
Posts: 5724
Pogi/Ganda Points: 414
Gender:
..sexually deficit..
Re: Proton Picbasic Tutorial
«
Reply #215 on:
February 11, 2011, 03:20:48 PM »
syntax error....temperature too low....
Logged
Visit My "BLAG!"
http://rbt-techdepot.blogspot.com/
Mayalin22
Hydroelectric
Posts: 3389
Pogi/Ganda Points: 402
Gender:
Re: Proton Picbasic Tutorial
«
Reply #216 on:
February 11, 2011, 03:21:52 PM »
Logged
Simpler designs are usually better.
OPTIMUS PRIME
Diesel Generator
Posts: 1524
Pogi/Ganda Points: 28
Gender:
Re: Proton Picbasic Tutorial
«
Reply #217 on:
February 11, 2011, 10:15:00 PM »
Sorry error post ako ---delete prior post
Logged
Dont worry about failures but worry about the chances you miss if you dont even try...........
kkbanton
LR44 Battery
Posts: 3
Pogi/Ganda Points: 0
Re: Proton Picbasic Tutorial
«
Reply #218 on:
February 12, 2011, 03:28:13 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.
Logged
OPTIMUS PRIME
Diesel Generator
Posts: 1524
Pogi/Ganda Points: 28
Gender:
Re: Proton Picbasic Tutorial
«
Reply #219 on:
February 12, 2011, 11:11:59 PM »
check mo if pede lagyan ng "pause" then specify mo ilan sec
Logged
Dont worry about failures but worry about the chances you miss if you dont even try...........
Philippine Electronics Forum
Re: Proton Picbasic Tutorial
«
Reply #219 on:
February 12, 2011, 11:11:59 PM »
Print
Pages:
1
...
9
10
[
11
]
12
Go Up
« previous
next »
Philippine Electronics Forum
»
Digital Electronics
»
Microcontroller/Microprocessor Unit Projects and Programming
»
PIC Microcontrollers
(Moderators:
marcelino
,
paranz
) »
Proton Picbasic Tutorial
Privacy Policy
Contact Us: elabph@yahoo.com