Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

LCD to use with iMon

Discussion about LCD's and other related hardware

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo, Fast351, hydrolisk1792

Post Reply
HTAluvBeBeo
Posts: 4
Joined: May 29th, 2008, 2:59 pm

LCD to use with iMon

Post by HTAluvBeBeo »

Hi all !

I understood how Smartie using matrix.dll communicates with LCD

I am using PIC wiht CCS C compiler, so I change some line in one project using HTPIC C. It works so fine.

I will post source code of serial version soon

Then, the project with 18f4550 ( USB CDC version) was completed. It works fine, too.

I also had a project with IR - USB using Girder

Now I want to combine those two projects. But it seems Smartie haven't had IR feature. So, I come up with using iMon as PC software. But I did not have suitable hardware to test with iMon.

Could anyone help me to show how the hardware and software communicate ?

I will post source code after this project complete

PS: How to attach file?

caesar
Forum Supporter
Posts: 734
Joined: October 15th, 2005, 10:39 am
Location: Romania
Contact:

Post by caesar »

Hi!

Nice project! You can decode the IR signals and then use matrix's ability to send keys. Based on those keys Smartie can have actions defined to allow you to control whatever you need.

You can use http://mihd.net to upload files and http://imageshack.us for pictures.

HTAluvBeBeo
Posts: 4
Joined: May 29th, 2008, 2:59 pm

Post by HTAluvBeBeo »

Thx you so much
I did come up with sending key/letter (A,B,C,etc)
But it would be very interesting if Smartie have many functions like girder. I hope, some day... :D
Here is the serial version.
http://www.mediafire.com/?0hmxceyl3mn
PIC 16F877A
Compiler CCS C
pass to unrar is my account

The schematic is flexible

Just change the pin definition in lcd_4bit.c

Code: Select all

#define LCD_DB4   PIN_B4
#define LCD_DB5   PIN_B5
#define LCD_DB6   PIN_B6
#define LCD_DB7   PIN_B7

#define LCD_RS    PIN_B0
#define LCD_RW    PIN_B1
#define LCD_E     PIN_B2
This version is based on HTPIC -compiler - version of one member in this forum.

I will public the source code of USB version using CCS C compiler very soon

@caesar: if you need source code of USB version, PM me. I also need some advices to complete my project with IR(now is using with Girder), Fan controller, temp sensor(n x ds18b20). I did almost things seperately but haven't combine them to use with Smartie yet:D Of course when finish, I also post sch, layout .hex and maybe source code :D

caesar
Forum Supporter
Posts: 734
Joined: October 15th, 2005, 10:39 am
Location: Romania
Contact:

Post by caesar »

From the code snippet I see that you use 4bit lcd communication, I'd go for 8 bit, it's twice as fast and 877A has enough IO lines.
On 8bit communication I managed 115200bps with a 877A ;) It looks great with winamp spectrum analyzer.

You could use portd for the LCD, then have an interrupt on portb.0 to detect IR signals...


Just ask here if you have other questions.

Good luck!

PS: You can also contact me on YM or ICQ (buttons at the bottom of my posting).

HTAluvBeBeo
Posts: 4
Joined: May 29th, 2008, 2:59 pm

Post by HTAluvBeBeo »

I had to use serial port monitor software to know how Smartie send command to hardware.

For example, as I know
0xFE 0x57 0x04 (hex) is to turn on GPO4, right?

But.... maybe I am lazy
...

Could you help me list all that kind of command inAction section for my easier coding. Thank you so much:D

caesar
Forum Supporter
Posts: 734
Joined: October 15th, 2005, 10:39 am
Location: Romania
Contact:

Post by caesar »

http://www.matrixorbital.ca/manuals/LK_ ... -7T-1U.pdf

This is the most complete manual for matrix orbital displays, you can find there all the available commands. Smartie doesn't use them all though.

HTAluvBeBeo
Posts: 4
Joined: May 29th, 2008, 2:59 pm

Post by HTAluvBeBeo »

Ooh, thank you so so much:D
This is very very helpful for me:D

It seems that only FanSpeed in actions tab is not in that matrix's manual

0xFE 0xC0 [Fan no] [value]

Thank you so so much, again:D

And thank to mattcro, too. My source code is from his version on HTPIC.

Post Reply