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
  • 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
Wearable Tech
  • Challenges & Projects
  • Project14
  • Wearable Tech
  • More
  • Cancel
Wearable Tech
Blog The Thinking Cap
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Wearable Tech to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ntewinkel
  • Date Created: 14 Jan 2019 3:25 AM Date Created
  • Views 2966 views
  • Likes 16 likes
  • Comments 11 comments
  • micro:bit
  • advanced micro:bit projects
  • microbit
  • advanced_microbit_projects
  • bbc micro bit
  • wearabletechch
Related
Recommended

The Thinking Cap

ntewinkel
ntewinkel
14 Jan 2019
image

Wearable Tech

Enter Your Electronics & Design Project for a chance to win a $100 Shopping Cart!

Back to The Project14 homepage image

Project14 Home
Monthly Themes
Monthly Theme Poll

 

You already might know that I occasionally have trouble focusing my thoughts while trying to get work done.

And it's been hard keeping up with all of these element14 challenges, while my thoughts were so scattered.

 

So my wife thought of a solution: The Thinking Cap!

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

 

We have actually had this project on our list for quite a few years, as a nice fun thing to create together.

We even bought the colander for it back then. Unfortunately we never found the time to work on it.

Until now! With a bit of motivation from element14 really putting the pressure on us with the Wearable Tech Challenge! I mean, if not now, then when?

 

The main idea of the build was to have something quite techy/nerdy mad-scientist looking, with lots of wires, circuits, and of course flashing LEDs.

The colander makes for the perfect hat-like starting point and provides a really nice silvery electronic-like base.

 

When I mentioned this challenge, and our outstanding project to my dearest (Naomi) yesterday afternoon, she said it would need some cool flashing lights, ideally something based on tilting your head.

That's when I remembered that element14 had sent me a BBC Micro:Bit recently, complete with a battery pack to power it.

So I thought I could probably wire up some tilt sensors and use some leftover battery powered Christmas lights for the effects.

 

Now imagine my happy surprise when I started programming the micro:bit (at www.microbit.org) and it turned out the micro:bit already includes an accelerometer that can very easily detect tilting to whatever direction you choose!

The drag and drop blocks were surprisingly easy to work with and it was easy to quickly build a little application to do the cute little animations I was looking for.

 

The connections on it are also very nice in that the mad-scientist-look patch cables with alligator clips can just clip directly onto it!

The other thing that fell into place very nicely was that the micro:bit's 3 volt (2-AA) battery pack is exactly the right voltage to run the Christmas lights. So all I had to do was use patch cables to go from the micro:bit and onto the clips in the Christmas light battery packs.

 

I then programmed up a little LED effect to flash one string of lights when tilting left, and the other when tilting right. In the meantime it would show a somewhat animated LED display on the micro:bit's built in array of red LEDs.

 

Once that was complete, the assembly could begin.

 

This was a family project, involving all of us!

Charlie Kat was supervising, while Linus (in the back by the window) stayed safely out of the way.

image

 

I used clear hot glue to hold the LEDs in place through the colander holes, hiding the wires on the inside.

I then glued the battery packs on the inside too.

imageimage

image

The micro:bit with the clips actually fit quite nicely between a couple of lights so I hot glued it to them.

image

The nice thing about the hot glue is that I can peel it off later if I want to use the micro:bit for another project in the future.

 

After I completed the process of glueing the lights and the controller in place, Naomi took over and added the artistic flair to the project. This is when things really started to take shape image

image

 

One thing she then made me add is that big Emergency Stop button, actually wired to the micro:bit 3v and controlling a couple of LEDs at the top.

That also turned out to be easy, with a few bits of wire into the connector to the LEDs, and patch cords clipped to the big screws on the emergency stop button.

image

Most of the props on the Thinking Cap were scavenged pieces from old electronics - circuit boards from old toys and light bulbs, wires from random places, some cat-5 wire bits, and LEDs with neat coloured twisted wires from old computers.

Some parts were newish - the colander was a dollar store item, if I recall correctly; the LED Christmas lights were swiped from where they were recently adorning the house. I already had the patch cables, which also were not super expensive when I bought them.

 

element14 was kind enough to provide me with the micro:bit that controls the whole thing.

 

This is what the finished project looks like:

image

 

Naomi made me model it too...

image

 

Here is a link to the micro:bit code I used for this project:

https://makecode.microbit.org/_irs9t2h7mYgu

 

You can use "edit" to use it as a starting point for your own project.

It shows up as Javascript, but once you choose "edit" you can click on "blocks" if you prefer that style. I quite like using the blocks interface because I already look at enough code for my work every day image

 

What's neat is that you don't even need a micro:bit to try this out - they have a simulator you can do all the testing with!

image

 

I made a minor tweak to the program to get a better left/right arrow display, so here is the final code in Blocks format:

image

 

I'll embed the code here too, so you can cut 'n paste if so inclined.

 

let tilt_right = false
let tilt_left = false
input.onGesture(Gesture.TiltLeft, function () {
    tilt_left = true
    for (let i = 0; i < 20; i++) {
        pins.digitalWritePin(DigitalPin.P0, 1)
        basic.pause(100)
        pins.digitalWritePin(DigitalPin.P0, 0)
        basic.pause(100)
    }
    tilt_left = false
})
input.onGesture(Gesture.TiltRight, function () {
    tilt_right = true
    for (let i = 0; i < 20; i++) {
        pins.digitalWritePin(DigitalPin.P1, 1)
        basic.pause(100)
        pins.digitalWritePin(DigitalPin.P1, 0)
        basic.pause(100)
    }
    tilt_right = false
})
pins.digitalWritePin(DigitalPin.P0, 0)
pins.digitalWritePin(DigitalPin.P1, 0)
tilt_left = false
tilt_right = false
basic.forever(function () {
    basic.clearScreen()
    if (tilt_right == true && tilt_left == true) {
        images.iconImage(IconNames.Chessboard).showImage(0)
    } else if (tilt_right == true) {
        images.arrowImage(ArrowNames.East).showImage(0)
    } else if (tilt_left == true) {
        images.arrowImage(ArrowNames.West).showImage(0)
    } else {
        images.iconImage(IconNames.No).showImage(0)
        images.createImage(`
            . . # . .
            . . # . .
            # # # # #
            . . # . .
            . . # . .
            `).showImage(0)
    }
})

 

 

I hope you enjoyed watching the video as much as we enjoyed creating it!

 

ps, I need to give mad props to Naomi for directing, editing, and producing the video!

 

Best,

-Nico and Naomi

The DIY Nerds image

(This might be a new adventure in the works for us)

  • Sign in to reply

Top Comments

  • Workshopshed
    Workshopshed over 6 years ago +4
    "Ok Future boy, who is the president in 1986?" Love the emergency stop button, can't have you thinking too much your brain might over heat!
  • genebren
    genebren over 6 years ago +4
    What a fun and creative project. I would give you extra points for the (over) acting and voice over. Well done! Gene
  • ntewinkel
    ntewinkel over 6 years ago in reply to genebren +4
    What do you mean over acting? That's me on a normal day!
  • ntewinkel
    ntewinkel over 6 years ago in reply to jw0752

    jw0752  wrote:

    ... if I had one of these I could probably get rid of my tin foil hats.

     

    Hahaha! there's a whole other marketing spin I had not yet thought of!  image image image

     

    -Nico

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jw0752
    jw0752 over 6 years ago

    Hi Nico,

     

    I really liked your design and I think if I had one of these I could probably get rid of my tin foil hats. Electronics is truly ART.

     

    John

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ntewinkel
    ntewinkel over 6 years ago in reply to dubbie

    >I did have my thinking measured when I retired.

    That's really cool! Do you have regular updates to the tests too?

     

    I think I'd have to pay people too (or trick them) to get them to wear this thinking cap image

     

    -Nico

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dubbie
    dubbie over 6 years ago

    A great thing. It's a pity that we don't all have thinking caps similar to this.

     

    I did have my thinking measured when I retired. They even paid me for my thoughts. It was something to do with dementia in older people - I don't really remember. I do remember that the outside walking and thinking recording was postponed once due to snow! Apparently it isn't safe to record thinking if you can fall over. They didn't let me keep the recordings.

     

    Dubbie

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • 14rhb
    14rhb over 6 years ago

    Hi Nico,

     

    An absolutely unique and fun design - like the other members mention, the stop button is the crowning feature.

     

    Rod

    • Cancel
    • Vote Up +4 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