Last active
March 4, 2016 11:27
Revisions
-
daniellevass revised this gist
Mar 4, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -83,6 +83,6 @@ Other proejct ideas: * Internet enabled door bells - connect a button to the cloudbit and there's a slack integration * Pet feeder - connect a pressure sensor and log any weight differences - you could find out how often your pet feeds! * Baby monitor - listen for any noise via the cloudbit - find out how often your child wakes up over night * Internet enabled umbrella stand - use the Yahoo weather API to light up an umbrella if it's due to rain * Interactive Charity counter - for Dilip going to Zambia! * Your own ideas - everyone should have their own favourite API! -
daniellevass revised this gist
Mar 4, 2016 . 1 changed file with 15 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,11 +6,11 @@ Hello, and welcome! * Build your own Thing for the Internet using littleBits in small teams * Demonstrate the Thing you've made to everyone * Write up how others (read: children) could also build your thing ### Why we're doing it I've spent the past two years teaching kids to code - littleBits are amazing but they're incredibly badly documented. Especially when you get into actually writing real code for it! And there aren't many projects that are interesting for kids to actually build. It would be great if we at BGL could populate a couple of activities kids could follow to help them get started!  >Max connected three cloudBits to the Bath Hacked pollution data to display real time pollution levels for Bath @@ -25,10 +25,12 @@ Feel free to take whichever inputs and outputs your interested in - but please o The first step to programming the bits is to sign on to the web portal at http://control.littlebitscloud.cc The username is [email protected] and I'll write the password somewhere visible for everyone to see. Note that the buttons for sign up and log in are weird - so be careful which button you push first! Once you've signed in you should see on the left hand side a list of pokemon names - click on the pokemon that matches the cloudBit you have! If you're stuck check out this page - http://bulbapedia.bulbagarden.net/wiki/Starter_Pok%C3%A9mon First check that your cloudbit has a little green dot next to the name, this means it's properly connected to the internet! Note that if you select another cloudbit you could affect other people's projects! Now you should see a massive button in the middle of the page - connect an output to your cloudBit (any green bit) and press the button. You should see something happen! If not, somethings gone wrong and ask me for some help! Along the bottom you should see a tab for settings - this is where you can find out the device id and access token which will need for the next step! @@ -65,18 +67,22 @@ $.ajax({ err ``` I already have a JSFiddle example set up - just remember to set the device id and bearer token : http://jsfiddle.net/9hypen62/ - feel free to fork this for your own project. One of the tasks surrounding making this easier for kids would be a wrapper around the HTTP Request - maybe a method they could call asking for the device id, auth token, percentage, and duration? ### Project Ideas Next, we can then customise the data we're sending based on different inputs, e.g. my favourite API is the USGS for earthquakes. I could set up a cloudBit to display how far an earthquake is from my location (london, england) every time one occurs. Other proejct ideas:  * Synchronised Christmas decorations - using timing to make different cloudbits light up * Internet enabled door bells - connect a button to the cloudbit and there's a slack integration * Pet feeder - connect a pressure sensor and log any weight differences - you could find out how often your pet feeds! * Baby monitor - listen for any noise via the cloudbit - find out how often your child wakes up over night * Internet enabled umbrella stand - use the Yahoo weather API to light up * Interactive Charity counter - for Dilip going to Zambia! * Your own ideas - everyone should have their own favourite API! -
daniellevass revised this gist
Mar 3, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@  Hello, and welcome! -
daniellevass revised this gist
Mar 3, 2016 . 1 changed file with 29 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -39,7 +39,35 @@ Along the bottom you should see a tab for settings - this is where you can find So now we've established that our bit is connected to the internet. We can look at customising it to make it useful for us! All we're going to do is send a HTTP Request using the littlebits API. We could do this in a multitude of ways but going back to the original aims - I want to make this easier for kids. Often in schools we're not allowed to install any programs, so we have to depend on web tools such as JSFiddle and JavaScript. Here's an example of a HTTP Request in JavaScript which requires us to have jQuery. ```js var token = "xx"; var device ="yy" $.ajax({ url: 'http://api-http.littlebitscloud.cc/v2/devices/'+device+'/output', type: 'post', data: JSON.stringify({ "percent": 20, "duration_ms": 1000 }), headers: { 'Authorization': 'Bearer ' + token, 'Content-Type': 'application/json', }, success: function(data) { console.log(data); }, err ``` I already have a JSFiddle example set up - just remember to set the device id and bearer token : http://jsfiddle.net/9hypen62/ One of the tasks surrounding making this easier for kids would be a wrapper around the HTTP Request - maybe a method they could call asking for the device id, auth token, percentage, and duration? ### Project Ideas -
daniellevass revised this gist
Mar 3, 2016 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,6 +12,9 @@ Hello, and welcome! I've spent the past two years teaching kids to code - littleBits are amazing but they're incredibly poorly documented. Especially when you get into actually writing real code for it! It would be great if we at BGL could populate a couple of activities kids could follow to help them get started!  >Max connected three cloudBits to the Bath Hacked pollution data to display real time pollution levels for Bath ### littleBits littleBits are like lego for technology! They are simply colour coded; blue is for power; green is an output, pink is an input; and orange is logic. I have 8 cloudbits (orange) that you can connect to the internet (they need USB power first) - so if we have more people than bits, we'll need to form small groups! -
daniellevass revised this gist
Mar 3, 2016 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -30,10 +30,14 @@ Now you should see a massive button in the middle of the page - connect an outpu Along the bottom you should see a tab for settings - this is where you can find out the device id and access token which will need for the next step!  ### JSFiddle So now we've established that our bit is connected to the internet. We can look at customising it to make it useful for us! ### Project Ideas  -
daniellevass revised this gist
Mar 3, 2016 . 1 changed file with 18 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ Hello, and welcome! ###Aim: * Build your own Thing for the Internet using littleBits in small teams * Demonstrate the Thing you've made to everyone @@ -12,11 +12,28 @@ Aim: I've spent the past two years teaching kids to code - littleBits are amazing but they're incredibly poorly documented. Especially when you get into actually writing real code for it! It would be great if we at BGL could populate a couple of activities kids could follow to help them get started! ### littleBits littleBits are like lego for technology! They are simply colour coded; blue is for power; green is an output, pink is an input; and orange is logic. I have 8 cloudbits (orange) that you can connect to the internet (they need USB power first) - so if we have more people than bits, we'll need to form small groups! Feel free to take whichever inputs and outputs your interested in - but please only take whatever you're going to use so that everyone may have an opportunity to play! ### Cloud Control The first step to programming the bits is to sign on to the web portal at http://control.littlebitscloud.cc The username is [email protected] and I'll write the password somewhere visible for everyone to see. Note that the buttons for sign up and log in are weird - so be careful! Once you've signed in you should see on the left hand side a list of pokemon names - click on the pokemon that matches the cloudBit you have! If you're stuck check out this page - http://bulbapedia.bulbagarden.net/wiki/Starter_Pok%C3%A9mon Now you should see a massive button in the middle of the page - connect an output to your cloudBit (any green bit) and press the button. You should see something happen! If not, somethings gone wrong and ask me for some help! Along the bottom you should see a tab for settings - this is where you can find out the device id and access token which will need for the next step! ### JSFiddle So now we've established that our bit is connected to the internet. We can look at customising it to make it useful for us! ### Project Ideas  -
daniellevass revised this gist
Mar 3, 2016 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,11 +2,15 @@ Hello, and welcome! Aim: * Build your own Thing for the Internet using littleBits in small teams * Demonstrate the Thing you've made to everyone * Write up how others (children) could copy your thing ### Why we're doing it I've spent the past two years teaching kids to code - littleBits are amazing but they're incredibly poorly documented. Especially when you get into actually writing real code for it! It would be great if we at BGL could populate a couple of activities kids could follow to help them get started! ### Cloud Control -
daniellevass created this gist
Mar 3, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ # Internet of Things workshop with littleBits Hello, and welcome! ### What we're doing ### Why we're doing it ### Cloud Control ### JSFiddle ### Project Ideas  * Synchronised Christmas decorations * Internet enabled door bells * Pet feeder * Baby monitor * Internet enabled umbrella stand * Interactive Charity counter - for Dilip going to Zambia! * Your own ideas - everyone should have their own favourite API!