The Philippine Electronics and Technology Forum
February 09, 2012, 02:40:23 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  

Pages: [1] 2   Go Down
  Print  
Author Topic: about sa pag program ng PIC ....  (Read 2752 times)
KennethSarita
Size AAA Battery
***

Pogi/Ganda Points: 0
Offline Offline

Gender: Male
Posts: 79


Nag aaral pa lang ...


« on: March 19, 2008, 07:00:48 PM »

ito po ung sitwasyon para sa project ko :

gagamit po ako ng PIC 16F84 para kumontrol ng 3 motors (servo motors) kasi ung project ko po eh mini forklift ... 2 motors for the wheels and ung isa para sa actuation part na pag lift ..



kelangan pa po ba na may programmer for a PIC bago ilagay sa project ko or pwedeng ung programmer  ko na po mismo ang mag serve as the flatform for my project, bali direkta ng nakakonekta sa mga wheels at actuator? para po pag i-edit ko ung program tapos ni-run ko na, direkta na agad aandar ung project ko


ang pagkakaintindi ko po kasi eh kelangan ko munang i program ung PIC (PIC 16F84) bago ko sya ilagay sa project ko ....




sensya na po for my noobness ...  Undecided
Logged

All our knowledge falls within the bounds of possible experience.
The Philippine Electronics and Technology Forum
« on: March 19, 2008, 07:00:48 PM »

 Logged
zer0w1ng
Technical People
Gas Turbine
*****

Pogi/Ganda Points: 295
Offline Offline

Gender: Male
Posts: 2151


Enter any 11-digit prime number to continue...


WWW
« Reply #1 on: March 19, 2008, 07:04:33 PM »

AFAIK, servo motors won't turn more than 360 degrees.
It is not right to drive the wheels.

Edit (on topic): You could use ICSP so your programming will be easier and no need to include programming hardware on your project board.  See here http://www.best-microcontroller-projects.com/pic-programming.html
Logged

KennethSarita
Size AAA Battery
***

Pogi/Ganda Points: 0
Offline Offline

Gender: Male
Posts: 79


Nag aaral pa lang ...


« Reply #2 on: March 19, 2008, 07:14:52 PM »

AFAIK??? ano po ibig sabihin nun?

ano rin po ung ICSP???



uhm kasi po sa MICROCONTROLLER na subject ko po ginagamit namin is BasicStamp2 tapos may BOE-BOT thing dun ung board of education nila kumbaga mag type ka lang ng program sa BasicStamp software tapos sasaksak mo lang sa port tapos andar na ... may gulong po kasi un eh sabi samin servo motors daw un .... so hindi po ba pede un as WHEELS?


Thanks sa reply
Logged

All our knowledge falls within the bounds of possible experience.
zer0w1ng
Technical People
Gas Turbine
*****

Pogi/Ganda Points: 295
Offline Offline

Gender: Male
Posts: 2151


Enter any 11-digit prime number to continue...


WWW
« Reply #3 on: March 19, 2008, 07:26:02 PM »

AFAIK??? ano po ibig sabihin nun?

ano rin po ung ICSP???



Sorry.
AFAIK - as far as i know
ICSP - in-circuit serial programming

Servo motors can do only angular movements because of feedback. See here http://en.wikipedia.org/wiki/Servomechanism
Logged

KennethSarita
Size AAA Battery
***

Pogi/Ganda Points: 0
Offline Offline

Gender: Male
Posts: 79


Nag aaral pa lang ...


« Reply #4 on: March 19, 2008, 07:38:28 PM »

uhm ano po ung i-substitute ko para dun Huh eh ung sa actuation part? ok lang po ba na servo motor gamitin ko sa pag lift? hindi po ba mag skid ung motor pag masyado mabigat???
Logged

All our knowledge falls within the bounds of possible experience.
Ate Shey
Administrator
Diesel Generator
*****

Pogi/Ganda Points: 138
Offline Offline

Gender: Female
Posts: 1984


"E tangi ana koe Hine e hine, E hine e Hoki maira"


WWW
« Reply #5 on: March 19, 2008, 08:25:44 PM »

ito po ung sitwasyon para sa project ko :

gagamit po ako ng PIC 16F84 para kumontrol ng 3 motors (servo motors) kasi ung project ko po eh mini forklift ... 2 motors for the wheels and ung isa para sa actuation part na pag lift ..



kelangan pa po ba na may programmer for a PIC bago ilagay sa project ko or pwedeng ung programmer  ko na po mismo ang mag serve as the flatform for my project, bali direkta ng nakakonekta sa mga wheels at actuator? para po pag i-edit ko ung program tapos ni-run ko na, direkta na agad aandar ung project ko


ang pagkakaintindi ko po kasi eh kelangan ko munang i program ung PIC (PIC 16F84) bago ko sya ilagay sa project ko ....




sensya na po for my noobness ...  Undecided

Karamihan kasi dito separate yung programmer sa main application circuit nila.. I-poprogram muna yung PIC dun sa programmer using a burner software like Epicwin tapos ililipat na yung PIC dun sa main application circuit board..

Kung gusto mo na yung integrated na yung application circuit board mo dun sa programmer, kailangan mo ng ICSP na programmer.. Hindi ko pa na-try ang  ICSP..
Logged

- Oh Lordy, troubles so hard. Don't nobody know my troubles but God
motion55
Technical People
Diesel Generator
*****

Pogi/Ganda Points: 189
Offline Offline

Gender: Male
Posts: 1242


Been there and done that already.


« Reply #6 on: March 19, 2008, 10:11:24 PM »

For people to help, let me try to explain what the thread starter means.

He was working with a Boe-Bot kit supplied by parallax corporation.

http://www.parallax.com/Store/Robots/RollingRobots/tabid/128/CategoryID/3/List/0/SortField/0/Level/a/ProductID/296/Default.aspx

It is a motorized robot controlled from a "Board of Education" Basic Stamp Kit. The motors that run the wheels are DC servo motors. Unlike RC servos found in radio controlled toys, these DC motors can turn more than 360. They can also be commanded to move at fixed angle or at a fixed speed.

The original Basic Stamp used a PIC16F84 (or was it an older PIC16C54?). Anyway it had an external eeprom so you can download Basic language tokens and the PIC had a primitive basic interpreter in it.

Now to answer the thread starter's question, can he use the PIC16F84 to do something similar? Well, unless you make something similar to a Basic Stamp, the quick answer is No. He is probably too noob to program in assembly and the PIC16F84 can't self program so you can't put a bootloader. The TS can use a newer chip like a PIC16F877 or even a PIC18F452 so you can program with a C programming language or PIC Basic.





Logged

"Set your mind free!"
macky
Lead Acid Battery
*******

Pogi/Ganda Points: 46
Offline Offline

Posts: 981



« Reply #7 on: March 20, 2008, 07:49:59 PM »

you can use ICSP(in-circuit serial programming) if SUPPORTED ng microcontroller(16F84) mo, you can check on its datasheet.
Logged

john 3:16 | oil of gladness
KennethSarita
Size AAA Battery
***

Pogi/Ganda Points: 0
Offline Offline

Gender: Male
Posts: 79


Nag aaral pa lang ...


« Reply #8 on: March 21, 2008, 05:37:05 PM »

ahhh andami kong natutunan hehhe THANKS a LOT!

pag hihiwalayin ko na lang po ... san nga ulit ung hanapan ng mga SCHEMATIC at PCB foil path para sa programmer?

 May question pa po ako ...

1. Kelangan po ba na ung programmer at software ay related?? kunwari may nakuha ako Programmer A dapat ung software na pang program eh Software A din po ba???

2. Ung mga programmer po ba eh pede sa ibat ibang PIC, kunwari papalitan ko ung PIC 16F84 to 877 or 452 kelangan ba ng kanya kanyang programmer for each??

3. about DC servo motor, ano po bang pwedeng magamit???

4. Sa pag gawa ng Main Circuit Application .... pano ko po ba sisimulan??? Sa pag pili ng mga resistor values, capaciance etc. matagal ko na po kasi iniisip un ... What parameters should I consider?


So far un lang po muna ... salamat sa tulong
Logged

All our knowledge falls within the bounds of possible experience.
motion55
Technical People
Diesel Generator
*****

Pogi/Ganda Points: 189
Offline Offline

Gender: Male
Posts: 1242


Been there and done that already.


« Reply #9 on: March 22, 2008, 09:21:51 AM »

I don't know your background but here are my answers to your questions.

Quote
1. Kelangan po ba na ung programmer at software ay related?? kunwari may nakuha ako Programmer A dapat ung software na pang program eh Software A din po ba???

Yes, may specific program to run a programmer. Kailangan hanapin mo sa site na dinownload mo ng design ng programmer yung program or hyperlink to the program na magpapatakbo noon. Bear in mind that some these different programmers are clones of the original, for example the ICD2 and so they may run the same software.

Quote
2. Ung mga programmer po ba eh pede sa ibat ibang PIC, kunwari papalitan ko ung PIC 16F84 to 877 or 452 kelangan ba ng kanya kanyang programmer for each??

Yes. Halos lahat ng PIC are programmed using a standard ICSP interface. And so one programmer can handle almost all of them except for the oldest types.

Quote
3. about DC servo motor, ano po bang pwedeng magamit???

Another option is to use a stepper motor. It generally delivers less torque (power) than a DC servo motor but it is simpler to use.

Quote
4. Sa pag gawa ng Main Circuit Application .... pano ko po ba sisimulan??? Sa pag pili ng mga resistor values, capaciance etc. matagal ko na po kasi iniisip un ... What parameters should I consider?

Start with the big picture. What do you hope to achieve? With that always at the back of your mind and in the Philippine context, pick out parts that you can easily buy, borrow, or salvage from common consumer items (e.g. computers). Unahin mo yung mga big ticket items because that will determine the other parts you'll need. Before buying anything, draw a rough schematic to make sure you have available all the parts in the schematic. Don't worry about the values of the resistors or capacitors because that is usually the last to be selected.
Logged

"Set your mind free!"
paranz
Moderator
Nuclear Reactor
*****

Pogi/Ganda Points: 167
Offline Offline

Gender: Male
Posts: 4511


1/4W resistor specialist


« Reply #10 on: March 22, 2008, 07:00:17 PM »

if you are new to microcontroller programming, i suggest that you start building a simple project just to get you started. Even as simple as turning on/turning off an ordinary LED.

Perhaps the easiest microcontroller to learn is the pic microcontroller.

Gawa ka agad ng parallel port-based PIC programmer hardware, I recommend you build the the P16PRO programmer. Check www.picallw.com for the schematic. You can build that kahit sa breadboard lamang, and it will cost you less than 100 pesos  in electronic components.

Then learn to program the PIC microcontroller using either assembly or C language. You can download MPLAB IDE for free from the microchip website.

Lastly, you can download lots of ebooks about picmicro. Check your favorite file-sharing sites for these ebooks.
Logged
phpadik
CR2032 Battery
**

Pogi/Ganda Points: 1
Offline Offline

Gender: Male
Posts: 28



WWW
« Reply #11 on: March 28, 2008, 11:00:02 PM »

Strongly agree ako dito kay kuya paranz, on some of his points.

My first microcontroller project both in Atmel and PIC was the blinking LEDs.

For me, the easiest microcontroller to learn are 8051s (atmel gamit ko dati). Di ko lang nga alam kung may available DIY Programmer 'to pero I guess meron. But PIC is a lot better, wider support than 8051s.

On the breadboard side, tama magbreadboard ka. Nakakaasar kung gumagawa ka ng project sa PCB tas sinolder mo na tas may mali pala. Nakakapagod magtanggal ng solder. Kung breadboard, you can RIP-IT-OFF kung may mali.

Reminder pala kung di ka magbreadboard, wag mong isulda ang microcontroller pins sa PCB. Gumamit ng IC-socket. Akala ko dati ganun eh.  Cheesy
Logged

mikko = phpadik = conradmiguel.com = conrad miguel e. gozalo
rdpzycho
Technical People
Solar Power Satellite
*****

Pogi/Ganda Points: 463
Offline Offline

Gender: Male
Posts: 9144


Perfection is an Illusion


WWW
« Reply #12 on: March 28, 2008, 11:49:25 PM »

AT89C2051/4051 programmer...

http://www.kmitl.ac.th/~kswichit%20/easy1/easy.htm

eto gamit ko sa hobby projects...
Logged

‎"Keep on starting, and finishing will take care of itself."

- Neil Fiore
phpadik
CR2032 Battery
**

Pogi/Ganda Points: 1
Offline Offline

Gender: Male
Posts: 28



WWW
« Reply #13 on: March 29, 2008, 12:01:32 AM »

AT89C2051/4051 programmer...

http://www.kmitl.ac.th/~kswichit%20/easy1/easy.htm

eto gamit ko sa hobby projects...


Weeee, AT89C4051. Natry ko na yan! Hehehe.
Logged

mikko = phpadik = conradmiguel.com = conrad miguel e. gozalo
paranz
Moderator
Nuclear Reactor
*****

Pogi/Ganda Points: 167
Offline Offline

Gender: Male
Posts: 4511


1/4W resistor specialist


« Reply #14 on: March 29, 2008, 01:05:05 AM »

Weeee, AT89C4051. Natry ko na yan! Hehehe.

hello hi-skul kiddo  Grin

2 months nalang at mag ECE ka na UPdiliman. Good luck to you  Grin
Logged
phpadik
CR2032 Battery
**

Pogi/Ganda Points: 1
Offline Offline

Gender: Male
Posts: 28



WWW
« Reply #15 on: March 29, 2008, 01:26:40 AM »

hello hi-skul kiddo  Grin

2 months nalang at mag ECE ka na UPdiliman. Good luck to you  Grin

Thank you. Salamat din sa tulong. I learned a lot.

Nainstall ko na nga pala yung Proteus at Hi-Tec C. I'll be experimenting w/ it tomorrow. Cheesy
Logged

mikko = phpadik = conradmiguel.com = conrad miguel e. gozalo
Mentor Lee
Size C Battery
*****

Pogi/Ganda Points: 16
Offline Offline

Gender: Male
Posts: 193


"Call to Me and I will answer you.....


« Reply #16 on: March 29, 2008, 01:38:24 AM »

All the best sa yo bata. Mas matanda lang ng 1 year yung anak ko sa yo. Sa LaSalle sya, ECE rin. Wink
Logged

...and show you great and inscrutable things that you do not know "
--Hotline 333--
phpadik
CR2032 Battery
**

Pogi/Ganda Points: 1
Offline Offline

Gender: Male
Posts: 28



WWW
« Reply #17 on: March 29, 2008, 01:51:52 AM »

All the best sa yo bata. Mas matanda lang ng 1 year yung anak ko sa yo. Sa LaSalle sya, ECE rin. Wink

bata rin avatar ko.. Cheesy ininfluence mo noh? hehehe. Cheesy
Logged

mikko = phpadik = conradmiguel.com = conrad miguel e. gozalo
paranz
Moderator
Nuclear Reactor
*****

Pogi/Ganda Points: 167
Offline Offline

Gender: Male
Posts: 4511


1/4W resistor specialist


« Reply #18 on: March 29, 2008, 01:54:46 AM »

All the best sa yo bata. Mas matanda lang ng 1 year yung anak ko sa yo. Sa LaSalle sya, ECE rin. Wink

hindi na bata yan! 23 anyos na ngayun lang nakatapos ng hi-skul  Grin
Logged
phpadik
CR2032 Battery
**

Pogi/Ganda Points: 1
Offline Offline

Gender: Male
Posts: 28



WWW
« Reply #19 on: March 29, 2008, 02:01:52 AM »

hindi na bata yan! 23 anyos na ngayun lang nakatapos ng hi-skul  Grin

LOLs. Ba't mo ako binisto?!!! Waaaaaaaaaaaaaa..
Logged

mikko = phpadik = conradmiguel.com = conrad miguel e. gozalo
The Philippine Electronics and Technology Forum
   

 Logged
Pages: [1] 2   Go Up
  Print  
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Sample program running program plus circuit please !! « 1 2 »
Microcontroller/Microprocessor Unit Projects and Programming
Siramiko 31 5002 Last post August 27, 2008, 10:39:14 PM
by paranz
nonterminating program...
Computer Programming/Software Engineering
n 5 2022 Last post February 29, 2008, 12:52:41 PM
by n
OSHA Announces New National Emphasis Program on Silica
Industrial Engineering
ahlburuto 0 539 Last post May 14, 2008, 08:19:32 AM
by ahlburuto
help in program
Microcontroller/Microprocessor Unit Projects and Programming
mr.ece88 0 361 Last post June 08, 2009, 06:18:15 PM
by mr.ece88
elp lan sa program
Love Threads
mark_22creus 0 421 Last post July 27, 2009, 10:39:23 PM
by mark_22creus
c++ program
Computer Software
fran2no 8 1103 Last post October 21, 2009, 03:03:27 PM
by Kaizer03
what program to use in program an sms module??
Microcontroller/Microprocessor Unit Projects and Programming
Nokia 3 924 Last post November 28, 2009, 11:25:16 PM
by kelvinblank
Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!