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
Arduino
  • Products
  • More
Arduino
Blog RoadTest Internet of Holiday Lights: Apartment Lighting Extravaganza Post 4
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: jdlui
  • Date Created: 24 Jan 2015 5:49 AM Date Created
  • Views 834 views
  • Likes 2 likes
  • Comments 4 comments
  • RoadTest
  • iot_holiday_lights
  • apartment_extra
  • iot_holidaylights
  • arduino
Related
Recommended

RoadTest Internet of Holiday Lights: Apartment Lighting Extravaganza Post 4

jdlui
jdlui
24 Jan 2015

This post is one my last on the Internet of Holiday Lights RoadTest. It has been quite the journey for me! When I started I barely knew what Arduino was and now I hope I have someone improved on that understanding. First off, thank you so much to the patience and generosity of Robert Peter Oakes for helping to guide me through many concepts that were completely alien to me.

 

Please check out my RoadTest Review as well!

 

My progress through the IOT RoadTest was an interesting one. As a new beginner to the Arduino platform, I had to quickly learn some of the basics so that I could hit the ground running. I got a handful of components from Peter to get me started and also bought this lovely 60 pixel RGB LED light strip which I have been in love with since it arrived. After running the basic sketches to blink the pin 13 LED light, I then was able to go ahead and power the light strip after learning how to configure the Adafruit NeoPixel library. The result was a very rewarding mixture of brilliant, rich coloured light. What I didn't realize until much later is that I was actually improperly grounding the data line so the signal noise was adding extra rainbow to my display!

image

It was easy to get addicted to Arduino after seeing pretty lights like this. I was hooked!

 

From that point on is where I started to hit my road blocks and adventures.

 

Serial Display screen

One of my biggest points of confusion came from trying to learn how to use a serial display screen. My main experience so far had been interacting with the NeoPixel strip so I was spoiled by the single data pin control style. Learning how to use the serial controlled 16x4 display meant that I had to learn how to hookup several more pins! I was initially daunted by the sheer number of pins and the fact that I had to go buy new hardware (potentiometer) but I eventually hooked up everything as follows. and figured I had stumbled upon the bable fish: All my text was coming out in Greek, Japanese, or simply gibberish.

 

IMAG0497.jpg

Greek characters appearing during a "Hello World" sketch

IMAG0504.jpg

I did not realize that I was programming in Japanese!

 

Remove%2BDB7.png

Trying to analyze the strange characters

 

I was going pretty crazy as I tried to analyze why the display was outputting Japanese characters. I began to figure that maybe one of the pins was consistently stuck in either a 0 or a 1 position, due to the fact that the strange characters often showed up in an array as seen above. What didn't make sense however, is that simply "Hello World" scripts were causing moving text all over this display.

 

I eventually gave up on trying to make this screen work. I encountered other issues with a seven segment display and also an older I2C controlled serial display. I realized that the display screen was truly secondary to my project and moved on.

 

Passive IR (PIR)

As the deadline was quickly approaching, I realized that the key to my project was accepting inputs from the environment and triggering changes in the lighting sequences. So I went with the simplest approach that I thought I could do with my crucial, remaining hours. I used a PIR sensor and a basic script to ensure that I was able to properly harness this little guy, and then tested the PIR with a single LED light:


image

The PIR is working! The next step after shiny-flash lights was learning how to make this thing accept input from sensors

 

After getting the PIR to work, I got help from Robert Peter Oakes and leveraged a darling little Arduino sketch which cycles LED sequences. He showed me the intricacies of the code and it is quite glorious: It is built to accept string commands that are then checked against an array of possible commands and then executed. While my application was much simpler (for this time at least!), I was able to run a simpler version that gives me the result below!

 

image

My final product is an odd little Christmas tree with a lot of light power! The presents under the tree are the Yun and Infineon boards which I'll be learning more about into the future!

 

Thanks for reading! I've learned a lot in the process and look forward to learning more!

  • Sign in to reply

Top Comments

  • clem57
    clem57 over 10 years ago +1
    Good to see you focus on the reel(LOL) goals...
  • Robert Peter Oakes
    Robert Peter Oakes over 10 years ago

    Me like neopixel strips as Adafruit calls them, WS2811 / WS2812s for the rest of us, but they are cool chips to work with

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • clem57
    clem57 over 10 years ago

    Good to see you focus on the reel(LOL) goals...

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jdlui
    jdlui over 10 years ago in reply to ipv1

    That is correct! image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ipv1
    ipv1 over 10 years ago

    Nice. Are those neo pixel strips?

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