BasicMicroUK - Forums

www.basicmicro.co.uk
It is currently Tue Jul 17, 2018 4:41 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Calculator
PostPosted: Wed Mar 09, 2011 2:19 pm 
Offline
New User

Joined: Wed Mar 09, 2011 2:15 pm
Posts: 3
I plan on making a simple scientific calculator
but with functions that are customized for every button

im having trouble starting off

i know i need the following:
Processor Chip (multicontroller)
Display (LCD)
Keys
Case
Power Source

so i was wondering on some of the first steps that i need to do in order to start this project
please give some input


Top
 Profile  
 
 Post subject: Re: Calculator
PostPosted: Wed Mar 09, 2011 5:40 pm 
Offline
Site Admin
User avatar

Joined: Thu Mar 01, 2001 7:00 pm
Posts: 1316
Location: Temecula, CA
First you need to choose your processor. Get a character lcd, a single line one should be ok. Also a keypad. Sparkfun sells a pretty cheap one. For now I'd suggest using a devboard with one of our modules/processors. If you want trig functions go with an AtomPro. Use our standard 9v wallwart power adapter for now. You can go battery powered later. The case can come last once you have everything working and see how big a case you will need.

_________________
Tech Support
Basic Micro - Robotic Technology Evolved


Top
 Profile  
 
 Post subject: Re: Calculator
PostPosted: Wed Mar 09, 2011 9:14 pm 
Offline
Master

Joined: Tue Jun 22, 2010 9:15 pm
Posts: 228
School project?

With that fancy interface, you almost need a UI/GUI package.
There are packages for APA screens like the KS108.

Alan KM6VV

_________________
Visit:
http://groups.yahoo.com/group/SherlineCNC/
http://tech.groups.yahoo.com/group/HexapodRobotIK/


Top
 Profile  
 
 Post subject: Re: Calculator
PostPosted: Thu Mar 10, 2011 9:45 pm 
Offline
New User

Joined: Wed Mar 09, 2011 2:15 pm
Posts: 3
how much pins will i need?
or does that depend on the LCD/Number of Keys?


Top
 Profile  
 
 Post subject: Re: Calculator
PostPosted: Thu Mar 10, 2011 11:28 pm 
Offline
Master

Joined: Tue Jun 22, 2010 9:15 pm
Posts: 228
Depends.

Read the data sheet for the selected LCD and keyboard.

Serial LCD could be 1 pin, or 10-12 for a parallel interface.

Keyboards could be serial (?), 1 pin, or 8+ for a 4x4 matrix. More keys, more pins! 4 x 6 is about what you need.

Alan KM6VV

_________________
Visit:
http://groups.yahoo.com/group/SherlineCNC/
http://tech.groups.yahoo.com/group/HexapodRobotIK/


Top
 Profile  
 
 Post subject: Re: Calculator
PostPosted: Fri Mar 11, 2011 10:54 pm 
Offline
Site Admin
User avatar

Joined: Thu Mar 01, 2001 7:00 pm
Posts: 1316
Location: Temecula, CA
Most parallel LCD character displays will require 6 pins usually. CLK,R/S,D7,D6,D5,D4. This will run the LCD in 4bit mode which is slower than 8bit more but I doubt you'll notice any slow down.

_________________
Tech Support
Basic Micro - Robotic Technology Evolved


Top
 Profile  
 
 Post subject: Re: Calculator
PostPosted: Fri Mar 11, 2011 11:22 pm 
Offline
Master

Joined: Tue Jun 22, 2010 9:15 pm
Posts: 228
Yes,

I've run 'em that way on the 'pro, as long as the LCD supports nibbles (most do).

Code:
; LCD (parallel) defines
; ground R/W pin 5 on LCD, use 5K pot LCD pin 3 (across VCC and GND)
; 11/02/10 alm
;lcdinit P0\P1\P7\P6\P5\P4,P2
;                  ; GND           pin 1
;                  ; VCC           pin 2
;                  ; Vo contrast    pin 3
LCD_RS   con P0         ; H/L Reg select pin 4
LCD_E   con LCD_RS +1   ; H/L enable     pin 6
LCD_RW   con LCD_E  +1   ; H/L read/write pin 5
;
LCD_D4   con P4         ; DB4            pin 11
LCD_D5   con LCD_D4 +1   ; DB5            pin 12
LCD_D6   con LCD_D5 +1   ; DB6            pin 13
LCD_D7   con LCD_D6 +1   ; DB7            pin 14
;                  ; BKL 4.V+        pin 15
;                  ; BKL GND        pin 16


lcdinit P0\P1\P7\P6\P5\P4
lcdwrite P0\P1\P7\P6\P5\P4,[CLEARLCD,HOMELCD,SCR,TWOLINE,"MicroMouse"]


(well, it looked better formatted when I typed it in)
You don't really need the RW line.

Alan KM6VV

_________________
Visit:
http://groups.yahoo.com/group/SherlineCNC/
http://tech.groups.yahoo.com/group/HexapodRobotIK/


Top
 Profile  
 
 Post subject: Re: Calculator
PostPosted: Sat Mar 12, 2011 1:26 am 
Offline
New User

Joined: Wed Mar 09, 2011 2:15 pm
Posts: 3
Well i will need
24 pins for input
16 pins for the LCD


Top
 Profile  
 
 Post subject: Re: Calculator
PostPosted: Thu Jul 21, 2011 7:16 am 
Offline
New User

Joined: Thu Jul 21, 2011 6:20 am
Posts: 1
It's good that you are planning to make a scientific calculator but it is not an easy job. To make a scientific calculator many scales, basic knowledge,instruments,chips were needed. But,if you have the confidence that you can make it then it's really good for that I will appreciate you.

Best of luck
--------------------------------------
Scales


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO