Editing Microcontroller User Interfaces
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
== Input == | == Input == | ||
− | |||
− | |||
Line 9: | Line 7: | ||
*Pro Cheap, simple, uses only 1 bit port | *Pro Cheap, simple, uses only 1 bit port | ||
*Con If you use a bunch uses a lot of port bits | *Con If you use a bunch uses a lot of port bits | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== Rotary Switch === | === Rotary Switch === | ||
*Pro | *Pro | ||
*Con | *Con | ||
− | + | ||
Can be self decoding: position of switch indicates state of microcontroller. | Can be self decoding: position of switch indicates state of microcontroller. | ||
=== Rotary Encoder === | === Rotary Encoder === | ||
− | *Pro | + | *Pro |
− | *Con | + | *Con |
− | |||
− | === Potentiometer | + | === Potentiometer === |
Use to feed a voltage to an analog to digitial converter. You sould be able to get quite a few discrete values out of this while still having it easy to use. Instead of a pot you can use a rotary switch with fixed resistors switched. | Use to feed a voltage to an analog to digitial converter. You sould be able to get quite a few discrete values out of this while still having it easy to use. Instead of a pot you can use a rotary switch with fixed resistors switched. | ||
Line 37: | Line 28: | ||
*Pro | *Pro | ||
*Con | *Con | ||
− | |||
− | |||
− | |||
− | |||
== Output == | == Output == | ||
Line 48: | Line 35: | ||
In its simplest form either on or off, slightly harder to read are various patterns of blinks. | In its simplest form either on or off, slightly harder to read are various patterns of blinks. | ||
− | * Pro | + | *Pro |
− | * Con | + | *Con |
=== Multiple Led === | === Multiple Led === | ||
*Pro Cheap, simple, easy to drive. One port bit per led ( untill you get to large numbers where ticks kick in ) Match with a pushbutton and state of the microcontroller and means to change it is simple. | *Pro Cheap, simple, easy to drive. One port bit per led ( untill you get to large numbers where ticks kick in ) Match with a pushbutton and state of the microcontroller and means to change it is simple. | ||
− | * Con | + | *Con Can use more port bits than you have. |
− | |||
− | |||
− | |||
− | |||
− | + | A shift register can make driving a large number easier. | |
− | |||
− | |||
=== 7 Segment Led === | === 7 Segment Led === | ||
− | + | *Pro | |
+ | *Con | ||
− | + | === LCD === | |
− | |||
− | |||
− | === | ||
In the nibble mode mode needs a total of 7 port bits. Some displays are backlit, others are not. | In the nibble mode mode needs a total of 7 port bits. Some displays are backlit, others are not. | ||
− | * Pro | + | *Pro Can have lots of characters, small displays are often 2 x 16. Cost is about 10 bucks. |
*Con Cost is about 10 bucks. You may not have the 7 port bits available. | *Con Cost is about 10 bucks. You may not have the 7 port bits available. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== PC on Serial Port === | === PC on Serial Port === | ||
Line 95: | Line 60: | ||
*Pro 2 bit only. Can have very fancy smart interface. Can be very useful for debugging. | *Pro 2 bit only. Can have very fancy smart interface. Can be very useful for debugging. | ||
*Con Needs PC. May need custom application. For good flexibility needs a uart on the chip. | *Con Needs PC. May need custom application. For good flexibility needs a uart on the chip. | ||
− | |||
− | |||
− |