Posts Tagged JAL

Nokia 3310 LCD Driver JAL PIC Library

[An old project I moved from my previous website]

This JAL library includes functions for controlling the Nokia 3310 LCD (PCD8544 controller) and also a 5×7 font.

Currently the table used only works on 16F, but should not take much to modify it to work with 18F PICs.

It only uses 5 IO pins, so a smaller PIC could be used. The font however takes up a lot of ROM (the example program’s code size is 1305). If the text print functions (and the font) is not used it is of course much smaller, but also much less useful ;-) .

Download: Nokia 3310 LCD JAL Driver - A JAL Library to drive the Nokia 3310 LCD with a PIC. * example_lcd.jal - An example program, the output of which you can see in the photo below * nokia_lcd_p.jal - Include this first, and modify it with the pins you are using to connect * nokia_lcd.jal - The main jal library * font_5x7.jal - The 5x7 font, include after nokia_lcd.jal since it uses functions in there

Sorry for the quality of these photos. I’m blaming my digital camera, but it is most likely due to a bad photographer.

LCD connected to an 16F877 PIC

LCD connected to an 16F877 PIC

On the right is my DIY Wisp628. The interface board between the LCD and the PIC consists of two caps (required for the LCD controller), a few 1K resistors in series with the datalines, and a LM317 to regulate the 5V down to 3V which the LCD requires.

Closeup view of the font

Closeup view of the font

Both normal and ‘inverted’ printing functions are available. The clips and tape holds all the pieces of the LCD together. In my haste to see how the connections are made I broke all the plastic holding pins.

For further reading about the display and microcontrollers, please visit the following sites:

  • Share/Bookmark

, , , ,

1 Comment

LM75 Temperature Sensor with 7 segment display output

[An old project I moved from my previous website]

This is a test project built hastily on a solder less breadboard. It uses a LM75 to read the current temperature via I2C and displays the result on three 7 segment displays. It uses a PIC16F628 with an internal 4 Mhz clock.

The program was created using JAL

Note the LM75 is a surface mount device, so I had to solder wires onto it to use it on the solderless breadboard.

LM75 Temperature Sensor on breadboard

LM75 Temperature Sensor on breadboard

Sorry for the bad quality photo. The stuff on the left is a 5V voltage regulator and not shown on the schematic below.

LM75 Temperature Sensor Schematic

LM75 Temperature Sensor Schematic

Component List

Part     Value          Device      Package  Library        Sheet

D1                      7SEG-CA     7SEG-13  special        1
D2                      7SEG-CA     7SEG-13  special        1
D3                      7SEG-CA     7SEG-13  special        1
IC1      PIC16F628      PIC16F628   DIL18    microchip      1
IC2      LM75           LM75        SOP-8    andre_lm75     1
Q1       BC557C         BC557C      TO92-EBC transistor-pnp 1
Q2       BC557C         BC557C      TO92-EBC transistor-pnp 1
Q3       BC557C         BC557C      TO92-EBC transistor-pnp 1
R1       12K            R-EU_0207/7 0207/7   rcl            1
R2       12K            R-EU_0207/7 0207/7   rcl            1
R3       1K             R-EU_0207/7 0207/7   rcl            1
R4       1K             R-EU_0207/7 0207/7   rcl            1
R5       1K             R-EU_0207/7 0207/7   rcl            1
R7       220            R-EU_0207/7 0207/7   rcl            1
R8       220            R-EU_0207/7 0207/7   rcl            1
R9       220            R-EU_0207/7 0207/7   rcl            1
R10      220            R-EU_0207/7 0207/7   rcl            1
R11      220            R-EU_0207/7 0207/7   rcl            1
R12      220            R-EU_0207/7 0207/7   rcl            1
R13      220            R-EU_0207/7 0207/7   rcl            1
R14      220            R-EU_0207/7 0207/7   rcl            1

In case you are like me and couldn’t find the pinouts for the sevent segment display, here they are:

7 Segment Display Pinout

7 Segment Display Pinout

Download the project here: LM75 Temperature Sensor Project - LM75 Temperature Sensor with 7 segment display output. Uses a PIC Controller. This project includes the JAL source code, a compiled hex file and a schematic.

  • Share/Bookmark

, , , , ,

13 Comments

PIC Binary Counter – A JAL Test

This sample project uses a PIC16F628 and 8 LED’s to count in binary. Four switches are used to change the direction and speed of the counter.

The program was created using JAL.

JAL Binary Counter on breadboard

JAL Binary Counter on breadboard

Eagle schematic of counter

Eagle schematic of counter

The project is available for download here: JAL Binary PIC Counter - A JAL Project to count in binary on 8 LED's and 4 switches to change the counting behavour. Project includes JAL source, compiled HEX file and schematic

  • Share/Bookmark

, , ,

No Comments