Arduino LCD shield with buttons - Page 1
Forum section: electronics / beginners

author: Simon
author_rank: Unknown
timestamp: November 26, 2018, 09:46:00 am
content: 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/802It's a bit overkill, is there anything else?

author: Ian.M
author_rank: Super Contributor
timestamp: November 26, 2018, 10:17:29 am
content: https://www.adafruit.com/product/7722x16 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.

author: Simon
author_rank: Unknown
timestamp: November 26, 2018, 10:21:22 am
content: 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...

author: nsrmagazin
author_rank: Regular Contributor
timestamp: November 26, 2018, 01:35:29 pm
content: Hello!For what do you need a "0-150ADC" sensor?I found this:https://www.cfcbazar.com/products/lcd-display-for-arduino-1602-keypad-shield-module-16x2-5v-blue-backlight-with-white-word-display-for-atmega328-atmega2560-uno/https://www.cfcbazar.com/products/3-2-inch-tft-lcd-display-module-touch-screen-shield-onboard-temperature-sensor-pen-for-arduino-uno-r3-mega-2560-r3-leonardo/https://www.cfcbazar.com/products/free-shipping-mega-2560-r3-for-arduino-kit-hc-sr04-breadboard-cable-relay-module-w5100-uno-shield-lcd-1602-keypad-shield/From this site:https://www.cfcbazar.com/?s=arduino+with+LCD+shield&WordApp_launch=&WordApp_mobile_site=&WordApp_demo=&WordApp_mobile_app=&orderby=promotionVolume&order=DESC

author: Simon
author_rank: Unknown
timestamp: November 26, 2018, 01:45:05 pm
content: 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.

author: nsrmagazin
author_rank: Regular Contributor
timestamp: November 26, 2018, 01:57:21 pm
content: You are mistaking something here. You want to measure "150ADC" from a "5VDC" power supply?Please provide a circuit.

author: Simon
author_rank: Unknown
timestamp: November 26, 2018, 02:33:13 pm
content: 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

author: nsrmagazin
author_rank: Regular Contributor
timestamp: December 03, 2018, 01:54:45 pm
content: 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?

author: Simon
author_rank: Unknown
timestamp: December 03, 2018, 02:03:42 pm
content: Quote from: nsrmagazin on December 03, 2018, 01:54:45 pmNo 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).QuoteGive 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)

author: nsrmagazin
author_rank: Regular Contributor
timestamp: December 03, 2018, 02:38:58 pm
content: Ok if you are electronic based. Do you know how this circuit works? Please explain the hardware? If you do, I will help you.

author: Simon
author_rank: Unknown
timestamp: December 03, 2018, 02:44:08 pm
content: Quote from: nsrmagazin on December 03, 2018, 02:38:58 pmI 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.

author: rstofer
author_rank: Super Contributor
timestamp: December 03, 2018, 02:51:45 pm
content: How about a Hall Effect non-contact current sensor like this:http://www.ohiosemitronics.com/products/current/ctl-201s-150.htmlOK, 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.

author: Simon
author_rank: Unknown
timestamp: December 03, 2018, 02:55:08 pm
content: I'm going to use this:https://www.mouser.co.uk/datasheet/2/397/L01ZXXXS05-274998.pdffairly economical and i have 2 on my desk now. The output is 5V

author: nsrmagazin
author_rank: Regular Contributor
timestamp: December 04, 2018, 01:25:06 pm
content: 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.

author: Simon
author_rank: Unknown
timestamp: December 04, 2018, 02:02:50 pm
content: 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.

author: Zero999
author_rank: Super Contributor
timestamp: December 04, 2018, 02:20:19 pm
content: Quote from: nsrmagazin on November 26, 2018, 01:57:21 pmHe never said anything about measuring 150A from a 5VDC supply, just that the sensor and MCU board are powered from 5V.The 150A is probably on a 24VDC supply which might even be isolated from the 5V supply but it doesn't matter.Quote from: Simon on November 26, 2018, 02:33:13 pmWhich one is it?Quote from: Simon on December 04, 2018, 02:02:50 pmSo has the project been shelved now?

author: Simon
author_rank: Unknown
timestamp: December 04, 2018, 02:24:46 pm
content: Quote from: Hero999 on December 04, 2018, 02:20:19 pmJust 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

author: Brumby
author_rank: Unknown
timestamp: December 06, 2018, 02:18:18 am
content: ... 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.

author: Ian.M
author_rank: Super Contributor
timestamp: December 06, 2018, 05:11:08 am
content: If you've already done the work, might as well post them for general edification.

author: Simon
author_rank: Unknown
timestamp: December 06, 2018, 07:32:12 am
content: 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.

author: nsrmagazin
author_rank: Regular Contributor
timestamp: December 06, 2018, 03:11:54 pm
content: How do you plan to connect it to the ECU? An automotive circuit with 150A? Whats this for?

author: Simon
author_rank: Unknown
timestamp: December 06, 2018, 03:15:49 pm
content: 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.

author: Brumby
author_rank: Unknown
timestamp: December 06, 2018, 11:05:25 pm
content: Quote from: Simon on December 06, 2018, 07:32:12 amAh, the moving target lives on. Murphy just loves those.

author: Simon
author_rank: Unknown
timestamp: December 07, 2018, 09:13:11 am
content: Quote from: Brumby on December 06, 2018, 11:05:25 pmMy 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.

author: nsrmagazin
author_rank: Regular Contributor
timestamp: December 22, 2018, 10:16:52 pm
content: 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?

author: Simon
author_rank: Unknown
timestamp: December 22, 2018, 10:19:18 pm
content: does the load matter? no it's not a car, it's a much bigger vehicle, which makes no difference to the requirements discussed above that now do not include measuring this load.

author: Nusa
author_rank: Super Contributor
timestamp: December 22, 2018, 10:39:35 pm
content: Quote from: nsrmagazin on December 22, 2018, 10:16:52 pmThe start circuit usually takes way more, so that's out. But the alternator/generator output leaps to mind. 150A alternators are pretty common. Or it could be a bolt-on accessory, like a power winch or wheelchair lift?

author: Simon
author_rank: Unknown
timestamp: December 23, 2018, 08:41:56 am
content: does it matter?

author: Ian.M
author_rank: Super Contributor
timestamp: December 23, 2018, 09:29:09 am
content: @Simon,IMHO you are being trolled. As an admin you've got more options than us ordinary mortals, so just lock the topic and move on to better things like enjoying this festive season!To the others who have been suckered into this:XKCD 386: Duty CallsTake a break, and chillax.Merry Christmas all!

author: Simon
author_rank: Unknown
timestamp: December 23, 2018, 09:35:57 am
content: Oh i like to keep em guessing. It will tickle the hell out of them if i have to tell them what the load was going to be

author: nsrmagazin
author_rank: Regular Contributor
timestamp: December 29, 2018, 02:03:55 pm
content: It will not tickle the hell out of us, we don't care, its your life and work on the line.Its extermely important, a measurement circuit needs to account for the movement and possible interferences, also for the chance of damage on the device. If this is needed for security purposes (the ECU does something) then a sudden change or other problem can cause harm and a woman of the Uber smart(stupid) cars to die!