Albany, NY
Offline
Newbie
Karma: 0
Posts: 17
|
 |
« on: October 02, 2012, 09:35:42 pm » |
I am new to Ardunio, but loving what I see so far.
I just purchased a Uno R3. I have been messing around with it and I think it is awesome!
I have not ordered any LCD's yet. However, I am looking to display 2 different LCD's, use 2 different temp sensors, and run a couple relays for power outlets. Will the Arduino be sufficient for this setup?
Thanks.
|
|
|
|
|
Logged
|
|
|
|
|
Switzerland
Offline
Faraday Member
Karma: 69
Posts: 3280
|
 |
« Reply #1 on: October 03, 2012, 05:12:46 am » |
If you use I2C LCD displays and DS18B20 temperature sensors you're fine, else you may run out of pins, depending on what "a couple of" is actually in numbers. Standard LCDs with 4-bit parallel interface use at least 6 pins, thermistors use an analog pin, so you need 14 pin out of 20 just for them. Usually you want the serial interface for debugging, make 2 additional pins, leaving 4 for your relays. Is this a couple of?
|
|
|
|
|
Logged
|
|
|
|
|
Norfolk UK
Offline
Edison Member
Karma: 23
Posts: 1320
|
 |
« Reply #2 on: October 03, 2012, 05:29:13 am » |
If you use I2C LCD displays and DS18B20 temperature sensors you're fine, else you may run out of pins, depending on what "a couple of" is actually in numbers. Standard LCDs with 4-bit parallel interface use at least 6 pins, thermistors use an analog pin, so you need 14 pin out of 20 just for them. Usually you want the serial interface for debugging, make 2 additional pins, leaving 4 for your relays. Is this a couple of?
Could you parallel the Data, R & R/W pins to both LCD's and have separate E line for each LCD's. It's not a thing I have tried but data should only get latched when the (E)nable pin is pulsed so should be able to steer the data to the required LCD. This would save 5 pins.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 114
Posts: 2205
|
 |
« Reply #3 on: October 03, 2012, 05:30:53 am » |
I am looking to display 2 different LCD's, use 2 different temp sensors, and run a couple relays for power outlets. Will the Arduino be sufficient for this setup? that would depend on whath kind of LCDs, temp sensors / relays you are talking about. Some of them can take a lot of pins.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 7
|
 |
« Reply #4 on: October 03, 2012, 07:24:42 am » |
Should be enough. 2 x 5 pins for the LCDs and 2 x 1 pin for the temperature sensor.
|
|
|
|
|
Logged
|
|
|
|
|
Albany, NY
Offline
Newbie
Karma: 0
Posts: 17
|
 |
« Reply #5 on: October 03, 2012, 07:31:11 am » |
The temp sensors need two pins I believe.... Input and output.... I will link the components I bought when I get home from work
|
|
|
|
|
Logged
|
|
|
|
|
Leeds, UK
Offline
God Member
Karma: 35
Posts: 983
Once the magic blue smoke is released, it won't go back in!
|
 |
« Reply #6 on: October 03, 2012, 07:59:13 am » |
If they are standard LCDs that work with the LiquidCrystal library, then they can share the data pins and the R/S pin. Each one simply has its own enable pin which the arduino then uses to select which to talk to. On one arduino uno alone you could have up to 9 such displays, your two temperature sensors and still be able to communicate with the computer.
|
|
|
|
|
Logged
|
~Tom~
|
|
|
|
|
|
Central MN, USA
Offline
Faraday Member
Karma: 35
Posts: 5929
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #8 on: October 04, 2012, 02:45:24 pm » |
The comments you are receiving are all about character displays. All suggestions are good. You may also use serial displays with addressing capability. My phi-panel LCD backpack has that feature. You only need 1 wire to drive up to 255 displays  If you want a graphical display, you need to indicate which one.
|
|
|
|
|
Logged
|
|
|
|
|
Albany, NY
Offline
Newbie
Karma: 0
Posts: 17
|
 |
« Reply #9 on: October 04, 2012, 02:49:50 pm » |
Yes everybody's comments are great and helpful. I said I would list what I bought so I did.
I only need to output text on the LCD's.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 114
Posts: 2205
|
 |
« Reply #10 on: October 04, 2012, 02:53:13 pm » |
which I have not purchased yet. It is hard to help you without knowing specifics about the lcds you intend to connect. In general, there is nothing inherent in arduinos to prevent multiple devices (identical or otherwise) to be connected.
|
|
|
|
|
Logged
|
|
|
|
|
Albany, NY
Offline
Newbie
Karma: 0
Posts: 17
|
 |
« Reply #11 on: October 04, 2012, 03:09:45 pm » |
I'm open to suggestions on the LCD's.
|
|
|
|
|
Logged
|
|
|
|
|
|