Skip to content

Commit 738a8ff

Browse files
committed
Generated combined list incorporated in spread sheet
1 parent 8ef097a commit 738a8ff

13 files changed

+771
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Python
2+
*.py[cod]
3+
4+
# LibreOffice
5+
.~lock.*.ods#
71.3 KB
Binary file not shown.

README.rst

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
LEGO Mindstorms EV3 Comparison
2+
==============================
3+
4+
This project is meant to complement the comparison made in
5+
`The Difference Between LEGO MINDSTORMS EV3 Home Edition (#31313) and LEGO MINDSTORMS Education EV3 (#45544)`_,
6+
an article by `Laurens Valk`_.
7+
8+
There are two editions of LEGO Mindstorms, LEGO's Robotics Invention System (RIS),
9+
the EV3 Home Edition and the Education Edition. You may wonder what is the difference
10+
and which one is right for you. Reviews on Amazon will tell you that the Education
11+
set is meant for schools, with a more robust plastic packaging and shorter, in-class
12+
exercises to go through instead of full-blown projects to be exercised from start to
13+
end that fulfill you as a robot newbie with the Home Edition.
14+
15+
If you one day want to upgrade your set you'll be wondering if you can combine the
16+
two. The data elaborated in this project may help you with your decision on what
17+
pieces to buy.
18+
19+
Usage
20+
-----
21+
22+
``Lego-Mindstorms-Editions-Comparison.ods``, a LibreOffice Calc spread sheet, lists
23+
the pieces of all sets combined. Columns ``F`` and ``I`` tell you which pieces to
24+
buy if you have either Home Edition + Expansion Set or Education Edition + Expansion
25+
Set. You can filter the columns using the "Auto Filter" in the first row.
26+
27+
``lego-mindstorms-pieces.py`` is a Python3 script to generate the combined list of
28+
LEGO pieces from the three separate inventory lists. It takes three file names as
29+
an argument.
30+
31+
Resources
32+
---------
33+
34+
* LEGO Mindstorms, `31313 EV3 Home Edition`_, User Guide (look for "User Guide" button)
35+
* LEGO Mindstorms Education, `45544 EV3 Core Set`_, Element Overview
36+
* LEGO Mindstorms Education, `45560 EV3 Expansion Set`_, Element Overview
37+
* `The Difference Between LEGO MINDSTORMS EV3 Home Edition (#31313) and LEGO MINDSTORMS Education EV3 (#45544)`_
38+
* `LEGO Answers`_ question (Bricks, a StackExchange site)
39+
40+
41+
.. _The Difference Between LEGO MINDSTORMS EV3 Home Edition (#31313) and LEGO MINDSTORMS Education EV3 (#45544):
42+
http://robotsquare.com/2013/11/25/difference-between-ev3-home-edition-and-education-ev3/
43+
.. _Laurens Valk: http://robotsquare.com/about/
44+
.. _31313 EV3 Home Edition: http://www.lego.com/en-us/mindstorms/downloads
45+
.. _45544 EV3 Core Set: https://education.lego.com/en-us/lego-education-product-database/mindstorms-ev3/45544-lego-mindstorms-education-ev3-core-set
46+
.. _45560 EV3 Expansion Set: https://education.lego.com/en-us/lego-education-product-database/mindstorms-ev3/45560-lego-mindstorms-education-ev3-expansion-set
47+
.. _LEGO Answers: http://bricks.stackexchange.com/questions/1819/what-is-different-between-the-ev3-home-and-educational-sets/
48+
49+
Your Contribution
50+
-----------------
51+
52+
If you find a typo, an error, a critical mistake or feel there's some enhancement
53+
needed please feel free to `open an issue`_, or even better clone the repository,
54+
apply your changes, and `place a pull request`_. Your contribution is welcome!
55+
56+
57+
.. _open an issue: https://github.com/bittner/lego-mindstorms-ev3-comparison/issues
58+
.. _place a pull request: https://github.com/bittner/lego-mindstorms-ev3-comparison/pulls

lego-mindstorms-pieces.py

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/usr/bin/env python3
2+
"""
3+
A simple python program to find out which pieces you need to buy when
4+
you have bought Lego Mindstorms EV3 Home Edition (31313) and the Education
5+
Expansion Set (45560). So you can make all robots that can be made with
6+
the Education Core Set (45544) + Education Expansion Set.
7+
"""
8+
import sys
9+
10+
files = sys.argv[1:]
11+
part_list = {}
12+
NO_PARTS = [0 for a in range(len(files))]
13+
14+
for file_count, name in enumerate(files):
15+
print('Reading file: %s' % name, file=sys.stderr)
16+
with open(name) as f:
17+
for line in f.readlines():
18+
line = line.strip()
19+
try:
20+
count, part_no = line.split('\t')
21+
count, part_no = int(count), int(part_no)
22+
23+
if part_no not in part_list.keys():
24+
part_list[part_no] = NO_PARTS.copy()
25+
26+
part_list[part_no][file_count] = count
27+
except ValueError as err:
28+
print('Ignoring error: %s (%s)' % (err, line),
29+
file=sys.stderr)
30+
31+
part_numbers = list(part_list.keys())
32+
part_numbers.sort()
33+
34+
print('Part no.\t%s' % '\t'.join(files))
35+
for part_no in part_numbers:
36+
part_counts = '\t'.join([str(a) for a in part_list[part_no]])
37+
print('%s\t%s' % (part_no, part_counts))

lego-promo/45544_Element_Survey.pdf

3.84 MB
Binary file not shown.

lego-promo/45560_Element_Survey.pdf

3.72 MB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
Lego Mindstorms, 31313 EV3 Home Edition
2+
Element List
3+
2 4128594
4+
1 6015596
5+
3 4558797
6+
14 4175442
7+
17 4128598
8+
10 4140806
9+
12 4142865
10+
3 4513174
11+
1 6015597
12+
3 4547581
13+
4 4514554
14+
3 4666999
15+
3 4547582
16+
1 4565452
17+
1 6031962
18+
3 4558802
19+
4 4173975
20+
4 4562805
21+
3 4545430
22+
6 4657296
23+
6 4185661
24+
28 4206482
25+
4 4254606
26+
38 4514553
27+
11 4239601
28+
1 4544143
29+
6 4234429
30+
4 6031821
31+
4 4656205
32+
4 4189936
33+
4 4173941
34+
8 4188298
35+
9 4227155
36+
1 4189131
37+
10 6006140
38+
2 4246901
39+
12 4142822
40+
3 6028041
41+
2 6044688
42+
10 4142135
43+
4 4299389
44+
6 4184169
45+
95 4121715
46+
1 4558692
47+
4 4552347
48+
6 4495935
49+
1 6024109
50+
8 4120017
51+
4 4184286
52+
4 4248204
53+
2 4177431
54+
8 4645732
55+
6 4142823
56+
4 4128593
57+
1 6024106
58+
4 4522933
59+
4 4542573
60+
4 4177430
61+
12 4140327
62+
5 4255563
63+
9 370626
64+
2 4629921
65+
12 4111998
66+
2 4143187
67+
4 4141300
68+
6 4560175
69+
2 4538007
70+
4 6013936
71+
4 4211758
72+
4 4560177
73+
6 4499858
74+
1 4502595
75+
12 4225033
76+
2 4211510
77+
4 4211888
78+
4 4211807
79+
2 4211553
80+
6 4211375
81+
2 4526985
82+
2 4508553
83+
2 4514558
84+
22 4211815
85+
9 4211639
86+
2 4211805
87+
1 4535768
88+
1 4211566
89+
2 4539880
90+
2 4630114
91+
3 4494222
92+
2 4540797
93+
1 6014051
94+
1 6008919
95+
4 6024581
96+
1 6008577
97+
1 6008472
98+
2 6024583
99+
2 6009430
100+
1 6009996
101+
1 6009811
102+
1 6024585
103+
1 6036901
104+

0 commit comments

Comments
 (0)