Spec Microcontroller

Go To Last Post
41 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

​Hello! 

I am looking for a bit of guidance as I have limited knowledge in programming Microcontrollers...experience covers a bit of Arduino and LabVIEW (mostly).

My goal is to have an LCD display connected to the microcontroller (Module size +- 65 x 40 mm, SPI or I2C and monochromatic) to display small error messages/codes and other information as for example temperature, speed, Test number and Timer.

Also connected to the microcontroller shall be 20 pushbuttons. 

The microcontroller will read button presses and send them to another controller as a byte and read data from the controller to know what to display on the LCD. It shall also send error code to the controller in case it has a fault. 

I do hope that my goal is clear and that someone can help me in pointing me in the right direction. 

Thank you in advance.

Last Edited: Thu. Jun 8, 2017 - 10:14 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Apart from the 20 button requirement (probably best done as a 5 x 4 keypad) then pretty much any AVR could do this. A common choice is always going to the the mega328p which is 28 pin and should have enough I/O for what you want to do (buttons done as 5 x 4 should only need 9 I/O pins).

 

BTW you posted in the wrong form - I'll move this to Tiny/Mega as that's the kind of device you probably want to use.

 

EDIT: forgot to say that the reason 328p is the common choice is because it is the processor at the heart of most Arduino boards (should be able to get one for $5 - you don't need anything else to program it)

Last Edited: Thu. Jun 8, 2017 - 10:15 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Clawson,

 

Thank you for your fast reply and for moving the post to megaAVR and TinyAVR :)  

Will look in to the mega 328p.

 

Cheers,

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The reason I say 328 is very specifically because it's the CPU on most Arduino.

 

Now just because I mention "Arduino" does not mean you are necessarily tied to only programming it in the Arduino development system and using Arduino library code. It's just a very good design of "development board" for AVR and it is easily programmed because it already contains a bootloader so you literally need nothing more than the board and USB cable (and a copy of avrdude.exe on the PC) and you can seen code you build from any development tools to it (assuming those tools produce a .hex fie as their final output).

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Would this be useful?

 

http://www.ebay.com/itm/8-Bit-LE...

 

Ross McKenzie ValuSoft Melbourne Australia

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Valusoft,

 

Thank you for your suggestion, but unfortunately that won't work for me.

What I am looking for is solely the chip so that I can control Pushbuttons and an LCD display that I will spec out. 

 

Thank you again

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Art_Rob wrote:
Also connected to the microcontroller shall be 20 pushbuttons.
Would touch buttons be acceptable?

Reason : Peripheral Touch Controller (PTC) for QTouch in PB megaAVR and tiny 1-series AVR.

The QTouch library is about 10KB of program space so likely a mega328PB; would fit in a tiny1616 or tiny1617 though not much reserve after the application (LCD, controller interface, operator interface)

Atmel START User Guide

Change Log

http://atmel-studio-doc.s3-website-us-east-1.amazonaws.com/webhelp/GUID-4E095027-601A-4343-844F-2034603B4C9C-en-US-1/index.html?GUID-DC086BFD-7DA2-43E8-8AE0-457F2351FF4C

2017 - May:

...

Features:

Update of QTouch library and configurator (v 2.0)

  • Support for SAM D10, SAM D11, ATtiny814/816/817/1616/1617 and ATmega324PB/328PB
  • ...

http://start.atmel.com/

http://www.microchip.com/wwwproducts/en/attiny1617

http://www.microchip.com/wwwproducts/en/atmega328pb

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

20 push buttons can be read using 9 I/O pins, arranged in a 4x5 matrix. Since you likely will need to debounce the button signals anyway, there will be an "abstraction layer" and the low-level of that could do the decoding of the matrix.

Googling "decode button matrix" and similar will likely give good hits.

Happy 75th anniversary to one of the best movies ever made! Rick Blane [Bogart]: "Of all the gin joints, in all the towns, in all the world, she walks into mine."

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi gchapman,

 

Thank you for your comment,

Unfortunately Qtouch won't work as the idea is to work with gloves or could it work through actuators as well? Because I have thought of using a actuators on electrical contacts...much like a keyboard or old cellphones. Perhaps this could save space but what I am worried about is if there will be a lot of complexity to it. 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Hi JohanEkdahl,

 

Thank you for your comment,

 

Will look in to it as it would save a lot of I/O pins. :) 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How I wish I had said:

clawson wrote:
(buttons done as 5 x 4 should only need 9 I/O pins).

Oh, wait a minute....

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I do 16 buttons and an LCD with a tiny4313....

 

'This forum helps those who help themselves.'

 

pragmatic  adjective dealing with things sensibly and realistically in a way that is based on practical rather than theoretical consideration.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Clawson,

 

Yes I did realize that you had mentioned it previously. I'm sorry for that.

Last Edited: Fri. Jun 9, 2017 - 08:47 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Brian Fairchild,

 

That looks really cool, the concept is quite identical to what I want to achieve. I do hope to post some progress here to show how it is going.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Art_Rob wrote:

...the concept is quite identical to what I want to achieve.

 

That LCD has an I2C interface. The switches are in a 4x4 matrix. At the top of the board, on the other side, is an RJ45 for power and full-duplex serial data. Top left, on the other side, are a pair of '176s to send and receive RS-485. Top right is a voltage regulator. You can see the 10-pin ISP connector and the xtal and associated caps are between S2 and S3. And that's it.

'This forum helps those who help themselves.'

 

pragmatic  adjective dealing with things sensibly and realistically in a way that is based on practical rather than theoretical consideration.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Art_Rob wrote:
Unfortunately Qtouch won't work as the idea is to work with gloves or could it work through actuators as well? Because I have thought of using a actuators on electrical contacts...much like a keyboard or old cellphones.
A membrane keypad (tactile switches under a thin overlay)

http://www.avrfreaks.net/forum/membrane-switchpanel-vendor-recommendations

Storm Interface

5000 Series - 16 Key Robust Keypad 4 Line Display

http://www.storm-interface.com/keypads/5000-series/5000-series-16-key-robust-keypad-4-line-display.html

...

5000 Series, 16 Key, robust keypad with an integrated 4 line x 20 character display. The display features 4 additional menu navigation keys.

...

(actuator force of 180g nominal, IP65, -20C to +60C, 100 ohm max contact resistance)

Some sealed (water resistant) keyboards have capacitive or inductive sensors.

 


http://www.mouser.com/search/ProductDetail.aspx?R=0virtualkey0virtualkeyFT2K0803 (Storm Interface)

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You can obtain a variety of 4x5 matrix keyboards from ebay, they are very cheap.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

gchapman wrote:

...A membrane keypad (tactile switches under a thin overlay)

 

Exactly how my board above is designed to work. Getting the mechanics/dimensions right takes a bit of head scratching but after that it makes a nice reliable product.

'This forum helps those who help themselves.'

 

pragmatic  adjective dealing with things sensibly and realistically in a way that is based on practical rather than theoretical consideration.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

El Tangas wrote:

You can obtain a variety of 4x5 matrix keyboards from ebay, they are very cheap.

I'll bet that matrix rug will drive my roomba edge sensors crazy!

 

Jim

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Art_Rob wrote:
Unfortunately Qtouch won't work as the idea is to work with gloves ...
At 11s of 23s in the embedded video (bottom of quote) is a demonstration of operation with 1mm thick nitrile rubber gloves :

Mouser Electronics

Noritake FLETAS 4x4 Touch Switch Keypad Module

http://www.mouser.com/new/noritake/noritake-touch-switch/

Noritake FLETAS 4x4 Touch Switch Keypad Module consists of a mutual capacitive touch switch panel, LEDs for touch switch backlighting, and touch controller.

...

 

Noritake FLETAS 4x4 Keypad Water Demo

...

It's a new arrival at Mouser.

 


http://www.microchip.com/developmenttools/productdetails.aspx?partno=attiny817-qtmoistd (ATtiny817 QTouch Moisture Demo Kit)

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ki0bk wrote:

El Tangas wrote:

You can obtain a variety of 4x5 matrix keyboards from ebay, they are very cheap.

I'll bet that matrix rug will drive my roomba edge sensors crazy!

 

Jim

 

 

lol, that's what you get from this search? Ebay thinks you're a rug collector or something? I should have posted a specific product and not a search, I guess.