Author Topic: Arduino LCD shield with buttons  (Read 4617 times)

0 Members and 1 Guest are viewing this topic.

Online SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 18118
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Arduino LCD shield with buttons
« on: November 26, 2018, 09:46:00 am »
I need to do a quick and dirty project with an arduino that requires a screen and some buttons. All I can find is this: https://www.adafruit.com/product/802 It's a bit overkill, is there anything else?
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 13216
Re: Arduino LCD shield with buttons
« Reply #1 on: November 26, 2018, 10:17:29 am »
https://www.adafruit.com/product/772
2x16 character LCD, + 5 buttons all off a MCP23017 I2C port expander.  It also has a reset button on the shield and as there's a spare I/O on the port expander, it would be possible to mod it to turn Reset into a 6th user button.
« Last Edit: November 26, 2018, 10:20:53 am by Ian.M »
 

Online SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 18118
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: Arduino LCD shield with buttons
« Reply #2 on: November 26, 2018, 10:21:22 am »
OK, After a chat with my MD it sounds like they want more data on the screen so maybe the TFT is not a bad shout and apparently the adafruit stuff is well supported, now I need a 0-150A non contact current sensor too...
 


Online SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 18118
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: Arduino LCD shield with buttons
« Reply #4 on: November 26, 2018, 01:45:05 pm »
I'm going to use the adafruit 1.8" TFT display.

The, erm, 0-150A sensor is to, measure 0-150A consumption. with a 0-5V output it ill go straight into an arduino analogue pin and and be printed on the screen.
 

Offline nsrmagazin

  • Regular Contributor
  • *
  • !
  • Posts: 156
  • Country: ru
Re: Arduino LCD shield with buttons
« Reply #5 on: November 26, 2018, 01:57:21 pm »
You are mistaking something here. You want to measure "150ADC" from a "5VDC" power supply?

Please provide a circuit.
Hi all!
If you like the post, please press "thanks".
 

Online SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 18118
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: Arduino LCD shield with buttons
« Reply #6 on: November 26, 2018, 02:33:13 pm »
Yes you buy these things called sensors, you power them with 5V and put a big fat wire through them and the sensor measures the current in the wire and outputs a reading in 0-5V scale, an example of such is here: https://www.mouser.co.uk/datasheet/2/397/L01ZXXXS05-274998.pdf
 

Offline nsrmagazin

  • Regular Contributor
  • *
  • !
  • Posts: 156
  • Country: ru
Re: Arduino LCD shield with buttons
« Reply #7 on: December 03, 2018, 01:54:45 pm »
I see the programmer approach again......

These things electronics are not learned so easily, because we do it for you!

I understand the circuit: you have 33mV per division. Whats the accuracy needed?
Hi all!
If you like the post, please press "thanks".
 

Online SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 18118
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: Arduino LCD shield with buttons
« Reply #8 on: December 03, 2018, 02:03:42 pm »
I see the programmer approach again......

No you don't! You judge too fast. My background is electronics. As I explained the Arduino suits because it is a one off so I get ready made borads and libraries I don't have (because i am not a programmer).

Quote

I understand the circuit: you have 33mV per division. Whats the accuracy needed?

Give or take 1A is fine here and they will get 150mA of resolution and they never asked for it I am just being helpful knowing what their aim is (save power)
 

Offline nsrmagazin

  • Regular Contributor
  • *
  • !
  • Posts: 156
  • Country: ru
Re: Arduino LCD shield with buttons
« Reply #9 on: December 03, 2018, 02:38:58 pm »
Ok if you are electronic based. Do you know how this circuit works? Please explain the hardware? If you do, I will help you.
Hi all!
If you like the post, please press "thanks".
 

Online SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 18118
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: Arduino LCD shield with buttons
« Reply #10 on: December 03, 2018, 02:44:08 pm »
Ok if you are electronic based. Do you know how this circuit works? Please explain the hardware? If you do, I will help you.


I would love to "prove" myself to you in order to get he help I did on ask you for but unfortunately I am slightly busy with my electronics design job's current requirement that blows this little side project out of the water and for which I hardly have the time hence I am using the Arduino to save me the hassle of designing a one off and then having to work out how to talk to stuff without libraries. Thank you for your interest.
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9963
  • Country: us
Re: Arduino LCD shield with buttons
« Reply #11 on: December 03, 2018, 02:51:45 pm »
How about a Hall Effect non-contact current sensor like this:

http://www.ohiosemitronics.com/products/current/ctl-201s-150.html

OK, we have a sensor, now we need to find something with a lower price.

You can rescale the 75 mV output with an op amp...  Be aware of the bi-directional nature of the output.
« Last Edit: December 03, 2018, 02:56:25 pm by rstofer »
 

Online SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 18118
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: Arduino LCD shield with buttons
« Reply #12 on: December 03, 2018, 02:55:08 pm »
I'm going to use this: https://www.mouser.co.uk/datasheet/2/397/L01ZXXXS05-274998.pdf fairly economical and i have 2 on my desk now. The output is 5V
 

Offline nsrmagazin

  • Regular Contributor
  • *
  • !
  • Posts: 156
  • Country: ru
Re: Arduino LCD shield with buttons
« Reply #13 on: December 04, 2018, 01:25:06 pm »
I'll take your word for it.

The sensor will work, but 75mV is not good. Its better to make it 50mV. You have a "5VDC" power supply, 5/50mV = 100. if you want 150A, you need it to be 30mV.
Hi all!
If you like the post, please press "thanks".
 

Online SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 18118
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: Arduino LCD shield with buttons
« Reply #14 on: December 04, 2018, 02:02:50 pm »
Well i don't have much choice. It is the best sensor I can find as it only requires 5V not +/-15V like many. It is bidirectional so it's more like 0.3A resolution which is still fine.

My boss has just decided he does not want the power measurement anymore because the customer cannot remove it from the system easily so it's not even a problem anymore.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 20357
  • Country: gb
  • 0999
Re: Arduino LCD shield with buttons
« Reply #15 on: December 04, 2018, 02:20:19 pm »
You are mistaking something here. You want to measure "150ADC" from a "5VDC" power supply?

Please provide a circuit.
He never said anything about measuring 150A from a 5VDC supply, just that the sensor and MCU board are powered from 5V. :palm:  The 150A is probably on a 24VDC supply which might even be isolated from the 5V supply but it doesn't matter.

Yes you buy these things called sensors, you power them with 5V and put a big fat wire through them and the sensor measures the current in the wire and outputs a reading in 0-5V scale, an example of such is here: https://www.mouser.co.uk/datasheet/2/397/L01ZXXXS05-274998.pdf
Which one is it?

Well i don't have much choice. It is the best sensor I can find as it only requires 5V not +/-15V like many. It is bidirectional so it's more like 0.3A resolution which is still fine.

My boss has just decided he does not want the power measurement anymore because the customer cannot remove it from the system easily so it's not even a problem anymore.
So has the project been shelved now?
 

Online SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 18118
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: Arduino LCD shield with buttons
« Reply #16 on: December 04, 2018, 02:24:46 pm »

So has the project been shelved now?

Just the power measuring bit, the actual bit the customer wanted is to interface to our ECU and drive it manually so it is reduced to the arduino and the display+buttons with a 5V supply from the 24V
 

Offline Brumby

  • Supporter
  • ****
  • Posts: 12413
  • Country: au
Re: Arduino LCD shield with buttons
« Reply #17 on: December 06, 2018, 02:18:18 am »
... and I had just prepared a couple of samples which I was going to use to show you how to suck eggs.

Oh well.  Next time.
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 13216
Re: Arduino LCD shield with buttons
« Reply #18 on: December 06, 2018, 05:11:08 am »
If you've already done the work, might as well post them for general edification.
 

Online SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 18118
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: Arduino LCD shield with buttons
« Reply #19 on: December 06, 2018, 07:32:12 am »
I'm just going to use a plain screen with IP rated buttons. Put a piece of perspex in front of the screen and the whole thing will be mostly watertight which is what they now want.
 

Offline nsrmagazin

  • Regular Contributor
  • *
  • !
  • Posts: 156
  • Country: ru
Re: Arduino LCD shield with buttons
« Reply #20 on: December 06, 2018, 03:11:54 pm »
How do you plan to connect it to the ECU? An automotive circuit with 150A? Whats this for?
Hi all!
If you like the post, please press "thanks".
 

Online SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 18118
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: Arduino LCD shield with buttons
« Reply #21 on: December 06, 2018, 03:15:49 pm »
The measurement of 150A is no longer happening. The box will simply talk serial to the ECU that also does not have 150A in it so that the load (the 150A) the ECU is controlling can be manually controlled.
 

Offline Brumby

  • Supporter
  • ****
  • Posts: 12413
  • Country: au
Re: Arduino LCD shield with buttons
« Reply #22 on: December 06, 2018, 11:05:25 pm »
.... which is what they now want.

Ah, the moving target lives on.  Murphy just loves those.
 

Online SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 18118
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: Arduino LCD shield with buttons
« Reply #23 on: December 07, 2018, 09:13:11 am »
.... which is what they now want.

Ah, the moving target lives on.  Murphy just loves those.

My MD has- a customer that have a desire to have "something" that does something and my MD is equally inept at translating that into something specific so i wallow in the dark until I hit a jackpot.
 

Offline nsrmagazin

  • Regular Contributor
  • *
  • !
  • Posts: 156
  • Country: ru
Re: Arduino LCD shield with buttons
« Reply #24 on: December 22, 2018, 10:16:52 pm »
What I meant was, what was suppose to be the load? I can't think of anything in a car that requires 150A? Maybe its a bigger viechle?
Hi all!
If you like the post, please press "thanks".
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf