caramoan tour package

caramoan tour package

Author Topic: NEED HELP in PIC PROG... MCU /w keypad interface to UART...  (Read 4219 times)

Offline zer0w1ng

  • Technical People
  • Gas Turbine
  • *****
  • Posts: 2179
  • Pogi/Ganda Points: 305
  • Gender: Male
  • Enter any 11-digit prime number to continue...
    • The Cebuano Geek
Re: NEED HELP in PIC PROG... MCU /w keypad interface to UART...
« Reply #60 on: February 26, 2010, 06:31:03 PM »
You're welcome. :)
The Cebuano Geek

Philippine Electronics Forum

Re: NEED HELP in PIC PROG... MCU /w keypad interface to UART...
« Reply #60 on: February 26, 2010, 06:31:03 PM »

Offline 0b00000111

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 6129
  • Pogi/Ganda Points: 398
  • There is no delight in owning anything unshared.
Re: NEED HELP in PIC PROG... MCU /w keypad interface to UART...
« Reply #61 on: February 27, 2010, 03:56:33 AM »
You're welcome din :)
E-Gizmo Mechatronix Central: www.e-gizmo.com

Tel #: (63)(2) 536-3378
Globe +63915-973-7691
Smart +63921-779-0748

Location Map

YM: julie.egizmo  aka Born2BeWired  ;D

Philippine Electronics Forum

Re: NEED HELP in PIC PROG... MCU /w keypad interface to UART...
« Reply #61 on: February 27, 2010, 03:56:33 AM »

Offline reaver26

  • Size AAA Battery
  • ***
  • Posts: 99
  • Pogi/Ganda Points: 0
  • Gender: Male
Re: NEED HELP in PIC PROG... MCU /w keypad interface to UART...
« Reply #62 on: March 04, 2010, 12:58:27 PM »
questions lang ako:

sir zerowing.. upon MCU sending out ba putol2 ba talaga?

example:

puts"Room Activated\r\n";

babasahin ko ang pag rcv sa vb.net

nahahati po sya sa dalawa.

1st: ROOM
2nd: ACTIVATED

gagamitin sana namin ang string na yan para sa manual monitor ng system

ayaw po kasi gumana ang ReceiveInBuffer() and ReceiveOutBuffer() sa Vb.net

we tried to set ang delay to 2minutes = msDelay(120000);

ayaw din gumana.. parang di kami nag set ng delay.

pero kung buzzer ang paglalagyan gumagawan naman sya... pero kung other outputs like LIGHT output ayaw.....

Philippine Electronics Forum

Re: NEED HELP in PIC PROG... MCU /w keypad interface to UART...
« Reply #62 on: March 04, 2010, 12:58:27 PM »

Offline zer0w1ng

  • Technical People
  • Gas Turbine
  • *****
  • Posts: 2179
  • Pogi/Ganda Points: 305
  • Gender: Male
  • Enter any 11-digit prime number to continue...
    • The Cebuano Geek
Re: NEED HELP in PIC PROG... MCU /w keypad interface to UART...
« Reply #63 on: March 04, 2010, 01:12:02 PM »
The MCU sends data continously.
You could verify this with hyperterminal.

Your VB.NET may have timed-out between ROOM and ACTIVATED characters.
Or the RX buffer on the PC is low.

What you could do is just send small data from the MCU and decode it in your PC program.
For example, the MCU just sends "RA\n" and it will be interpreted and printed as "ROOM ACTIVATED" by your VB.NET
program.
This way, hindi siya putol dahil maliit lang ang sent charactes.
The Cebuano Geek

Philippine Electronics Forum

Re: NEED HELP in PIC PROG... MCU /w keypad interface to UART...
« Reply #63 on: March 04, 2010, 01:12:02 PM »

Offline reaver26

  • Size AAA Battery
  • ***
  • Posts: 99
  • Pogi/Ganda Points: 0
  • Gender: Male
Re: NEED HELP in PIC PROG... MCU /w keypad interface to UART...
« Reply #64 on: March 04, 2010, 01:21:02 PM »
The MCU sends data continously.
You could verify this with hyperterminal.

Your VB.NET may have timed-out between ROOM and ACTIVATED characters.
Or the RX buffer on the PC is low.

What you could do is just send small data from the MCU and decode it in your PC program.
For example, the MCU just sends "RA\n" and it will be interpreted and printed as "ROOM ACTIVATED" by your VB.NET
program.
This way, hindi siya putol dahil maliit lang ang sent charactes.

i increased the readtimeout ng vb.net into 1000. yung din naicip namin... hindi na lang namin parereplyin ng string ang mcu maliban dun sa character to activate the MCU.

"G" = lock the door
"g" = unlock the door, deactivate the security lock, activate OK LED
"t" = 2mins before time ends.
"a" = alarm



Philippine Electronics Forum

Re: NEED HELP in PIC PROG... MCU /w keypad interface to UART...
« Reply #64 on: March 04, 2010, 01:21:02 PM »

Offline reaver26

  • Size AAA Battery
  • ***
  • Posts: 99
  • Pogi/Ganda Points: 0
  • Gender: Male
Re: NEED HELP in PIC PROG... MCU /w keypad interface to UART...
« Reply #65 on: March 09, 2010, 12:26:24 PM »
pa OT:

sino my alam sa fingerprint scanner?

Offline xozip_neutron

  • LR44 Battery
  • *
  • Posts: 5
  • Pogi/Ganda Points: 0
Re: NEED HELP in PIC PROG... MCU /w keypad interface to UART...
« Reply #66 on: March 09, 2010, 04:09:45 PM »
aaahmm...

i'm a EE student...
and i want to make a project that can
sense the position of the sun for my PV panel...
I think this PIC controller can complete my project...
the problem is i dont have any background in PIC... can any one hepl me please....

Offline zer0w1ng

  • Technical People
  • Gas Turbine
  • *****
  • Posts: 2179
  • Pogi/Ganda Points: 305
  • Gender: Male
  • Enter any 11-digit prime number to continue...
    • The Cebuano Geek
Re: NEED HELP in PIC PROG... MCU /w keypad interface to UART...
« Reply #67 on: March 09, 2010, 07:18:52 PM »
Please post your problem in a separate thread/topic.
There was also a discussion here on the forum about solar panel tracking.
Just do a search.
The Cebuano Geek

Offline reaver26

  • Size AAA Battery
  • ***
  • Posts: 99
  • Pogi/Ganda Points: 0
  • Gender: Male
Re: NEED HELP in PIC PROG... MCU /w keypad interface to UART...
« Reply #68 on: March 12, 2010, 03:30:25 AM »
mga masters... ask lang ako... bigla lng kasi nag come up sa mind ko ang question na ito..

how can my proposed system be used over multiple doors:

current setup ko is only limited to 1 door.

ratio ng mcu to door is 1:1.

does every mcu = 1 communication port.

pwede po ba na 5 mcu : 5 doors = 1 communication port?

meron ako naisip na solution pero i dont know if it will work.. does MCU can be triggered over switch like sa LAN?


Offline zer0w1ng

  • Technical People
  • Gas Turbine
  • *****
  • Posts: 2179
  • Pogi/Ganda Points: 305
  • Gender: Male
  • Enter any 11-digit prime number to continue...
    • The Cebuano Geek
Re: NEED HELP in PIC PROG... MCU /w keypad interface to UART...
« Reply #69 on: March 12, 2010, 07:16:06 AM »
Pwede, just use USB-to-serial converters available in computer stores/cdrking.
So 1 comm port per PIC pa rin.

Another way is to make your own protocol.
Convert the serial line to multi-drop like RS485 or CAN bus where multiple slaves could transmit but not the same time.
You have to take in account collisions and error checking.
This approach is a bit difficult. The above suggestion is much simpler.
The Cebuano Geek

Offline reaver26

  • Size AAA Battery
  • ***
  • Posts: 99
  • Pogi/Ganda Points: 0
  • Gender: Male
Re: NEED HELP in PIC PROG... MCU /w keypad interface to UART...
« Reply #70 on: March 12, 2010, 02:35:03 PM »
Pwede, just use USB-to-serial converters available in computer stores/cdrking.
So 1 comm port per PIC pa rin.

Another way is to make your own protocol.
Convert the serial line to multi-drop like RS485 or CAN bus where multiple slaves could transmit but not the same time.
You have to take in account collisions and error checking.
This approach is a bit difficult. The above suggestion is much simpler.

sir zerow1ng.. ang RS485 ito parin yung ginagamit sa RJ45? pwede ba yung existing rs232 ko na chip palitan ng rs485 and the code within the pic16f877a?

Offline 0b00000111

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 6129
  • Pogi/Ganda Points: 398
  • There is no delight in owning anything unshared.
Re: NEED HELP in PIC PROG... MCU /w keypad interface to UART...
« Reply #71 on: March 12, 2010, 02:58:50 PM »
RS485 can use any connectors other than RJ45... if you'll use RS485, chances are magkaroon ka ng changes because you will be needing some addressing scheme para sa RS485.
E-Gizmo Mechatronix Central: www.e-gizmo.com

Tel #: (63)(2) 536-3378
Globe +63915-973-7691
Smart +63921-779-0748

Location Map

YM: julie.egizmo  aka Born2BeWired  ;D

Philippine Electronics Forum

Re: NEED HELP in PIC PROG... MCU /w keypad interface to UART...
« Reply #71 on: March 12, 2010, 02:58:50 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com