|
| 1 | +--- |
| 2 | +# Fill out as many of these as you can, and delete the rest. |
| 3 | +author: [ "@BertLindeman" ] # The person(s) who created this project. |
| 4 | +# Any author that starts with "@" will pull information from github. |
| 5 | +programming_language: "Bourne shell script" # The programming language used in this project |
| 6 | + |
| 7 | +#youtube_video_id: rrNaLfE9PWA # The video ID of the YouTube video to be displayed with this post |
| 8 | + |
| 9 | +#project_homepage_url: "none yet" # Homepage for this project |
| 10 | +source_code_url: "https://github.com/BertLindeman/bert-ev3dev-examples" # Provide a link to your code |
| 11 | +#building_instructions_url: "none" |
| 12 | +--- |
| 13 | + |
| 14 | +### Examples of bits and pieces running at Jessie level |
| 15 | + |
| 16 | +These shell-scripts are located on my EV3-brick at `/usr/local/bin` |
| 17 | +but with some simple edits you can place them where **you** want them. |
| 18 | + |
| 19 | + 1. Supporting script(s) used by other scripts |
| 20 | + * [asciicolor](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/asciicolors) |
| 21 | + |
| 22 | + 2. Scripts related to managing the EV3-brick |
| 23 | + * [checkpower](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/checkpower) |
| 24 | + Add this script to a crontab to check for the battery voltage. On lower power the EV3-led on the left will blink green on lower voltage, then amber and eventually red (with one beep). |
| 25 | + * [showactivity](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/showactivity) Makes the right green led blink on I/O activity. |
| 26 | + * [stopmotors](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/stopmotors) Well, stops all motors. |
| 27 | + |
| 28 | + 3. Scripts discovering sensors and / or motors |
| 29 | + * [blinkleds](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/blinkleds) |
| 30 | + * [setled](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/setled) |
| 31 | + * [showleds](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/showleds) |
| 32 | + * [showmotor](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/showmotor) |
| 33 | + * [showpower](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/showpower) |
| 34 | + * [showsensors](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/showsensors) |
| 35 | + * [showsound](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/showsound) |
| 36 | + * [testmotor](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/testmotor) |
| 37 | + |
| 38 | +### Have your EV3 report it's IP-address by speach after boot |
| 39 | +For this an update is needed to |
| 40 | +[`/media/mmc_p1/ev3dev.rc.local`](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/rc.local) |
| 41 | + |
| 42 | +Add the next lines to the bottom of `/media/mmc_p1/ev3dev.rc.local` |
| 43 | + |
| 44 | +```if [ -e /media/mmc_p1/tellIP ]; then ``` |
| 45 | + |
| 46 | +```echo "Executing /media/mmc_p1/tellIP" ``` |
| 47 | + |
| 48 | +```source /media/mmc_p1/tellIP ``` |
| 49 | + |
| 50 | +```fi ``` |
| 51 | + |
| 52 | + |
| 53 | +and an extra script [`tellIP`](https://github.com/BertLindeman/bert-ev3dev-examples/blob/master/tellIP) |
| 54 | +in the same directory: `/media/mmc_p1/` |
0 commit comments