Skip to content

Commit 02e3199

Browse files
author
Dexter Industries
committed
Update
Small updates!
1 parent dfa0cf5 commit 02e3199

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+1938
-1930
lines changed

.gitattributes

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Auto detect text files and perform LF normalization
2-
* text=auto
2+
* text=lf
33

44
# Custom for Visual Studio
55
*.cs diff=csharp
@@ -20,3 +20,11 @@
2020
*.PDF diff=astextplain
2121
*.rtf diff=astextplain
2222
*.RTF diff=astextplain
23+
24+
.sh text eol=lf
25+
.py text eol=lf
26+
.md text eol=lf
27+
.txt text eol=lf
28+
.html text eol=lf
29+
.java text eol=lf
30+
.c text eol=lf

Firmware/README.md

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
## Uploading a new firmware to the GoPiGo
2-
First make the update script executable
3-
> sudo chmod + firmware_update.sh
4-
5-
Make sure that the motors are disconnected from the GoPiGo and then run the firmware update:
6-
> sudo ./firmware_update.sh
7-
8-
## Making changes to the GoPiGo Firmware
9-
10-
The GoPiGo uses software servo to control the Servo's so when making changes to the code, do remember to add the **Software Servo library** to the Arduino Libraries folder
11-
12-
Use this tutorial to load the library http://www.dexterindustries.com/Arduberry/how-to-program-the-arduberry/#new_lib .
13-
14-
Press "CTRL+SHIFT+U" to upload the code
15-
16-
17-
## License
18-
GoPiGo for the Raspberry Pi: an open source robotics platform for the Raspberry Pi.
19-
Copyright (C) 2015 Dexter Industries
20-
21-
This program is free software: you can redistribute it and/or modify
22-
it under the terms of the GNU General Public License as published by
23-
the Free Software Foundation, either version 3 of the License, or
24-
(at your option) any later version.
25-
26-
This program is distributed in the hope that it will be useful,
27-
but WITHOUT ANY WARRANTY; without even the implied warranty of
28-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29-
GNU General Public License for more details.
30-
31-
You should have received a copy of the GNU General Public License
32-
along with this program. If not, see <http://www.gnu.org/licenses/gpl-3.0.txt>.
1+
## Uploading a new firmware to the GoPiGo
2+
First make the update script executable
3+
> sudo chmod + firmware_update.sh
4+
5+
Make sure that the motors are disconnected from the GoPiGo and then run the firmware update:
6+
> sudo ./firmware_update.sh
7+
8+
## Making changes to the GoPiGo Firmware
9+
10+
The GoPiGo uses software servo to control the Servo's so when making changes to the code, do remember to add the **Software Servo library** to the Arduino Libraries folder
11+
12+
Use this tutorial to load the library http://www.dexterindustries.com/Arduberry/how-to-program-the-arduberry/#new_lib .
13+
14+
Press "CTRL+SHIFT+U" to upload the code
15+
16+
17+
## License
18+
GoPiGo for the Raspberry Pi: an open source robotics platform for the Raspberry Pi.
19+
Copyright (C) 2017 Dexter Industries
20+
21+
This program is free software: you can redistribute it and/or modify
22+
it under the terms of the GNU General Public License as published by
23+
the Free Software Foundation, either version 3 of the License, or
24+
(at your option) any later version.
25+
26+
This program is distributed in the hope that it will be useful,
27+
but WITHOUT ANY WARRANTY; without even the implied warranty of
28+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29+
GNU General Public License for more details.
30+
31+
You should have received a copy of the GNU General Public License
32+
along with this program. If not, see <http://www.gnu.org/licenses/gpl-3.0.txt>.

Hardware/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This repository contains hardware designs and design materials for the GoPiGo.
1616

1717
## License
1818
GoPiGo for the Raspberry Pi: an open source robotics platform for the Raspberry Pi.
19-
Copyright (C) 2015 Dexter Industries
19+
Copyright (C) 2017 Dexter Industries
2020

2121
This program is free software: you can redistribute it and/or modify
2222
it under the terms of the GNU General Public License as published by

Projects/GiftBot/deer.py

Lines changed: 66 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,66 @@
1-
#!/usr/bin/env python
2-
from __future__ import print_function
3-
from __future__ import division
4-
from builtins import input
5-
6-
'''
7-
Build a Present Delivery System. Have a robot deliver your Christmas Presents!
8-
9-
https://www.dexterindustries.com/projects/giftbot-raspberry-pi-robot-delivers-christmas-gifts/
10-
11-
In this project, we'll show you GiftBot, the Raspberry Pi Robot that will deliver your Christmas Gifts and bring cheer to your holiday season. We took the GoPiGo Raspberry Pi Robot, added some Jingle Bell Rock with the Raspberry Pi Speaker, and harnessed the power of three reindeer to deliver our gifts this year. A elf will ride on the GoPiGo as it makes its rounds.
12-
13-
No reindeer robot would be complete without a Red Nosed Rudolf: we added one with a Red Grove LED!
14-
15-
## License
16-
GoPiGo for the Raspberry Pi: an open source robotics platform for the Raspberry Pi.
17-
Copyright (C) 2015 Dexter Industries
18-
19-
This program is free software: you can redistribute it and/or modify
20-
it under the terms of the GNU General Public License as published by
21-
the Free Software Foundation, either version 3 of the License, or
22-
(at your option) any later version.
23-
24-
This program is distributed in the hope that it will be useful,
25-
but WITHOUT ANY WARRANTY; without even the implied warranty of
26-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27-
GNU General Public License for more details.
28-
29-
You should have received a copy of the GNU General Public License
30-
along with this program. If not, see <http://www.gnu.org/licenses/gpl-3.0.txt>.
31-
'''
32-
33-
from gopigo import *
34-
import sys
35-
import os
36-
import subprocess
37-
# from espeak import espeak
38-
import atexit
39-
atexit.register(stop)
40-
led_pin = analogPort
41-
pinMode(led_pin,"OUTPUT")
42-
43-
44-
# Play some rock music. You can play any mp3 for other sound file
45-
# with omxplayer. Change the full path name!
46-
def play_rock():
47-
bashCommand = '''sudo omxplayer -o local /home/pi/rock.mp3'''
48-
print(bashCommand)
49-
subprocess.Popen(["sudo","omxplayer", "-o", "local", "/home/pi/rock.mp3"]) # Runs the bash command in the background.
50-
51-
# Blink Rudolfs Nose!
52-
def blink(times):
53-
for each in range(0, times):
54-
try:
55-
digitalWrite(led_pin,1)
56-
time.sleep(.5)
57-
digitalWrite(led_pin,0)
58-
time.sleep(.5)
59-
60-
except IOError:
61-
print ("Error")
62-
63-
while True:
64-
play_rock()
65-
fwd()
66-
blink(5) # Adjust this rate for however long you want the GoPiGo to run!
1+
#!/usr/bin/env python
2+
from __future__ import print_function
3+
from __future__ import division
4+
from builtins import input
5+
6+
'''
7+
Build a Present Delivery System. Have a robot deliver your Christmas Presents!
8+
9+
https://www.dexterindustries.com/projects/giftbot-raspberry-pi-robot-delivers-christmas-gifts/
10+
11+
In this project, we'll show you GiftBot, the Raspberry Pi Robot that will deliver your Christmas Gifts and bring cheer to your holiday season. We took the GoPiGo Raspberry Pi Robot, added some Jingle Bell Rock with the Raspberry Pi Speaker, and harnessed the power of three reindeer to deliver our gifts this year. A elf will ride on the GoPiGo as it makes its rounds.
12+
13+
No reindeer robot would be complete without a Red Nosed Rudolf: we added one with a Red Grove LED!
14+
15+
## License
16+
GoPiGo for the Raspberry Pi: an open source robotics platform for the Raspberry Pi.
17+
Copyright (C) 2017 Dexter Industries
18+
19+
This program is free software: you can redistribute it and/or modify
20+
it under the terms of the GNU General Public License as published by
21+
the Free Software Foundation, either version 3 of the License, or
22+
(at your option) any later version.
23+
24+
This program is distributed in the hope that it will be useful,
25+
but WITHOUT ANY WARRANTY; without even the implied warranty of
26+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27+
GNU General Public License for more details.
28+
29+
You should have received a copy of the GNU General Public License
30+
along with this program. If not, see <http://www.gnu.org/licenses/gpl-3.0.txt>.
31+
'''
32+
33+
from gopigo import *
34+
import sys
35+
import os
36+
import subprocess
37+
# from espeak import espeak
38+
import atexit
39+
atexit.register(stop)
40+
led_pin = analogPort
41+
pinMode(led_pin,"OUTPUT")
42+
43+
44+
# Play some rock music. You can play any mp3 for other sound file
45+
# with omxplayer. Change the full path name!
46+
def play_rock():
47+
bashCommand = '''sudo omxplayer -o local /home/pi/rock.mp3'''
48+
print(bashCommand)
49+
subprocess.Popen(["sudo","omxplayer", "-o", "local", "/home/pi/rock.mp3"]) # Runs the bash command in the background.
50+
51+
# Blink Rudolfs Nose!
52+
def blink(times):
53+
for each in range(0, times):
54+
try:
55+
digitalWrite(led_pin,1)
56+
time.sleep(.5)
57+
digitalWrite(led_pin,0)
58+
time.sleep(.5)
59+
60+
except IOError:
61+
print ("Error")
62+
63+
while True:
64+
play_rock()
65+
fwd()
66+
blink(5) # Adjust this rate for however long you want the GoPiGo to run!

Software/C/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ target_link_libraries(your_executable ${gopigo_LIBRARIES})
6262

6363
## License
6464
GoPiGo for the Raspberry Pi: an open source robotics platform for the Raspberry Pi.
65-
Copyright (C) 2015 Dexter Industries
65+
Copyright (C) 2017 Dexter Industries
6666

6767
This program is free software: you can redistribute it and/or modify
6868
it under the terms of the GNU General Public License as published by

0 commit comments

Comments
 (0)