Pages: [1]   Go Down
Author Topic: I'm on a short schedule and need some help  (Read 1420 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 6
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm an electrical engineering student at Worcester Polytechnic Institute and I'm taking a class where we designed a product in groups and then build it. I'm in charge of the programing for our product, which basically amounts to an exercise bike. Up until this point I have been using an MSP430 to control an EA dogm162 LCD display with little success. After spending a huge amount of time trying to debug the LCD I discovered it's broken and I don't have enough time to order a new one. Fortunately my friend gave me his extra Arduino Duemilanove and a HD44780 LCD display.

I'm a beginner when it comes to Microprocessors so forgive me if I ask any stupid questions.

At point I have two options:

1) I can scrap the MSP430 and try to bring what I can of my C code to the Arduino. This seems like bar far the easier option in terms of interfacing with the new display.

There are a couple of downsides to this plan. First of all I've never programed for the Arduino and I need to be able to pick it up fast, I'm most comfortable programing in C and know very little object oriented programing. One of the most important aspects of the program is code for an ADC, so hopefully that will be easy to set up again.

Also, I had programed a start up song that played through the MSP430f449's built in speaker. I have another small speaker I could hook up to the outputs of the Arduino, would this be easy to implement? If I have to it wouldn't be a big deal to give up the song.

Not including  the I/O pins needed for the LCD screen or potential Speaker I need AT LEAST 7 other I/O ports but it would be much better if I could use eight.

The biggest issue with this plan is that the most of the Arduino website is down so I can't get the software I need to program it. I do have IAR Kickstart and IAR for ARM if either of those would be easy to use. If not I would be infinitely grateful to anyone who could host the program somewhere else for me to download or if it's small enough zip it and email it to me.

2) My second option is to try to get the HD4480 to work with the MSP420. I've been trying  to make my way through the 60 page data sheet but it's slow work. Not only is this consuming time I don't have but I also feel like I'm in over my head.


Any help or hints people could provide would be extremely valuable and greatly appreciated.

Thanks!

EDIT: This is the data sheet I'm trying to read: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1292053153/0#0
« Last Edit: December 11, 2010, 02:43:38 am by cbakstran » Logged

Central Europe
Offline Offline
Edison Member
*
Karma: 7
Posts: 1220
Use the Source, Luke.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can interface those displays quite easily. You need 4 data lines, and about 2 control lines. After this, you just need to know what commands to send to the display. For a working example how that works, look at the Arduino library Liquid Crystal, specially the constructor with 6 parameters. The interfacing there is via independent digital output without any cute processor support. Once you have thecommunication done, you can rip the necessary commands easily from the library.

Moving over to the Arduino isn't too hard either. Look at the analogue Input tutorial for a short sample how to read analoge values.

All in all, both options are possible, though I guess hooking up the new display to your processor will be a little easier.

Korman
« Last Edit: December 11, 2010, 02:57:52 am by Korman » Logged

Lancashire, UK
Offline Offline
Edison Member
*
Karma: 9
Posts: 1991
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Using the analog pins as digital, you should be able to get 15 pins free.  The LCD needs a minimum of 6.

You don't say which operating system you use. The Windows zip file is 85Mb, I'm presently uploading a copy I have to a globally accessible site since its too big for e-mail.  The Linux version is much smaller, not sure about the Mac.

Its looking like this forum is the only part of the site working at the moment.
« Last Edit: December 11, 2010, 02:58:59 am by stephen_t » Logged


0
Offline Offline
Newbie
*
Karma: 0
Posts: 6
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Unless I'm going to the wrong URL I think that the Arduino site that hosts the Arduino library Liquid Crystal and the analogue tutorial is down. If I'm wrong then I would appreciate the correct link.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 6
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you so much pluggy. I'm running Windows 7.
Logged

Lancashire, UK
Offline Offline
Edison Member
*
Karma: 9
Posts: 1991
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

About another 15 minutes before its uploaded.  It will have the LiquidCrystal library built in. The playground is working :

http://www.arduino.cc/playground/Code/LCD

Heres a bit on the ADC on this forum : http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1273055713
Logged


0
Offline Offline
Newbie
*
Karma: 0
Posts: 6
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Awesome man, you're a life saver.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 6
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

One other question, It would be nice to be able to work from home but I don't own a power source. Is possible to run a program on the Arduino using the USB as a power source? If so, can the Arduino output power to the LCD screen?
Logged

Lancashire, UK
Offline Offline
Edison Member
*
Karma: 9
Posts: 1991
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Short version , heres the google code code site which hosts the software : http://code.google.com/p/arduino/downloads/list
You want the 0021 version.
Logged


Lancashire, UK
Offline Offline
Edison Member
*
Karma: 9
Posts: 1991
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes the USB will run a LCD panel, I have one running at the moment powered solely by USB.
Logged


Lancashire, UK
Offline Offline
Edison Member
*
Karma: 9
Posts: 1991
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

One I just uploaded :  http://www.pluggy.me.uk/mod/arduino-0021.zip
Logged


0
Offline Offline
Newbie
*
Karma: 0
Posts: 6
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That's great! I can't thank you enough!
Logged

Lancashire, UK
Offline Offline
Edison Member
*
Karma: 9
Posts: 1991
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Its a bit late/early for the yanks......  smiley-wink
Logged


Pages: [1]   Go Up
Jump to: