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 & Tria 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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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
Arduino
  • Products
  • More
Arduino
Arduino Forum OLED 16x2 + SPI = Failure?
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 0 replies
  • Subscribers 400 subscribers
  • Views 65 views
  • Users 0 members are here
  • oled
  • spi
  • can-bus
  • arduino
Related

OLED 16x2 + SPI = Failure?

Former Member
Former Member over 13 years ago

Apologies if this has already been covered.. My GoogleFu is usually pretty good, but hasn't really turned up the answer I want.

 

 

Here's the project - Add a digital speedometer to my 2008 VW GTI. I'd investigated finding the speedo pulse, doing the math, etc.., but then stumbled on the CAN-BUS shield from SparkFun. It does exactly what I need and a whole bunch more, so I was excited when I got the (now) familiar red box with cool things to play with in it. When I ordered it, I also got a basic red-on-black LCD and an SPI backpack for it. Everything works exactly as intended, but...

 

 

The LCD is not quite as sharp and clear as I'd like. Squinting at the LCD while traveling 140 km/h isn't really a good idea anyway, so I figured I'd swap out the LCD with an OLED display. After all, they have the same basic pinout - what could go wrong?

 

 

Famous last words, of course. The OLED connected through the SparkFun SPI backpack simply doesn't work. A simple "Hello World" sketch to write to SPI produces a single "H" on the display; "ello World" and the entire second line never make it.

 

 

Now, Google did reference a couple threads talking about this problem, and one of them was the Adafruit forum. From what I gather, the OLEDs have slightly different timings, and so won't work with their backpack (in SPI mode) either.

 

 

I've the terrible feeling that I'm missing something here. I did see a shield that was using a graphic OLED onboard, and it claimed that it was using SPI. So, is there any way to get it to work with a 16x2 character OLED? The CAN-BUS shield basically uses ALL the pins, so going parallel (CS,RS,E,D04,D05,D06,D07) isn't really an option as far as I can tell so far. Maybe if I removed the joystick mappings.. that's 5 pins right there... but routing a 9-pin ribbon cable isn't a task I relish...

 

 

Ideas?

  • 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