Skip to content

Commit

Permalink
Merge pull request #5 from CleoQc/master
Browse files Browse the repository at this point in the history
README update
  • Loading branch information
CleoQc authored Aug 20, 2018
2 parents 0784109 + 0430e2b commit 71f8404
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,30 @@ Because everyone loves rainbows, the Gigglebot can smile at you in rainbow color

![Makecode for a rainbow](https://raw.githubusercontent.com/DexterInd/pxt-giggle/master/images/rainbow_3sec.png)

### Following a line
The GiggleBot comes with two line sensors that allows it to follow either a thin line or a thick line. The thin line is thin enough to fit between the two sensors, while the thick line is thick enough that both sensors will fit within the line.

![Follow a thick line](https://raw.githubusercontent.com/DexterInd/pxt-gigglebot/master/images/follow_line.png)

### Reading the line sensors

You can also access the line sensors values directly. This allows you to write a line follower logic that is tailored to your specific needs.

![Read Line Sensor Value](https://raw.githubusercontent.com/DexterInd/pxt-gigglebot/master/images/line_sensor_value.png)

### Following a light

The GiggleBot comes with two light sensors that allows it to follow a light, a little bit like a cat would. Shine a flashlight onto one eye will get the GiggleBot to turn in that direction.

![Follow Light](https://raw.githubusercontent.com/DexterInd/pxt-gigglebot/master/images/follow_light.png)

### Reading the light sensor values

You can also read the light sensors values directly in order to implement a different behaviour, like having the GiggleBot fall asleep when it gets dark, and wake up when there's light.

![Falls Asleep when dark](https://raw.githubusercontent.com/DexterInd/pxt-gigglebot/master/images/light_sensor_falls_asleep.png)


### Using the distance sensor
This piece of code will start the Gigglebot forward when button A is pressed. At all times, the distance sensor displays the distance to an obstacle onto the smile and will stop the Gigglebot if the obstacle is closer than 10 cm.

Expand Down
4 changes: 2 additions & 2 deletions pxt.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "giggle",
"version": "v0.1.3",
"version": "v0.1.4",
"dependencies": {
"core": "*",
"radio": "*",
"neopixel": "github:microsoft/pxt-neopixel#v0.6.7",
"gigglebot": "github:dexterind/pxt-gigglebot#v0.1.3"
"gigglebot": "github:dexterind/pxt-gigglebot#v0.1.4"
},
"description": "GiggleBot is a microbit rover by Dexter Industries, it offers a total of 9 neopixels, 2 line sensors, 2 light sensors, and 2 servos",
"files": [
Expand Down

0 comments on commit 71f8404

Please sign in to comment.