Author Topic: feasibility study of touchscreen controller  (Read 9540 times)

0 Members and 1 Guest are viewing this topic.

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17728
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
feasibility study of touchscreen controller
« on: July 10, 2014, 06:40:52 am »
After yet another delayed delivery of our off the shelf air conditioning controllers a bit of banter started in the office that I should just design our own one, of course the guy in the office that understands the least about electronics wants the moon possibly.

So while this won't happen soon and i may not even have the skills yet to accomplish it I don't even know where to start.

What we would be looking to achieve is a touchscreen panel as a finished item with a surround that can be fitted into a dashboard. Now i can easily write C programming to control the actual air con system it's the touchscreen interface and graphical side of it that I'm clueless on. My colleague seems to think that we can buy something customizable off the shelf. So what are out options.

I need to read sensors and control actuators and I can do all of that, how do i add the touchscreen interface to it and what is there available of semibuilt and customizable that don't break the bank?
 

Offline pickle9000

  • Super Contributor
  • ***
  • Posts: 2438
  • Country: ca
Re: feasibility study of touchscreen controller
« Reply #1 on: July 10, 2014, 07:01:35 am »
Can I ask how rough the operators are?
Are you looking for colour?
How big?

I don't think a display of this type is beyond you. Graphical displays are nice because once you have a basic setup they are easy to use in the next application.
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17728
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: feasibility study of touchscreen controller
« Reply #2 on: July 10, 2014, 07:08:00 am »
1) I don't know, we would be looking at farm machinery initially
2) Preferably
3) No idea 3 inches is a good start
 

Offline Legit-Design

  • Frequent Contributor
  • **
  • Posts: 562
Re: feasibility study of touchscreen controller
« Reply #3 on: July 10, 2014, 07:35:44 am »
http://www.eurek.it/i-prodotti/piccolo-touch

Something like this? cortex M3, display, touchscreen.

Or you could go to the moon and get android HMI devices with all kinds of certifications and just slap android app in there? As far as I know there are not much options for fully customizable GUI on budget. Probably cortex M3 type processor and using premade libraries for NXP LPC or ST STM32. SWIM or emWin

http://www.teamfdi.com/development-tools-kits/products/6/uEZGUI-1788-43WQS
Quote
The uEZGUI-1788-43WQS is designed to be used as an “off-the-shelf” Graphical User Interface (GUI) or Human Machine Interface (HMI) in a variety of end customer applications.
The more DIY and non production ready it is, the cheaper it will be.



I recently watched this and found it to be both entertaining and not a total waste of time. Manually doing the graphical stuff without library and tools to do the very basic things doesn't sound like fun thing at all. For example he talks about spending entire days to get a button correct in code because it's few pixels off. And with library can just drag and drop everything in place and call it a day.  :-+



Claimed production ready
http://www.teamfdi.com/development-tools-kits/products/1/uEZGUI-1788-43WQR-BA
Quote
FDI also offers low cost customization services for customer specific hardware, software or packaging applications at volumes of 500 units or more.
http://fi.mouser.com/ProductDetail/FDI/UEZGUI-1788-43WQR-BA/?qs=sGAEpiMZZMvo7MPqW45u%252bIOmmAxgs2oM
Is ~150€/unit too much?
« Last Edit: July 10, 2014, 08:30:24 am by Legit-Design »
 

Offline FreddyVictor

  • Regular Contributor
  • *
  • Posts: 164
  • Country: gb
Re: feasibility study of touchscreen controller
« Reply #4 on: July 10, 2014, 07:39:27 am »
nice LCD touchscreens from 4D Systems
has design software for the GUI, whether this is beyond your capability ......

UK distributor

see u-tube for example applications
 

Offline pickle9000

  • Super Contributor
  • ***
  • Posts: 2438
  • Country: ca
Re: feasibility study of touchscreen controller
« Reply #5 on: July 10, 2014, 08:08:17 am »
It doesn't sound like you are doing anything more than a basic control display. You may have or use colour but it will be used for notification purposes. No real need to draw a bird mountain scene or have extensive menus.

- Do the old way fast and simple, get a display you can live with and that is part of a family (popular and long production time).
- Do bitmaps (images) for basic modes and use blank space to keep it tidy.
- If there are routines provided by anyone (assuming it's legal) and it makes your life easier use them.

Just read the code, it should become clear what's going on. Even if you decided to go with a more complex setup you still need to get the stuff on the screen and that if what I'd like you to look at. It's not severely complicated.

I hate to point you at this but look at the bottom of the page for the code sample. I assume you can read some c. (I hope)

http://forum.arduino.cc/index.php?topic=175751.0 

 

Offline G7PSK

  • Super Contributor
  • ***
  • Posts: 3859
  • Country: gb
  • It is hot until proved not.
Re: feasibility study of touchscreen controller
« Reply #6 on: July 10, 2014, 12:42:19 pm »
1) I don't know, we would be looking at farm machinery initially
2) Preferably
3) No idea 3 inches is a good start
My experience with farmers is if it can be broken it will be and if you think  it cant be broken they will have a good try and in most circumstances succeed. 
 

Offline SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17728
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: feasibility study of touchscreen controller
« Reply #7 on: July 10, 2014, 12:55:47 pm »
Oh these are high tech farmers :) apparently the new vehicles have complete dash board and controls done with them on a 15" screen
 

Online Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11534
  • Country: my
  • reassessing directives...
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline pickle9000

  • Super Contributor
  • ***
  • Posts: 2438
  • Country: ca
Re: feasibility study of touchscreen controller
« Reply #9 on: July 10, 2014, 05:44:23 pm »
Have a look at this. It's an Arduino graphics library manual.
 

Offline SirNick

  • Frequent Contributor
  • **
  • Posts: 589
Re: feasibility study of touchscreen controller
« Reply #10 on: July 10, 2014, 07:02:11 pm »
At the low end, just about anything graphical you can buy from Adafruit is supported by their in-house graphics library and display-specific drivers.  They tend to be Arduino-centric, but if you know C++, you can strip it all down to the basics and port to any platform you want.  At this point, you have graphics primitives (lines, boxes, ellipseses, etc.), as well as support for images, so design your GUI, code your event handler, and away you go.

A slightly more expensive option is the line of displays with built-in graphics controller from 4D.

If you want something more GUI-centric, you're probably better off stepping up to emwin or the like, on a Cortex M.  Get a demo board with LCD and play with the examples.  If that combo suits you, just look for a panel with an interface compatible with the micro (which will be readily available).
 

Offline Dongulus

  • Regular Contributor
  • *
  • Posts: 232
  • Country: us
Re: feasibility study of touchscreen controller
« Reply #11 on: July 10, 2014, 08:15:46 pm »
I don't know about any pre-built solutions.

However, I do recall that STMicroelectronics has tools available for GUI development. The STM32 line can drive LCDs and ST offers free libraries and tools. Here's some an app note about their libraries. Might be worth looking into if you eventually decide to go for a board design. In fact, you could just copy what they have from STM32F429 development board because they offer a schematic on their website [link].
 

Offline MacAttak

  • Supporter
  • ****
  • Posts: 683
  • Country: us
Re: feasibility study of touchscreen controller
« Reply #12 on: July 11, 2014, 03:11:15 am »
What's wrong with using a tablet with bluetooth capability and a paired microcontroller board that you build? The microcontroller can do all of the system controls, and can be installed into a sturdy enclosure and hidden away. Tablets are commodity devices now, and easily replaced if it breaks. This also gives you a huge benefit of having access to a very mature and powerful UI stack courtesy of the tablet's software platform. And if you don't feel up to the UI design/code challenges then you can easily find contractors who specialize in mobile application development to do that part for you.

Side bonus: the driver can turn on autopilot mode (those big tractors can usually drive themselves) and play Solitaire on the tablet. Everybody wins!
 

Offline Legit-Design

  • Frequent Contributor
  • **
  • Posts: 562
Re: feasibility study of touchscreen controller
« Reply #13 on: July 11, 2014, 03:27:47 am »
Put SOAP router in it! As a bonus you gain some internets! All this new wireless display technology is so weird and wonderful. Plus they made it easy to use for stupid people. Since it uses smart routing technology it can find routes in the fields like no other.

https://www.indiegogo.com/projects/soap-the-intelligent-touchscreen-quad-band-router-smart-automation-center


With soap router you can control it from anywhere in the world? Just go to caribbean islands and lay on the beach and have your harvesters do the work for you.
 

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5550
  • Country: us
Re: feasibility study of touchscreen controller
« Reply #14 on: July 11, 2014, 03:33:00 am »
Just don't forget to charge your device with internets

https://www.indiegogo.com/projects/wifiex

hmm, I guess indiegogo pull the plug on the rechargeable internet device covering the whole planet with satellites for just $400,000 ;)

kidding aside, I think MacAttak has the right idea.
 

Offline pickle9000

  • Super Contributor
  • ***
  • Posts: 2438
  • Country: ca
Re: feasibility study of touchscreen controller
« Reply #15 on: July 11, 2014, 04:02:52 am »
What's wrong with using a tablet with bluetooth capability and a paired microcontroller board that you build? The microcontroller can do all of the system controls, and can be installed into a sturdy enclosure and hidden away. Tablets are commodity devices now, and easily replaced if it breaks. This also gives you a huge benefit of having access to a very mature and powerful UI stack courtesy of the tablet's software platform. And if you don't feel up to the UI design/code challenges then you can easily find contractors who specialize in mobile application development to do that part for you.

Side bonus: the driver can turn on autopilot mode (those big tractors can usually drive themselves) and play Solitaire on the tablet. Everybody wins!

The simple answer is price. Many heavy equipment manufacturers (similar class) cringe at putting flashy stuff in. This application could be served by a numerical display to show temp, a couple of mode leds and an encoder knob to set the temp. Simple and robust. A touch screen need only emulate that level of interface. Show temp, setpoint, and whatever else the AC needs, perhaps diagnostics.

Done well the box could be repurposed for other simple tasks, raising and lowering and accessory, could even have the name and an image of the item, even a locked in position indicator. Yes you would need a couple driver/input boards but they contain parts subject to failure so best to give them on their own pcb anyway. Why go for a system like this simple, the hardware part can stay as is for many years. 
 

Offline SirNick

  • Frequent Contributor
  • **
  • Posts: 589
Re: feasibility study of touchscreen controller
« Reply #16 on: July 11, 2014, 07:11:06 pm »
Bluetooth and WiFi are great and all, but really... KISS.  A micro, LCD, and a few GPIO ports are pretty cheap and easy to assemble.  Any time I see a tablet doing a microcontroller's job, I can't help but think "hack job".  It's gross overkill that's more likely to break than something that is built to purpose.

On the flip side of that, I agree having options for expansion is a good idea.  Maybe the controller can use i2c or CANbus, and your GPIO can be external.  A simple firmware upgrade and another device board on the bus, and you can add control for whatever today's emerging tractor accessories market throws at you.
 

Offline pickle9000

  • Super Contributor
  • ***
  • Posts: 2438
  • Country: ca
Re: feasibility study of touchscreen controller
« Reply #17 on: July 11, 2014, 07:16:08 pm »
Bluetooth and WiFi are great and all, but really... KISS.  A micro, LCD, and a few GPIO ports are pretty cheap and easy to assemble.  Any time I see a tablet doing a microcontroller's job, I can't help but think "hack job".  It's gross overkill that's more likely to break than something that is built to purpose.

On the flip side of that, I agree having options for expansion is a good idea.  Maybe the controller can use i2c or CANbus, and your GPIO can be external.  A simple firmware upgrade and another device board on the bus, and you can add control for whatever today's emerging tractor accessories market throws at you.

I totally agree.
 

Offline Rufus

  • Super Contributor
  • ***
  • Posts: 2095
Re: feasibility study of touchscreen controller
« Reply #18 on: July 11, 2014, 08:15:28 pm »
The trouble with any cheap LCD display is they are produced on the back of millions of sales of products with 1-2 years lifetime. Finding an LCD display you know you will still be able to buy in 5 years time is challenging.

A common industrial strength solution for low volumes would be HMIs like here

http://shop.maple-systems.com/merchant.mvc?Screen=CTGY&Store_Code=MS&Category_Code=GraphicHMI

Comprehensive software for designing the UI and fairly simple PLC type protocols for talking to the 'machine'.

 

Offline SirNick

  • Frequent Contributor
  • **
  • Posts: 589
Re: feasibility study of touchscreen controller
« Reply #19 on: July 11, 2014, 08:53:00 pm »
That's a fair point, however... it needn't be the exact same LCD.  If you buy a micro with a built-in LCD controller, it will speak some fairly common protocol, and any compatible panel will do just fine.  Likewise, if you spec an LCD that uses a simple parallel or SPI interface, then any subsequent panel is trivial to adapt even if you decide to change micros.

No one wants to reinvent the wheel, but if the interface can be made modular, then you tweak a config file, maybe spin a new bezel, and you're back in production.  At most, you're forced to write (or find) a new driver library.  That's not nothing, but it's not bad in the scheme of things.

For that matter, will you still be able to acquire the same tablet in 5 years?  Will it be able to run the same mobile app w/o changes?  Nothing is certain.
 

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 8515
  • Country: us
    • SiliconValleyGarage
Re: feasibility study of touchscreen controller
« Reply #20 on: July 11, 2014, 08:56:28 pm »
get the tft toolkit from mikroe

simply draw your screens like in visual studio. buttons, sliders , textboxes whatever.

then attach your code.
done. supports all common tft displays with embedded controllers and touchscreens.
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 

Offline Legit-Design

  • Frequent Contributor
  • **
  • Posts: 562
Re: feasibility study of touchscreen controller
« Reply #21 on: July 13, 2014, 06:43:22 am »
1) I don't know, we would be looking at farm machinery initially
2) Preferably
3) No idea 3 inches is a good start

What about screen update speed? People are used to "60fps awesome graphics"  with their smartphones and computers. What if the user interface is awfully laggy and slow with some bottom of the range microcontroller? First thing when they see something working slower than usual is to ask if they have received faulty displays...
 

Offline pickle9000

  • Super Contributor
  • ***
  • Posts: 2438
  • Country: ca
Re: feasibility study of touchscreen controller
« Reply #22 on: July 13, 2014, 07:29:23 am »
1) I don't know, we would be looking at farm machinery initially
2) Preferably
3) No idea 3 inches is a good start

What about screen update speed? People are used to "60fps awesome graphics"  with their smartphones and computers. What if the user interface is awfully laggy and slow with some bottom of the range microcontroller? First thing when they see something working slower than usual is to ask if they have received faulty displays...

A control system update speeds of less than 10 frames per second (usually much less) are all that's needed. An lcd on a good multimeter will update 4 times per second. The layout or the graphics are whats critical. Keeping most of the display static helps the illusion and gives the display a look that can be carried through the design.

The most critical update rates would only be needed during actual temp adjustment and even then it need not be high. A couple up down arrows that change a two digit number (the rest of the screen remains the same). There is a reason you often see 4 updates per second in multimeters and 2 is not uncommon in a cheap one.

Again just my opinion for this particular application, the control of an air conditioner.
 

Online Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11534
  • Country: my
  • reassessing directives...
Re: feasibility study of touchscreen controller
« Reply #23 on: July 13, 2014, 11:11:49 am »
"60fps awesome graphics"
its a marketing hype in darwinian era, 25-30fps is the threshold down to 15fps still acceptable.
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline SirNick

  • Frequent Contributor
  • **
  • Posts: 589
Re: feasibility study of touchscreen controller
« Reply #24 on: July 13, 2014, 11:38:29 pm »
I have an Arduino (ATmega328P @ 16MHz) reading a MSGEQ7 IC (analog audio to 7-band spectrum analyzer) via ADC, and updating a 32x16 RGB LED matrix with soft PWM for color mixing.  It can run fast enough to look completely fluid.

You should be able to drive a moderate-resolution LCD with a reasonable control interface (one that doesn't require PWM for color) on a Cortex M with absolutely no concern over perceived frame rate.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf