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 Help with Arduino and VFD display
  • 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
  • State Verified Answer
  • Replies 6 replies
  • Subscribers 402 subscribers
  • Views 695 views
  • Users 0 members are here
Related

Help with Arduino and VFD display

symon777
symon777 over 12 years ago

I'm new here - be gentle smiley


I've tried a few other forums and got no response, so I'm hoping you guys can help me out.  I got a few of these displays pretty cheaply, and being I2C I thought they should be pretty easy to get working, problem is I'm stuck.  The datasheet for these displays is here - http://symon.id.au/symon/0900766b80f06185.pdf

 

I get that I need to send a device address byte, then a command or memory address byte, and then the data bytes.  I've found some code on github from someone who has used this display before, unfortunately it was with a PIC not an AVR -https://github.com/Djhg2000/OpenHUDisplay/blob/master/m12by02aa.c


The code I am using so far is below, just to try to turn one of the three LED's on, but nothing I seem to do is working.  Any help is greatly appreciated.

 

#include <Wire.h>
byte I2C_add = B10100000; //address #0
byte disp_write = B01000000; //write to display memory
byte disp_bright = B10011111; //turn on display, maximum brightness
byte led_write = B01000101; //write to LED's




void setup() {
  Wire.begin();
}


void loop() {
  Wire.beginTransmission(0); 
  Wire.write(I2C_add); //write to address #0
  Wire.write(disp_bright); //turn on display
  Wire.endTransmission();
  delay(250);
  Wire.beginTransmission(0);
  Wire.write(I2C_add);
  Wire.write(led_write); //write to LED
  Wire.write(B01000101); //turn LED 2 on
  Wire.endTransmission();
  delay(1000);
}

  • Sign in to reply
  • Cancel

Top Replies

  • Former Member
    Former Member over 12 years ago +2 verified
    i2c address should be used as an argument to beginTransmission function on Arduino, like this: Wire.beginTransmission(I2C_addr); Wire.write(disp_bright); //turn on display Wire.endTransmission();
  • symon777
    symon777 over 12 years ago in reply to Former Member +1
    Of course! It is always the easy things that are hardest to find! Thank you. The other thing I found out is that the standard Arduino Wire() library only uses 7-bit addressing, and adds the extra RW bit…
Parents
  • billabott
    0 billabott over 12 years ago

    Friend, would ye be willing to share source and pricing for this fine wee trinket?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • billabott
    0 billabott over 12 years ago

    Friend, would ye be willing to share source and pricing for this fine wee trinket?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • shabaz
    0 shabaz over 12 years ago in reply to billabott

    Also a photo of it in action - it looks nice : )

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • symon777
    0 symon777 over 12 years ago in reply to billabott

    I'm not sure if I am allowed to post where I got it from on this forum, but it starts with an R and ends with an S.

     

    I'll post up some photos when I get it to display something meaningful image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • symon777
    0 symon777 over 12 years ago in reply to shabaz

    As requested here are a couple of photos.  I have used the display for a GPS clock.  The LED's on the left side show the GPS sync status - green means the time is in sync with the GPS, and amber means there is no GPS fix and the time is being read from the RTC.  The GPS module I am using is a Skylab SKM53, and the RTC is a DS3232 - which also has a internal temperature sensor so I am displaying that as well.

    Attachments:
    image
    image
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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