Hi guys,
Does anyone know how to interface a 24v keypad to a microcontroller.
Usually I would use a 5v keypad and connect it directly to one of the ports with pull up resistors. However I can only find a 24v one for cheap on farnell so I have to use this...
Perhaps its not detecting the disc.
Again I would advise cleaning the laser/lens.
You can use ethanol or laser/lens cleaning solution.
If you don't have these you can also use distilled white vinegar, mixed in with water. 1 part vinegar to 10 parts water.
Thanks,
I'm not sure how the LCD actually works though, so the controller is confusing me further.
How does the dots work? Do you have to program each segment one at a time, with the right dots?
Okay, I've attached the datasheet and the circuit diagram.
The LCD used in the circuit diagram is standard, but the pins match up.
There might be a library I can use in the Hi-Tech C Compiler I'm using, but I'm not sure.
The datasheet has limited information. Please wait until I can get to a computer to provide the datasheet and how I've connected it to the pic.
It's a standard text lcd.
Hi Guys,
I'm trying to learn how to program LCD modules with a pic16f73.
Does anyone have some useful information on what I need to know? I understand how to connect each pin up and what there functions are.. but I'm struggle to understand how to write text to it in code. For example how to...
Welcome Mike,
I must agree with John, your programming experience will prove useful when learning to program micro-controllers.
You have much more flexibility with micro-controllers as you can create your own hardware, very simple to program in C.
You need to create a timer0 interrupt routine of 60 seconds. Then your subroutine for the interrupt should include a count variable, which counts to 60 (60s x 60 = 1 hour).
To do this you need to work out the value of TMR0 using this formula:
Freq. out = Freq. osc / [prescaler * (256 - TMR0) *...
Thanks Dan,
I don't quite understand the use of an inclusion guard.
Let me have a read through the entire tutorial :D I like to read slowly and from start to finish so it sinks in.. might take me a few days.
I'll let you know how I get on.
PS. Turns out my first attempt at using header...
Thanks guys and @chopnhack :D
I originally learnt assembly in University but converted to C at work. :confused:
You wont believe the similarities, once you learn the syntax its pretty straight forward.
I'll give this ago now :)
Hi Guys,
Does anyone know how to use header files to simplify programming.
I'm using MPLAB and HI-TECH compiler.. programming in C.
I've managed to create my .h file with the C programming inside, so how do i include that in a general program?
Haha, I think you guys confuse way to easily. Still I apologize ;)
I created two threads as they were for two different projects, the initial counter used a butterfly contact and a metal strip to activate the counter.
The next project adapted the original circuit to operate via a reed...