i have also one more question please.
I need to use the ID-12 with a display also. Can i use the pic16f628a to run both?
thank you very much.
i have also one more question please.
I need to use the ID-12 with a display also. Can i use the pic16f628a to run both?
thank you very much.
Go read your manual about LCDOUT, it explains in a thorough treatise exactly how to do that. I am perceiving this to be a school project, and it would be rather easy to hand you the code, I think that would do you more harm than good.
What you learn here you can then teach to someone else, that is how this forum works, a great many of the members ARE engineers, others are just interested hobbyist, and IF you are a student, as I believe, I do not want to enable you to fail and NO I do not mean fail the class. Write your code, Make the mistakes, Show us the mistakes, and receive help.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
sorry Joe.
i dont want to start that with student or not. If you think that i'm a student you might be right.
A student that is graduated from E.E.E. and i didnt like it then gradueated with MSc DATA COMS with Distinction and i only know to do CISCO. If someone will ask me about cisco i will help him with all my stength and examples.
Sorry i didnt like a lot my first degree thats why i dont know how to use programming very well.
Right now i;m working for a reseller company of Stratasys which makes the FORTUS RP systems.
I only want to make a small project for my father's home.
I'm not a programmer or student sorry....i just do not have enouph time to spend on this.
I will try by my self and i will ask for your help.
thanks.
Not to be sorry . . . I just do not want to trip you up in your pursuit of life
all that said make sense of this
This is a cut/paste from a project Darrel really helped a lot on,(DID MOST OF) a serial backpack lcd controller.Code:' Define LCD registers and bits as 4 bit Define LCD_DREG PORTB ' port b handling the data Define LCD_DBIT 4 ' Data bits begin on PortB.4 generally must use consecutive ports starting with 0 or 4 Define LCD_RSREG PORTA ' R/S bit on portA Define LCD_RSBIT 0 ' Defined as PortA.0 Define LCD_EREG PORTA ' E Bit defined as PortA Define LCD_EBIT 1 ' Ebit set to PortA.1 DEFINE LCD_LINES 4 'Define using a 2 line LCD DEFINE LCD_COMMANDUS 2000 'Define delay time between sending LCD commands DEFINE LCD_DATAUS 50 'Define delay time between data sent. DEFINE OSC 20 lcdout $FE,1 ' Clear LCD lcdout $FE,2, " Copyright 2006 " ' lcdout $fe,$C0,"This is my text" '
The defines tell the pic which pins are working the LCD
$FE1 clears the LCD
$FE2 moves cursor to #1 position
$FE,$C0 moves the cursor to another line, my book is not handy right now
Keep in mind a 4X20 LCD is electrically in reality a 2X40 that is chopped in half and stacked so the beginning of line 2 is post 41? and the beginning of line 3 is 21, or something to that effect.
Check out the project at http://www.picbasic.co.uk/forum/cont...rial-backpacks
Oh and BTW , NOBODY hates school more than Me. I totally get it. I still on occasion have to go back and take classes
just because I want to learn what they are teaching, and I still hate it!
Last edited by Archangel; - 3rd December 2014 at 08:53. Reason: add btw
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Dear All,
first of all i would like to thank all of you for any help on my next week try.
As i told you i'm waiting next week to receive the ID-12 RFID module and the RFID chips.
I have a display and a pic16f628a here with me. I would like before i start to make first some steps in order everyone in the future to have it as a guidance.
The project is based on the RFID. So this will be the INCOMING information from an RFID chip.
The componets are going to be used are as follows. (sorry that i provide you the sparkfun but i ordered all mine from there exept the pic)
1) PIC16f628a
2) ID-12 RFID module http://www.sparkfun.com/products/8419
3) RFID reader, you need this to read the IDs from the tags in order to use them on the programm (http://www.sparkfun.com/products/8852)
4) tag (http://www.sparkfun.com/products/9417) you can use any at 125khz
5) 16x2 Character LCD - White on Black 5V http://www.sparkfun.com/products/709
these are the core components we need. Once i make the schematic and the program i will provide all the info you might need.
So now what is the thought.
1) to be able to open the door using an RFID tag.
2) the rfid tag might be unique and stored in an eeprom
3) once we pass the tag from the ID-12 module the pic will recognise the ID of the tag and display on the 16x2 the Name of the carrier.
4) after the Displayed name (0,5 seconds) the door will open.
5) there we need to clear everything and be ready to use an other tag.
Now We need to think to use the 16x2 display and the RFID module with the same pic.
1) From my point of view i need for the display 6 ports reserved from the PIC. (see attached file)
we also need to give the above code at the beggining of our program in order to specify the parameter of the display.
DEFINE LCD_DREG PORTB
DEFINE LCD_DBIT 4
DEFINE LCD_RSREG PORTB
DEFINE LCD_RSBIT 2
DEFINE LCD_EREG PORTB
DEFINE LCD_EBIT 3
DEFINE LCD_BITS 4
DEFINE LCD_LINES 2
2) then we also need for the ID-12 to reserved some pins from the pic ports but i dont know which ones. ( here i need some help) According to the attached file i would like to tell me how which pins from the ID-12 i need to connect to pic.
Once we know how many reserved pins we have then we share and seperate those pins to input from the ID-12 and output for the 16x2 lcd.
i will keep you updated with the code that i will try to write next week. Please let me know if anyone is able to help on this. I will be fololwing the code is already written here from all of you.
Best Regards,
astanapane.
Last edited by astanapane; - 30th March 2011 at 11:20.
Joe,
thank you a lot, hehehe i think we did post the same time.
Hope you'll be here and help me out next week. I will start very simple and then we can improve everything accordinally.
Best Regards
some more questions.
I guess that with the following format for the LCD
DEFINE LCD_DREG PORTB
DEFINE LCD_DBIT 4
DEFINE LCD_RSREG PORTB
DEFINE LCD_RSBIT 2
DEFINE LCD_EREG PORTB
DEFINE LCD_EBIT 3
DEFINE LCD_BITS 4
DEFINE LCD_LINES 2
i can only use the LCDOUT command and not the SEROUT2.
In case that i use for the pic16f628a the RB0 for the RFID READER then for the LCD can i use PORTA?
Then i would need also some help in the command to transfer it from the following
Serout2 porta.0,84
to the LCDOUT.
The LCDs are parallel LCD. I have seen some circuits using shift registers to adapt then to accept, or use the serial backpack you will find in the article section and serout / serout2 / hserout as you choose. It is in the final code, set to accept several baud rates. It does all the LCDOut overhead in it's PIC, freeing you projects PIC of the burden. I listed it before, but here it is again.
http://www.picbasic.co.uk/forum/cont...rial-backpacks
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks