element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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
  • 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
CodeBug
  • Learn
  • Learning Center
  • STEM Academy
  • CodeBug
  • More
  • Cancel
CodeBug
Blog 10 Code Bug Projects in 10 Days: Scrolling Name Badge!
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join CodeBug to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: element14Dave
  • Date Created: 17 Sep 2015 6:11 PM Date Created
  • Views 2572 views
  • Likes 20 likes
  • Comments 12 comments
  • code_bug
  • codebug_beginner
Related
Recommended

10 Code Bug Projects in 10 Days: Scrolling Name Badge!

element14Dave
element14Dave
17 Sep 2015
imageIntroducing CodeBug!

image  What is CodeBug

image  10 CodeBug Projects in 10 Days

image  Are You a STEM Educator?

 

 



Getting Started:

image

We start the project by visiting the CodeBug website http://www.codebug.co.uk and creating an account. It only takes a few minutes. While logged in, clock on Create to start a new project. Don't forget to save your work!

 

The interface for CodeBug contains an area to the right of the screen with is the primary programming interface. There are a series of menus that are used to store the blocks with can be dragged from the menus into the coding area. Good blocks are made to connect together, and that is what we intend to do!


Now that you have familiarized yourself with the interface, let's get started on a basic project.

 



What you need:

CodeBug

Micro USB Cable

CR2032 Battery

Computer


The Project:

 

One of the primary design characteristics of the CodeBug (besides how adorable it is) is that it is made to be worn. Combine it's wearable and the  5X5 LED grid display is perfect for creating a scrolling name badge!

 

Let's start coding our Scrolling Name Badge and we begin at...well the start which is a pre-existing block in which the coding is  ready to be built on! The Start block can be used to configure CodeBug when we run the emulation on the interface, for this project we will keep it as is.

 

For this block of code we are going to select the Scroll Sprite block from the Sprite Menu and connect it to the Start Block. This block will scroll the content to the left of the LED matrix. Since we will need something to scroll, let's also go ahead and use the Get String Sprite, also found on the Sprite Menu, and connect it to the Scroll Sprite block. The default text for the Scroll Sprite block is "Hello World", which we have replaced with "element14". Within the Scroll Sprite block you can change the rate of which the letter will scroll (we have is set at the default 100ms) or the direction of the scroll ( left,right,up, down).

 

image

From there you can run an emulator to see how the program would look on the CodeBug...

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

With the code working, click on Download, it's just under the simulator controls. When the code downloads, plug in a USB to micro USB into your computer. While holding Button A of your CodeBug also insert the micro USB to the CodeBug. The top left LED in the matrix on the CodeBug will flash. Your computer should also recognize the CodeBug as a USB drive on your computer. Copy the code downloaded from the CodeBug website to the USB drive and run the program by pressing Button B.

 

Make the badge wearable by inserting a  CR2032 battery into the holder on the back of the CodeBug and attaching to wherever you see fit

 

 

REMIX THIS PROJECT

 

See more CodeBug projects and learn how you can get one of your own by visiting: 10 CodeBug Projects in 10 Days

  • Sign in to reply

Top Comments

  • mcb1
    mcb1 over 9 years ago in reply to mcb1 +5
    I have a had a great response from the Codebug people. Hi Mark, On further inspection, the bug is with emulator not the bug version. This is because draw sprite is meant to just draw a sprite to the…
  • gregoryfenton
    gregoryfenton over 9 years ago +3
    This message will only scroll once and then stop, which is not much use as a name badge. If you add a loop (click on Loops and drag repeat while true onto the script), and place the scroll sprite part…
  • balearicdynamics
    balearicdynamics over 9 years ago in reply to mcb1 +3
    Nice Mark! This confirm the simple tests I have tried and noted in a previous post where simplifying the code to the essential the error was persisting. Now, the only fast long expected answer is what…
Parents
  • NigelB
    NigelB over 7 years ago

    A good starting point - the introduction has to be simple and clear, which is why I rated this as 3 stars, in anticipation of increasing challenge. But truly a 10 minute challenge, possibly including signing up to the Code Bug website...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • NigelB
    NigelB over 7 years ago

    A good starting point - the introduction has to be simple and clear, which is why I rated this as 3 stars, in anticipation of increasing challenge. But truly a 10 minute challenge, possibly including signing up to the Code Bug website...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
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