element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
element14's The Ben Heck Show
  • Challenges & Projects
  • element14 presents
  • element14's The Ben Heck Show
  • More
  • Cancel
element14's The Ben Heck Show
Forum Basic pocket computer display modification
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join element14's The Ben Heck Show to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 32 replies
  • Subscribers 35 subscribers
  • Views 5691 views
  • Users 0 members are here
  • pc
  • build
  • code
  • pocket
  • display
  • ben_heck
  • basic
Related

Basic pocket computer display modification

ryan27968
ryan27968 over 12 years ago

Hi ben. I was watching old versions of your show and was wondering what is involved in changing the code for your basic pocket computer to work on a 20 by 4 display instead of a 16 by 4. I have tried messing around with the code but with no luck. Thanks in advance.

  • Sign in to reply
  • Cancel

Top Replies

  • Former Member
    Former Member over 11 years ago in reply to Former Member +1
    WARNING! I DO NOT HAVE ANY HARDWARE TO TEST THIS WITH! THIS MAY STILL BE BROKEN! tl;dr Now that that's out of the way, here's a (potentially) fixed copy of the script: https://gist.github.com/zanothis…
Parents
  • Former Member
    Former Member over 10 years ago

    Hey i got the same fault on the LCD.

    I also tried to use the newer version of Arduino TinyBasic (0.13) but it fails.

    And i have another big problem. The Layout of my Chatpad is different than that from the example, this means the mapping of the keys dont match. I tried to remap this. This was not as easy as i think but i got it.

    Old Map:

     

     

    const char scanMap[50] = {      // i could output directly idx,

      8,  9, 10, 40, 20, 30, 47,    // but maybe a translation map

    41, 42, 43, 39, 44, 38, 45,    // can prove useful in future.

    31, 32, 33, 35, 34, 36, 37,    // starts from 1...think 0

    21, 22, 23, 25, 24, 26, 27,    // should be reserved for

    11, 12, 13, 15, 14, 16, 17,    // future use

      1,  2,  3,  5,  4,  6,  7,

    28, 18, 19,  0,  0, 29, 46 };

     

     

    const char serialMap[4][49] = { // CHARACTER MAPPING MATRIX for "pure serial mode"

    // normal char press

    {56,  57,  48,  13, 112,  44,   0,

      0,   0,   0,  46,  32, 109,   0,

      0, 121, 120, 118,  99,  98, 110,

    97, 115, 100, 103, 102, 104, 106,

    113, 119, 101, 116, 114, 122, 117,

    49,  50,  51,  53,  52,  54,  55,

    107, 105, 111,   0,   0, 108,   8},

     

     

    // shifted

    {56,  57,  48,  13,  80,  44,   0,

      0,   0,   0,  46,  32,  77,   0,

      0,  89,  88,  86,  67,  66,  78,

    65,  83,  68,  71,  70,  72,  74,

    81,  87,  69,  84,  82,  90,  85,

    49,  50,  51,  53,  52,  54,  55,

    75,  73,  79,   0,   0,  76,   8},

     

     

    // green alt

    {56,  57,  48,  13,  61,  39,   0,

      0,   0,   0,  63,  32,  58,   0,

      0,  60,  62,  45, 126,  42,  59,

      0,   0,   0,   0,   0, 123, 125,

    33,  34, 128,  37,  36,  38,  47,

    49,  50,  51,  53,  52,  54,  55,

    91,  40,  41,   0,   0,  93,   8},

     

     

    // red alt

    {56,  57,  48,  13,  92,  35,   0,

      0,   0,   0,   0,  32,   0,   0,

      0,   0, 124,  95,   0,  43,   0,

      0,   0,   0,   0,   0,  96,   0,

    64,   0,   0,   0,   0,  94,   0,

    49,  50,  51,  53,  52,  54,  55,

      0,   0,   0,   0,   0,   0,   8}

    };  ////////// END OF MAPPING MATRIX

     

     

     

     

     

    I only Map the important Keys. Special Key are not important for this Projekt.

     

    New Map:

    const char scanMap[50] = { // i could output directly idx,

      8, 9, 10, 40, 20, 30, 47, // but maybe a translation map

    41, 42, 43, 39, 44, 38, 45, // can prove useful in future.

    31, 32, 33, 35, 34, 36, 37, // starts from 1...think 0

    21, 22, 23, 25, 24, 26, 27, // should be reserved for

    11, 12, 13, 15, 14, 16, 17, // future use

      1, 2, 3, 5, 4, 6, 7,

    28, 18, 19, 0, 0, 29, 46 };

     

    const char serialMap[4][49] = { // CHARACTER MAPPING MATRIX for "pure serial mode"

    // normal char press

    {56, 57, 48, 13, 112, 44, 0,

      0, 0, 0, 46, 32, 109, 0,

      0, 121, 120, 118, 99, 98, 110,

    97, 115, 100, 103, 102, 104, 106,

    113, 119, 101, 116, 114, 122, 117,

    49, 50, 51, 53, 52, 54, 55,

    107, 105, 111, 0, 0, 108, 8},

     

    // shifted

    {56, 57, 48, 13, 80, 44, 0,

      0, 0, 0, 46, 32, 77, 0,

      0, 89, 88, 86, 67, 66, 78,

    65, 83, 68, 71, 70, 72, 74,

    81, 87, 69, 84, 82, 90, 85,

    49, 50, 51, 53, 52, 54, 55,

    75, 73, 79, 0, 0, 76, 8},

     

    // green alt

    {56, 57, 48, 13, 61, 39, 0,

      0, 0, 0, 63, 32, 58, 0,

      0, 60, 62, 45, 126, 42, 59,

      0, 0, 0, 0, 0, 123, 125,

    33, 34, 128, 37, 36, 38, 47,

    49, 50, 51, 53, 52, 54, 55,

    91, 40, 41, 0, 0, 93, 8},

     

     

    // red alt

    {56, 57, 48, 13, 92, 35, 0,

      0, 0, 0, 0, 32, 0, 0,

      0, 0, 124, 95, 0, 43, 0,

      0, 0, 0, 0, 0, 96, 0,

    64, 0, 0, 0, 0, 94, 0,

    49, 50, 51, 53, 52, 54, 55,

      0, 0, 0, 0, 0, 0, 8}

    }; ////////// END OF MAPPING MATRIX

     

     

    But i dont now how to Compile this sketch. There are many files but i dont now wich i have to use

    It would be very nice if anyone can help me

     

    Greets

    Kaoala

     

    PS: Sry for the bad english

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    Hey, if anybody have a Layout of the Chatpad like me:

    image

    he can use this .hex file (https://drive.google.com/file/d/0B5ekX3iu3Pl-RU9Kbm9FNzg3aUE/view?usp=sharing)

    Because the Original Mapping does not fit. If you have any questions, you can write me

     

    Greets Kaoala

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • muessigb
    muessigb over 10 years ago in reply to Former Member

    I have that mapping. But because of the lack of an PIC Programmer and because my Bus Pirate wasn't able to do anything, I just wrote a driver based of one I found online.

    So I wrote a PS2Keyboard like library for the Arduino. If anybody needs it, just ask. This library works with the original firmware.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • muessigb
    muessigb over 10 years ago in reply to Former Member

    I have that mapping. But because of the lack of an PIC Programmer and because my Bus Pirate wasn't able to do anything, I just wrote a driver based of one I found online.

    So I wrote a PS2Keyboard like library for the Arduino. If anybody needs it, just ask. This library works with the original firmware.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • mohitbagur
    mohitbagur over 10 years ago in reply to muessigb

    Any help on a 16*2 screen? I'm trying to use them up..

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • etaras
    etaras over 6 years ago in reply to muessigb

    Hello! You can post
    me PS2Keyboard library file for Arduino?
    I found on the Internet Tinybasic_2_20x4.ino
    But there is no chatpad either.
    I hope you checked out the PS2Keyboard.
    By the way, Jörg Wolfram made a PS2 keyboard for the
    its AvrchipBasic on Atmega8, which is a very cool replacement for the chatpad.
    Thank you in advance, success in your projects!
    Taras K.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube